1 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
4 * config/avr/avr-mcus.def (atmega16hva, atmega16hva2, atmega16hvb)
5 (atmega16m1, atmega16u4, atmega32a, atmega32c1, atmega32hvb)
6 (atmega32m1, atmega32u4, atmega32u6, atmega64c1, atmega64m1):
7 Remove duplicate devices.
8 * config/avr/gen-avr-mmcu-texi.c (print_mcus): Fail on duplicate MCUs.
9 * config/avr/t-multilib: Regenerate.
10 * config/avr/avr-tables.opt: Regenerate.
11 * doc/avr-mmcu.texi: Regenerate.
13 2013-07-10 Georg-Johann Lay <avr@gjlay.de>
16 * config/avr/avr.opt (Waddr-space-convert): Fix typo.
18 2013-07-10 Graham Stott <graham.stott@btinternet.com>
19 * config/mips/mips.c (mips_rtx_costs): Very slightly increase
20 the cost of MULT when optimizing for size.
22 2013-07-10 Jan-Benedict Glaw <jbglaw@lug-owl.de>
24 * config/cr16/cr16-protos.h: Don't include target.h.
26 2013-07-09 Joseph Myers <joseph@codesourcery.com>
28 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
29 adjust register size for TDmode and TFmode for VSX registers.
31 2013-07-08 Kai Tietz <ktietz@redhat.com>
34 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
35 hook_bool_const_tree_true.
37 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
40 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
41 * config/s390/s390.md: Define FPR*_REGNUM constants.
42 Fix FPR2_REGNUM constant (18 -> 17).
43 ("*trunc<BFP:mode><DFP_ALL:mode>2")
44 ("*trunc<DFP_ALL:mode><BFP:mode>2")
45 ("trunc<BFP:mode><DFP_ALL:mode>2")
46 ("trunc<DFP_ALL:mode><BFP:mode>2")
47 ("*extend<BFP:mode><DFP_ALL:mode>2")
48 ("*extend<DFP_ALL:mode><BFP:mode>2")
49 ("extend<BFP:mode><DFP_ALL:mode>2")
50 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
53 2013-07-08 Graham Stott <graham.stott@btinternet.com>
54 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
56 2013-07-08 Graham Stott <graham.stott@btinternet.com>
57 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
58 unused variables l_length and l_node.
60 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
62 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
63 and cfun_fpr_bit_p to cfun_fpr_save_p.
64 (s390_frame_area, s390_register_info, s390_frame_info)
65 (s390_emit_prologue, s390_emit_epilogue)
66 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
68 * config/s390/s390.h: Define *_REGNUM macros for floating point
71 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
73 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
75 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
77 PR rtl-optimization/57786
78 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
79 and break out of the loop when it is set to false.
81 2013-07-08 Jakub Jelinek <jakub@redhat.com>
84 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
85 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
87 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
88 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
89 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
91 PR rtl-optimization/57829
92 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
93 mask bits outside of mode are just sign-extension from mode to HWI.
95 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
97 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
98 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
99 adjust_address instead of change_address to keep info about alignment.
100 (emit_strmov): Remove.
101 (emit_memmov): New function.
102 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
103 (expand_movmem_epilogue): Likewise and return updated rtx for
105 (expand_constant_movmem_prologue): Likewise and return updated rtx for
106 destination and source.
107 (decide_alignment): Refactor, handle vector_loop.
108 (ix86_expand_movmem): Likewise.
109 (ix86_expand_setmem): Likewise.
110 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
112 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
114 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
115 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
117 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
119 * config/i386/sse.md (sse_movlhps): Change alternative 3
122 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
125 * config/i386/sse.md (iptr): New mode attribute.
126 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
127 (<sse>_vm<plusminus_insn><mode>3): Ditto.
128 (<sse>_vmmul<mode>3): Ditto.
129 (<sse>_vmdiv<mode>3): Ditto.
130 (sse_vmrcpv4sf2): Ditto.
131 (<sse>_vmsqrt<mode>2): Ditto.
132 (sse_vmrsqrtv4sf2): Ditto.
133 (<sse>_vm<code><mode>3): Ditto.
134 (avx_vmcmp<mode>3): Ditto.
135 (<sse>_vmmaskcmp<mode>3): Ditto.
137 (<sse>_ucomi): Ditto.
138 (*xop_vmfrcz_<mode>): Ditto.
139 (*fmai_fmadd_<mode>): Ditto.
140 (*fmai_fmsub_<mode>): Ditto.
141 (*fmai_fnmadd_<mode>): Ditto.
142 (*fmai_fnmsub_<mode>): Ditto.
143 (*fma4i_vmfmadd_<mode>): Ditto.
144 (*fma4i_vmfmsub_<mode>): Ditto.
145 (*fma4i_vmfnmadd_<mode>): Ditto.
146 (*fma4i_vmfnmsub_<mode>): Ditto.
147 (*xop_vmfrcz_<mode>): Ditto.
148 (sse_cvtps2pi): Ditto.
149 (sse_cvttps2pi): Ditto.
150 (sse_cvtss2si): Ditto.
151 (sse_cvtss2si_2): Ditto.
152 (sse_cvtss2siq_2): Ditto.
153 (sse_cvttss2si): Ditto.
154 (sse_cvttss2siq): Ditto.
155 (sse_cvtsd2si): Ditto.
156 (sse_cvtsd2si_2): Ditto.
157 (sse_cvtsd2siq_2): Ditto.
158 (sse_cvttsd2si): Ditto.
159 (sse_cvttsd2siq): Ditto.
160 (sse_cvtsd2ss): Ditto.
161 (sse_cvtss2sd): Ditto.
162 (avx2_pbroadcast<mode>): Ditto.
163 (avx2_pbroadcast<mode>_1): Ditto.
164 (*avx_vperm_broadcast_v4sf): Ditto.
166 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
167 (sse_movlhps): Ditto.
168 (sse_storehps): Ditto.
169 (sse_loadhps): Ditto.
170 (sse_storelps): Ditto.
171 (sse_loadlps): Ditto.
172 (*vec_concatv4sf): Ditto.
173 (*vec_interleave_highv2df): Ditto.
174 (*vec_interleave_lowv2df): Ditto.
175 (*vec_extractv2df_1_sse): Ditto.
176 (*vec_extractv2df_0_sse): Ditto.
177 (sse2_storelpd): Ditto.
178 (sse2_loadlpd): Ditto.
180 (*vec_concatv4si): Ditto.
181 (vec_concatv2di): Ditto.
183 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
184 for Intel asm dialect.
185 (mmx_punpcklwd): Ditto.
186 (mmx_punpckldq): Ditto.
188 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
189 for intel assembler dialect.
191 2013-07-06 Jakub Jelinek <jakub@redhat.com>
194 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
195 for BUILT_IN_C{LZ,LRSB}*.
196 * tree.h (CASE_INT_FN): Add FN##IMAX case.
197 * tree-vrp.c (extract_range_basic): Handle
198 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
199 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
200 fall thru to code calling set_value*.
201 * builtins.c (expand_builtin): Remove *IMAX cases.
202 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
203 if width is bigger than 2*HWI.
205 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
207 PR rtl-optimization/55342
208 * lra-int.h (lra_subreg_reload_pseudos): New.
209 * lra.c: Add undoing optional reloads to the block diagram.
210 (lra_subreg_reload_pseudos): New.
211 (lra_optional_reload_pseudos): Change comments.
212 (lra): Init and clear lra_subreg_reload_pseudos. Clear
213 lra_optional_reload_pseudos after undo transformations.
214 * lra-assigns.c (pseudo_prefix_title): New.
215 (lra_setup_reg_renumber): Use it.
216 (spill_for): Ditto. Check subreg reload pseudos too.
217 (assign_by_spills): Consider subreg reload pseudos too.
218 * lra-constraints.c (simplify_operand_subreg): Use
219 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
220 (curr_insn_transform): Recognize and do optional reloads.
221 (undo_optional_reloads): New.
222 (lra_undo_inheritance): Call undo_optional_reloads.
224 2013-07-05 Thomas Quinot <quinot@adacore.com>
226 * tree-complex.c (expand_complex_operations_1): Fix typo.
228 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
230 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
231 (tune_params): New member 'const vec_costs'.
232 * config/aarch64/aarch64.c (generic_vector_cost): New.
233 (generic_tunings): New member 'generic_vector_cost'.
234 (aarch64_builtin_vectorization_cost): New.
235 (aarch64_add_stmt_cost): New.
236 (TARGET_VECTORIZE_ADD_STMT_COST): New.
237 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
239 2013-07-03 Jakub Jelinek <jakub@redhat.com>
242 * config/i386/predicates.md (vsib_address_operand): Disallow
243 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
245 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
248 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
249 expand_builtin_setjmp_receiver.
250 (expand_label): Adjust, call expand_builtin_setjmp_receiver
251 with NULL for the label parameter.
252 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
253 the frame-pointer. Adjust comments.
254 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
255 only if LABEL is non-NULL.
257 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
259 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
260 (ARM_ABI_AAPCS64): Ditto.
262 (ARM_DEFAULT_ABI): Ditto.
264 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
266 * config/aarch64/aarch64-builtins.c
267 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
268 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
270 * config/aarch64/aarch64-simd.md
271 (aarch64_ld1<VALL:mode>): New.
272 (aarch64_st1<VALL:mode>): Likewise.
273 * config/aarch64/arm_neon.h
274 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
276 2013-07-02 Sriraman Tallam <tmsriram@google.com>
278 * config/i386/i386.c (gate_insert_vzeroupper): Check if
280 (ix86_option_override_internal):Turn on all -mavx target flags by
281 default as they are dependent on AVX anyway.
283 2013-07-02 Cary Coutant <ccoutant@google.com>
285 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
287 (loc_checksum_ordered): Likewise.
288 (hash_loc_operands): Remove inline keyword.
290 2013-07-02 Jakub Jelinek <jakub@redhat.com>
292 PR tree-optimization/57741
293 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
294 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
295 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
296 Allow REAL_CST step_exprs if flag_associative_math.
297 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
299 2013-07-02 Ian Bolton <ian.bolton@arm.com>
301 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
303 2013-07-02 Ian Bolton <ian.bolton@arm.com>
305 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
307 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
309 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
311 (iorsi3_insn): Likewise.
312 (arm_xorsi3): Likewise.
314 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
316 * arm.md (attribute "wtype"): Delete. Move attribute values from here
318 (attribute "type"): ... here, and prefix with "wmmx_".
319 (attribute "core_cycles"): Update for attribute changes.
320 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
321 (tbcstv4hi): Likewise.
322 (tbcstv2si): Likewise.
323 (iwmmxt_iordi3): Likewise.
324 (iwmmxt_xordi3): Likewise.
325 (iwmmxt_anddi3): Likewise.
326 (iwmmxt_nanddi3): Likewise.
327 (iwmmxt_arm_movdi): Likewise.
328 (iwmmxt_movsi_insn): Likewise.
329 (mov<mode>_internal): Likewise.
330 (and<mode>3_iwmmxt): Likewise.
331 (ior<mode>3_iwmmxt): Likewise.
332 (xor<mode>3_iwmmxt): Likewise.
333 (add<mode>3_iwmmxt): Likewise.
334 (ssaddv8qi3): Likewise.
335 (ssaddv4hi3): Likewise.
336 (ssaddv2si3): Likewise.
337 (usaddv8qi3): Likewise.
338 (usaddv4hi3): Likewise.
339 (usaddv2si3): Likewise.
340 (sub<mode>3_iwmmxt): Likewise.
341 (sssubv8qi3): Likewise.
342 (sssubv4hi3): Likewise.
343 (sssubv2si3): Likewise.
344 (ussubv8qi3): Likewise.
345 (ussubv4hi3): Likewise.
346 (ussubv2si3): Likewise.
347 (mulv4hi3_iwmmxt): Likewise.
348 (smulv4hi3_highpart): Likewise.
349 (umulv4hi3_highpart): Likewise.
350 (iwmmxt_wmacs): Likewise.
351 (iwmmxt_wmacsz): Likewise.
352 (iwmmxt_wmacu): Likewise.
353 (iwmmxt_wmacuz): Likewise.
354 (iwmmxt_clrdi): Likewise.
355 (iwmmxt_clrv8qi): Likewise.
356 (iwmmxt_clr4hi): Likewise.
357 (iwmmxt_clr2si): Likewise.
358 (iwmmxt_uavgrndv8qi3): Likewise.
359 (iwmmxt_uavgrndv4hi3): Likewise.
360 (iwmmxt_uavgv8qi3): Likewise.
361 (iwmmxt_uavgv4hi3): Likewise.
362 (iwmmxt_tinsrb): Likewise.
363 (iwmmxt_tinsrh): Likewise.
364 (iwmmxt_tinsrw): Likewise.
365 (iwmmxt_textrmub): Likewise.
366 (iwmmxt_textrmsb): Likewise.
367 (iwmmxt_textrmuh): Likewise.
368 (iwmmxt_textrmsh): Likewise.
369 (iwmmxt_textrmw): Likewise.
370 (iwmxxt_wshufh): Likewise.
374 (gtuv8qi3): Likewise.
375 (gtuv4hi3): Likewise.
376 (gtuv2si3): Likewise.
380 (smax<mode>3_iwmmxt): Likewise.
381 (umax<mode>3_iwmmxt): Likewise.
382 (smin<mode>3_iwmmxt): Likewise.
383 (umin<mode>3_iwmmxt): Likewise.
384 (iwmmxt_wpackhss): Likewise.
385 (iwmmxt_wpackwss): Likewise.
386 (iwmmxt_wpackdss): Likewise.
387 (iwmmxt_wpackhus): Likewise.
388 (iwmmxt_wpackwus): Likewise.
389 (iwmmxt_wpackdus): Likewise.
390 (iwmmxt_wunpckihb): Likewise.
391 (iwmmxt_wunpckihh): Likewise.
392 (iwmmxt_wunpckihw): Likewise.
393 (iwmmxt_wunpckilb): Likewise.
394 (iwmmxt_wunpckilh): Likewise.
395 (iwmmxt_wunpckilw): Likewise.
396 (iwmmxt_wunpckehub): Likewise.
397 (iwmmxt_wunpckehuh): Likewise.
398 (iwmmxt_wunpckehuw): Likewise.
399 (iwmmxt_wunpckehsb): Likewise.
400 (iwmmxt_wunpckehsh): Likewise.
401 (iwmmxt_wunpckehsw): Likewise.
402 (iwmmxt_wunpckelub): Likewise.
403 (iwmmxt_wunpckeluh): Likewise.
404 (iwmmxt_wunpckeluw): Likewise.
405 (iwmmxt_wunpckelsb): Likewise.
406 (iwmmxt_wunpckelsh): Likewise.
407 (iwmmxt_wunpckelsw): Likewise.
408 (ror<mode>3): Likewise.
409 (ashr<mode>3_iwmmxt): Likewise.
410 (lshr<mode>3_iwmmxt): Likewise.
411 (ashl<mode>3_iwmmxt): Likewise.
412 (ror<mode>3_di): Likewise.
413 (ashr<mode>3_di): Likewise.
414 (lshr<mode>3_di): Likewise.
415 (ashl<mode>3_di): Likewise.
416 (iwmmxt_wmadds): Likewise.
417 (iwmmxt_wmaddu): Likewise.
418 (iwmmxt_tmia): Likewise.
419 (iwmmxt_tmiaph): Likewise.
420 (iwmmxt_tmiabb): Likewise.
421 (iwmmxt_tmiatb): Likewise.
422 (iwmmxt_tmiabt): Likewise.
423 (iwmmxt_tmiatt): Likewise.
424 (iwmmxt_tmovmskb): Likewise.
425 (iwmmxt_tmovmskh): Likewise.
426 (iwmmxt_tmovmskw): Likewise.
427 (iwmmxt_waccb): Likewise.
428 (iwmmxt_wacch): Likewise.
429 (iwmmxt_waccw): Likewise.
430 (iwmmxt_waligni): Likewise.
431 (iwmmxt_walignr): Likewise.
432 (iwmmxt_walignr0): Likewise.
433 (iwmmxt_walignr1): Likewise.
434 (iwmmxt_walignr2): Likewise.
435 (iwmmxt_walignr3): Likewise.
436 (iwmmxt_wsadb): Likewise.
437 (iwmmxt_wsadh): Likewise.
438 (iwmmxt_wsadbz): Likewise.
439 (iwmmxt_wsadhz): Likewise.
440 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
441 (iwmmxt_wabsdiffb): Likewise.
442 (iwmmxt_wabsdiffh): Likewise.
443 (iwmmxt_wabsdiffw): Likewise.
444 (iwmmxt_waddsubhx): Likewise
445 (iwmmxt_wsubaddhx): Likewise.
446 (addc<mode>3): Likewise.
447 (iwmmxt_avg4): Likewise.
448 (iwmmxt_avg4r): Likewise.
449 (iwmmxt_wmaddsx): Likewise.
450 (iwmmxt_wmaddux): Likewise.
451 (iwmmxt_wmaddsn): Likewise.
452 (iwmmxt_wmaddun): Likewise.
453 (iwmmxt_wmulwsm): Likewise.
454 (iwmmxt_wmulwum): Likewise.
455 (iwmmxt_wmulsmr): Likewise.
456 (iwmmxt_wmulumr): Likewise.
457 (iwmmxt_wmulwsmr): Likewise.
458 (iwmmxt_wmulwumr): Likewise.
459 (iwmmxt_wmulwl): Likewise.
460 (iwmmxt_wqmulm): Likewise.
461 (iwmmxt_wqmulwm): Likewise.
462 (iwmmxt_wqmulmr): Likewise.
463 (iwmmxt_wqmulwmr): Likewise.
464 (iwmmxt_waddbhusm): Likewise.
465 (iwmmxt_waddbhusl): Likewise.
466 (iwmmxt_wqmiabb): Likewise.
467 (iwmmxt_wqmiabt): Likewise.
468 (iwmmxt_wqmiatb): Likewise.
469 (iwmmxt_wqmiatt): Likewise.
470 (iwmmxt_wqmiabbn): Likewise.
471 (iwmmxt_wqmiabtn): Likewise.
472 (iwmmxt_wqmiatbn): Likewise.
473 (iwmmxt_wqmiattn): Likewise.
474 (iwmmxt_wmiabb): Likewise.
475 (iwmmxt_wmiabt): Likewise.
476 (iwmmxt_wmiatb): Likewise.
477 (iwmmxt_wmiatt): Likewise.
478 (iwmmxt_wmiabbn): Likewise.
479 (iwmmxt_wmiabtn): Likewise.
480 (iwmmxt_wmiatbn): Likewise.
481 (iwmmxt_wmiattn): Likewise.
482 (iwmmxt_wmiawbb): Likewise.
483 (iwmmxt_wmiawbt): Likewise.
484 (iwmmxt_wmiawtb): Likewise.
485 (iwmmxt_wmiawtt): Likewise.
486 (iwmmxt_wmiawbbn): Likewise.
487 (iwmmxt_wmiawbtn): Likewise.
488 (iwmmxt_wmiawtbn): Likewise.
489 (iwmmxt_wmiawttn): Likewise.
490 (iwmmxt_wmerge): Likewise.
491 (iwmmxt_tandc<mode>3): Likewise.
492 (iwmmxt_torc<mode>3): Likewise.
493 (iwmmxt_torvsc<mode>3): Likewise.
494 (iwmmxt_textrc<mode>3): Likewise.
495 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
496 (wmmxt_pack): Likewise.
497 (wmmxt_mult_c1): Likewise.
498 (wmmxt_mult_c2): Likewise.
499 (wmmxt_alu_c1): Likewise.
500 (wmmxt_alu_c2): Likewise.
501 (wmmxt_alu_c3): Likewise.
502 (wmmxt_transfer_c1): Likewise.
503 (wmmxt_transfer_c2): Likewise.
504 (wmmxt_transfer_c3): Likewise.
505 (marvell_f_iwmmxt_wstr): Likewise.
506 (marvell_f_iwmmxt_wldr): Likewise.
508 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
510 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
512 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
515 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
516 * lra-constraints.c (need_for_split_p): Check call used hard regs
517 living through calls.
519 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
520 call used regs for call insn.
522 2013-06-28 Jakub Jelinek <jakub@redhat.com>
525 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
526 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
528 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
530 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
532 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
534 * lra-constraints.c (need_for_split_p): Check call used hard regs
535 living through calls.
537 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
540 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
541 to tie with any other modes. Eliminate Altivec vector mode tests,
542 since these are a subset of ALTIVEC or VSX vector modes. Simplify
543 code, to return 0 if testing MODE2 for a condition, if we've
544 already tested MODE1 for the same condition.
546 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
548 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
551 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
553 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
554 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
556 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
558 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
560 (aarch64_symbolic_constant_p): Remove.
561 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
562 static. Fix line length and white space.
563 (aarch64_symbolic_constant_p): Remove.
564 * config/aarch64/predicates.md (aarch64_valid_symref):
565 Use aarch64_classify_symbol_expression.
567 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
569 * config/arm/constraints.md (Ts): New constraint.
570 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
572 (compare_scc): Use "Ts" constraint for operand 0.
573 (ior_scc_scc): Likewise.
574 (and_scc_scc): Likewise.
575 (and_scc_scc_nodom): Likewise.
576 (ior_scc_scc_cmp): Likewise for operand 7.
577 (and_scc_scc_cmp): Likewise.
578 * config/arm/thumb2.md (thumb2_movsi_insn):
579 Add alternatives for 16-bit encodings.
580 (thumb2_movhi_insn): Likewise.
581 (thumb2_movsicc_insn): Likewise.
582 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
583 (thumb2_negscc): Use "Ts" constraint.
584 Move mvn instruction outside cond_exec block.
585 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
586 for 16-bit encodings.
588 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
590 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
592 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
593 (mulsi3subsi): Likewise.
594 (mulsidi3adddi): Likewise.
595 (mulsidi3_v6): Likewise.
596 (umulsidi3_v6): Likewise.
597 (umulsidi3adddi_v6): Likewise.
598 (smulsi3_highpart_v6): Likewise.
599 (umulsi3_highpart_v6): Likewise.
600 (mulhisi3tb): Likewise.
601 (mulhisi3bt): Likewise.
602 (mulhisi3tt): Likewise.
603 (maddhisi4): Likewise.
604 (maddhisi4tb): Likewise.
605 (maddhisi4tt): Likewise.
606 (maddhidi4): Likewise.
607 (maddhidi4tb): Likewise.
608 (maddhidi4tt): Likewise.
609 (zeroextractsi_compare0_scratch): Likewise.
610 (insv_zero): Likewise.
612 (anddi_notzesidi_di): Likewise.
613 (anddi_notsesidi_di): Likewise.
614 (andsi_notsi_si): Likewise.
615 (iordi_zesidi_di): Likewise.
616 (xordi_zesidi_di): Likewise.
617 (andsi_iorsi3_notsi): Likewise.
621 (not_shiftsi): Likewise.
622 (unaligned_loadsi): Likewise.
623 (unaligned_loadhis): Likewise.
624 (unaligned_loadhiu): Likewise.
625 (unaligned_storesi): Likewise.
626 (unaligned_storehi): Likewise.
627 (extv_reg): Likewise.
628 (extzv_t2): Likewise.
631 (arm_zero_extendhisi2addsi): Likewise.
632 (arm_zero_extendqisi2addsi): Likewise.
633 (compareqi_eq0): Likewise.
634 (arm_extendhisi2_v6): Likewise.
635 (arm_extendqisi2addsi): Likewise.
636 (arm_movt): Likewise.
637 (thumb2_ldrd): Likewise.
638 (thumb2_ldrd_base): Likewise.
639 (thumb2_ldrd_base_neg): Likewise.
640 (thumb2_strd): Likewise.
641 (thumb2_strd_base): Likewise.
642 (thumb2_strd_base_neg): Likewise.
643 (arm_negsi2): Add alternative for 16-bit encoding.
644 (arm_one_cmplsi2): Likewise.
646 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
648 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
649 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
651 * config/arm/vfp.md (*thumb2_movsf_vfp):
652 Disable predication for arm_restrict_it.
653 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
654 (*thumb2_movdfcc_vfp): Likewise.
655 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
656 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
657 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
658 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
659 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
660 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
661 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
662 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
663 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
664 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
665 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
666 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
667 Disable predication for arm_restrict_it.
669 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
671 * config/i386/bmiintrin.h (_bextr_u32): New.
674 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
676 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
677 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
678 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
679 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
680 * config/mips/n32-elf.h: ...this new file.
682 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
685 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
686 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
688 2013-06-27 Catherine Moore <clm@codesourcery.com>
690 * config/mips/mips-tables.opt: Regenerate.
691 * config/mips/mips-cpus.def: Add m14ke and m14kec.
692 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
693 * doc/invoke.texi: Add -m14kc.
695 2013-06-27 Jakub Jelinek <jakub@redhat.com>
698 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
699 constraints of operand 1 and 2.
702 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
703 to match RTL canonicalization. Swap predicates and
704 constraints of operand 1 and 2.
706 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
708 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
709 Process OP_INOUT regs for splitting too.
711 2013-06-27 Jakub Jelinek <jakub@redhat.com>
713 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
714 decl before the loop, initialize to NULL.
715 (vectorizable_load): Initialize ptr_incr to NULL.
717 2013-06-27 Martin Jambor <mjambor@suse.cz>
720 * ipa-ref.h (ipa_maybe_record_reference): Declare.
721 * ipa-ref.c (ipa_maybe_record_reference): New function.
722 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
723 * ipa-cp.c (create_specialized_node): Record potential references from
725 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
727 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
729 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
730 parameter 'mode' of type 'enum machine_mode mode'; change to pass
732 (aarch64_add_offset): Update calls to aarch64_force_temporary.
733 (aarch64_expand_mov_immediate): Likewise.
735 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
737 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
738 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
740 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
742 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
743 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
744 (struct machine_function): Add tbegin_p.
745 (s390_canonicalize_comparison): Fold CC mode compares to
746 conditional jump if possible.
747 (s390_emit_jump): Return the emitted jump.
748 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
749 Handle CCRAWmode compares.
750 (s390_option_override): Default to -mhtm if available.
751 (s390_reg_clobbered_rtx): Handle floating point regs as well.
752 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
753 FPRs instead of df_regs_ever_live_p.
754 (s390_optimize_nonescaping_tx): New function.
755 (s390_init_frame_layout): Extend clobbered_regs array to cover
757 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
758 (s390_expand_tbegin): New function.
759 (enum s390_builtin): New enum definition.
760 (code_for_builtin): New array definition.
761 (s390_init_builtins): New function.
762 (s390_expand_builtin): New function.
763 (TARGET_INIT_BUILTINS): Define.
764 (TARGET_EXPAND_BUILTIN): Define.
765 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
766 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
767 (s390_alc_comparison): Likewise.
768 * config/s390/s390-modes.def: Add CCRAWmode.
769 * config/s390/s390.h (processor_flags): Add PF_TX.
770 (TARGET_CPU_HTM): Define macro.
771 (TARGET_HTM): Define macro.
772 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
773 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
774 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
775 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
776 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
777 (TBEGIN_MASK, TBEGINC_MASK): New constants.
778 ("*cc_to_int"): Move up.
779 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
780 constants other than 0.
781 ("*ccraw_to_int"): New insn and splitter definition.
782 ("tbegin", "tbegin_nofloat", "tbegin_retry")
783 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
784 ("tx_assist"): New expander.
785 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
786 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
787 * config/s390/s390.opt: Add -mhtm option.
788 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
789 * config/s390/htmxlintrin.h: New file.
790 * config/s390/htmintrin.h: New file.
791 * config/s390/s390intrin.h: New file.
792 * doc/extend.texi: Document htm builtins.
793 * config.gcc: Add the new header files to extra_headers.
795 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
797 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
798 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
800 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
801 Pat Haugen <pthaugen@us.ibm.com>
802 Peter Bergner <bergner@vnet.ibm.com>
804 * config/rs6000/power8.md: New.
805 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
806 setting for power8 entry.
807 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
808 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
809 test for Power4/Power5 only.
810 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
812 (force_new_group): Adjust comment.
813 * config/rs6000/rs6000.md: Include power8.md.
815 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
817 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
818 * config/arm/arm-protos.h (arm_max_conditional_execute): New
820 (tune_params): Update comment.
821 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
822 (arm_max_conditional_execute): New function.
823 (thumb2_final_prescan_insn): Use max_insn_skipped and
824 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
826 2013-06-25 Jakub Jelinek <jakub@redhat.com>
828 PR tree-optimization/57705
829 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
830 SSA_NAME step, provided that it is not defined inside the loop.
831 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
832 (get_initial_def_for_induction): Handle SSA_NAME IV step.
834 2013-06-25 Martin Jambor <mjambor@suse.cz>
837 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
838 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
840 (ipa_note_param_call): Initialize member_ptr flag.
841 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
842 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
843 (ipa_write_indirect_edge_info): Stream member_ptr flag.
844 (ipa_read_indirect_edge_info): Likewise.
846 2013-06-25 Richard Biener <rguenther@suse.de>
849 * passes.c (init_optimization_passes): Move pass_fold_builtins
850 and pass_dce earlier with -Og.
852 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
854 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
855 <BIT_FIELD_REF>: Remove trailing TAB.
856 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
859 2013-06-24 Martin Jambor <mjambor@suse.cz>
861 PR tree-optimization/57358
862 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
863 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
864 (ipa_analyze_params_uses): Generate pessimistic info when true.
866 2013-06-24 Martin Jambor <mjambor@suse.cz>
868 PR tree-optimization/57539
869 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
870 global.inlined_to of the new node to it. All callers changed.
871 * ipa-inline-transform.c (clone_inlined_nodes): New variable
872 inlining_into, pass it to cgraph_clone_node.
873 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
874 ipa_free_edge_args_substructures.
875 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
876 rdesc linked list. Do not assert rdesc edges have inlined caller.
877 Assert we have found an rdesc in the rdesc list.
879 2013-06-24 Richard Biener <rguenther@suse.de>
881 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
882 (pointer_set_lookup): Declare.
883 (class pointer_map): New template class implementing a
884 generic pointer to T map.
885 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
886 pointer_map<T>::contains, pointer_map<T>::insert,
887 pointer_map<T>::traverse): New functions.
888 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
889 (pointer_set_lookup): New function.
890 (pointer_set_contains): Use pointer_set_lookup.
891 (pointer_set_insert): Likewise.
892 (insert_aux): Remove.
893 (struct pointer_map_t): Embed a pointer_set_t.
894 (pointer_map_create): Adjust.
895 (pointer_map_destroy): Likewise.
896 (pointer_map_contains): Likewise.
897 (pointer_map_insert): Likewise.
898 (pointer_map_traverse): Likewise.
899 * tree-streamer.h (struct streamer_tree_cache_d): Use a
900 pointer_map<unsigned> instead of a pointer_map_t.
901 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
902 (streamer_tree_cache_lookup): Likewise.
903 (streamer_tree_cache_create): Likewise.
904 (streamer_tree_cache_delete): Likewise.
905 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
906 pointer_map<unsigned> instead of a pointer_map_t.
907 (lto_init_tree_ref_encoder): Adjust.
908 (lto_destroy_tree_ref_encoder): Likewise.
909 * lto-section-out.c (lto_output_decl_index): Likewise.
910 (lto_record_function_out_decl_state): Likewise.
911 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
913 2013-06-24 Richard Biener <rguenther@suse.de>
915 PR tree-optimization/57488
916 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
918 2013-06-24 Alan Modra <amodra@gmail.com>
920 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
921 (gen_easy_altivec_constant): Likewise.
922 * config/rs6000/predicates.md (easy_vector_constant_add_self,
923 easy_vector_constant_msb): Likewise.
925 2013-06-23 Jakub Jelinek <jakub@redhat.com>
928 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
929 add missing return true.
931 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
934 * config/sh/predicates.md (general_extend_operand): Invoke
935 general_movsrc_operand for memory operands.
936 (general_movsrc_operand): Allow reg+reg addressing, do not use
937 general_operand for memory operands.
939 2013-06-23 Sriraman Tallam <tmsriram@google.com>
941 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
942 when current target options does not apply.
943 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
944 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
945 * config/i386/bmiintrin.h: Pass appropriate target
946 attributes to header.
947 * config/i386/mmintrin.h: Ditto.
948 * config/i386/nmmintrin.h: Ditto.
949 * config/i386/avx2intrin.h: Ditto.
950 * config/i386/fxsrintrin.h: Ditto.
951 * config/i386/tbmintrin.h: Ditto.
952 * config/i386/xsaveintrin.h: Ditto.
953 * config/i386/f16cintrin.h: Ditto.
954 * config/i386/xtestintrin.h: Ditto.
955 * config/i386/xsaveoptintrin.h: Ditto.
956 * config/i386/bmi2intrin.h: Ditto.
957 * config/i386/lzcntintrin.h: Ditto.
958 * config/i386/smmintrin.h: Ditto.
959 * config/i386/wmmintrin.h: Ditto.
960 * config/i386/x86intrin.h: Remove all header include guards.
961 * config/i386/prfchwintrin.h: Ditto.
962 * config/i386/pmmintrin.h: Ditto.
963 * config/i386/tmmintrin.h: Ditto.
964 * config/i386/xmmintrin.h: Ditto.
965 * config/i386/popcntintrin.h: Ditto.
966 * config/i386/rdseedintrin.h: Ditto.
967 * config/i386/ammintrin.h: Ditto.
968 * config/i386/emmintrin.h: Ditto.
969 * config/i386/immintrin.h: Remove all header include guards.
970 * config/i386/fma4intrin.h: Ditto.
971 * config/i386/lwpintrin.h: Ditto.
972 * config/i386/xopintrin.h: Ditto.
973 * config/i386/ia32intrin.h: Ditto.
974 * config/i386/avxintrin.h: Ditto.
975 * config/i386/rtmintrin.h: Ditto.
976 * config/i386/fmaintrin.h: Ditto.
977 * config/i386/mm3dnow.h: Ditto.
979 2013-06-22 Sriraman Tallam <tmsriram@google.com>
981 * common/config/i386/i386-common.c: Handle LZCNT.
983 2013-06-22 Andi Kleen <ak@linux.intel.com>
985 * doc/extend.texi: Use __atomic_store_n instead of
986 __atomic_store in HLE example.
988 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
990 * config/sh/sh.c: Remove <cstdlib> workaround.
992 2013-06-21 Andi Kleen <ak@linux.intel.com>
994 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
996 2013-06-21 Andi Kleen <ak@linux.intel.com>
998 * doc/extend.texi: Document that __atomic_clear and
999 __atomic_test_and_set should only be used with bool.
1001 2013-06-20 Jan Hubicka <jh@suse.cz>
1003 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
1005 * tree.c (decls_same_for_odr): New function.
1006 (same_for_edr): New function.
1007 (types_same_for_odr): New function.
1008 (get_binfo_at_offset): Use it.
1009 * tree.h (types_same_for_odr): Declare.
1011 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
1012 Jason Merrill <jason@redhat.com>
1014 * system.h: Include <cstdlib> as well as <stdlib.h>.
1016 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
1019 * config/i386/i386.c (construct_container): Report error if
1020 long double is used with disabled x87 float returns.
1022 2013-06-20 Jan Hubicka <jh@suse.cz>
1024 * lto-cgraph.c (input_symtab): Do not set cgraph state.
1026 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
1028 PR rtl-optimization/57425
1029 PR rtl-optimization/57569
1030 * alias.c (write_dependence_p): Remove parameters mem_mode and
1031 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
1032 Changed all callers.
1033 (canon_anti_dependence): Get comments and semantics in sync.
1034 Add parameter mem_canonicalized. Changed all callers.
1035 * rtl.h (canon_anti_dependence): Update prototype.
1037 2013-06-20 Richard Biener <rguenther@suse.de>
1039 * data-streamer-in.c (streamer_read_uhwi): Optimize single
1040 byte case, inline streamer_read_uchar and defer section
1043 2013-06-20 Richard Biener <rguenther@suse.de>
1045 PR tree-optimization/57584
1046 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1047 SSA names into the expanded expression that take part in
1048 abnormal coalescing.
1050 2013-06-19 <singhai@google.com>
1052 * gcov.c (print_usage): Handle new option.
1053 (process_args): Ditto.
1054 (get_gcov_intermediate_filename): New function.
1055 (output_intermediate_file): New function.
1056 (output_gcov_file): New function
1057 (generate_results): Handle new option.
1058 (release_function): Relase demangled name.
1059 (read_graph_file): Handle demangled name.
1060 (output_lines): Ditto.
1061 * doc/gcov.texi: Document gcov intermediate format.
1063 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
1066 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1067 (lra_emit_add): Use the functions. Add comment about Y as an
1070 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
1073 * collect2.c (collect_atexit): New.
1074 (collect_exit): Delete.
1075 (main): Register collect_atexit with atexit.
1076 (collect_wait): Change collect_exit to exit.
1078 * collect2.h (collect_exit): Delete.
1079 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1081 2013-06-19 Wei Mi <wmi@google.com>
1083 PR rtl-optimization/57518
1084 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1085 if regno is used in paradoxical subreg.
1086 (update_equiv_regs): Check pdx_subregs[regno] before
1087 set a reg to be equivalent with a mem.
1089 2013-06-19 Matthias Klose <doko@ubuntu.com>
1092 * file-find.h (find_a_file): Add a mode parameter.
1093 * file-find.c (find_a_file): Likewise.
1094 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1095 with X_OK for the executables.
1096 * collect2.c (main): Call find_a_file with X_OK.
1098 2013-06-19 Steve Ellcey <sellcey@mips.com>
1101 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1102 Use NEXT_INSN instead of next_real_insn.
1104 2013-06-19 Jan Hubicka <jh@suse.cz>
1106 * cgraph.h (const_value_known_p): Replace by ...
1107 (ctor_for_folding): .. this one.
1108 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1109 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1110 * expr.c (expand_expr_real_1): Likewise.
1111 (string_constant): Likewise.
1112 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1113 * ipa.c (process_references): Likewise.
1114 (symtab_remove_unreachable_nodes): Likewise.
1115 * ipa-inline-analysis.c (param_change_prob): Likewise.
1116 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1117 (get_base_constructor): Likwise.
1118 * varpool.c (varpool_remove_node): Likewise.
1119 (varpool_remove_initializer): LIkewise.
1120 (dump_varpool_node): LIkwise.
1121 (const_value_known_p): Rewrite to ...
1122 (ctor_for_folding): ... this one.
1124 2013-06-19 Jakub Jelinek <jakub@redhat.com>
1127 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1128 PERSONALITY in $PATH derived prefixes.
1130 2013-06-19 Jeff Law <law@redhat.com>
1132 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1135 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1136 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1139 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1141 * config/arm/vfp.md: Move VFP instruction classification documentation
1143 * config/arm/arm.md: ... here. Update instruction classification
1146 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
1148 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1149 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1150 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1152 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1155 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1156 with NEXT_INSN. Use tablejump_p to check for jump table data
1159 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1162 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1163 that now in C++ the value is correct per the C++ standards.
1165 2013-06-19 Richard Biener <rguenther@suse.de>
1167 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1170 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1173 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1176 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1177 with next_active_insn.
1179 2013-06-18 Sriraman Tallam <tmsriram@google.com>
1181 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1182 functions are inlined during failures to flag an error.
1183 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1184 in early inline pass.
1186 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1188 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1191 2013-06-18 Julian Brown <julian@codesourcery.com>
1193 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1194 Permit virtual register pre-reload if !strict.
1195 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1197 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1199 * config/arm/neon.md (movmisalign<mode>): Use
1200 neon_perm_struct_or_reg_operand instead of
1201 neon_struct_or_register_operand.
1202 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1203 neon_permissive_struct_operand instead of neon_struct_operand.
1204 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1205 neon_vector_mem_operand.
1206 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1207 neon_vector_mem_operand.
1208 (neon_permissive_struct_operand): New.
1209 (neon_struct_or_register_operand): Rename to...
1210 (neon_perm_struct_or_reg_operand): This. Adjust call to
1211 neon_vector_mem_operand.
1213 2013-06-18 Richard Biener <rguenther@suse.de>
1215 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1216 * lto-streamer.h: Include pointer-set.h.
1217 (struct lto_decl_slot): Remove.
1218 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1219 Remove next_index entry.
1220 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1221 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1222 (lto_init_tree_ref_encoder): Adjust.
1223 (lto_destroy_tree_ref_encoder): Likewise.
1224 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1225 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1226 (lto_output_decl_index): Adjust.
1227 (lto_new_out_decl_state): Likewise.
1228 (lto_record_function_out_decl_state): Likewise.
1229 * lto-streamer-out.c (copy_function): Likewise.
1231 2013-06-18 Richard Biener <rguenther@suse.de>
1233 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1234 * cgraphunit.c: Include cfgloop.h.
1235 (init_lowered_empty_function): Initialize the loop tree.
1236 (assemble_thunk): Insert new BBs into loops.
1238 2013-06-18 Richard Biener <rguenther@suse.de>
1240 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1241 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1242 the map from cache entry to cache index optional.
1243 (streamer_tree_cache_replace_tree): Adjust accordingly.
1244 (streamer_tree_cache_append): Likewise.
1245 (streamer_tree_cache_delete): Likewise.
1246 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1247 streamer cache map from cache entry to cache index.
1248 * lto-streamer-out.c (create_output_block): Adjust.
1250 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1252 * config/arm/arm.md (attribute "insn"): Move multiplication and
1253 division attributes to...
1254 (attribute "type"): ... here. Remove mult.
1255 (attribute "mul32"): New attribute.
1256 (attribute "mul64"): Add umaal.
1257 (*arm_mulsi3): Update attributes.
1258 (*arm_mulsi3_v6): Likewise.
1259 (*thumb_mulsi3): Likewise.
1260 (*thumb_mulsi3_v6): Likewise.
1261 (*mulsi3_compare0): Likewise.
1262 (*mulsi3_compare0_v6): Likewise.
1263 (*mulsi_compare0_scratch): Likewise.
1264 (*mulsi_compare0_scratch_v6): Likewise.
1265 (*mulsi3addsi): Likewise.
1266 (*mulsi3addsi_v6): Likewise.
1267 (*mulsi3addsi_compare0): Likewise.
1268 (*mulsi3addsi_compare0_v6): Likewise.
1269 (*mulsi3addsi_compare0_scratch): Likewise.
1270 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1271 (*mulsi3subsi): Likewise.
1272 (*mulsidi3adddi): Likewise.
1273 (*mulsi3addsi_v6): Likewise.
1274 (*mulsidi3adddi_v6): Likewise.
1275 (*mulsidi3_nov6): Likewise.
1276 (*mulsidi3_v6): Likewise.
1277 (*umulsidi3_nov6): Likewise.
1278 (*umulsidi3_v6): Likewise.
1279 (*umulsidi3adddi): Likewise.
1280 (*umulsidi3adddi_v6): Likewise.
1281 (*smulsi3_highpart_nov6): Likewise.
1282 (*smulsi3_highpart_v6): Likewise.
1283 (*umulsi3_highpart_nov6): Likewise.
1284 (*umulsi3_highpart_v6): Likewise.
1285 (mulhisi3): Likewise.
1286 (*mulhisi3tb): Likewise.
1287 (*mulhisi3bt): Likewise.
1288 (*mulhisi3tt): Likewise.
1289 (maddhisi4): Likewise.
1290 (*maddhisi4tb): Likewise.
1291 (*maddhisi4tt): Likewise.
1292 (maddhidi4): Likewise.
1293 (*maddhidi4tb): Likewise.
1294 (*maddhidi4tt): Likewise.
1296 (udivsi3): Likewise.
1297 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1298 (thumb2_mulsi_short_compare0): Likewise.
1299 (thumb2_mulsi_short_compare0_scratch): Likewise.
1300 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1301 (1020mult2): Likewise.
1302 (1020mult3): Likewise.
1303 (1020mult4): Likewise.
1304 (1020mult5): Likewise.
1305 (1020mult6): Likewise.
1306 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1308 (cortex_a15_mult64): Likewise.
1309 (cortex_a15_sdiv): Likewise.
1310 (cortex_a15_udiv): Likewise.
1311 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1317 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1318 (pj4_ir_div): Likewise.
1319 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1320 (11_mult2): Likewise.
1321 (11_mult3): Likewise.
1322 (11_mult4): Likewise.
1323 (11_mult5): Likewise.
1324 (11_mult6): Likewise.
1325 (11_mult7): Likewise.
1326 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1327 (cortex_a8_mla): Likewise.
1328 (cortex_a8_mull): Likewise.
1329 (cortex_a8_smulwy): Likewise.
1330 (cortex_a8_smlald): Likewise.
1331 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1332 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1333 (cortex_r4_mul_3): Likewise.
1334 (cortex_r4_mla_4): Likewise.
1335 (cortex_r4_mla_3): Likewise.
1336 (cortex_r4_smlald): Likewise.
1337 (cortex_r4_mull): Likewise.
1338 (cortex_r4_sdiv): Likewise.
1339 (cortex_r4_udiv): Likewise.
1340 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1341 (cortex_a7_idiv): Likewise.
1342 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1343 (9_mult2): Likewise.
1344 (9_mult3): Likewise.
1345 (9_mult4): Likewise.
1346 (9_mult5): Likewise.
1347 (9_mult6): Likewise.
1348 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1349 (cortex_a53_sdiv): Likewise.
1350 (cortex_a53_udiv): Likewise.
1351 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1352 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1353 (mp626_mult2): Likewise.
1354 (mp626_mult3): Likewise.
1355 (mp626_mult4): Likewise.
1356 * config/arm/fa526.md (526_mult1): Update attribute change.
1357 (526_mult2): Likewise.
1358 * config/arm/arm-generic.md (mult): Update attribute change.
1359 (mult_ldsched_strongarm): Likewise.
1360 (mult_ldsched): Likewise.
1361 (multi_cycle): Likewise.
1362 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1363 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1364 (606te_mult2): Likewise.
1365 (606te_mult3): Likewise.
1366 (606te_mult4): Likewise.
1367 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1368 (cortex_a9_mac16): Likewise.
1369 (cortex_a9_multiply): Likewise.
1370 (cortex_a9_mac): Likewise.
1371 (cortex_a9_multiply_long): Likewise.
1372 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1373 (626te_mult2): Likewise.
1374 (626te_mult3): Likewise.
1375 (626te_mult4): Likewise.
1377 2013-06-18 Richard Biener <rguenther@suse.de>
1380 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1382 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1385 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1386 with next_active_insn.
1388 2013-06-18 Alan Modra <amodra@gmail.com>
1390 * config/rs6000/rs6000.h (enum data_align): New.
1391 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1392 (DATA_ABI_ALIGNMENT): Define.
1393 (CONSTANT_ALIGNMENT): Correct comment.
1394 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1395 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1397 2013-06-17 David Malcolm <dmalcolm@redhat.com>
1399 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1400 ATTRIBUTE_UNUSED marking.
1402 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1404 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1405 alternative and update.
1406 (aarch64_dup_lanedi): Delete.
1407 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1408 * config/aarch64/aarch64-simd-builtins.def: Update.
1410 2013-06-17 Richard Biener <rguenther@suse.de>
1412 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1413 (lto_input_scc): Declare.
1414 (lto_input_tree_1): Likewise.
1415 (struct lto_stats_d): Add num_tree_bodies_output and
1416 num_pickle_refs_output.
1417 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1418 (lto_read_tree_1): Split out from ...
1419 (lto_read_tree): ... this.
1420 (lto_input_scc): New function.
1421 (lto_input_tree_1): Split out from ...
1422 (lto_input_tree): ... this. Handle LTO_tree_scc.
1423 (lto_data_in_create): Create the streamer cache without hashes.
1424 * lto-streamer-out.c (create_output_block): Create the streamer
1425 cache with hashes when not doing WPA.
1426 (lto_write_tree_1): Split out from ...
1427 (lto_write_tree): ... this.
1428 (get_symbol_initial_value): New function.
1429 (lto_output_tree_1): Split out from ...
1430 (lto_output_tree): ... this. Write trees as series of SCCs
1431 using a DFS walk via DFS_write_tree.
1432 (struct sccs, struct scc_entry): New types.
1433 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1434 (DFS_write_tree_body): New function.
1435 (DFS_write_tree): Likewise.
1436 (hash_tree): Likewise.
1437 (scc_entry_compare): Likewise.
1438 (hash_scc): Likewise.
1439 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1440 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1441 TREE_CHAIN as regular reference.
1442 (streamer_read_integer_cst): Remove.
1443 (streamer_get_pickled_tree): Adjust.
1444 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1445 of DECL_EXTERNALs in BLOCK_VARS for now.
1446 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1448 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1449 Add hash value argument and record that if hashes are recorded
1451 (streamer_tree_cache_insert_1): Adjust.
1452 (streamer_tree_cache_insert): Likewise.
1453 (streamer_tree_cache_insert_at): Rename to ...
1454 (streamer_tree_cache_replace_tree): ... this and adjust.
1455 (streamer_tree_cache_append): Adjust.
1456 (record_common_node): Likewise.
1457 (streamer_tree_cache_create): Add argument whether to
1458 record hash values together with trees.
1459 (streamer_tree_cache_delete): Adjust.
1460 * tree-streamer.h (struct streamer_tree_cache_d): Add
1462 (streamer_read_integer_cst): Remove.
1463 (streamer_tree_cache_insert): Adjust.
1464 (streamer_tree_cache_append): Likewise.
1465 (streamer_tree_cache_insert_at): Rename to ...
1466 (streamer_tree_cache_replace_tree): ... this and adjust.
1467 (streamer_tree_cache_create): Add argument whether to record hashes.
1468 (streamer_tree_cache_get): Rename to ...
1469 (streamer_tree_cache_get_tree): ... this.
1470 (streamer_tree_cache_get_hash): New function.
1471 * tree.c (cache_integer_cst): New function.
1472 * tree.h (cache_integer_cst): Declare.
1473 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1474 * lto-symtab.c (lto_varpool_replace_node): Only release
1475 DECL_INITIAL of non-prevailing decls.
1476 * varpool.c (varpool_remove_initializer): Do not release
1477 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1479 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1481 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1482 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1483 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1484 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1485 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1486 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1487 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1488 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1489 instead of TARGET_64BIT.
1490 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1491 Require ISA_HAS_<D>DIV.
1493 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1495 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1496 (mips*-*-linux*): Move default with_llsc setting to where other
1498 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1500 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1501 Likewise. Remove default with_tune setting. Move default float
1502 setting to its own block. Handle with_llsc in the same block as above.
1504 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1506 PR rtl-optimization/57425
1507 PR rtl-optimization/57569
1508 * alias.c (write_dependence_p): Add new parameters mem_mode,
1509 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1510 Changed all callers.
1511 (canon_anti_dependence): New function.
1512 * cse.c (check_dependence): Use canon_anti_dependence.
1513 * cselib.c (cselib_invalidate_mem): Likewise.
1514 * rtl.h (canon_anti_dependence): Declare.
1516 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1518 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1519 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1520 ".set mips3" for 64-bit targets.
1522 2013-06-15 Dehao Chen <dehao@google.com>
1524 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1525 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1526 (gimple_check_call_args): Likewise.
1527 * value-prof.c (check_ic_target): Likewise.
1528 * ipa-inline.c (early_inliner): Likewise.
1529 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1530 * cgraph.c (cgraph_create_edge_1): Likewise.
1531 (cgraph_make_edge_direct): Likewise.
1533 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1536 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1537 rs6000_output_move_128bit to handle emitting quad memory
1538 operations. Set attribute length to 8 bytes.
1540 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1542 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1544 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1545 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1546 (aarch64_<su>mlsl<mode>): Likewise.
1548 2013-06-14 Mike Stump <mikestump@comcast.net>
1550 * Makefile.in (TARGET_H): Add insn-codes.h.
1552 2013-06-14 Alan Modra <amodra@gmail.com>
1556 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1557 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1558 bitfield expansion when EXPAND_MEMORY.
1559 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1561 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1563 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1564 test for clearing quad memory on 32-bit later.
1566 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1568 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1569 (fold_negate_expr): Likewise.
1570 (fold_real_zero_addition_p): Handle vectors.
1571 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1573 2013-06-14 Alan Modra <amodra@gmail.com>
1575 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1577 2013-06-13 Jan Hubicka <jh@suse.cz>
1579 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1580 Local comdats are not externally visible.
1581 * symtab.c (dump_symtab_base): Dump externally visible.
1582 (verify_symtab_base): Verify back links in the symtab hash.
1584 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1586 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1587 CONVERT_EXPR as equal nodes.
1589 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1591 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1593 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1595 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1596 Generalize to complex and vector.
1597 * tree.c (build_all_ones_cst): New function.
1598 * tree.h (build_all_ones_cst): Declare it.
1600 2013-06-13 Alan Modra <amodra@gmail.com>
1602 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1603 * config/rs6000/rs6000.md (signbittf2): New insn.
1604 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1605 (abstf2_internal, cmptf_internal2): Likewise.
1606 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1608 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1609 Pat Haugen <pthaugen@us.ibm.com>
1610 Peter Bergner <bergner@vnet.ibm.com>
1612 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1613 power8 byte, half-word, and quad-word atomic instructions.
1614 (emit_store_conditional): Likewise.
1615 (rs6000_expand_atomic_compare_and_swap): Likewise.
1616 (rs6000_expand_atomic_op): Likewise.
1618 * config/rs6000/sync.md (larx): Add new modes for power8.
1620 (AINT): New mode iterator to include TImode as well as normal
1621 integer modes on power8.
1622 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1623 that VSX registers are not considered. Use AINT mode iterator
1624 instead of INT1 to allow inclusion of quad word atomic operations
1626 (load_locked<mode>): Likewise.
1627 (store_conditional<mode>): Likewise.
1628 (atomic_compare_and_swap<mode>): Likewise.
1629 (atomic_exchange<mode>): Likewise.
1630 (atomic_nand<mode>): Likewise.
1631 (atomic_fetch_<fetchop_name><mode>): Likewise.
1632 (atomic_nand_fetch<mode>): Likewise.
1633 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1635 (ATOMIC): On power8, add QImode, HImode modes.
1636 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1637 modes that promote to SImode.
1638 (load_lockedti): Convert TImode arguments to PTImode, so that we
1639 get a guaranteed even/odd register pair.
1640 (load_lockedpti): Likewise.
1641 (store_conditionalti): Likewise.
1642 (store_conditionalpti): Likewise.
1644 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1645 atomic load/store instructions.
1648 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1650 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1652 (insn_count): New attribute, with most cases extracted from...
1653 (length): ...here. Redefine most cases in terms of insn_count.
1654 (single_insn): Delete.
1655 (can_delay): Use insn_count to check for single instructions.
1656 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1657 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1658 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1659 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1660 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1661 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1662 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1663 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1664 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1665 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1666 rather than "length".
1667 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1668 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1669 Use "insn_count" rather than "length".
1670 * config/mips/mips-dsp.md
1671 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1672 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1675 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
1677 PR tree-optimization/57361
1678 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1680 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1682 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1684 (aarch64_simd_combine<mode>): New instruction expansion.
1685 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1687 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1688 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1690 2013-06-12 Jan Hubicka <jh@suse.cz>
1692 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1693 decl has when in streaming stage.
1694 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1695 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1697 2013-06-12 Roland Stigge <stigge@antcom.de>
1700 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1702 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1704 PR tree-optimization/57537
1705 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1706 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1708 2013-06-12 Richard Biener <rguenther@suse.de>
1710 * data-streamer.h (streamer_write_char_stream): CSE
1711 obs->current_pointer.
1712 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1713 streamer_write_char_stream manually and optimize the resulting loop.
1714 (streamer_write_hwi_stream): Likewise.
1716 2013-06-12 Jan Hubicka <jh@suse.cz>
1718 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1719 * cgraph.h (varpool_create_empty_node): Declare.
1720 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1722 * symtab.c (symtab_unregister_node): Be lax about missin entries
1724 (symtab_get_node): Update comment.
1725 * varpool.c (varpool_create_empty_node): Break out from ...
1726 (varpool_node_for_decl): ... here.
1727 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1729 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1731 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1732 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1733 part. Use straight-line flow at the end.
1734 <COMPONENT_REF>: Remove superfluous else.
1735 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1737 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1740 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1741 target hook even for !TREE_PUBLIC decls. If no resolution info
1742 is available, return false for common and external decls.
1744 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1746 * config/rl78/constraints.md (U): New constraint.
1747 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1750 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1753 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1754 to allow returning address to AT_PLATFORM name.
1756 2013-06-11 Jan Hubicka <jh@suse.cz>
1758 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1759 * cgraph.h (symtab_node_base): Add weakref flag.
1760 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1761 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1762 (output_weakrefs): Use weakref flag.
1763 * fold-const.c (simple_operand_p): Handle WEAK.
1764 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1765 * ipa.c (varpool_externally_visible_p): Drop weakref.
1766 (function_and_variable_visibility): Update comment; fix weakref
1767 sanity checks; do not clear DECL_WEAK on them.
1768 * lto-cgraph.c (lto_output_node): update.
1769 (lto_output_varpool_node): Update.
1770 (input_overwrite_node): Update.
1771 (input_node): Update.
1772 (input_varpool_node): Update.
1773 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1774 (lto_symtab_merge_symbols): Add sanity check.
1775 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1776 * passes.c (rest_of_decl_compilation): Set static flag, too.
1777 * symtab.c (dump_symtab_base): Dump weakref.
1778 (verify_symtab_base): Sanity check weakrefs.
1779 (symtab_make_decl_local): Remove duplicated code.
1780 (symtab_alias_ultimate_target): Simplify.
1781 * varpool.c (varpool_create_variable_alias): Set weakref flag.
1783 2013-06-11 DJ Delorie <dj@redhat.com>
1785 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1786 (rl78_unwind_word_mode): New.
1788 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1790 * final.c (debug_prefix_maps): Make static.
1792 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1794 * function.c (initial_trampoline): Remove stray copy.
1796 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1798 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1800 2013-06-11 Martin Jambor <mjambor@suse.cz>
1802 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1803 within bounds at the beginning of the function.
1805 2013-06-11 Alan Modra <amodra@gmail.com>
1807 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1809 (get_named_section): Don't NULL !DECL_P decl.
1811 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1813 * doc/invoke.texi (core-avx2): Document.
1815 (atom): Updated with MOVBE.
1817 2013-06-11 Richard Biener <rguenther@suse.de>
1819 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1821 2013-06-11 Anton Blanchard <anton@samba.org>
1823 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1824 correct shift value in little-endian mode.
1826 2013-06-11 Jakub Jelinek <jakub@redhat.com>
1829 * varasm.c (get_variable_align): Move #endif to the right place.
1831 2013-06-10 Cary Coutant <ccoutant@google.com>
1833 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1834 for hash so that hash table traversal order is deterministic.
1836 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1837 Pat Haugen <pthaugen@us.ibm.com>
1838 Peter Bergner <bergner@vnet.ibm.com>
1840 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1841 of vectors in GPRS if they are direct moves or quad word load or
1844 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1846 (direct_move_p): Likewise.
1847 (quad_load_store_p): Likewise.
1849 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1850 classes into bins based on the physical register type.
1851 (reg_class_to_reg_type): Likewise.
1852 (IS_STD_REG_TYPE): Likewise.
1853 (IS_FP_VECT_REG_TYPE): Likewise.
1854 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1855 use direct move instructions.
1856 (reload_gpr_vsx): Likewise.
1857 (reload_vsx_gpr): Likewise.
1858 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1859 information that is a simplification of register classes. Also
1860 precalculate direct move reload helpers.
1861 (direct_move_p): New function to return true if the operation can
1862 be done as a direct move instruciton.
1863 (quad_load_store_p): New function to return true if the operation
1864 is a quad memory operation.
1865 (rs6000_legitimize_address): If quad memory, only allow register
1866 indirect for TImode addresses.
1867 (rs6000_legitimate_address_p): Likewise.
1868 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1869 (rs6000_reload_register_type): Likewise.
1870 (register_to_reg_type): Return register type.
1871 (rs6000_secondary_reload_simple_move): New helper function for
1872 secondary reload and secondary memory needed to identify anything
1873 that is a simple move, and does not need reloading.
1874 (rs6000_secondary_reload_direct_move): New helper function for
1875 secondary reload to identify cases that can be done with several
1876 instructions via the direct move instructions.
1877 (rs6000_secondary_reload_move): New helper function for secondary
1878 reload to identify moves between register types that can be done.
1879 (rs6000_secondary_reload): Add support for quad memory operations
1880 and for direct move.
1881 (rs6000_secondary_memory_needed): Likewise.
1882 (rs6000_debug_secondary_memory_needed): Change argument names.
1883 (rs6000_output_move_128bit): New function to return the move to
1884 use for 128-bit moves, including knowing about the various
1885 limitations of quad memory operations.
1887 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1888 memory operations. call rs6000_output_move_128bit for the actual
1889 instruciton(s) to generate.
1890 (vsx_movti_64bit): Likewise.
1892 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1893 (UNSPEC_P8V_MTVSRWZ): Likewise.
1894 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1895 (UNSPEC_P8V_MTVSRD): Likewise.
1896 (UNSPEC_P8V_XXPERMDI): Likewise.
1897 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1898 (UNSPEC_FUSION_GPR): Likewise.
1899 (FMOVE128_GPR): New iterator for direct move.
1900 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1903 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1904 loads and direct move instructions.
1905 (zero_extendsidi2_lfiwzx): Likewise.
1906 (extendsidi2_lfiwax): Likewise.
1907 (extendsidi2_nocell): Likewise.
1908 (floatsi<mode>2_lfiwax): Likewise.
1910 (floatunssi<mode>2_lfiwzx): Likewise.
1912 (fix_trunc<mode>_stfiwx): Likewise.
1913 (fixuns_trunc<mode>_stfiwx): Likewise.
1914 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1915 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1916 (parity<mode>2_cmpb): Set length/type attr.
1917 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1918 for 'mr.' to fast_compare.
1919 (bpermd_<mode>): Change type attr to popcnt.
1920 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1921 (p8_mtvsrwz_1): Likewise.
1922 (p8_mtvsrwz_2): Likewise.
1923 (reload_fpr_from_gpr<mode>): Likewise.
1924 (p8_mtvsrd_1): Likewise.
1925 (p8_mtvsrd_2): Likewise.
1926 (p8_xxpermdi_<mode>): Likewise.
1927 (reload_vsx_from_gpr<mode>): Likewise.
1928 (reload_vsx_from_gprsf): Likewise.
1929 (p8_mfvsrd_3_<mode>): LIkewise.
1930 (reload_gpr_from_vsx<mode>): Likewise.
1931 (reload_gpr_from_vsxsf): Likewise.
1932 (p8_mfvsrd_4_disf): Likewise.
1933 (multi-word GPR splits): Do not split direct moves or quad memory
1936 2013-06-10 David Malcolm <dmalcolm@redhat.com>
1938 * tree-into-ssa.c (interesting_blocks): Make static.
1940 2013-06-10 Jakub Jelinek <jakub@redhat.com>
1943 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1944 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1945 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1946 (get_variable_align): New function.
1947 (get_variable_section, emit_bss, emit_common,
1948 assemble_variable_contents, place_block_symbol): Use
1949 get_variable_align instead of DECL_ALIGN.
1950 (assemble_noswitch_variable): Add align argument, use it
1951 instead of DECL_ALIGN.
1952 (assemble_variable): Adjust caller. Use get_variable_align
1953 instead of DECL_ALIGN.
1954 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1956 (DATA_ABI_ALIGNMENT): Define.
1957 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1958 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1959 opt is false, only return the psABI mandated alignment increase.
1960 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1961 (DATA_ABI_ALIGNMENT): ... this.
1962 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1963 (DATA_ABI_ALIGNMENT): ... this.
1964 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1965 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1966 (DATA_ABI_ALIGNMENT): ... this.
1967 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1968 * doc/tm.texi: Regenerated.
1970 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1972 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1973 cmp_code to construct REG_EQUAL note.
1975 2013-06-09 Jakub Jelinek <jakub@redhat.com>
1978 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1979 that operands[2] doesn't overlap with operands[0].
1981 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
1982 Jan Hubicka <jh@suse.cz>
1984 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1985 hack to mark symbols as used.
1987 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1989 PR rtl-optimization/57559
1990 * lra-constraints.c (process_alt_operands): Don't discourage
1991 memory with known offset for offsetable memory constraint.
1992 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1994 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1996 * varasm.c (struct oc_local_state): Reorder fields.
1997 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1998 and adjust accordingly.
1999 (output_constructor): Reorder initialization code and adjust call to
2000 output_constructor_bitfield.
2002 2013-06-07 Jan Hubicka <jh@suse.cz>
2004 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
2006 2013-06-07 David Malcolm <dmalcolm@redhat.com>
2008 * tree-object-size.c (unknown): Make const.
2010 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2012 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
2013 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
2014 for last alternative in the cpu_facility attribute.
2016 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2019 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
2020 (xordi3): Change operand 2 constraint to arm_xordi_operand.
2021 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
2022 * config/arm/constraints.md (Dg): New constraint.
2023 * config/arm/neon.md (xordi3_neon): Remove.
2024 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2025 * config/arm/predicates.md (arm_xordi_operand): New predicate.
2027 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2029 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2030 Clean up alternatives.
2032 2013-06-07 Alan Modra <amodra@gmail.com>
2034 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2037 2013-06-07 Alan Modra <amodra@gmail.com>
2039 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2041 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2043 * config/arm/constraints.md (Df): New constraint.
2044 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2045 Correct length attribute for last two alternatives.
2047 2013-06-07 Alan Modra <amodra@gmail.com>
2049 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2050 override user -mfp-in-toc.
2051 (offsettable_ok_by_alignment): Consider just the current access
2052 rather than the whole object, unless BLKmode. Handle
2053 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2054 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2055 for -mcmodel=medium.
2056 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2057 override user -mfp-in-toc or -msum-in-toc. Default to
2058 -mno-fp-in-toc for -mcmodel=medium.
2060 2013-06-06 DJ Delorie <dj@redhat.com>
2062 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2063 TARGET_VALID_POINTER_MODE.
2065 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2066 Pat Haugen <pthaugen@us.ibm.com>
2067 Peter Bergner <bergner@vnet.ibm.com>
2069 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2070 Document new power8 builtins.
2072 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2073 condition code register, to allow 128-bit logical operations to be
2074 done in the VSX or GPR registers.
2075 (nor<mode>3): Use the canonical form for nor.
2076 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2077 vclz*, and vpopcnt* vector instructions.
2078 (nand<mode>3): Likewise.
2079 (orc<mode>3): Likewise.
2080 (clz<mode>2): LIkewise.
2081 (popcount<mode>2): Likewise.
2083 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2084 that only the GPRs are recognized.
2086 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2087 support for new power8 builtins.
2089 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2091 (xscvdpspn): Likewise.
2097 (vpopcnt): Likewise.
2098 (vpopcntb): Likewise.
2099 (vpopcnth): Likewise.
2100 (vpopcntw): Likewise.
2101 (vpopcntd): Likewise.
2106 (eqv_v16qi3): Likewise.
2107 (eqv_v8hi3): Likewise.
2108 (eqv_v4si3): Likewise.
2109 (eqv_v2di3): Likewise.
2110 (eqv_v4sf3): Likewise.
2111 (eqv_v2df3): Likewise.
2113 (nand_v16qi3): Likewise.
2114 (nand_v8hi3): Likewise.
2115 (nand_v4si3): Likewise.
2116 (nand_v2di3): Likewise.
2117 (nand_v4sf3): Likewise.
2118 (nand_v2df3): Likewise.
2120 (orc_v16qi3): Likewise.
2121 (orc_v8hi3): Likewise.
2122 (orc_v4si3): Likewise.
2123 (orc_v2di3): Likewise.
2124 (orc_v4sf3): Likewise.
2125 (orc_v2df3): Likewise.
2127 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2128 allow power8 quad mode in 64-bit.
2129 (rs6000_builtin_vectorized_function): Add support to vectorize
2130 ISA 2.07 count leading zeros, population count builtins.
2131 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2132 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2133 (builtin_function_type): Add vgbbd builtin function which takes an
2135 (altivec_expand_vec_perm_const): Add support for new power8 merge
2138 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2139 that does not include TImdoe for use with 32-bit.
2140 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2142 (UNSPEC_VSX_CVDPSPN): Likewise.
2143 (vsx_xscvdpspn): Likewise.
2144 (vsx_xscvspdpn): Likewise.
2145 (vsx_xscvdpspn_scalar): Likewise.
2146 (vsx_xscvspdpn_directmove): Likewise.
2147 (vsx_and<mode>3): Split logical operations into 32-bit and
2148 64-bit. Add support to do logical operations on TImode as well as
2149 VSX vector types. Allow logical operations to be done in either
2150 VSX registers or in general purpose registers in 64-bit mode. Add
2151 splitters if GPRs were used. For AND, add clobber of CCmode to
2152 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2154 (vsx_and<mode>3_32bit): Likewise.
2155 (vsx_and<mode>3_64bit): Likewise.
2156 (vsx_ior<mode>3): Likewise.
2157 (vsx_ior<mode>3_32bit): Likewise.
2158 (vsx_ior<mode>3_64bit): Likewise.
2159 (vsx_xor<mode>3): Likewise.
2160 (vsx_xor<mode>3_32bit): Likewise.
2161 (vsx_xor<mode>3_64bit): Likewise.
2162 (vsx_one_cmpl<mode>2): Likewise.
2163 (vsx_one_cmpl<mode>2_32bit): Likewise.
2164 (vsx_one_cmpl<mode>2_64bit): Likewise.
2165 (vsx_nor<mode>3): Likewise.
2166 (vsx_nor<mode>3_32bit): Likewise.
2167 (vsx_nor<mode>3_64bit): Likewise.
2168 (vsx_andc<mode>3): Likewise.
2169 (vsx_andc<mode>3_32bit): Likewise.
2170 (vsx_andc<mode>3_64bit): Likewise.
2171 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2172 and xxlorc instructions.
2173 (vsx_eqv<mode>3_64bit): Likewise.
2174 (vsx_nand<mode>3_32bit): Likewise.
2175 (vsx_nand<mode>3_64bit): Likewise.
2176 (vsx_orc<mode>3_32bit): Likewise.
2177 (vsx_orc<mode>3_64bit): Likewise.
2179 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2181 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2183 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2184 (p8_vmrgow): Likewise.
2185 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2186 GPRs to be split under VSX.
2187 (p8v_clz<mode>2): Add power8 count leading zero support.
2188 (p8v_popcount<mode>2): Add power8 population count support.
2189 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2192 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2195 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2197 (vec_nand): Likewise.
2198 (vec_vclz): Likewise.
2199 (vec_vclzb): Likewise.
2200 (vec_vclzd): Likewise.
2201 (vec_vclzh): Likewise.
2202 (vec_vclzw): Likewise.
2203 (vec_vgbbd): Likewise.
2204 (vec_vmrgew): Likewise.
2205 (vec_vmrgow): Likewise.
2206 (vec_vpopcnt): Likewise.
2207 (vec_vpopcntb): Likewise.
2208 (vec_vpopcntd): Likewise.
2209 (vec_vpopcnth): Likewise.
2210 (vec_vpopcntw): Likewise.
2212 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2214 PR rtl-optimization/57468
2215 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2218 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2220 PR rtl-optimization/57459
2221 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2222 type when setting live regs.
2224 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2226 * config/s390/s390.opt (mlra): New option.
2227 * config/s390/s390.c (s390_decompose_address): Check displacement
2228 for all registers for LRA.
2229 (s390_secondary_reload): Don't used secondary reloads for LRA.
2230 (s390_lra_p): New function.
2231 (TARGET_LRA_P): Define.
2232 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2233 of attribute cpu_facility to zarch for the last alternative.
2234 (*cmpmem_short): Ditto.
2236 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2238 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2239 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2240 (arm_expand_prologue): Likewise.
2242 2013-06-06 Teresa Johnson <tejohnson@google.com>
2245 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2246 as this is now done by redirect_edge_and_branch_force.
2247 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2248 barriers, and fix interaction with splitting.
2249 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2250 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2251 reflect changes made in the routine.
2252 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2253 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2254 since this is called in cfglayout mode, and replace partition fixup
2255 with assert as that is now done by force_nonfallthru_and_redirect.
2256 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2257 already be marked with region crossing note.
2258 (insert_section_boundary_note): Make non-static, gate on flag
2259 has_bb_partition, rewrite to also check for multiple partitions.
2260 (rest_of_handle_reorder_blocks): Remove call to
2261 insert_section_boundary_note, now done later during free_cfg.
2262 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2263 * bb-reorder.h (insert_section_boundary_note): Declare.
2264 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2265 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2266 invoke insert_section_boundary_note.
2267 (try_redirect_by_replacing_jump): Remove unnecessary
2268 check for region crossing note.
2269 (fixup_partition_crossing): New function.
2270 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2271 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2272 in non-cfglayout mode.
2273 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2274 remove old code that tried to do this. Emit barrier correctly
2275 when we are in cfglayout mode.
2276 (last_bb_in_partition): New function.
2277 (rtl_split_edge): Correctly fixup partition boundaries.
2278 (commit_one_edge_insertion): Remove old code that tried to
2279 fixup region crossing edge since this is now handled in
2280 split_block, and set up insertion point correctly since
2281 block may now end in a jump.
2282 (verify_hot_cold_block_grouping): Guard against checking when not in
2283 linearized RTL mode.
2284 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2286 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2287 rtl_verify_flow_info, so not called in cfglayout mode.
2288 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2289 (fixup_reorder_chain): Remove old code that attempted to fixup region
2290 crossing note as this is now handled in force_nonfallthru_and_redirect.
2291 (duplicate_insn_chain): Don't duplicate switch section notes.
2292 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2294 * basic-block.h (emit_barrier_after_bb): Declare.
2296 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2298 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2299 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2300 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2302 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2304 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2306 * config/arm/ldmstm.md: Regenerate.
2308 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2310 * config/arm/sync.md (atomic_loaddi_1):
2311 Disable predication for arm_restrict_it.
2312 (arm_load_exclusive<mode>): Likewise.
2313 (arm_load_exclusivesi): Likewise.
2314 (arm_load_exclusivedi): Likewise.
2315 (arm_load_acquire_exclusive<mode>): Likewise.
2316 (arm_load_acquire_exclusivesi): Likewise.
2317 (arm_load_acquire_exclusivedi): Likewise.
2318 (arm_store_exclusive<mode>): Likewise.
2319 (arm_store_exclusive<mode>): Likewise.
2320 (arm_store_release_exclusivedi): Likewise.
2321 (arm_store_release_exclusive<mode>): Likewise.
2323 2013-06-06 Richard Biener <rguenther@suse.de>
2325 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2327 (lto_tag_is_tree_code_p): Adjust.
2328 (lto_tag_is_gimple_code_p): Likewise.
2329 (lto_gimple_code_to_tag): Likewise.
2330 (lto_tag_to_gimple_code): Likewise.
2331 (lto_tree_code_to_tag): Likewise.
2332 (lto_tag_to_tree_code): Likewise.
2333 * data-streamer.h (streamer_write_hwi_in_range): Use
2334 uhwi streaming to stream the normalized range.
2335 (streamer_read_hwi_in_range): Likewise.
2337 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2339 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2340 (predicable_short_it): Likewise.
2341 (predicated): Likewise.
2342 (enabled): Handle above.
2343 (define_cond_exec): Set predicated attribute to yes.
2345 2013-06-05 Mike Stump <mikestump@comcast.net>
2347 * gdbinit.in (__FUNCTION__): Add.
2349 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2351 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2352 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2354 2013-06-05 Jan Hubicka <jh@suse.cz>
2356 * varasm.c (mark_decl_referenced): Revert the removal until targets
2359 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
2361 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2362 instead of mark_decl_referenced.
2364 2013-06-05 Jan Hubicka <jh@suse.cz>
2366 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2367 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2368 and symtab_used_from_object_file_p.
2369 (cgraph_make_node_local_1): Clear forced_by_abi.
2370 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2371 * cgraph.h (symtab_node_base): Add forced_by_abi.
2372 (decide_is_variable_needed): Remove.
2373 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2374 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2375 (decide_is_symbol_needed): ... this one; handle symbols in general;
2376 always analyze virtuals; honnor forced_by_abi.
2377 (cgraph_finalize_function): Update.
2378 (varpool_finalize_decl): Update.
2379 (symbol_defined_and_needed): Remove.
2380 (analyze_functions): Update.
2381 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2382 output_refs, input_overwrite_node): Handle forced_by_abi.
2383 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2384 (address_taken_from_non_vtable_p): ... this one.
2385 (comdat_can_be_unshared_p_1): New function.
2386 (cgraph_comdat_can_be_unshared_p): Rename to ...
2387 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2388 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2389 (function_and_variable_visibility): Clear forced_by_abi as needed.
2390 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2391 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2392 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2393 * varpool.c (decide_is_variable_needed): Remove.
2395 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2397 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2398 (arm_option_override): Override arm_restrict_it where appropriate.
2399 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2400 * config/arm/arm.opt (mrestrict-it): New command-line option.
2401 * doc/invoke.texi: Document -mrestrict-it.
2403 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2405 * tsan.c (tsan_atomic_table): Make const.
2407 2013-06-05 Richard Biener <rguenther@suse.de>
2409 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2410 index associated with the tree we are supposed to replace.
2411 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2412 TREE_ASM_WRITTEN as zero for everything but SSA names.
2414 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2416 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2418 2013-06-04 Jan Hubicka <jh@suse.cz>
2420 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2421 (input_node, input_varpool_node): Handle correctly external same
2423 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2424 nodes at ltrans stage.
2426 2013-06-04 Jan Hubicka <jh@suse.cz>
2428 * ipa-inline.c (update_caller_keys): Fix availability test.
2429 (update_callee_keys): Likewise.
2430 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2431 to follow ELF standard.
2433 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2435 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2436 (mips64r5900el-*-elf*): New configurations.
2437 * config/mips/mips-cpus.def (r5900): New processor.
2438 * config/mips/mips-tables.opt: Regenerate.
2439 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2440 (mips_issue_rate): Handle PROCESSOR_R5900.
2441 (mips_reorg_process_insns): Force reorder mode for the R5900.
2442 * config/mips/mips.h (TARGET_MIPS5900): Define.
2443 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2445 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2447 * config/mips/mips.md (processor): Add r5900.
2448 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2450 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2452 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2453 into function to generate MOVI instruction.
2454 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2455 (aarch64_preferred_simd_mode): Turn into wrapper.
2456 (aarch64_output_scalar_simd_mov_immediate): New function.
2457 * config/aarch64/aarch64-protos.h: Add prototype for above.
2459 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2461 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2462 element_char member.
2463 (sizetochar): Return signed char.
2464 (aarch64_simd_valid_immediate): Remove elchar and other
2465 unnecessary variables.
2466 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2467 Calculate element_char as required.
2468 * config/aarch64/aarch64-protos.h: Update and move prototype
2469 for aarch64_output_simd_mov_immediate.
2470 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2473 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2475 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2476 information completed by aarch64_simd_valid_immediate.
2477 (aarch64_legitimate_constant_p): Update arguments.
2478 (aarch64_simd_valid_immediate): Work with struct rather than many
2480 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2481 (aarch64_simd_make_constant): Update arguments.
2482 (aarch64_output_simd_mov_immediate): Work with struct rather than
2483 many pointers. Output immediate directly rather than as operand.
2484 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2486 * config/aarch64/constraints.md (Dn): Update arguments.
2488 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2490 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2492 (aarch64_simd_immediate_valid_for_move): Remove.
2493 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2494 (aarch64_simd_make_constant): Update call.
2495 (aarch64_output_simd_mov_immediate): Update call.
2496 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2498 * config/aarch64/constraints.md (Dn): Update call.
2500 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2502 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2503 return type to bool for prototype.
2504 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2505 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2506 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2508 2013-06-04 Catherine Moore <clm@codesourcery.com>
2510 * config/mips/mips.opt (meva): New.
2511 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2512 (ASM_SPEC): Handle -meva.
2513 * doc/invoke.texi (meva): Document.
2515 2013-06-04 Alan Modra <amodra@gmail.com>
2517 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2520 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2522 * rtl.def: Add extra fourth optional field to define_cond_exec.
2523 * gensupport.c (process_one_cond_exec): Process attributes from
2525 * doc/md.texi: Document fourth field in define_cond_exec.
2527 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2529 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2530 out the processing order as in store_bit_field_1.
2532 2013-06-04 Jan Hubicka <jh@suse.cz>
2535 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2536 non-VAR_DECL node if it does not exist yet.
2538 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2540 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2541 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2542 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2543 target_cpu_default setting.
2545 2013-06-03 Teresa Johnson <tejohnson@google.com>
2547 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2548 default to -fopt-info=optimized instead of all.
2549 * doc/invoke.texi: Ditto.
2550 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2551 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2552 (execute_vect_slp): Emit BB vectorization success under
2553 MSG_OPTIMIZED_LOCATIONS.
2554 * tree-vect-slp.c (vect_slp_transform_bb): Change
2555 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2556 * tree-vect-loop.c (vect_transform_loop): Ditto.
2558 2013-06-03 Jason Merrill <jason@redhat.com>
2561 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2562 Use TARGET_EXPR for C++.
2564 2013-06-03 Jakub Jelinek <jakub@redhat.com>
2566 PR rtl-optimization/57268
2567 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2568 if DEBUG_INSN_P (insn).
2571 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2573 PR rtl-optimization/57268
2574 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2575 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2577 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2579 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2580 (ix86_avoid_lea_for_addr): Likewise.
2581 (exact_dependency_1): Likewise.
2582 (ix86_adjust_cost): Likewise.
2583 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2585 (do_reorder_for_imul): Fix typo, formatting and
2586 !reload_completed check removed.
2587 (ix86_sched_reorder): Fix typo and formatting.
2588 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2591 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2593 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2595 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2597 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2598 <STRING_CST>: Likewise.
2599 <VECTOR_CST>: Likewise.
2601 2013-06-01 Janus Weil <janus@gcc.gnu.org>
2602 Mikael Morin <mikael@gcc.gnu.org>
2604 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2605 * config.in: Regenerated.
2606 * configure: Regenerated.
2608 2013-06-01 Jan Hubicka <jh@suse.cz>
2611 * cgraphunit.c (compile): When weakref is not supported,
2612 set up transparent aliases before final output pass.
2613 * varasm.c (assemble_alias): Do not try to do it here.
2615 2013-06-01 Jan Hubicka <jh@suse.cz>
2618 * passes.c (for_per_function): Skip unanalyzed functions.
2620 2013-06-01 Jan Hubicka <jh@suse.cz>
2622 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2623 (lto_symtab_merge_symbols_1): ... this one.
2624 (lto_symtab_merge_cgraph_nodes): Rename to ...
2625 (lto_symtab_merge_symbols): ... this one; simplify.
2626 * cgraph.c (same_body_aliases_done): Rename to ...
2627 (cpp_implicit_aliases_done): ... this one.
2628 (cgraph_create_function_alias): Update.
2629 (cgraph_same_body_alias): Update.
2630 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2631 (verify_edge_corresponds_to_fndecl): Simplify.
2632 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2633 (cgraph_node): Remove same_body_alias.
2634 (varpool_node): Remove alias_of and extra_name_alias.
2635 (same_body_aliases_done): Rename to ..
2636 (cpp_implicit_aliases_done): ... this one.
2637 (symtab_alias_ultimate_target): Add default parameter.
2638 (symtab_resolve_alias): New function.
2639 (fixup_same_cpp_alias_visibility): Declare.
2640 (cgraph_function_node): Add default parameter.
2641 (cgraph_node_asm_name): Likewise.
2642 (cgraph_function_or_thunk_node): Add default parameter; do
2643 not ICE when it is NULL.
2644 (varpool_variable_node): Likewise.
2645 * tree-emutls.c (create_emultls_var): Update.
2646 (ipa_lower_emutls): Update.
2647 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2648 (cgraph_reset_node): Reset alias info.
2649 (cgraph_finalize_function): Update.
2650 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2651 (analyze_function): Simplify.
2652 (cgraph_process_same_body_aliases): Simplify.
2653 (analyze_functions): Fixup same body aliases.
2654 (handle_alias_pairs): Simplify.
2655 (assemble_thunk): Update.
2656 (assemble_thunks_and_aliases): Update.
2657 (output_weakrefs): Rewrite.
2658 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2659 (lto_output_varpool_node): Likewise.
2660 (compute_ltrans_boundary): Remve assert.
2661 (get_alias_symbol): New functoin.
2662 (input_node): Rewrite alias handling.
2663 (input_varpool_node): Likewise.
2664 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2665 * ipa.c (process_references): Handle weakrefs correctly.
2666 (symtab_remove_unreachable_nodes): Likewise.
2667 * trans-mem.c (get_cg_data): Update.
2668 (ipa_tm_create_version_alias): Update.
2669 (ipa_tm_execute): Update.
2670 * symtab.c (dump_symtab_base): Dump aliases.
2671 (verify_symtab_base): Verify aliases.
2672 (symtab_node_availability): New function.
2673 (symtab_alias_ultimate_target): Simplify.
2674 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2675 handle all the fixup cases.
2676 (symtab_resolve_alias): New function.
2677 * passes.c (ipa_write_summaries): Handle weakrefs.
2678 * varpool.c (varpool_analyze_node): Simplify.
2679 (assemble_aliases): Update.
2680 (varpool_create_variable_alias): Simplify.
2681 (varpool_extra_name_alias): Simplify.
2682 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2683 (lto_symtab_merge_symbols): ... this one.
2685 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2688 PR rtl-optimization/57268
2689 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2690 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2692 2013-06-01 Tobias Burnus <burnus@net-b.de>
2695 2013-05-31 Tobias Burnus <burnus@net-b.de>
2698 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2701 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2703 PR rtl-optimization/57268
2704 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2705 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2707 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2709 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2710 unordered comparison operators when -fno-trapping-math is in effect
2712 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2713 and implement unordered comparison operators properly on the e500.
2715 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2717 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2718 for constant scalar integers.
2719 (simplify_relational_operation_1): Likewise.
2721 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2723 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2724 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2727 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2728 Igor Zamyatin <igor.zamyatin@intel.com>
2730 Silvermont (SLM) architecture performance tuning.
2731 * config/i386/i386.h (enum ix86_tune_indices): Add
2732 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2733 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2735 * config/i386/i386.c (initial_ix86_tune_features)
2736 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2737 (ix86_lea_outperforms): Handle Silvermont tuning.
2738 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2740 (ix86_use_lea_for_mov): Likewise.
2741 (ix86_avoid_lea_for_addr): Likewise.
2742 (ix86_lea_for_add_ok): Likewise.
2743 (exact_dependency_1): New function.
2744 (exact_store_load_dependency): Likewise.
2745 (ix86_adjust_cost): Handle Silvermont tuning.
2746 (do_reoder_for_imul): Likewise.
2747 (swap_top_of_ready_list): New function.
2748 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2750 * config/i386/i386.md (peepholes that split memory operand in fp
2753 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2755 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2756 Remove un-necessary braces.
2758 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2760 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2761 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2763 2013-05-31 Tobias Burnus <burnus@net-b.de>
2766 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2768 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2771 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2772 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2773 * config/arm/neon.md (iordi3_neon): Remove.
2774 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2775 * config/arm/predicates.md (imm_for_neon_logic_operand):
2776 Move to earlier in the file.
2777 (neon_logic_op2): Likewise.
2778 (arm_iordi_operand_neon): New predicate.
2780 2013-05-31 Richard Biener <rguenther@suse.de>
2782 PR tree-optimization/57478
2783 PR tree-optimization/57453
2784 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2787 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2789 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2790 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2792 2013-05-30 Tobias Burnus <burnus@net-b.de>
2793 Thomas Koenig <tkoenig@gcc.gnu.org>
2796 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2797 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2799 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2801 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2803 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2805 * target.def (register_usage_leveling_p): New hook.
2806 * targhooks.c (default_register_usage_leveling_p): New.
2807 * targhooks.h (default_register_usage_leveling_p): New prototype.
2808 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2809 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2810 * doc/tm.texi: Update.
2811 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2813 2013-05-30 Ian Bolton <ian.bolton@arm.com>
2815 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2816 (*insv_reg<mode>): New define_insn.
2818 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2820 PR rtl-optimization/57439
2821 * postreload.c (move2add_valid_value_p): Check that we have
2822 a zero subreg_regno_offset when accessing the register in
2825 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2826 Igor Zamyatin <igor.zamyatin@intel.com>
2828 Silvermont (SLM) architecture pipeline model, tuning and
2830 * config.gcc: Add slm config options and target.
2832 * config/i386/slm.md: New.
2834 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2836 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2838 (ix86_target_macros_internal): Likewise.
2840 * gcc/config/i386/i386.c (slm_cost): New cost.
2841 (m_SLM): New macro flag.
2842 (initial_ix86_tune_features): Set m_SLM.
2843 (x86_accumulate_outgoing_args): Likewise.
2844 (x86_arch_always_fancy_math_387): Likewise.
2845 (processor_target_table): Add slm cost.
2846 (cpu_names): Add slm cpu name.
2847 (x86_option_override_internal): Set SLM ISA.
2848 (ix86_issue_rate): New case PROCESSOR_SLM.
2849 (ia32_multipass_dfa_lookahead): Likewise.
2850 (fold_builtin_cpu): Add slm.
2852 * config/i386/i386.h (TARGET_SLM): New target macro.
2853 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2854 (processor_type): Add PROCESSOR_SLM.
2856 * config/i386/i386.md (cpu): Add new value "slm".
2857 (slm.md): Include slm.md.
2859 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2860 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2862 * config/arm/arm-protos.h: Add and update function protos.
2863 * config/arm/arm.c (use_simple_return_p): New added.
2864 (thumb2_expand_return): Check simple_return flag.
2865 * config/arm/arm.md: Add simple_return and conditional simple_return.
2866 * config/arm/iterators.md: Add iterator for return and simple_return.
2868 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2870 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2871 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2872 (arm_emit_vfp_multi_reg_pop): Likewise.
2873 (thumb2_emit_ldrd_pop): Likewise.
2874 (arm_expand_epilogue): Add misc REG_CFA notes.
2875 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2877 2013-05-29 Lawrence Crowl <crowl@google.com>
2879 * config/arm/t-arm: Update for below.
2881 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2882 Change type to hash_table. Update dependent calls and types.
2884 * config/i386/t-cygming: Update for below.
2886 * config/i386/t-interix: Update for below.
2888 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2889 Change type to hash_table. Update dependent calls and types.
2890 (i386_find_on_wrapper_list::wrappers): Likewise.
2892 * config/ia64/t-ia64: Update for below.
2894 * config/ia64/ia64.c (bundle_state_table):
2895 Change type to hash_table. Update dependent calls and types.
2897 * config/mips/mips.c (mips_reorg_process_insns::htab):
2898 Change type to hash_table. Update dependent calls and types.
2900 * config/sol2.c (solaris_comdat_htab):
2901 Change type to hash_table. Update dependent calls and types.
2903 * config/t-sol2: Update for above.
2905 2013-05-29 Teresa Johnson <tejohnson@google.com>
2907 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2908 functions are not yet marked as defined.
2910 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2911 Pat Haugen <pthaugen@us.ibm.com>
2912 Peter Bergner <bergner@vnet.ibm.com>
2914 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2918 (vrotl<mode>3): Likewise.
2919 (vashl<mode>3): Likewise.
2920 (vlshr<mode>3): Likewise.
2921 (vashr<mode>3): Likewise.
2923 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2924 support for power8 V2DI builtins.
2926 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2927 power8 V2DI builtins.
2928 (vupkhsw): Likewise.
2929 (vupklsw): Likewise.
2930 (vaddudm): Likewise.
2935 (vpkudum): Likewise.
2936 (vpksdss): Likewise.
2937 (vpkudus): Likewise.
2938 (vpksdus): Likewise.
2943 (vsubudm): Likewise.
2944 (vcmpequd): Likewise.
2945 (vcmpgtsd): Likewise.
2946 (vcmpgtud): Likewise.
2947 (vcmpequd_p): Likewise.
2948 (vcmpgtsd_p): Likewise.
2949 (vcmpgtud_p): Likewise.
2950 (vupkhsw): Likewise.
2951 (vupklsw): Likewise.
2952 (vaddudm): Likewise.
2957 (vpksdss): Likewise.
2958 (vpksdus): Likewise.
2959 (vpkudum): Likewise.
2960 (vpkudus): Likewise.
2965 (vsubudm): Likewise.
2967 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2968 support for power8 V2DI instructions.
2970 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2971 power8 V2DI instructions. Combine pack and unpack insns to use an
2972 iterator for each mode. Check whether a particular mode supports
2973 Altivec instructions instead of just checking TARGET_ALTIVEC.
2974 (UNSPEC_VPKUWUM): Likewise.
2975 (UNSPEC_VPKSHSS): Likewise.
2976 (UNSPEC_VPKSWSS): Likewise.
2977 (UNSPEC_VPKUHUS): Likewise.
2978 (UNSPEC_VPKSHUS): Likewise.
2979 (UNSPEC_VPKUWUS): Likewise.
2980 (UNSPEC_VPKSWUS): Likewise.
2981 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2982 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2983 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2984 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2985 (UNSPEC_VUPKHSB): Likewise.
2986 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2987 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2988 (UNSPEC_VUPKHSH): Likewise.
2989 (UNSPEC_VUPKLSB): Likewise.
2990 (UNSPEC_VUPKLSH): Likewise.
2992 (VI_char): Likewise.
2993 (VI_scalar): Likewise.
2994 (VI_unit): Likewise.
2996 (VP_small): Likewise.
2997 (VP_small_lc): Likewise.
2998 (VU_char): Likewise.
2999 (add<mode>3): Likewise.
3000 (altivec_vaddcuw): Likewise.
3001 (altivec_vaddu<VI_char>s): Likewise.
3002 (altivec_vadds<VI_char>s): Likewise.
3003 (sub<mode>3): Likewise.
3004 (altivec_vsubcuw): Likewise.
3005 (altivec_vsubu<VI_char>s): Likewise.
3006 (altivec_vsubs<VI_char>s): Likewise.
3007 (altivec_vavgs<VI_char>): Likewise.
3008 (altivec_vcmpbfp): Likewise.
3009 (altivec_eq<mode>): Likewise.
3010 (altivec_gt<mode>): Likewise.
3011 (altivec_gtu<mode>): Likewise.
3012 (umax<mode>3): Likewise.
3013 (smax<mode>3): Likewise.
3014 (umin<mode>3): Likewise.
3015 (smin<mode>3): Likewise.
3016 (altivec_vpkuhum): Likewise.
3017 (altivec_vpkuwum): Likewise.
3018 (altivec_vpkshss): Likewise.
3019 (altivec_vpkswss): Likewise.
3020 (altivec_vpkuhus): Likewise.
3021 (altivec_vpkshus): Likewise.
3022 (altivec_vpkuwus): Likewise.
3023 (altivec_vpkswus): Likewise.
3024 (altivec_vpks<VI_char>ss): Likewise.
3025 (altivec_vpks<VI_char>us): Likewise.
3026 (altivec_vpku<VI_char>us): Likewise.
3027 (altivec_vpku<VI_char>um): Likewise.
3028 (altivec_vrl<VI_char>): Likewise.
3029 (altivec_vsl<VI_char>): Likewise.
3030 (altivec_vsr<VI_char>): Likewise.
3031 (altivec_vsra<VI_char>): Likewise.
3032 (altivec_vsldoi_<mode>): Likewise.
3033 (altivec_vupkhsb): Likewise.
3034 (altivec_vupkhs<VU_char>): Likewise.
3035 (altivec_vupkls<VU_char>): Likewise.
3036 (altivec_vupkhsh): Likewise.
3037 (altivec_vupklsb): Likewise.
3038 (altivec_vupklsh): Likewise.
3039 (altivec_vcmpequ<VI_char>_p): Likewise.
3040 (altivec_vcmpgts<VI_char>_p): Likewise.
3041 (altivec_vcmpgtu<VI_char>_p): Likewise.
3042 (abs<mode>2): Likewise.
3043 (vec_unpacks_hi_v16qi): Likewise.
3044 (vec_unpacks_hi_v8hi): Likewise.
3045 (vec_unpacks_lo_v16qi): Likewise.
3046 (vec_unpacks_hi_<VP_small_lc>): Likewise.
3047 (vec_unpacks_lo_v8hi): Likewise.
3048 (vec_unpacks_lo_<VP_small_lc>): Likewise.
3049 (vec_pack_trunc_v8h): Likewise.
3050 (vec_pack_trunc_v4si): Likewise.
3051 (vec_pack_trunc_<mode>): Likewise.
3053 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3055 (vec_vmaxsd): Likewise.
3056 (vec_vmaxud): Likewise.
3057 (vec_vminsd): Likewise.
3058 (vec_vminud): Likewise.
3059 (vec_vpksdss): Likewise.
3060 (vec_vpksdus): Likewise.
3061 (vec_vpkudum): Likewise.
3062 (vec_vpkudus): Likewise.
3063 (vec_vrld): Likewise.
3064 (vec_vsld): Likewise.
3065 (vec_vsrad): Likewise.
3066 (vec_vsrd): Likewise.
3067 (vec_vsubudm): Likewise.
3068 (vec_vupkhsw): Likewise.
3069 (vec_vupklsw): Likewise.
3071 2013-05-29 Jan Hubicka <jh@suse.cz>
3073 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3074 flags; reorder rest of fields in more consistent way.
3075 (varpool_node): Remove analyzed, finalized and alias.
3076 (cgraph_ndoe): Likewise.
3077 (symtab_alias_ultimate_target): New function.
3078 (cgraph_function_node): Move offline.
3079 (cgraph_reset_node): Declare.
3080 (cgraph_comdat_can_be_unshared_p): Remove.
3081 (varpool_remove_initializer): Declare.
3082 (varpool_first_defined_variable, varpool_next_defined_variable
3083 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3084 (cgraph_function_with_gimple_body_p): Update.
3085 (varpool_all_refs_explicit_p): Update.
3086 (symtab_alias_target): New function.
3087 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3088 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3089 (cgraph_function_or_thunk_node): Simplify using
3090 symtab_alias_ultimate_target.
3091 (varpool_variable_node): Likewise.
3092 * cgraph.c (cgraph_create_function_alias): Update.
3093 (cgraph_add_thunk): Update.
3094 (cgraph_remove_node): Update.
3095 (dump_cgraph_node): Do not dump removed flags.
3096 (cgraph_function_body_availability): Update.
3097 (cgraph_propagate_frequency): Update.
3098 (verify_cgraph_node): Check sanity of local flag.
3099 (cgraph_function_node): Move here from cgraph.h; revamp for
3100 cgraph_function_or_thunk_node.
3101 * lto-symtab.c (lto_varpool_replace_node): Update.
3102 (lto_symtab_resolve_can_prevail_p): Update.
3103 (lto_symtab_merge_cgraph_nodes): Update.
3104 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3105 propagate_constants_accross_call, devirtualization_time_bonus,
3106 ipcp_propagate_stage): Update.
3107 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3108 * ipa-inline-transform.c (clone_inlined_nodes,
3109 preserve_function_body_p): Update.
3110 * ipa-reference.c (propagate): Update.
3111 (write_node_summary_p): Update.
3112 * toplev.c (wrapup_global_declaration_2): Update.
3113 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3114 (analyze_function) ... this one.
3115 (cgraph_process_new_functions): Update.
3116 (cgraph_reset_node): Export.
3117 (cgraph_finalize_function): Update.
3118 (cgraph_add_new_function): Update.
3119 (process_function_and_variable_attributes): Update.
3120 (varpool_finalize_decl): Update.
3121 (symbol_finalized): Remove.
3122 (symbol_finalized_and_needed): Rename to ...
3123 (symbol_defined_and_needed): ... update.
3124 (cgraph_analyze_functions): Update.
3125 (handle_alias_pairs): Update.
3126 (mark_functions_to_output): Update.
3127 (assemble_thunk): Update.
3128 (output_in_order): Update.
3129 (output_weakrefs): Update.
3130 (finalize_compilation_unit): Update.
3131 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3132 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3133 input_node, input_varpool_node): Update.
3134 * dbxout.c (dbxout_expand_expr): Update.
3135 * cgraphclones.c (cgraph_clone_node): Update.
3136 (cgraph_copy_node_for_versioning): Update.
3137 (cgraph_materialize_clone): Update.
3138 (cgraph_materialize_all_clones): Update.
3139 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3140 propagate_pure_const, propagate_nothrow): Update.
3141 * lto-streamer-out.c (lto_output, write_symbol): Update.
3142 * ipa-utils.c (ipa_reverse_postorder): Update.
3143 * ipa-inline.c (can_inline_edge_p): Update.
3144 (update_caller_keys, ipa_inline): Update.
3145 * dwarf2out.c (reference_to_unused,
3146 premark_types_used_by_global_vars_helper): Update.
3147 * tree-eh.c (tree_could_trap_p): Update.
3148 * ipa-split.c (consider_split, execute_split_functions): Update.
3149 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3150 has_addr_references_p): Update; move ahead in file for better
3152 (process_references): Simplify.
3153 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3155 (cgraph_comdat_can_be_unshared_p): Make static.
3156 (cgraph_externally_visible_p): Update.
3157 (varpool_externally_visible_p): Update.
3158 (function_and_variable_visibility): Update.
3159 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3160 ipa_tm_mark_force_output_node): Update.
3161 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3162 estimate_edge_devirt_benefit, inline_generate_summary,
3163 inline_write_summary): Update.
3164 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3165 * ipa-prop.c (ipa_compute_jump_functions): Update.
3166 (ipa_print_node_params, ipa_prop_read_section,
3167 ipa_update_after_lto_read, read_replacements_section): Update.
3168 * varasm.c (mark_decl_referenced): Update.
3169 (assemble_alias, dump_tm_clone_pairs): Update.
3170 * tree-inline.c (copy_bb): Update.
3171 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3173 * symtab.c (dump_symtab_base): Print new flags.
3174 (verify_symtab_base): Verify new flags.
3175 (symtab_alias_ultimate_target): New function.
3176 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3177 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3179 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3181 * i386.c (ix86_get_function_versions_dispatcher,
3182 ix86_generate_version_dispatcher_body): Update.
3183 (fold_builtin_cpu): Use varpool_add_new_variable.
3184 * varpool.c (varpool_remove_initializer): Break out from ...
3185 (varpool_remove_node): ... this one.
3186 (dump_varpool_node, varpool_node_for_asm,
3187 cgraph_variable_initializer_availability, varpool_analyze_node,
3188 varpool_assemble_decl, varpool_remove_unreferenced_decls,
3189 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3192 2013-05-29 Jan Hubicka <jh@suse.cz>
3194 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3196 2013-05-29 Easwaran Raman <eraman@google.com>
3198 PR tree-optimization/57442
3199 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3200 when control exits the main loop.
3202 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3204 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3206 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3207 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3208 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3211 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3213 PR tree-optimization/57441
3214 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3215 Don't limit size of incr_vec to number of candidates.
3217 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
3219 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3220 and mips16 directories.
3221 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3222 (MULTILIB_DIRNAMES): Ditto.
3223 (MULTILIB_EXCEPTIONS): Add new exceptions.
3224 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3225 (MULTILIB_DIRNAMES): Ditto.
3226 (MULTILIB_EXCEPTIONS): Add new exceptions.
3228 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3229 Marcus Shawcroft <marcus.shawcroft@arm.com>
3231 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3232 SYMBOL_TINY_ABSOLUTE.
3233 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3234 SYMBOL_TINY_ABSOLUTE.
3235 (aarch64_expand_mov_immediate): Likewise.
3236 (aarch64_classify_symbol): Likewise.
3237 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3238 Permit SYMBOL_TINY_ABSOLUTE.
3239 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3241 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3242 Marcus Shawcroft <marcus.shawcroft@arm.com>
3244 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3245 Refactor if/switch. Replace gcc_assert with if.
3247 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3249 * config/i386/i386.c (initial_ix86_tune_features): Enable
3250 FP Reassociation for AMD bdver1 and bdver2.
3252 2013-05-29 Martin Jambor <mjambor@suse.cz>
3254 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3255 and IMAGPART_EXPR do not occur within other handled_components.
3257 2013-05-29 Richard Biener <rguenther@suse.de>
3259 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3260 access on whether the use is in the BB we currently try to
3262 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3263 vectorize to vect_bb_slp_scalar_cost.
3265 2013-05-29 Richard Biener <rguenther@suse.de>
3267 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3268 computing scalar cost offsetted by stmts that are kept live
3270 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3271 for computation of scalar cost.
3273 2013-05-28 Steve Ellcey <sellcey@mips.com>
3275 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3277 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3279 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3280 array notation built-in reduction functions.
3281 * doc/passes.texi (Passes): Added documentation about changes done
3283 * doc/invoke.texi (C Dialect Options): Added documentation about
3284 the -fcilkplus flag.
3285 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3286 (BUILTINS_DEF): Depend on cilkplus.def.
3287 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3288 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3289 * cilkplus.def: New file.
3291 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3293 PR rtl-optimization/57439
3294 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3296 2013-05-28 Easwaran Raman <eraman@google.com>
3298 PR tree-optimization/57337
3299 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3300 (find_insert_point): Correctly identify the insertion point
3301 when two statements with the same UID is compared.
3303 2013-05-28 Richard Biener <rguenther@suse.de>
3305 PR tree-optimization/56787
3306 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3307 from the list of data references.
3308 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3310 (vect_analyze_loop_operations): Likewise.
3311 (vect_transform_loop): Remove clobbers.
3313 2013-05-28 Martin Jambor <mjambor@suse.cz>
3315 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3316 and REALPART_EXPRs have scalar type.
3318 2013-05-28 Richard Biener <rguenther@suse.de>
3320 PR tree-optimization/57411
3321 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3323 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3324 virtual operand propagation.
3326 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3328 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3329 destination register for bmasksi_vis.
3330 (vector_init_bshuffle): Likewise.
3331 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3333 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3335 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3336 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3337 mode if the instruction isn't available in the original mode.
3338 * config/sparc/sparc.opt (mfix-ut699): New option.
3339 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3340 (divdf3): Turn into expander.
3341 (divdf3_nofix): New insn.
3342 (divdf3_fix): Likewise.
3343 (divsf3): Disable if -mfix-ut699.
3344 (sqrtdf2): Turn into expander.
3345 (sqrtdf2_nofix): New insn.
3346 (sqrtdf2_fix): Likewise.
3347 (sqrtsf2): Disable if -mfix-ut699.
3349 2013-05-27 Richard Biener <rguenther@suse.de>
3352 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3353 block for the new loop.
3355 2013-05-27 Richard Biener <rguenther@suse.de>
3357 PR tree-optimization/57343
3358 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3359 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3360 (number_of_iterations_cond): Do not build the folded tree.
3362 2013-05-27 Richard Biener <rguenther@suse.de>
3366 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3367 OEP_CONSTANT_ADDRESS_OF retained.
3369 PR tree-optimization/57417
3370 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3372 (set_ssa_val_to): Compare addresses using
3373 get_addr_base_and_unit_offset.
3375 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3377 PR rtl-optimization/56833
3378 * postreload.c (move2add_record_mode): New function.
3379 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3380 (move2add_use_add2_insn): Use move2add_record_sym_value.
3381 (move2add_use_add3_insn): Likewise.
3382 (reload_cse_move2add): Use move2add_valid_value_p and
3383 move2add_record_mode. Invalidate call-clobbered and REG_INC
3384 affected regs by setting reg_mode to VOIDmode.
3385 (move2add_note_store): Don't pretend the inside of a SUBREG is
3386 the actual destination. Invalidate single/leading registers by
3387 setting reg_mode to VOIDmode.
3388 Use move2add_record_sym_value, move2add_valid_value_p and
3389 move2add_record_mode.
3391 2013-05-27 Richard Biener <rguenther@suse.de>
3393 PR tree-optimization/57396
3394 * tree-affine.c (double_int_constant_multiple_p): Properly
3395 return false for val == 0 and div != 0.
3397 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3399 * config/mips/mips.h: Use #elif in preprocessor conditions.
3401 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3404 * config/mips/constraints.md (kl): New constraint.
3405 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3406 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3407 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3409 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3411 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3414 * config/mips/mips.c (mips_can_inline_p): New function.
3415 (TARGET_CAN_INLINE_P): Define.
3417 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3419 * sched-int.h (ds_t, dw_t): Make unsigned int.
3420 Fix documentation that describes how all the ds_t bits are used.
3421 Reserve the last bit for delayed-branch scheduling.
3422 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3423 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3424 (gen_dep_weak_1): Remove prototype.
3425 * sched-deps.c (get_dep_weak_1): Make static.
3426 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3427 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3428 * doc/tm.texi: Regenerate.
3429 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3431 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3434 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3436 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3437 Sandra Loosemore <sandra@codesourcery.com>
3439 * config.gcc (powerpc-*): Allow native for with-cpu.
3441 2013-05-24 Jeff Law <law@redhat.com>
3443 PR tree-optimization/57124
3444 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3445 conversion feeding a condition if the range has an overflow
3446 if -fstrict-overflow. Add warnings for when we do make the
3449 2013-05-24 Dehao Chen <dehao@google.com>
3451 * tree-cfg.c (locus_discrim_map): Fix the typo.
3452 (locus_discrim_hasher): Likewise.
3453 (locus_discrim_hasher::hash): Likewise.
3454 (locus_discrim_hasher::equal): Likewise.
3456 2013-05-24 Martin Jambor <mjambor@suse.cz>
3458 PR tree-optimization/57294
3459 * cgraph.h (ipa_record_stmt_references): Declare.
3460 * cgraphbuild.c (ipa_record_stmt_references): New function.
3461 (build_cgraph_edges): Use ipa_record_stmt_references.
3462 (rebuild_cgraph_edges): Likewise.
3463 (cgraph_rebuild_references): Likewise.
3464 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3465 associated with the old statement and build references from the
3466 newly built statements.
3467 * ipa-ref.c (ipa_remove_stmt_references): New function.
3468 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3470 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3472 * lra-constraints.c (emit_spill_move): Use smaller mode for
3474 (check_and_process_move): Consider mem-reg moves for secondary
3476 (curr_insn_transform): Don't lose insns emitted before for
3477 secondary memory moves.
3478 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3479 reg set up in the current insn.
3481 2013-05-24 Dehao Chen <dehao@google.com>
3483 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3485 (locus_descrim_hasher::equal): Likewise.
3486 (build_gimple_cfg): New discriminator assignment algorithm.
3487 (make_edges): Likewise.
3488 (next_discriminator_for_locus): Likewise.
3489 (same_line_p): Likewise.
3490 (assign_discriminators): Likewise.
3491 (make_cond_expr_edges): Likewise.
3492 (make_gimple_switch_edges): Likewise.
3493 (make_goto_expr_edges): Likewise.
3494 (make_gimple_asm_edges): Likewise.
3496 2013-05-24 Ian Bolton <ian.bolton@arm.com>
3498 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3499 X format specifier to only display bottom 16 bits.
3500 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3501 immediate to match for operand 2, since it will be masked.
3503 2013-05-24 Richard Biener <rguenther@suse.de>
3505 PR tree-optimization/57287
3506 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3507 all SSA names that occur in abnormal PHIs.
3509 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3512 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3513 that index is not negative.
3515 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3517 PR rtl-optimization/55177
3518 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3519 (simplify_byte_swapping_operation): New.
3520 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3521 (simplify_relational_operation_1): Deal with BSWAP.
3523 2013-05-23 Richard Henderson <rth@redhat.com>
3526 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3527 (ix86_reorg): Call it.
3529 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
3532 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3533 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3534 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3536 2013-05-23 Christian Bruel <christian.bruel@st.com>
3539 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3541 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3542 Marcus Shawcroft <marcus.shawcroft@arm.com>
3544 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3545 * config/aarch64/constraints.md (Usa): Remove.
3546 * doc/md.texi (AArch64 Usa): Remove.
3548 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3549 Marcus Shawcroft <marcus.shawcroft@arm.com>
3551 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3552 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3553 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3554 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3556 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3558 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3559 instruction (AdvSIMD).
3560 * config/aarch64/aarch64-builtins.c
3561 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3562 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3564 2013-05-23 Martin Jambor <mjambor@suse.cz>
3567 * tree.h (contains_bitfld_component_ref_p): Declare.
3568 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3569 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3571 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3572 not access a bit-field. Assert all final offsets are byte-aligned.
3574 2013-05-23 Richard Biener <rguenther@suse.de>
3576 PR tree-optimization/57380
3577 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3578 least one invariant or re-used load.
3579 * passes.c (init_optimization_passes): Move pass_phiprop before
3582 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3584 * config/aarch64/aarch64-simd.md
3585 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3587 2013-05-23 Richard Biener <rguenther@suse.de>
3590 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3591 OEP_CONSTANT_ADDRESS_OF retained.
3593 2013-05-23 Jakub Jelinek <jakub@redhat.com>
3596 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3597 don't lower unit. Handle unit not being always BITS_PER_WORD.
3599 2013-05-23 Richard Biener <rguenther@suse.de>
3601 PR rtl-optimization/57341
3602 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3603 instead of true_dependence.
3605 2013-05-22 David Malcolm <dmalcolm@redhat.com>
3607 * bb-reorder.c (branch_threshold): Make const.
3608 (exec_threshold): Ditto.
3610 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3611 Pat Haugen <pthaugen@us.ibm.com>
3612 Peter Bergner <bergner@vnet.ibm.com>
3614 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3615 documentation for the power8 crypto builtins.
3617 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3619 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3620 macros for defining power8 builtin functions.
3621 (BU_P8V_AV_2): Likewise.
3622 (BU_P8V_AV_P): Likewise.
3623 (BU_P8V_VSX_1): Likewise.
3624 (BU_P8V_OVERLOAD_1): Likewise.
3625 (BU_P8V_OVERLOAD_2): Likewise.
3626 (BU_CRYPTO_1): Likewise.
3627 (BU_CRYPTO_2): Likewise.
3628 (BU_CRYPTO_3): Likewise.
3629 (BU_CRYPTO_OVERLOAD_1): Likewise.
3630 (BU_CRYPTO_OVERLOAD_2): Likewise.
3631 (XSCVSPDP): Fix typo, point to the correct instruction.
3632 (VCIPHER): Add power8 crypto builtins.
3633 (VCIPHERLAST): Likewise.
3634 (VNCIPHER): Likewise.
3635 (VNCIPHERLAST): Likewise.
3636 (VPMSUMB): Likewise.
3637 (VPMSUMH): Likewise.
3638 (VPMSUMW): Likewise.
3639 (VPERMXOR_V2DI): Likewise.
3640 (VPERMXOR_V4SI: Likewise.
3641 (VPERMXOR_V8HI: Likewise.
3642 (VPERMXOR_V16QI: Likewise.
3643 (VSHASIGMAW): Likewise.
3644 (VSHASIGMAD): Likewise.
3646 (VPERMXOR): Likewise.
3647 (VSHASIGMA): Likewise.
3649 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3650 __CRYPTO__ if the crypto instructions are available.
3651 (altivec_overloaded_builtins): Add support for overloaded power8
3654 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3655 support for power8 crypto builtins.
3656 (builtin_function_type): Likewise.
3657 (altivec_init_builtins): Add support for builtins that take vector
3658 long long (V2DI) arguments.
3660 * config/rs6000/crypto.md: New file, define power8 crypto
3663 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3664 Pat Haugen <pthaugen@us.ibm.com>
3665 Peter Bergner <bergner@vnet.ibm.com>
3667 * doc/invoke.texi (Option Summary): Add power8 options.
3668 (RS/6000 and PowerPC Options): Likewise.
3670 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3671 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3672 wm, wn, wr documentation.
3674 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3675 registers if direct move instructions are enabled.
3676 (wn): New constraint for no registers.
3677 (wq): New constraint for quad word even GPR registers.
3678 (wr): New constraint if 64-bit instructions are enabled.
3679 (wv): New constraint if power8 vector instructions are enabled.
3680 (wQ): New constraint for quad word memory locations.
3682 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3683 constraint for 0..15 for crypto instructions.
3684 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3685 as GPR and floating point registers.
3686 (int_reg_operand): New predicate to match only GPR registers.
3687 (base_reg_operand): New predicate to match base registers.
3688 (quad_int_reg_operand): New predicate to match even GPR registers
3689 for quad memory operations.
3690 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3691 operations in both GPR and VSX registers.
3692 (quad_memory_operand): New predicate for quad memory operations.
3693 (reg_or_indexed_operand): New predicate for direct move support.
3695 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3696 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3697 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3698 (POWERPC_MASKS): Add power8 options.
3699 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3702 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3703 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3705 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3706 (-mpower8-fusion): New power8 options.
3707 (-mpower8-fusion-sign): Likewise.
3708 (-mpower8-vector): Likewise.
3709 (-mcrypto): Likewise.
3710 (-mdirect-move): Likewise.
3711 (-mquad-memory): Likewise.
3713 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3715 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3717 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3718 (rs6000_debug_vector_unit): Add p8_vector.
3719 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3720 definitions. Also print fusion state.
3721 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3722 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3723 (rs6000_option_override_internal): Add support for power8.
3724 (rs6000_common_init_builtins): Add debugging for skipped builtins
3726 (rs6000_adjust_cost): Add power8 support.
3727 (rs6000_issue_rate): Likewise.
3728 (insn_must_be_first_in_group): Likewise.
3729 (insn_must_be_last_in_group): Likewise.
3730 (force_new_group): Likewise.
3731 (rs6000_register_move_cost): Likewise.
3732 (rs6000_opt_masks): Likewise.
3734 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3735 power8 capable assembler, default to power7 options.
3736 (TARGET_DIRECT_MOVE): Likewise.
3737 (TARGET_CRYPTO): Likewise.
3738 (TARGET_P8_VECTOR): Likewise.
3739 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3740 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3741 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3742 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3743 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3744 (TARGET_XSCVDPSPN): Likewise.
3745 (TARGET_XSCVSPDPN): Likewsie.
3746 (TARGET_SYNC_HI_QI): Likewise.
3747 (TARGET_SYNC_TI): Likewise.
3748 (MASK_CRYPTO): Likewise.
3749 (MASK_DIRECT_MOVE): Likewise.
3750 (MASK_P8_FUSION): Likewise.
3751 (MASK_P8_VECTOR): Likewise.
3752 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3753 temporary used by some of the direct move instructions to get two FP
3754 temporary registers does not force creation of a stack frame.
3755 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3756 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3757 that any VSX registers are tieable, even if they are also an
3758 Altivec vector mode.
3759 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3760 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3761 (RS6000_BTM_CRYPTO): Likewise.
3762 (RS6000_BTM_COMMON): Likewise.
3764 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3765 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3766 (enum rs6000_vector): Add power8 vector support.
3768 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3772 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3773 (any_sibcall_could_use_r3): this and handle indirect calls.
3774 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3776 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3778 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3780 2013-05-22 Richard Biener <rguenther@suse.de>
3783 * profile.c (branch_prob): Do not split blocks that are
3784 abnormally receiving from ECF_RETURNS_TWICE functions.
3786 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3788 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3789 address mode. Move pointer mode initialization to the same place.
3791 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3793 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3794 while it has any effect.
3796 2013-05-21 Easwaran Raman <eraman@google.com>
3798 PR tree-optimization/57322
3799 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3800 UID of the statement added to the BB to be 1.
3802 2013-05-21 Jakub Jelinek <jakub@redhat.com>
3804 PR tree-optimization/57331
3805 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3806 of conversion from pointer type to integral type with integer.
3808 2013-05-21 Martin Jambor <mjambor@suse.cz>
3811 * ipa-prop.c (ipa_read_node_info): Process param_used and
3812 controlled_uses in the same order as when writing.
3814 2013-05-21 Magnus Granberg <baldrick@free.fr>
3817 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3819 2013-05-21 Richard Biener <rguenther@suse.de>
3821 PR tree-optimization/57318
3822 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3823 estimate stmts with side-effects as likely eliminated.
3825 2013-05-21 Richard Biener <rguenther@suse.de>
3827 PR tree-optimization/57330
3828 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3829 preserve the call stmts fntype.
3831 2013-05-21 Richard Biener <rguenther@suse.de>
3833 PR tree-optimization/57303
3834 * tree-ssa-sink.c (statement_sink_location): Improve killing
3835 stmt detection and properly handle self-assignments.
3837 2013-05-21 Christian Bruel <christian.bruel@st.com>
3839 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3840 spanning registers. LEAF_REG_REMAP is supported only for contiguous
3841 registers. Set register size out of the PARALLEL loop.
3843 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3846 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3847 (*fmasf4, *fmasf4_media): New insns.
3849 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3851 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3852 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3853 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3854 (mips_idiv_insns): Update the comments to say that the returned
3855 instruction counts are in units of BASE_INSN_LENGTH.
3856 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3857 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3858 using 2 rather than 4 as the length of indirect MIPS16 and
3859 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3860 length of a NOP. Don't divide MIPS16 lengths by 2.
3861 (mips16_split_long_branches): Assume a branch is long if the
3862 length is greater than 4 rather than 8.
3863 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3864 rather than multiplying them by 2. Multiply instruction counts
3865 by BASE_INSN_LENGTH rather than 4.
3866 (*jump_mips16, tls_get_tp_mips16_<mode>)
3867 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3869 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3871 * config/mips/mips.md (extended_mips16): Remove branch case.
3872 (length): Remove duplicated extended_mips16 test.
3874 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3876 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3878 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3880 * recog.h (Recog_data): Rename to...
3881 (recog_data_d): ...this.
3882 (recog_data): Update accordingly.
3883 * recog.c (recog_data): Likewise.
3884 * reload.c (save_recog_data): Likewise.
3885 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3886 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3888 2013-05-17 Julian Brown <julian@codesourcery.com>
3890 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3891 found in a REG_EQUAL note, invalidate it.
3893 2013-05-17 Easwaran Raman <eraman@google.com>
3895 * tree-ssa-reassoc.c (find_insert_point): New function.
3896 (insert_stmt_after): Likewise.
3897 (get_def_stmt): Likewise.
3898 (ensure_ops_are_available): Likewise.
3899 (not_dominated_by): Likewise.
3900 (rewrite_expr_tree): Do not move statements beyond what is
3901 necessary. Remove call to swap_ops_for_binary_stmt...
3902 (reassociate_bb): ... and move it here.
3903 (build_and_add_sum): Assign UIDs for new statements.
3904 (linearize_expr): Likewise.
3905 (do_reassoc): Renumber gimple statement UIDs.
3907 2013-05-17 Jan Hubicka <jh@suse.cz>
3909 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3911 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3912 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3914 (output_weakrefs): Update.
3916 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3917 Martin Jambor <mjambor@suse.cz>
3920 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3921 value that corresponds to the given aggval is found in values vector.
3923 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
3925 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3926 sse, sse2, sse3, ssse3 and sse4a flags to options.
3928 2013-05-17 David Malcolm <dmalcolm@redhat.com>
3930 * gengtype-state.c: (s_expr_writer): New class, to handle
3931 prettifying of output layout of s-expressions.
3932 (state_writer): New class, to write out gtype.state.
3933 (state_written_type_count): Move this variable into member data of
3935 (s_expr_writer::s_expr_writer): New code: constructor for new class
3936 (state_writer::state_writer(): ditto
3937 (s_expr_writer::write_new_line): New function
3938 (s_expr_writer::write_any_indent): ditto
3939 (s_expr_writer::begin_s_expr): ditto
3940 (s_expr_writer::end_s_expr): ditto
3941 (write_state_fileloc): convert to method of state_writer...
3942 (state_writer:: write_state_fileloc): ...and use methods of
3943 s_expr_writer to write indentation into the gtype.state output file
3944 to visually represent the hierarchical structure of the list
3946 (write_state_fields): ditto, renaming to...
3947 (state_writer::write_state_fields)
3948 (write_state_a_string): ditto, renaming to...
3949 (state_writer::write_state_a_string)
3950 (write_state_string_option): ditto, renaming to...
3951 (state_writer::write_state_string_option)
3952 (write_state_type_option): ditto, renaming to...
3953 (state_writer::write_state_type_option)
3954 (write_state_nested_option): ditto, renaming to...
3955 (state_writer::write_state_nested_option)
3956 (write_state_option): ditto, renaming to...
3957 (state_writer::write_state_option)
3958 (write_state_options): ditto, renaming to...
3959 (state_writer::write_state_options)
3960 (write_state_lang_bitmap): ditto, renaming to...
3961 (state_writer::write_state_lang_bitmap)
3962 (write_state_version): ditto, renaming to...
3963 (state_writer::write_state_version)
3964 (write_state_scalar_type): ditto, renaming to...
3965 (state_writer::write_state_scalar_type)
3966 (write_state_string_type): ditto, renaming to...
3967 (state_writer::write_state_string_type)
3968 (write_state_undefined_type): ditto, renaming to...
3969 (state_writer::write_state_undefined_type)
3970 (write_state_struct_union_type): ditto, renaming to...
3971 (state_writer::write_state_struct_union_type)
3972 (write_state_struct_type): ditto, renaming to...
3973 (state_writer::write_state_struct_type)
3974 (write_state_user_struct_type): ditto, renaming to...
3975 (state_writer::write_state_user_struct_type)
3976 (write_state_lang_struct_type): ditto, renaming to...
3977 (state_writer::write_state_lang_struct_type)
3978 (write_state_param_struct_type): ditto, renaming to...
3979 (state_writer::write_state_param_struct_type)
3980 (write_state_pointer_type): ditto, renaming to...
3981 (state_writer::write_state_pointer_type)
3982 (write_state_array_type): ditto, renaming to...
3983 (state_writer::write_state_array_type)
3984 (write_state_gc_used): ditto, renaming to...
3985 (state_writer::write_state_gc_used)
3986 (write_state_common_type_content): ditto, renaming to...
3987 (state_writer::write_state_common_type_content)
3988 (write_state_type): ditto, renaming to...
3989 (state_writer::write_state_type)
3990 (write_state_pair_list): ditto, renaming to...
3991 (state_writer::write_state_pair_list)
3992 (write_state_pair): ditto, renaming to...
3993 (state_writer::write_state_pair)
3994 (write_state_typedefs): ditto, renaming to...
3995 (state_writer::write_state_typedefs)
3996 (write_state_structures): ditto, renaming to...
3997 (state_writer::write_state_structures)
3998 (write_state_param_structs): ditto, renaming to...
3999 (state_writer::write_state_param_structs)
4000 (write_state_variables): ditto, renaming to...
4001 (state_writer::write_state_variables)
4002 (write_state_srcdir): ditto, renaming to...
4003 (state_writer::write_state_srcdir)
4004 (write_state_files_list): ditto, renaming to...
4005 (state_writer::write_state_files_list)
4006 (write_state_languages): ditto, renaming to...
4007 (state_writer::write_state_languages)
4008 (write_state): create a state_writer instance and use it when
4009 writing out the state file
4011 2013-05-17 Mike Stump <mikestump@comcast.net>
4013 PR rtl-optimization/57304
4014 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
4015 accessing DF_REF_REAL_LOC.
4017 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4019 PR rtl-optimization/57281
4020 PR rtl-optimization/57300
4021 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
4022 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
4023 what the other splitter did if the registers are dead.
4025 2013-05-17 Richard Biener <rguenther@suse.de>
4027 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4030 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4032 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4035 2013-05-17 Marek Polacek <polacek@redhat.com>
4037 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4038 length when doing non-zero store of storing '\0' to '\0'.
4040 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4042 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4043 vect_external_def oprnd1 with loop_vinfo, try to emit
4044 optional cast, negation and and stmts on the loop preheader
4045 edge instead of into the pattern def seq.
4047 PR tree-optimization/57051
4048 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4049 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4051 2013-05-16 Nick Clifton <nickc@redhat.com>
4053 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4054 (rl78_is_naked_func): New function.
4055 (rl78_expand_prologue): Skip prologue generation for naked functions.
4056 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
4057 * doc/extend.texi (naked): Add RL78 to the list of processors
4058 that supports this attribute.
4060 2013-05-16 Jeff Law <law@redhat.com>
4062 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4064 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4066 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4067 cache parameters using detect_caches_amd also for CYRIX,
4068 NSC and TM2 signatures.
4070 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4071 Dzianis Kahanovich <mahatma@eu.by>
4075 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4076 VIA/Centaur processors and determine their cache parameters
4077 using detect_caches_amd.
4079 2013-05-16 Teresa Johnson <tejohnson@google.com>
4081 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4082 (rtl_verify_edges): New function.
4083 (rtl_verify_bb_insns): Ditto.
4084 (rtl_verify_bb_pointers): Ditto.
4085 (rtl_verify_bb_insn_chain): Ditto.
4086 (rtl_verify_fallthru): Ditto.
4087 (rtl_verify_bb_layout): Ditto.
4088 (rtl_verify_flow_info_1): Outline checks into new functions.
4089 (rtl_verify_flow_info): Ditto.
4091 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
4093 * cfghooks.c (copy_bbs): Add update_dominance argument.
4094 * cfghooks.h (copy_bbs): Update prototype.
4095 * tree-cfg.c (gimple_duplicate_sese_region):
4096 Add update_dominance argument.
4097 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4098 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4099 gimple_duplicate_sese_region call.
4100 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4101 Update copy_bbs call.
4102 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4103 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4105 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4107 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4108 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4109 vect_recog_rotate_pattern.
4110 (vect_recog_rotate_pattern): New function.
4112 2013-05-16 Jason Merrill <jason@redhat.com>
4114 * Makefile.in (LLINKER): New variable.
4115 (mostlyclean): Remove link mutex.
4116 * configure.ac: Handle --enable-link-mutex.
4117 * lock-and-run.sh: New script.
4119 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4122 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4125 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4127 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4129 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4131 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4132 * config/arm/arm.c (next_consecutive_mem): New function.
4133 (gen_movmem_ldrd_strd): Likewise.
4134 * config/arm/arm.md (movmemqi): Update condition and code.
4135 (unaligned_loaddi, unaligned_storedi): New patterns.
4137 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4139 * config.gcc: Obsolete *-*-solaris2.9*.
4140 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4142 2013-05-16 Richard Biener <rguenther@suse.de>
4144 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4145 earlier, after GRAPHITE transforms and IV canonicalization.
4147 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4149 * omp-low.c (extract_omp_for_data): For collapsed loops,
4150 if at least one of the loops is known at compile time to
4151 iterate zero times, set count to 0.
4152 (expand_omp_regimplify_p): New function.
4153 (expand_omp_for_generic): For collapsed loops, if at least
4154 one of the loops isn't known to iterate at least once,
4155 add runtime check with setting count to 0.
4156 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4157 For unsigned types if it isn't known at compile time that
4158 the loop will iterate at least once, add runtime check to bypass
4159 the whole loop if initial condition isn't true.
4161 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4163 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4165 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
4168 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4169 transformations to avoid an infinite loop.
4171 2013-05-16 Marek Polacek <polacek@redhat.com>
4173 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4175 2013-05-15 Leif Ekblad <leif@rdos.net>
4177 * config/i386/i386.c (ix86_decompose_address): Use
4178 DEFAULT_TLS_SEG_REG to access TLS segment register.
4179 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4180 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4181 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4183 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4186 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4187 sibling calls to functions that would normally be lazily bound,
4188 unless $gp is call-clobbered.
4190 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
4192 * config/i386/i386.c (ix86_option_override_internal): Update
4193 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
4194 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4195 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4196 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4198 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4200 2013-05-15 Andreas Schwab <schwab@suse.de>
4202 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4203 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4206 2013-05-15 Teresa Johnson <tejohnson@google.com>
4208 * loop-unroll.c (report_unroll_peel): Check decision before
4209 emitting unroll/peel message.
4211 2013-05-15 Teresa Johnson <tejohnson@google.com>
4213 * function.h (has_bb_partition): New rtl_data flag.
4214 (bb_reorder_complete): Ditto.
4215 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4216 instead of flag_reorder_blocks_and_partition.
4217 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4218 with some enhancements.
4219 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4220 * bb-reorder.c (connect_traces): Check for has_bb_partition
4221 instead of flag_reorder_blocks_and_partition.
4222 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4223 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4224 verify_hot_cold_block_grouping.
4225 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4227 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4230 * config/arm/predicates.md (call_insn_operand): New predicate.
4231 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4232 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4233 if insn is not a tail call.
4234 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4236 * config/arm/arm.h (enum reg_class): New caller save register class.
4237 (REG_CLASS_NAMES): Likewise.
4238 (REG_CLASS_CONTENTS): Likewise.
4239 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4242 2013-05-15 Richard Biener <rguenther@suse.de>
4244 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4245 of MSG_OPTIMIZED_LOCATIONS.
4246 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4247 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4249 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4250 of MSG_OPTIMIZED_LOCATIONS.
4251 (execute_vect_slp): Likewise.
4252 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4253 (vect_create_cond_for_alias_checks): Likewise.
4254 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4255 (vect_recog_widen_mult_pattern): Likewise.
4256 (vect_recog_widen_sum_pattern): Likewise.
4257 (vect_recog_over_widening_pattern): Likewise.
4258 (vect_recog_widen_shift_pattern): Likewise.
4259 (vect_recog_vector_vector_shift_pattern): Likewise.
4260 (vect_recog_divmod_pattern): Likewise.
4261 (vect_recog_mixed_size_cond_pattern): Likewise.
4262 (vect_recog_bool_pattern): Likewise.
4263 (vect_pattern_recog_1): Likewise.
4265 2013-05-15 Martin Jambor <mjambor@suse.cz>
4267 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4268 non-functions to builtin_unreachable.
4269 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4270 correct when new direct edges were discovered.
4272 2013-05-15 Martin Jambor <mjambor@suse.cz>
4274 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4275 header, print symbol order instead of node uid, print more information
4276 about indirect edge targets.
4277 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4279 (ipa_make_edge_direct_to_target): Likewise.
4280 (remove_described_reference): Likewise.
4281 (propagate_controlled_uses): Likewise.
4282 (ipa_print_node_params): Also print symbol order.
4283 (ipcp_transform_function): Print symbol order instead of node uids.
4284 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4285 (cgraph_get_create_real_symbol_node): Likewise.
4286 * ipa-cp.c (print_lattice): Likewise.
4287 (print_all_lattices): Likewise.
4288 (determine_versionability): Likewise.
4289 (initialize_node_lattices): Likewise.
4290 (estimate_local_effects): Likewise.
4291 (update_profiling_info): Likewise.
4292 (create_specialized_node): Likewise.
4293 (perhaps_add_new_callers): Likewise.
4294 (decide_about_value): Likewise.
4295 (decide_whether_version_node): Likewise.
4296 (identify_dead_nodes): Likewise.
4297 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4298 (dump_inline_summary): Likewise.
4299 (estimate_node_size_and_time): Likewise.
4300 (inline_analyze_function): Likewise.
4301 * ipa-inline.c (report_inline_failed_reason): Likewise.
4302 (want_early_inline_function_p): Likewise.
4303 (edge_badness): Likewise.
4304 (update_edge_key): Likewise.
4305 (inline_small_functions): Likewise. Add dumping of order to two other
4307 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4308 instead of node uids.
4309 (propagate_pure_const): Likewise.
4310 (propagate_pure_const): Likewise.
4311 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4312 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4313 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4315 * tree-pretty-print.c (dump_function_header): Likewise.
4316 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4317 Print symbol order instead of node uids.
4319 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4321 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4322 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4324 2013-05-15 Richard Biener <rguenther@suse.de>
4326 PR tree-optimization/57275
4327 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4328 return value for fail to do runtime alias checks for gather loads.
4330 2013-05-15 Jan Hubicka <jh@suse.cz>
4334 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4335 weakrefs are not external.
4336 (lto_symtab_merge_decls): Fix thinko when dealing with
4337 non-lto_symtab decls.
4338 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4339 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4340 * varpool.c (dump_varpool_node): Dump more flags.
4342 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4344 * config/i386/i386.c (processor_alias_table): Add instruction
4345 FSGSBASE for AMD bdver3 architecture.
4347 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4349 * tree.c (warn_deprecated_use): Print file:line using locus color.
4350 * diagnostic.c (diagnostic_report_current_module): Print file:line
4351 and file:line:column using locus color.
4353 2013-05-14 Mike Stump <mikestump@comcast.net>
4355 * gdbinit.in: Add __null.
4357 2013-05-14 Mike Stump <mikestump@comcast.net>
4359 * recog.h: Rename struct recog_data to Recog_data.
4360 * recog.c: Likewise.
4361 * reload.c (can_reload_into): Likewise.
4362 * config/picochip/picochip.c: Likewise.
4364 2013-05-14 Mike Stump <mikestump@comcast.net>
4366 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4368 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4370 * resource.h (struct resources): Remove unch_memory member.
4371 (CLEAR_RESOURCE): Don't clear unch_memory.
4372 * resource.c (mark_referenced_resources): Don't set it.
4373 (mark_set_resources): Likewise.
4374 (mark_target_live_regs): Don't clear it.
4375 (init_resource_info): Likewise.
4376 * reorg.c (resource_conflicts_p): Don't compare it.
4377 (redundant_insn): Don't set it.
4379 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4381 * emit-rtl.c (next_label): Remove unused function.
4382 (skip_consecutive_labels, link_cc0_insns): Move to ...
4383 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4384 only place where these functions are used, and make them static.
4386 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4388 * fold-const.c (fold_negate_expr): Handle vectors.
4389 (fold_truth_not_expr): Make it static.
4390 (fold_invert_truthvalue): New static function.
4391 (invert_truthvalue_loc): Handle vectors. Do not call
4392 fold_truth_not_expr directly.
4393 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4394 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4395 (fold_comparison): Handle vector constants.
4396 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4397 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4398 * tree.h (fold_truth_not_expr): Remove declaration.
4400 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4402 * config/aarch64/aarch64-simd.md
4403 (aarch64_vcond_internal<mode>): Rename to...
4404 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4405 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4406 float modes. Clarify all iterator modes.
4407 (vcond<mode><mode>): Use new name for vcond expanders.
4408 (vcond<v_cmp_result><mode>): Likewise.
4409 (vcondu<mode><mode>: Likewise.
4410 * config/aarch64/iterators.md (VDQF_COND): New.
4412 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4415 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4416 variable for the shift amount. Check that we shift by non-negative
4419 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4422 * config/arm/arm.h (EPILOGUE_USES): Only return true
4423 for LR_REGNUM after epilogue_completed.
4425 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4427 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4430 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4433 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4434 and Solaris 11+/x86 with gld.
4435 * configure: Regenerate.
4437 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4439 * expmed.c (expand_shift_1): Canonicalize rotates by
4440 constant bitsize / 2 to bitsize - 1.
4441 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4442 case ROTATERT>: Likewise.
4445 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4447 * config/i386/i386.md (rotateinv): New code attr.
4448 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4449 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4450 roll $31, %eax, etc.
4452 2013-05-14 Richard Biener <rguenther@suse.de>
4455 * tree-eh.c (sink_clobbers): Give up for successors with
4456 multiple predecessors and no virtual uses.
4458 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4460 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4461 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4463 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4466 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4467 the case when both op0 and op1 have VOIDmode.
4469 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4471 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4472 in multiply-accumulate mode.
4474 2013-05-13 Guozhi Wei <carrot@google.com>
4476 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4478 2013-05-13 Kai Tietz <ktietz@redhat.com>
4481 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4482 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4483 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4484 * config/i386/i386.c (ix86_option_override_internal): Likewise.
4485 (ix86_expand_prologue): Likewise.
4486 (ix86_expand_split_stack_prologue): Likewise.
4487 (legitimate_pic_address_disp_p): Likewise.
4488 (legitimize_pic_address): Likewise.
4489 (legitimize_tls_address): Likewise.
4490 (legitimize_pe_coff_symbol): Likewise.
4491 (output_pic_addr_const): Likewise.
4492 (construct_plt_address): Likewise.
4493 (ix86_expand_call): Likewise.
4494 (x86_output_mi_thunk): Likewise.
4495 (x86_function_profiler): Likewise.
4497 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4499 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4500 similar switch cases.
4501 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4502 (aarch64_simd_mov_to_<mode>low): Delete.
4503 (aarch64_simd_mov_to_<mode>high): Delete.
4504 (move_lo_quad_<mode>): Add w<-r alternative.
4505 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4506 (aarch64_simd_mov_from_*): Update type attribute.
4507 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4510 2013-05-13 Jan Hubicka <jh@suse.cz>
4512 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4513 * config/i386/i386.c (ix86_compute_frame_layout,
4514 ix86_expand_epilogue, emit_i387_cw_initialization,
4515 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4516 ix86_local_alignment): Fix use of size/speed predicates.
4518 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4520 PR tree-optimization/45216
4521 PR tree-optimization/57157
4522 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4523 the (-Y) & (B - 1) variant if OP is |.
4524 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4525 return shifted. Use (-op1) & (prec - 1) as other_amount
4526 instead of prec - op1.
4528 2013-05-13 Martin Jambor <mjambor@suse.cz>
4531 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4532 (ipa_constant_data): New type.
4533 (ipa_jump_func): Use ipa_constant_data to hold information about
4534 constant jump functions.
4535 (ipa_get_jf_constant): Adjust to jump function type changes.
4536 (ipa_get_jf_constant_rdesc): New function.
4537 (ipa_param_descriptor): New field controlled_uses.
4538 (ipa_get_controlled_uses): New function.
4539 (ipa_set_controlled_uses): Likewise.
4540 * ipa-ref.h (ipa_find_reference): Declare.
4541 * ipa-prop.c (ipa_cst_ref_desc): New type.
4542 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4544 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4545 New parameter cs. Adjust all callers.
4546 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4547 (remove_described_reference): New function.
4548 (jfunc_rdesc_usable): Likewise.
4549 (try_make_edge_direct_simple_call): Decrement controlled use count,
4550 attempt to remove reference if it hits zero.
4551 (combine_controlled_uses_counters): New function.
4552 (propagate_controlled_uses): Likewise.
4553 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4554 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4555 (ipa_print_node_params): Print described use counter.
4556 (ipa_write_jump_function): Adjust to jump function type changes.
4557 (ipa_read_jump_function): New parameter CS, pass it to
4558 ipa_set_jf_constant. Adjust caller.
4559 (ipa_write_node_info): Stream controlled use count
4560 (ipa_read_node_info): Likewise.
4561 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4563 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4564 count. Remove cloning-added reference if it reaches zero.
4565 * ipa-ref.c (ipa_find_reference): New function.
4567 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4569 * config/i386/i386.c (processor_target_table): Modified default
4570 alignment values for AMD BD and BT architectures.
4572 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
4574 * tree-vect-generic.c (uniform_vector_p): Move ...
4575 * tree.c (uniform_vector_p): ... here.
4576 * tree.h (uniform_vector_p): Declare it.
4577 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4580 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4582 PR tree-optimization/57230
4583 * tree-ssa-strlen.c (handle_char_store): Record length for
4584 array store from STRING_CST.
4586 PR tree-optimization/57230
4587 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4590 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4592 * config/epiphany/epiphany.c (epiphany_init): Check size of
4593 NUM_MODES_FOR_MODE_SWITCHING.
4594 (epiphany_expand_prologue):
4595 Remove CONFIG_REGNUM initial value handling code.
4596 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4597 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4598 (emit_set_fp_mode, epiphany_mode_after): Likewise.
4599 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4600 Don't return 1 for FP_MODE_NONE.
4601 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4602 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4603 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4604 * config/epiphany/epiphany.md (save_config): New pattern.
4606 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
4608 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4610 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
4612 * config/i386/i386.md (memory): Handle sseishft1.
4613 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4614 (*vec_extractv2di_1): Ditto.
4616 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4618 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4621 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
4623 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4624 Add mthumb/march=armv7-a multilib.
4625 Add mthumb/march=armv7-r multilib.
4626 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4628 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4630 * config/v850/t-rtems: Add more multilibs.
4632 2013-05-10 Richard Biener <rguenther@suse.de>
4634 PR tree-optimization/57214
4635 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4636 not propagate from SSA names that occur in abnormal PHI nodes.
4638 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4640 * stor-layout.c (element_precision): New function.
4641 * machmode.h (element_precision): Declare it.
4642 * tree.c (build_minus_one_cst): New function.
4643 (element_precision): Likewise.
4644 * tree.h (build_minus_one_cst): Declare new function.
4645 (element_precision): Likewise.
4646 * fold-const.c (operand_equal_p): Use element_precision.
4647 (fold_binary_loc): Handle vector types.
4648 * convert.c (convert_to_integer): Use element_precision.
4649 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4652 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4654 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4655 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4656 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4657 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4658 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4659 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4660 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4661 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4662 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4663 (Uuw8): New constraints.
4664 (Usb4): Move into alphabetical order.
4665 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4666 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4667 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4668 previously unnamed patterns.
4669 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4670 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4671 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4672 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4673 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4674 of specific lengths.
4676 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4678 * config/i386/i386.md (rotateinv): New code attr.
4679 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4680 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4681 roll $31, %eax, etc.
4683 PR tree-optimization/45216
4684 PR tree-optimization/57157
4685 * tree-ssa-forwprop.c (simplify_rotate): New function.
4686 (ssa_forward_propagate_and_combine): Call it.
4688 2013-05-10 Richard Biener <rguenther@suse.de>
4690 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4691 disable peeling when we version for aliasing.
4692 (vector_alignment_reachable_p): Honor explicit user alignment.
4693 (vect_supportable_dr_alignment): Likewise.
4694 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4695 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4696 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4697 then peeling to arrange for the cost-model check to come first.
4699 2013-05-10 Alan Modra <amodra@gmail.com>
4701 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4702 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4703 * configure: Regenerate.
4705 2013-05-10 Alan Modra <amodra@gmail.com>
4708 * varasm.c (default_elf_select_section): Move !DECL_P check..
4709 (get_named_section): ..to here before calling get_section_name.
4711 (default_section_type_flags): Add DECL_P check.
4712 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4713 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4715 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4717 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4718 When using gen_stack_adjust_str with a register offset, add a
4719 REG_FRAME_RELATED_EXPR note.
4721 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
4723 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4724 (*vec_extractv4si_zext_mem): Ditto.
4725 (*vec_extractv2di): Add 0->x and x->x alternatives.
4726 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4727 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4729 2013-05-09 Jason Merrill <jason@redhat.com>
4731 N3639 C++1y VLA support
4732 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4735 * tree.c (build_constructor_va): New.
4736 * tree.h: Declare it.
4738 2013-05-09 Martin Jambor <mjambor@suse.cz>
4741 * gimple-fold.c (canonicalize_constructor_val): Call
4742 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4744 2013-05-09 Jan Hubicka <jh@suse.cz>
4745 Richard Biener <rguenther@suse.de>
4748 * symtab.c (symtab_make_decl_local): Do not add private names.
4750 2013-05-09 Jan Hubicka <jh@suse.cz>
4753 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4754 (unlink_from_assembler_name_hash): Likewise.
4755 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4756 symtab_unregister_node, symtab_initialize_asm_name_hash,
4757 change_decl_assembler_name): Update.
4759 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4761 * config/aarch64/aarch64.md: New movtf split.
4762 (*movtf_aarch64): Update.
4763 (aarch64_movdi_tilow): Handle TF modes and rename to
4764 aarch64_movdi_<mode>low.
4765 (aarch64_movdi_tihigh): Handle TF modes and rename to
4766 aarch64_movdi_<mode>high
4767 (aarch64_movtihigh_di): Handle TF modes and rename to
4768 aarch64_mov<mode>high_di
4769 (aarch64_movtilow_di): Handle TF modes and rename to
4770 aarch64_mov<mode>low_di
4771 (aarch64_movtilow_tilow): Remove spurious whitespace.
4772 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4774 (aarch64_print_operand): Update.
4776 2013-05-09 Alan Modra <amodra@gmail.com>
4778 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4780 * configure: Regenerate.
4782 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4784 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4785 splitter preparation statements.
4786 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4787 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4790 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4792 * gimple-ssa-strength-reduction.c (count_candidates): Change
4793 return value to int.
4794 (analyze_candidates_and_replace): Change type of length to int.
4796 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4798 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4799 (*vec_extract<mode>): Use VI12_128 mode iterator.
4800 (*vec_extract<mode>_mem): Ditto.
4801 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4804 2013-05-08 Diego Novillo <dnovillo@google.com>
4809 2012-08-17 Diego Novillo <dnovillo@google.com>
4812 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4813 * config.in: Regenerate.
4814 * configure: Regenerate.
4815 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4817 2013-05-08 Jan Hubicka <jh@suse.cz>
4820 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4821 * cgraph.h (symtab_node_base): Add unique_name.
4822 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4823 input_overwrite_node, input_varpool_node): Stream unique_name.
4824 * cgraphclones.c (cgraph_create_virtual_clone,
4825 cgraph_function_versioning): Set unique_name.
4826 * ipa.c (function_and_variable_visibility): Set unique_name.
4828 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4830 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4831 (alloc_cand_and_find_basis): Restrict conditional candidate
4832 processing to CAND_MULTs.
4834 2013-05-08 Jan Hubicka <jh@suse.cz>
4837 lto-symtab.c (lto_symtab_symbol_p): New function.
4838 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4839 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4840 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4841 Skip static symbols.
4843 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4845 PR tree-optimization/57200
4846 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4847 Only call inform if the preceding warning_at returns true.
4849 2013-05-07 Han Shen <shenhan@google.com>
4851 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4852 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4853 * common.opt (fstack-protector-strong): New option.
4854 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4855 * doc/invoke.texi (Optimization Options): Document
4856 "-fstack-protector-strong".
4857 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4859 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4861 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4863 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4865 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4866 it is not lhs of the insn.
4867 (setup_reg_equiv): Remove insn having equiv memory which it is not
4869 * lra-constraints.c (process_address): Try to improve generation
4870 code for address base + disp.
4871 (lra_constraints): Make correct the code for checking insn setting
4872 up backward equivalence. Remove insn only if it is in the init
4874 * lra-eliminations.c (update_reg_eliminate): Change return value.
4875 (lra_eliminate): Use the result.
4877 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
4879 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4880 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4881 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4882 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4883 register target operands.
4884 (*vec_extractv8hi_sse2): New pattern.
4885 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4886 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4887 (*vec_extract<mode>_mem): New insn and split pattern.
4889 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4891 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4892 (TARGET_ASAN_SHADOW_OFFSET): Define.
4893 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4894 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4896 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4898 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4899 (incr_vec_index): Return -1 if increment not found.
4900 (create_add_on_incoming_edge): Assert if increment not found.
4901 (record_increment): Limit number of increments recorded.
4902 (all_phi_incrs_profitable): Return false if an increment not found.
4903 (replace_profitable_candidates): Don't process increments that were
4905 (analyze_candidates_and_replace): Limit size of incr_vec.
4907 2013-05-07 Richard Biener <rguenther@suse.de>
4909 * calls.c (special_function_p): setjmp-like functions are leaf.
4910 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4911 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4913 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4915 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4916 (aarch64_simd_mov<mode>): New expander.
4917 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4918 (aarch64_simd_mov_to_<mode>high): Likewise.
4919 (aarch64_simd_mov_from_<mode>low): Likewise.
4920 (aarch64_simd_mov_from_<mode>high): Likewise.
4921 (aarch64_dup_lane<mode>): Update.
4922 (aarch64_dup_lanedi): New instruction pattern.
4923 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4924 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4926 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4928 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4929 (replace_mult_candidate): Remove unnecessary argument; remove
4930 unnecessary parameter from call to introduce_cast_before_cand.
4931 (replace_unconditional_candidate): Remove unnecessary parameter
4932 from call to replace_mult_candidate.
4933 (replace_conditional_candidate): Likewise.
4934 (insert_initializers): Use make_temp_ssa_name.
4935 (introduce_cast_before_cand): Remove unnecessary argument; use
4937 (replace_one_candidate): Remove unnecessary argument; remove
4938 unnecessary parameter from calls to introduce_cast_before_cand.
4939 (replace_profitable_candidates): Remove unnecessary parameters
4940 from calls to replace_one_candidate.
4942 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4944 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4945 phi def as possibly hiding a basis for a CAND_ADD whose operands
4946 have been commuted in the analysis.
4947 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4949 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4951 * config/aarch64/aarch64.md
4952 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4953 shift value between 0-4.
4955 2013-05-07 Richard Biener <rguenther@suse.de>
4957 * double-int.h (rshift): New overload.
4958 * double-int.c (rshift): New function.
4959 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4960 (create_reference_ops_from_ref): Remove.
4961 (vn_reference_insert): Use shared ops for constructing the
4962 reference and copy it.
4964 2013-05-07 Richard Biener <rguenther@suse.de>
4967 * tree-eh.c (sink_clobbers): Properly propagate
4968 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4970 2013-05-07 Jakub Jelinek <jakub@redhat.com>
4972 PR tree-optimization/57149
4973 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4974 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4975 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4976 uninit_undefined_value_p instead of ssa_undefined_value_p.
4979 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4980 for modifier == EXPAND_INITIALIZER.
4982 2013-05-07 Anton Blanchard <anton@samba.org>
4984 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4985 for powerpc64 little endian.
4986 * configure: Regenerate.
4988 2013-05-06 Graham Stott <grahams@btinternet.com>
4990 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4991 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4992 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4993 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4995 2013-05-06 Graham Stott <grahams@btinternet.com>
4997 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4998 codes which allow non-lvalues.
5000 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
5002 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
5003 components are all 1s.
5004 (integer_minus_onep): New function.
5005 * tree.h (integer_minus_onep): Declare it.
5006 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
5007 integer_minus_onep instead of integer_all_onesp.
5009 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5012 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
5013 variations of these patterns.
5015 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
5017 * config/i386/i386.md (isa): Add x64_sse4 member.
5018 (enabled): Handle x64_sse4.
5019 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
5020 instruction for 64bit SSE4_1 targets. Update insn attributes.
5021 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
5022 instruction for SSE4_1 targets. Update insn attributes.
5023 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5024 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5025 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5027 (*vec_extractv4si): Rename from *sse4_1_pextrd.
5028 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5029 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5031 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5034 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5036 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
5038 * final.c (do_assembler_dialects): Don't handle curly braces and
5039 vertical bar escaped by % as dialect delimiters.
5040 (output_asm_insn): Print curly braces and vertical bar if escaped
5041 by % and ASSEMBLER_DIALECT defined.
5042 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5043 * doc/tm.texi: Regenerated.
5045 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5047 * config/mips/mips.c: Include tree-pass.h.
5048 (mips_reorg): Split in pre- and post-dbr_schedule parts.
5049 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5050 (pass_mips_machine_reorg2): New machine specific pass.
5051 (insert_pass_mips_machine_reorg2): New pass plugin definition.
5052 (mips_option_override): Register the new pass.
5053 * rtl.h (cleanup_barriers): Remove prototype.
5054 (dbr_schedule): Likewise.
5055 * jump.c (cleanup_barriers): Make static.
5056 * reorg.c (dbr_schedule): Likewise.
5058 2013-05-06 Richard Biener <rguenther@suse.de>
5060 PR tree-optimization/57185
5061 * tree-parloops.c (add_field_for_reduction): Handle anonymous
5064 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
5067 * config/i386/i386.c (add_parameter_dependencies): Add dependence
5068 between "first_arg" and "insn", not "last" and "insn".
5070 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5072 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5073 (find_candidates_in_block): Re-enable slsr_process_phi.
5074 (create_phi_basis): Fix double counting of candidate adjustment.
5076 2013-05-06 Richard Biener <rguenther@suse.de>
5079 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5080 the edge is also fallthru, preserve it and just clear the
5082 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5083 also complex, preserve that and just clear the fallthru flag.
5084 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5085 update virtual operands.
5087 2013-05-06 Alan Modra <amodra@gmail.com>
5089 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5090 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5091 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5092 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5093 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5094 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5096 2013-05-06 Alan Modra <amodra@gmail.com>
5098 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5099 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5100 (DEFAULT_ASM_ENDIAN): Define.
5101 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5102 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5103 Update -K PIC clause from sysv4.h.
5104 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5105 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5107 2013-05-06 Alan Modra <amodra@gmail.com>
5109 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5110 twice for little-endian.
5111 (ashrdi3_no_power, ashrdi3): Support little-endian.
5113 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5116 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5117 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5119 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5120 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5121 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5124 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5125 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5127 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5128 * config/pa/pa.opt: Make mbig-switch a no-op.
5129 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5130 (CASE_VECTOR_MODE): Always return SImode.
5131 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5132 for the !TARGET_BIG_SWITCH case.
5133 * config/pa/pa-linux.h: Likewise.
5134 * config/pa/pa-openbsd.h: Likewise.
5135 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5136 * config/pa/pa.md (short_jump): Remove define_insn.
5137 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5138 (casesi0): Remove define_insn.
5139 (type): Remove btable_branch.
5140 (pa_combine_type): Likewise.
5141 (in_nullified_branch_delay): Likewise.
5142 (in_call_delay): Likewise.
5143 (define_delay): Likewise.
5144 (define_insn_reservation "Z3"): Likewise.
5145 (define_insn_reservation "Z4"): Likewise.
5146 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5147 (pa_adjust_insn_length): Remove adjustment for btable branches.
5148 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5151 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
5153 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5154 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5155 Add m->r,x alternatives.
5156 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5157 splitters using SWI48x mode iterator.
5158 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5159 TARGET_64BIT. Add m->x alternative.
5160 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5161 Add o->x alternative. Enable for TARGET_SSE.
5162 (sse_storeq): Remove expander.
5163 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5164 with memory input operand.
5165 (*vec_extractv2di_1 splitter): New.
5166 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5167 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5169 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5171 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5172 (INT_LOWPART): Delete.
5173 (extract_MB): Adjust.
5174 (extract_ME): Adjust.
5175 (print_operand): Adjust.
5177 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5179 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5180 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5181 (reg_or_logical_cint_operand, easy_fp_constant,
5182 logical_const_operand): Delete "CONST_DOUBLE" case.
5183 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5184 "HOST_BITS_PER_WIDE_INT == 64" test.
5185 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
5186 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5187 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5188 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5190 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5191 CONST_DOUBLE DImode/VOIDmode case.
5192 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5193 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5194 CONST_DOUBLE VOIDmode case.
5195 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5196 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5197 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5198 Delete CONST_DOUBLE case.
5199 (splitters for mov FMOVE64 const_double): Delete
5200 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5201 "HOST_BITS_PER_WIDE_INT >= 64" test.
5202 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5204 (mov DI const_double): Delete.
5206 2013-05-04 Jakub Jelinek <jakub@redhat.com>
5208 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5209 on op shows all bits zero in mode of a lowpart subreg, return zero.
5211 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5214 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5215 to save TFmode registers and DImode to save TImode registers for
5216 caller save operations.
5217 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5218 mark being partially clobbered since they only use the first
5221 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5222 and TDmode only use the upper 64-bits of each VSX register.
5224 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5226 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5227 (find_candidates_in_block): Disable slsr_process_phi.
5229 2013-05-03 Guozhi Wei <carrot@google.com>
5231 * coverage.c (coverage_obj_init): Move the construction of gcov
5233 (build_init_ctor): ... here.
5235 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5237 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5238 (slsr_cand_d): Redefine def_phi.
5239 (stride_status, phi_adjust_status, count_phis_status): New enums.
5240 (find_phi_def): New.
5241 (find_basis_for_base_expr): New.
5242 (find_basis_for_candidate): Handle hidden bases.
5243 (alloc_cand_and_find_basis): Handle phi candidates.
5244 (slsr_process_phi): New.
5245 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5246 (create_mul_imm_cand): Likewise.
5247 (create_add_ssa_cand): Exclude phi base candidates.
5248 (create_add_imm_cand): Likewise.
5249 (slsr_process_cast): Likewise.
5250 (slsr_process_copy): Likewise.
5251 (find_candidates_in_block): Handle phi candidates.
5252 (dump_candidate): Likewise.
5253 (unconditional_cands): Delete.
5254 (unconditional_cands_with_known_stride_p): Delete.
5255 (phi_dependent_cand_p): New.
5256 (cand_increment): Handle phi-dependent candidates.
5257 (replace_dependent): Delete.
5258 (replace_mult_candidate): New.
5259 (replace_unconditional_candidate): New.
5260 (incr_vec_index): Move to avoid forward reference.
5261 (create_add_on_incoming_edge): New.
5262 (create_phi_basis): New.
5263 (replace_dependents): Delete.
5264 (replace_conditional_candidate): New.
5265 (phi_add_costs): New.
5266 (replace_uncond_cands_and_profitable_phis): New.
5267 (record_increment): Handle phi adjustments.
5268 (record_phi_increments): New.
5269 (record_increments): Handle phi adjustments.
5270 (phi_incr_cost): New.
5271 (lowest_cost_path): Handle phis.
5272 (total_savings): Likewise.
5273 (analyze_increments): Likewise.
5274 (ncd_with_phi): New.
5275 (ncd_of_cand_and_phis): New.
5276 (nearest_common_dominator_for_cands): Handle phi increments.
5277 (all_phi_incrs_profitable): New.
5278 (replace_profitable_candidates): Handle phi-dependent candidates.
5279 (analyze_candidates_and_replace): Likewise.
5281 2013-05-03 Teresa Johnson <tejohnson@google.com>
5284 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5285 do not exceed REG_BR_PROB_BASE.
5287 2013-05-03 Jeff Law <law@redhat.com>
5289 PR tree-optimization/57144
5290 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5291 operand of the condition will bit into the new type when eliminating
5292 a cast feeding a condition.
5294 2013-05-03 Jakub Jelinek <jakub@redhat.com>
5296 PR rtl-optimization/57130
5297 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5298 of COMPARE as in_code to the recursive call if needed.
5300 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
5302 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5303 (enabled): Handle new members.
5304 * config/i386/sse.md (*vec_concatv2si): Merge from
5305 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5306 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5308 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5310 PR tree-optimization/57027
5311 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5312 for fnms opportunity, check we got the prerequisite kind
5313 of tree / gimple before using accessor functions.
5315 2013-05-03 Richard Biener <rguenther@suse.de>
5317 * double-int.h (lshift): New overload without precision
5319 (operator *=, operator +=, operator -=): Move ...
5320 * double-int.c (operator *=, operator +=, operator -=): ... here
5321 and implement more efficiently.
5322 (mul_double_with_sign): Remove.
5323 (lshift_double): Adjust to take unsinged shift argument, push
5324 dispatching code to callers.
5325 (mul_double_wide_with_sign): Add early out for callers that
5326 are not interested in high parts or overflow.
5327 (lshift): New function.
5328 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5330 (lrotate, rrotate): Use logical shifts.
5331 * expr.c (get_inner_reference): Use lshift.
5332 * fixed-value.c (do_fixed_divide): Likewise.
5333 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5334 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5335 (indirect_refs_may_alias_p): Likewise.
5336 (stmt_kills_ref_p_1): Likewise.
5338 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5340 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5342 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5344 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5345 scalar form of FABD instruction.
5347 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5349 * lra-constraints.c (process_alt_operands): Add checking alt
5350 number to choose the best alternative.
5352 2013-05-02 Richard Biener <rguenther@suse.de>
5354 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5355 bitmap and its handling.
5356 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5358 2013-05-02 Richard Biener <rguenther@suse.de>
5361 * tree-inline.c (copy_loops): Properly handle removed loops.
5362 (copy_cfg_body): Mark destination loops for fixup if source
5365 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5368 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5369 generating simple_return for naked functions.
5371 2013-05-02 Martin Jambor <mjambor@suse.cz>
5374 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5375 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5377 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5378 ipa_agg_replacement_value structures.
5379 (known_aggs_to_agg_replacement_list): Likewise.
5380 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5381 (read_agg_replacement_chain): Likewise.
5382 (ipcp_transform_function): Also check that by_ref flags match.
5384 2013-05-02 Richard Biener <rguenther@suse.de>
5386 * graphds.h (struct graph): Add obstack member.
5387 * graphds.c (new_graph): Initialize obstack and allocate
5389 (add_edge): Allocate edge from the obstack.
5390 (free_graph): Free the obstack instead of all edges and vertices.
5392 2013-05-02 Teresa Johnson <tejohnson@google.com>
5394 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5396 * cfg.c (update_bb_profile_for_threading): Ditto.
5397 * tree-inline.c (copy_bb): Ditto.
5398 (copy_edges_for_bb): Ditto.
5399 (initialize_cfun): Ditto.
5400 (copy_cfg_body): Ditto.
5401 (expand_call_inline): Ditto.
5402 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5403 (estimate_node_size_and_time): Ditto.
5404 (inline_merge_summary): Ditto.
5405 * cgraphclones.c (cgraph_clone_edge): Ditto.
5406 (cgraph_clone_node): Ditto.
5407 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5408 (compute_trg_info): Ditto.
5410 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5412 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5413 S reg when fp attribute set.
5414 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5416 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5418 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5420 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5421 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5422 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5424 2013-05-02 Richard Biener <rguenther@suse.de>
5426 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5427 (struct instantiate_cache_entry): New type.
5428 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5429 (struct instantiate_cache_type): New type.
5430 (set_instantiated_value, get_instantiated_value): Remove.
5431 (get_instantiated_value_entry): New function.
5432 (instantiate_scev_name): Use the new cache and adjust.
5433 (instantiate_scev_poly): Adjust.
5434 (instantiate_scev_binary): Likewise.
5435 (instantiate_array_ref): Likewise.
5436 (instantiate_scev_convert): Likewise.
5437 (instantiate_scev_not): Likewise.
5438 (instantiate_scev_3): Likewise.
5439 (instantiate_scev_2): Likewise.
5440 (instantiate_scev_r): Likewise.
5441 (instantiate_scev): Likewise.
5442 (resolve_mixers): Likewise.
5444 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5447 * lra-constraints.c (best_small_class_operands_num): Remove.
5448 (process_alt_operands): Remove small_class_operands_num. Take
5449 small classes operands into losers and only if the operand is not
5450 matched. Modify debugging output.
5451 (curr_insn_transform): Remove best_small_class_operands_num.
5454 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5456 * config/aarch64/aarch64-builtins.c
5457 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5458 * config/aarch64/aarch64-simd-builtins.def
5459 (reduc_splus_): Add new modes.
5460 (reduc_uplus_): New.
5461 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5462 (reduc_uplus_v4sf): Likewise.
5463 (reduc_splus_v4sf): Likewise.
5464 (aarch64_addv<mode>): Likewise.
5465 (reduc_uplus_<mode>): Likewise.
5466 (reduc_splus_<mode>): Likewise.
5467 (aarch64_addvv2di): Likewise.
5468 (reduc_uplus_v2di): Likewise.
5469 (reduc_splus_v2di): Likewise.
5470 (aarch64_addvv2si): Likewise.
5471 (reduc_uplus_v2si): Likewise.
5472 (reduc_splus_v2si): Likewise.
5473 (reduc_<sur>plus_<mode>): New.
5474 (reduc_<sur>plus_v2di): Likewise.
5475 (reduc_<sur>plus_v2si): Likewise.
5476 (reduc_<sur>plus_v4sf): Likewise.
5477 (aarch64_addpv4sf): Likewise.
5478 * config/aarch64/arm_neon.h
5479 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5480 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5481 add UNSPEC_SADDV, UNSPEC_UADDV.
5483 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5485 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5487 * config/aarch64/arm_neon.h
5488 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5490 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5492 * config/aarch64/aarch64-builtins
5493 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5495 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5497 * config/aarch64/aarch64-simd-builtins.def
5499 (reduc_smin_): Likewise.
5500 (reduc_umax_): Likewise.
5501 (reduc_umin_): Likewise.
5502 (reduc_smax_nan_): Likewise.
5503 (reduc_smin_nan_): Likewise.
5506 (smax): Update for V2SF, V4SF and V2DF modes.
5509 (smin_nan): Likewise.
5510 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5511 (<su><maxmin><mode>3): ...This, refactor.
5512 (s<maxmin><mode>3): New.
5513 (<maxmin_uns><mode>3): Likewise.
5514 (reduc_<maxmin_uns>_<mode>): Refactor.
5515 (reduc_<maxmin_uns>_v4sf): Likewise.
5516 (reduc_<maxmin_uns>_v2si): Likewise.
5517 (aarch64_<fmaxmin><mode>: Remove.
5518 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5520 (vmin<q>_f<32,64>): Likewise.
5521 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5523 (su): Add mappings for smax, smin, umax, umin.
5525 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5526 (FMAXMIN): Rename as...
5527 (FMAXMIN_UNS): ...This.
5529 (fmaxminv): Likewise.
5530 (fmaxmin): Likewise.
5532 (maxmin_uns_op): Likewise.
5534 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5536 * config/aarch64/arm_neon.h
5537 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5538 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5539 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5541 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5543 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5544 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5546 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5548 * config/aarch64/aarch64-simd.md
5549 (vcond<mode>_internal): Handle special cases for constant masks.
5550 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5551 (vcondu<mode><mode>): Likewise.
5552 (vcond<v_cmp_result><mode>): New.
5554 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5556 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5557 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5558 * config/aarch64/aarch64-simd-builtins.def
5559 (cmeq): Update to BUILTIN_VALLDI.
5564 * config/aarch64/arm_neon.h
5565 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5566 to builtins or C as appropriate.
5568 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5570 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5572 (cmhi): Rename to...
5574 * config/aarch64/aarch64-simd.md
5575 (simd_mode): Add SF.
5576 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5577 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5578 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5579 (cstore<mode>_neg): ...This.
5580 * config/aarch64/iterators.md
5582 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5584 (UCOMPARISONS): Likewise.
5585 (optab): Add missing comparisons.
5593 (V_cmp_result): Add DF, SF modes.
5594 (v_cmp_result): Likewise.
5597 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5599 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5601 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5602 define_insn to define_insn_and_split.
5603 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5604 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5605 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5606 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5607 (thumb2_negscc): Likewise.
5609 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5611 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5613 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5615 * config/arm/thumb2.md: Remove trailing whitespaces.
5617 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5619 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5620 Use gen_int_mode rather than GEN_INT.
5622 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5624 * value-prof.c (stream_in_histogram_value): Remove the strayed
5627 2013-04-30 Richard Biener <rguenther@suse.de>
5630 * cfghooks.c (split_edge): Properly check for the loop latch edge.
5632 2013-04-30 Richard Biener <rguenther@suse.de>
5635 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5637 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
5639 PR rtl-optimization/56957
5640 PR rtl-optimization/57105
5641 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5642 variable. Use just INSN_UID for determining whether an insn
5643 should be only disconnected from the insn stream.
5644 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5646 2013-04-30 Jakub Jelinek <jakub@redhat.com>
5648 PR tree-optimization/57104
5649 * tsan.c (instrument_expr): Don't instrument accesses to
5650 DECL_HARD_REGISTER VAR_DECLs.
5652 2013-04-30 Richard Biener <rguenther@suse.de>
5654 * function.h (loops_for_fn): New inline function.
5655 (set_loops_for_fn): Likewise.
5656 * cfgloop.h (place_new_loop): Add struct function parameter.
5657 (get_loop): Likewise.
5658 (get_loops): Likewise.
5659 (number_of_loops): Likewise.
5661 (fel_init): Likewise.
5662 * cfg.c (get_loop_copy): Adjust.
5663 * cfgloop.c (flow_loops_dump): Likewise.
5664 (record_loop_exits): Likewise.
5665 (verify_loop_structure): Likewise.
5666 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5667 (estimate_reg_pressure_cost): Likewise.
5668 (mark_loop_exit_edges): Likewise.
5669 * cfgloopmanip.c (place_new_loop): Likewise.
5670 (add_loop): Likewise.
5671 (duplicate_loop): Likewise.
5672 * graph.c (draw_cfg_nodes): Likewise.
5673 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5674 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5675 (extract_affine_chrec): Likewise.
5676 (build_scop_iteration_domain): Likewise.
5677 * graphite.c (graphite_initialize): Likewise.
5678 * ira-build.c (create_loop_tree_nodes): Likewise.
5679 (more_one_region_p): Likewise.
5680 (rebuild_regno_allocno_maps): Likewise.
5681 (mark_loops_for_removal): Likewise.
5682 (mark_all_loops_for_removal): Likewise.
5683 (remove_unnecessary_regions): Likewise.
5684 (ira_build): Likewise.
5685 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5686 * loop-init.c (fix_loop_structure): Likewise.
5687 (gate_rtl_move_loop_invariants): Likewise.
5688 (gate_rtl_unswitch): Likewise.
5689 (gate_rtl_unroll_and_peel_loops): Likewise.
5690 (rtl_doloop): Likewise.
5691 * lto-streamer-in.c (input_cfg): Likewise.
5692 * lto-streamer-out.c (output_cfg): Likewise.
5693 * modulo-sched.c (sms_schedule): Likewise.
5694 * predict.c (tree_estimate_probability): Likewise.
5695 (tree_estimate_probability_driver): Likewise.
5696 (estimate_loops): Likewise.
5697 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5698 (move_sese_region_to_fn): Likewise.
5699 (debug_loop_num): Likewise.
5700 * tree-chrec.c (chrec_evaluate): Likewise.
5701 (hide_evolution_in_other_loops_than_loop): Likewise.
5702 (chrec_component_in_loop_num): Likewise.
5703 (reset_evolution_in_loop): Likewise.
5704 (evolution_function_is_invariant_rec_p): Likewise.
5705 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5706 * tree-inline.c (copy_loops): Likewise.
5707 (copy_cfg_body): Likewise.
5708 (tree_function_versioning): Likewise.
5709 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5710 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5712 (add_to_evolution_1): Likewise.
5713 (scev_const_prop): Likewise.
5714 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5715 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5716 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5717 (tree_ssa_lim_initialize): Likewise.
5718 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5719 (verify_loop_closed_ssa): Likewise.
5720 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5721 (tree_ssa_loop_im): Likewise.
5722 (tree_ssa_loop_unswitch): Likewise.
5723 (tree_vectorize): Likewise.
5724 (check_data_deps): Likewise.
5725 (tree_ssa_loop_ivcanon): Likewise.
5726 (tree_ssa_loop_bounds): Likewise.
5727 (tree_complete_unroll): Likewise.
5728 (tree_complete_unroll_inner): Likewise.
5729 (tree_parallelize_loops): Likewise.
5730 (tree_ssa_loop_prefetch): Likewise.
5731 (tree_ssa_loop_ivopts): Likewise.
5732 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5733 * tree-vectorizer.c (vectorize_loops): Likewise.
5735 2013-04-29 Mike Frysinger <vapier@gentoo.org>
5737 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5738 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5739 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5740 with EABI_LINK_SPEC.
5742 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5745 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5748 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5751 * lra-constraints.c (process_alt_operands): Discourage a bit more
5752 using memory for pseudos. Print cost dump for alternatives.
5753 Modify cost values for conflicts with early clobbers.
5754 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5756 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5759 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5761 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5763 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5765 (movdi_aarch64): Support LDR/STR from/to D register.
5767 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5769 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5770 or higher by default.
5772 2013-04-29 Richard Biener <rguenther@suse.de>
5775 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5776 even if not adding abnormal edges for calls that can make
5779 2013-04-29 Richard Biener <rguenther@suse.de>
5782 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5784 (move_stmt_r): Remove redundant checking.
5786 2013-04-29 Teresa Johnson <tejohnson@google.com>
5789 * basic-block.h (apply_scale): New function.
5790 (apply_probability): Use apply_scale.
5791 * gimple-streamer-in.c (input_bb): Ditto.
5792 * lto-streamer-in.c (input_cfg): Ditto.
5793 * lto-cgraph.c (merge_profile_summaries): Ditto.
5794 * tree-optimize.c (execute_fixup_cfg): Ditto.
5795 * tree-inline.c (copy_bb): Update comment to use apply_scale.
5796 (copy_edges_for_bb): Ditto.
5797 (copy_cfg_body): Ditto.
5799 2013-04-29 Tom de Vries <tom@codesourcery.com>
5801 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5802 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5803 (tail_merge_optimize): Handle current_loops == NULL.
5805 2013-04-26 Jeff Law <law@redhat.com>
5807 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5808 (simplify_cond_using_ranges): Generalize code to simplify
5809 COND_EXPRs where one argument is a constant and the other
5810 is an SSA_NAME created by an integral type conversion.
5812 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5814 * config/arm/arm.md (store_minmaxsi): Use only when
5815 optimize_insn_for_size_p.
5817 2013-04-29 Christian Bruel <christian.bruel@st.com>
5820 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5822 2013-04-29 Richard Biener <rguenther@suse.de>
5825 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5826 loop tree make sure to schedule a fixup for the child as well.
5827 (expand_omp_for_generic): Properly add loops.
5828 (expand_omp_for_static_nochunk): Likewise.
5829 (expand_omp_for_static_chunk): Likewise.
5830 (expand_omp_for): For the degenerate case fixup loops.
5831 (expand_omp_sections): Fix default bb placement in loops.
5832 (expand_omp_atomic_pipeline): Properly add loops.
5834 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5836 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5838 2013-04-29 Tom de Vries <tom@codesourcery.com>
5840 * tree-ssa-tail-merge.c: Update header comment.
5842 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5844 * config/aarch64/arm_neon.h
5845 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5846 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5847 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5848 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5849 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5850 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5851 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5852 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5854 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5856 * config/aarch64/aarch64-simd.md
5857 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5858 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5859 fix_trunc, fixuns_trunc.
5860 (ftrunc<VDQF:mode>2): New.
5861 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5862 (fix_trunc_optab): New.
5864 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5866 * config/aarch64/aarch64-builtins.c
5867 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5868 iceilf, lround, iroundf.
5870 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5873 * config/i386/i386.h (enum ix86_tune_indices)
5874 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5875 New, split from X86_TUNE_INTER_UNIT_MOVES.
5876 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5877 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5878 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5879 (TARGET_INTER_UNIT_MOVES): Remove.
5880 * config/i386/i386.c (initial_ix86_tune_features): Update.
5881 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5882 (ix86_expand_convert_uns_didf_sse): Use
5883 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5884 (ix86_expand_vector_init_one_nonzero): Ditto.
5885 (ix86_expand_vector_init_interleave): Ditto.
5886 (inline_secondary_memory_needed): Return true for moves from SSE class
5887 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5888 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5889 * config/i386/constraints.md (Yi, Ym): Depend on
5890 TARGET_INTER_UNIT_MOVES_TO_VEC.
5891 (Yj, Yn): New constraints.
5892 * config/i386/i386.md (*movdi_internal): Change constraints of
5893 operand 1 from Yi to Yj and from Ym to Yn.
5894 (*movsi_internal): Ditto.
5895 (*movdf_internal): Ditto.
5896 (*movsf_internal): Ditto.
5897 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5898 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5899 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5900 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5901 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5902 * config/i386/sse.md (movdi_to_sse): Ditto.
5903 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5904 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5905 TARGET_INTER_UNIT_MOVES.
5906 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5907 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5908 instead of TARGET_INTER_UNIT_MOVES.
5909 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5910 operand 1 from Yi to Yj and from Ym to Yn.
5912 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5914 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5915 (float_truncate_hi_): Likewise.
5916 (float_extend_lo_): Likewise.
5917 (float_truncate_lo_): Likewise.
5918 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5919 (aarch64_float_extend_lo_v2df): Likewise.
5920 (vec_unpacks_hi_v4sf): Likewise.
5921 (aarch64_float_truncate_lo_v2sf): Likewise.
5922 (aarch64_float_truncate_hi_v4sf): Likewise.
5923 (vec_pack_trunc_v2df): Likewise.
5924 (vec_pack_trunc_df): Likewise.
5926 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5928 * config/aarch64/aarch64-builtins.c
5929 (aarch64_fold_builtin): Fold float conversions.
5930 * config/aarch64/aarch64-simd-builtins.def
5931 (floatv2si, floatv4si, floatv2di): New.
5932 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5933 * config/aarch64/aarch64-simd.md
5934 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5935 * config/aarch64/iterators.md (FLOATUORS): New.
5936 (optab): Add float, floatuns.
5937 (su_optab): Likewise.
5939 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5941 * config/aarch64/aarch64-builtins.c
5942 (aarch64_builtin_vectorized_function): Use new names for
5944 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5945 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5946 (fcvtzu): Split as...
5947 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5948 (fcvtas): Split as...
5949 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5950 (fcvtau): Split as...
5951 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5952 (fcvtps): Split as...
5953 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5954 (fcvtpu): Split as...
5955 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5956 (fcvtms): Split as...
5957 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5958 (fcvtmu): Split as...
5959 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5960 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5961 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5962 (lfrintnusf, lfrintnudf): Likewise.
5963 * config/aarch64/aarch64-simd.md
5964 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5966 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5967 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5968 (fcvt_pattern): Likewise.
5970 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5972 * config/aarch64/aarch64-simd.md
5973 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5974 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5976 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5978 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5979 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5980 (vrnd<a,m,n,p>_f32): Implement using builtins.
5981 (vrnd<i,x><q>_f<32, 64>): New.
5983 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5985 * config/aarch64/aarch64-builtins.c
5986 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5987 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5988 (frintz): Rename to...
5990 (frintp): Rename to...
5992 (frintm): Rename to...
5994 (frinti): Rename to...
5995 (nearbyint): ...this.
5996 (frintx): Rename to...
5998 (frinta): Rename to...
6000 * config/aarch64/aarch64-simd.md
6001 (aarch64_frint<frint_suffix><mode>): Delete.
6002 (<frint_pattern><mode>2): Convert to insn.
6003 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
6004 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
6005 (frint_pattern): Likewise.
6006 (frint_suffix): Likewise.
6008 2013-04-29 Richard Biener <rguenther@suse.de>
6010 PR tree-optimization/57081
6011 * loop-init.c: Include tree-flow.h.
6012 (loop_optimizer_finalize): Free number of iteration estimates.
6013 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
6015 2013-04-29 Jakub Jelinek <jakub@redhat.com>
6017 PR tree-optimization/57083
6018 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
6019 non-singleton shift count range, zero extend low_bound for uns case.
6021 * config/i386/predicates.md (general_vector_operand): New predicate.
6022 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
6023 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
6024 if they aren't nonimmediate operands. If their original values
6025 satisfy const_vector_equal_evenodd_p, don't shift them.
6026 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6027 predicates. For the SSE4.1 case force operands[{1,2}] into registers
6028 if not nonimmediate_operand.
6029 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6030 instead of register_operand.
6031 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6033 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
6035 * stor-layout.c (finalize_size_functions): Allocate a structure and
6036 reset cfun before dumping the functions.
6038 2013-04-27 Jakub Jelinek <jakub@redhat.com>
6040 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6043 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6044 use xop_pmacsdqh if uns_p.
6045 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6046 the immediate rotate count.
6048 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
6050 * rtl.h (struct rtx_def): Add comment for field jump.
6051 (LRA_SUBREG_P): New macro.
6052 * recog.c (register_operand): Check LRA_SUBREG_P.
6053 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6055 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6056 (lra_final_code_change): Skip subreg change for operators.
6057 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6058 if there are no operand changes.
6059 * lra-constraints.c (curr_insn_set): New.
6060 (match_reload): Set LRA_SUBREG_P.
6061 (emit_spill_move): Ditto.
6062 (check_and_process_move): Use curr_insn_set. Process only single
6063 set insns. Don't initialize sec_mem_p and change_p.
6064 (simplify_operand_subreg): Use LRA_SUBREG_P.
6065 (reg_in_class_p): New function.
6066 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6067 of #ifdef. Add code to remove cycling.
6068 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6069 non-null disp. Reload inner instead of disp when base and index
6070 are null. Try to put lo_sum into register.
6071 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6072 (check_and_process_move): Move code for move cost check to
6073 simple_move_p. Remove equiv_substitution.
6074 (simple_move_p): New function.
6075 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6076 curr_insn_set. Call check_and_process_move only for single set
6077 insns. Use the new function. Move call of check_and_process_move
6078 after operand equiv substitution and address process.
6080 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6083 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6084 with nonlocal goto receivers or returns twice calls, ignore
6085 unininitialized values from abnormal edges to nl goto receiver
6086 or returns twice call.
6088 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6090 PR tree-optimization/57051
6091 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6092 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6095 2013-04-26 Richard Biener <rguenther@suse.de>
6097 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6098 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6099 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6100 (fixup_loop_arrays_after_move): New function.
6101 (move_sese_region_to_fn): Properly outline the loop tree parts
6104 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
6106 * config/i386/i386.md (type, unit): Fix long lines.
6108 2013-04-26 Richard Biener <rguenther@suse.de>
6110 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6111 (lto-streamer-out.o): Likewise.
6112 * cfgloop.c (init_loops_structure): Export, add struct function
6113 argument and adjust.
6114 (flow_loops_find): Adjust.
6115 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6116 (init_loops_structure): Declare.
6117 * lto-streamer-in.c: Include cfgloop.h.
6118 (input_cfg): Input the loop tree.
6119 * lto-streamer-out.c: Include cfgloop.h.
6120 (output_cfg): Output the loop tree.
6121 (output_struct_function_base): Do not drop PROP_loops.
6123 2013-03-26 Richard Biener <rguenther@suse.de>
6125 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6126 (pass_build_cfg): Provide PROP_loops.
6127 (move_sese_region_to_fn): Remove loops that are outlined into fn
6129 * tree-inline.c: Include cfgloop.h.
6130 (initialize_cfun): Do not drop PROP_loops.
6131 (copy_loops): New function.
6132 (copy_cfg_body): Copy loop structure.
6133 (tree_function_versioning): Initialize destination loop tree.
6134 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6135 (pass_parallelize_loops): Do IL verification.
6136 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6137 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6138 the CFG make sure we fixup loops as well.
6139 * tree-ssa-tail-merge.c: Include cfgloop.h.
6140 (replace_block_by): When merging loop latches mark loops for fixup.
6141 * lto-streamer-out.c (output_struct_function_base): Drop
6143 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6144 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6145 * ipa-split.c: Include cfgloop.h.
6146 (split_function): Add the new return block to the loop tree root.
6147 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6148 whether we have removed the forwarder block.
6149 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6150 * cfgloop.h (place_new_loop): Declare.
6151 * cfgloopmanip.c (place_new_loop): Export.
6152 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6153 (tree-switch-conversion.o): Likewise.
6154 (tree-complex.o): Likewise.
6155 (tree-inline.o): Likewise.
6156 (tree-ssa-tailmerge.o): Likewise.
6157 (ipa-split.o): Likewise.
6158 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6159 (tree-ssa-copy.o): Likewise.
6160 * tree-switch-conversion.c: Include cfgloop.h
6161 (process_switch): If we emit a bit-test cascade, schedule loops
6163 * tree-complex.c: Include cfgloop.h.
6164 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6165 * asan.c: Include cfgloop.h.
6166 (create_cond_insert_point): Properly add new basic-blocks to
6167 loops, schedule loop fixup.
6168 * cfgloop.c (verify_loop_structure): Check that looks are not
6170 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6172 (expand_omp_for_generic): Likewise.
6173 (expand_omp_sections): Likewise.
6174 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6175 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6176 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6177 is initialized, not when loops are present.
6178 * tree-parloops.c (parallelize_loops): Remove checking here.
6179 * passes.c (init_optimization_passes): Schedule a copy-propagation
6180 pass before complete unrolling of inner loops.
6182 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6184 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6185 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6186 (colorize_init): Add argument to _WIN32 version.
6187 * toplev.c: Include diagnostic-color.h.
6188 (process_options): Default to -fdiagnostics-color=auto if
6189 GCC_COLORS env var is in the environment.
6190 * common.opt (fdiagnostics-color=): Add Var and Init.
6191 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6192 env var is in the environment, the default is auto rather than never.
6194 * diagnostic.h (file_name_as_prefix): Add context argument.
6195 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6196 the string as locus.
6197 * langhooks.c (lhd_print_error_function): Adjust caller.
6199 2013-04-25 Lawrence Crowl <crowl@google.com>
6201 * var-tracking.c (shared_hash_def::htab):
6202 Change type to hash_table. Update dependent calls and types.
6204 2013-04-25 Lawrence Crowl <crowl@google.com>
6206 * Makefile.in: Update as needed below.
6208 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6209 Move declaration to after the type's method definitons.
6211 * attribs.c (htab_t scoped_attributes::attribute_hash):
6212 Change type to hash_table. Update dependent calls and types.
6214 * bitmap.c (htab_t bitmap_desc_hash):
6215 Change type to hash_table. Update dependent calls and types.
6217 * cselib.c (htab_t cselib_hash_table):
6218 Change type to hash_table. Update dependent calls and types.
6220 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6221 (hash_string_slot_node): Move implementation into lto-streamer.h
6222 struct string_slot_hasher.
6223 (eq_string_slot_node): Likewise.
6225 * data-streamer-out.c: Update output_block::string_hash_table
6226 dependent calls and types.
6228 * dwarf2cfi.c (htab_t trace_index):
6229 Change type to hash_table. Update dependent calls and types.
6231 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6232 Change type to hash_table. Update dependent calls and types.
6233 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6234 (htab_t optimize_external_refs::map): Likewise.
6235 (htab_t output_comp_unit::extern_map): Likewise.
6236 (htab_t output_comdat_type_unit::extern_map): Likewise.
6237 (htab_t output_macinfo::macinfo_htab): Likewise.
6238 (htab_t optimize_location_lists::htab): Likewise.
6239 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6241 * except.c (htab_t ehspec_hash_type):
6242 Change type to hash_table. Update dependent calls and types.
6243 (assign_filter_values::ttypes): Likewise.
6244 (assign_filter_values::ehspec): Likewise.
6245 (sjlj_assign_call_site_values::ar_hash): Likewise.
6246 (convert_to_eh_region_ranges::ar_hash): Likewise.
6248 * gcse.c (htab_t pre_ldst_table):
6249 Change type to hash_table. Update dependent calls and types.
6251 * ggc-common.c (htab_t saving_htab):
6252 Change type to hash_table. Update dependent calls and types.
6253 (htab_t loc_hash): Likewise.
6254 (htab_t ptr_hash): Likewise.
6255 (call_count): Rename ggc_call_count.
6256 (call_alloc): Rename ggc_call_alloc.
6257 (loc_descriptor): Rename make_loc_descriptor.
6258 (add_statistics): Rename ggc_add_statistics.
6260 * ggc-common.c (saving_htab):
6261 Change type to hash_table. Update dependent calls and types.
6263 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6264 (push_gimplify_context): Likewise.
6265 (pop_gimplify_context): Likewise.
6266 (struct gimple_temp_hash_elt): Added.
6267 (struct gimplify_hasher): Likewise.
6268 (struct gimplify_ctx.temp_htab):
6269 Change type to hash_table. Update dependent calls and types.
6271 * gimple-fold.c: Include gimplify-ctx.h.
6273 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6274 Change type to hash_table. Update dependent calls and types.
6275 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6276 avoid potential global name collision.
6278 * gimplify.c: Include gimplify-ctx.h.
6279 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6280 (htab_t gimplify_ctx::temp_htab):
6281 Update dependent calls and types for new type hash_table.
6282 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6283 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6285 * gimplify-ctx.h: New.
6286 (struct gimple_temp_hash_elt): Move from gimplify.c.
6287 (class gimplify_hasher): New.
6288 (struct gimplify_ctx): Move from gimple.h.
6289 (htab_t gimplify_ctx::temp_htab):
6290 Change type to hash_table. Update dependent calls and types.
6292 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6293 (htab_t ivs_params::newivs_index):
6294 Change type to hash_table. Update dependent calls and types.
6295 (htab_t ivs_params::params_index): Likewise.
6296 (htab_t print_generated_program::params_index): Likewise.
6297 (htab_t gloog::newivs_index): Likewise.
6298 (htab_t gloog::params_index): Likewise.
6300 * graphite.c: Include graphite-htab.h.
6301 4htab_t graphite_transform_loops::bb_pbb_mapping):
6302 Change type to hash_table. Update dependent calls and types.
6304 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6305 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6306 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6308 * graphite-dependences.c: Include graphite-htab.h.
6309 (loop_is_parallel_p): Change hash table type of parameter.
6311 * graphite-htab.h: New.
6312 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6313 (extern find_pbb_via_hash): Move from graphite-poly.h.
6314 (extern loop_is_parallel_p): Move from graphite-poly.h.
6315 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6317 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6318 (extern loop_is_parallel_p): Move to graphite-htab.h.
6319 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6321 * haifa-sched.c (htab_t delay_htab):
6322 Change type to hash_table. Update dependent calls and types.
6323 (htab_t delay_htab_i2): Likewise.
6325 * ira-color.c (htab_t allocno_hard_regs_htab):
6326 Change type to hash_table. Update dependent calls and types.
6328 * ira-costs.c (htab_t cost_classes_htab):
6329 Change type to hash_table. Update dependent calls and types.
6331 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6332 Change type to hash_table. Update dependent calls and types.
6334 * loop-iv.c (htab_t bivs):
6335 Change type to hash_table. Update dependent calls and types.
6337 * loop-unroll.c (htab_t opt_info::insns_to_split):
6338 Change type to hash_table. Update dependent calls and types.
6339 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6341 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6342 (struct string_slot_hasher): New.
6343 (htab_t output_block::string_hash_table):
6344 Change type to hash_table. Update dependent calls and types.
6346 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6347 (htab_t file_name_hash_table):
6348 Change type to hash_table. Update dependent calls and types.
6350 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6353 * lto-streamer.c (htab_t tree_htab):
6354 Change type to hash_table. Update dependent calls and types.
6356 * omp-low.c: Include gimplify-ctx.h.
6358 * passes.c (htab_t name_to_pass_map):
6359 Change type to hash_table. Update dependent calls and types.
6360 (pass_traverse): Rename to passes_pass_traverse.
6362 * plugin.c (htab_t event_tab):
6363 Change type to hash_table. Update dependent calls and types.
6365 * postreload-gcse.c (htab_t expr_table):
6366 Change type to hash_table. Update dependent calls and types.
6367 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6369 * sese.c (debug_rename_map_1): Make extern.
6370 (htab_t copy_bb_and_scalar_dependences::rename_map):
6371 Change type to hash_table. Update dependent calls and types.
6373 * sese.h (extern debug_rename_map): Move to .c file.
6375 * store-motion.c (htab_t store_motion_mems_table):
6376 Change type to hash_table. Update dependent calls and types.
6378 * trans-mem.c (htab_t tm_new_mem_hash):
6379 Change type to hash_table. Update dependent calls and types.
6381 * tree-browser.c (htab_t TB_up_ht):
6382 Change type to hash_table. Update dependent calls and types.
6384 * tree-cfg.c (htab_t discriminator_per_locus):
6385 Change type to hash_table. Update dependent calls and types.
6387 * tree-complex.c: Include tree-hasher.h
6388 (htab_t complex_variable_components):
6389 Change type to hash_table. Update dependent calls and types.
6391 * tree-eh.c (htab_t finally_tree):
6392 Change type to hash_table. Update dependent calls and types.
6394 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6395 struct int_tree_hasher.
6396 (extern int_tree_map_eq): Likewise.
6397 (uid_decl_map_hash): Removed.
6398 (extern decl_tree_map_eq): Likewise.
6400 * tree-hasher.h: New.
6401 (struct int_tree_hasher): New.
6402 (typedef int_tree_htab_type): New.
6404 * tree-inline.c: Include gimplify-ctx.h.
6406 * tree-mudflap.c: Include gimplify-ctx.h.
6408 * tree-parloops.c: Include tree-hasher.h.
6409 (htab_t eliminate_local_variables_stmt::decl_address):
6410 Change type to hash_table. Update dependent calls and types.
6411 (htab_t separate_decls_in_region::decl_copies): Likewise.
6413 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6414 Change type to hash_table. Update dependent calls and types.
6416 * tree-sra.c (candidates):
6417 Change type to hash_table. Update dependent calls and types.
6419 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6421 (int_tree_map_hash): Likewise.
6423 * tree-ssa-dom.c (htab_t avail_exprs):
6424 Change type to hash_table. Update dependent calls and types.
6426 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6427 Change type to hash_table. Update dependent calls and types.
6429 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6430 Change type to hash_table. Update dependent calls and types.
6432 * tree-ssa-phiopt.c (seen_ssa_names):
6433 Change type to hash_table. Update dependent calls and types.
6435 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6436 Change type to hash_table. Update dependent calls and types.
6438 * tree-ssa-uncprop.c (equiv):
6439 Change type to hash_table. Update dependent calls and types.
6441 2013-04-25 Jakub Jelinek <jakub@redhat.com>
6443 PR rtl-optimization/57003
6444 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6445 call note_stores with kill_clobbered_value callback again after
6446 killing regs_invalidated_by_call.
6448 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6450 * config/aarch64/aarch64-simd.md
6451 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6452 (aarch64_simd_bsl<mode>): Likewise.
6453 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6455 2013-04-25 Marek Polacek <polacek@redhat.com>
6457 PR tree-optimization/57066
6458 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6460 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6462 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6464 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6466 * config/aarch64/aarch64-builtins.c
6467 (aarch64_fold_builtin): New.
6468 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6469 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6470 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6471 * config/aarch64/arm_neon.h
6472 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6474 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6475 Tejas Belagod <tejas.belagod@arm.com>
6477 * config/aarch64/aarch64-builtins.c
6478 (aarch64_gimple_fold_builtin): New.
6479 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6480 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6481 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6483 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6485 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6487 * config/aarch64/aarch64.md
6488 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6490 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6492 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6493 (*ngcsi_uxtw): New pattern.
6495 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6496 Julian Brown <julian@codesourcery.com>
6498 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6499 (TB_DREG): Add T_V4HF.
6500 (v4hf_UP): New macro.
6501 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6502 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6503 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6505 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6506 (arm_vector_mode_supported_p): Handle V4HF.
6507 (arm_mangle_map): Handle V4HFmode.
6508 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6509 * config/arm/arm_neon_builtins.def: Add entries for
6510 vcvtv4hfv4sf, vcvtv4sfv4hf.
6511 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6512 (neon_vcvtv4hfv4sf): Likewise.
6513 * config/arm/neon-gen.ml: Handle half-precision floating point
6515 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6516 * config/arm/arm_neon.h: Regenerate.
6517 * config/arm/neon.ml (type elts): Add F16.
6518 (type vectype): Add T_float16x4, T_floatHF.
6519 (type vecmode): Add V4HF.
6520 (type features): Add Requires_FP_bit feature.
6521 (elt_width): Handle F16.
6522 (elt_class): Likewise.
6523 (elt_of_class_width): Likewise.
6524 (mode_of_elt): Refactor.
6525 (type_for_elt): Handle F16, fix error messages.
6526 (vectype_size): Handle T_float16x4.
6527 (vcvt_sh): New function.
6528 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6529 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6530 (string_of_mode): Handle V4HF.
6531 * doc/arm-neon-intrinsics.texi: Regenerate.
6533 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6535 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6536 format specifier in 'X' case.
6538 2013-04-25 Alan Modra <amodra@gmail.com>
6541 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6542 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6543 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6544 Repeat for many other rotate/shift and mask patterns using subregs.
6545 Name lshiftrt insns.
6546 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6547 on WORDS_BIG_ENDIAN.
6549 2013-04-25 Alan Modra <amodra@gmail.com>
6551 * config.gcc: Support little-endian powerpc-linux targets.
6552 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6553 (LINK_OS_LINUX_SPEC): Define.
6554 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6555 Preserve MASK_LITTLE_ENDIAN.
6556 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6557 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6558 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6559 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6560 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6561 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6562 Correct fp word order for little-endian. Don't shift toc entries
6563 smaller than a word for little-endian.
6564 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6565 (bswapdi2 splits): Correct low-part subreg for little-endian.
6566 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6567 low/high where such is correct only for be.
6568 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6569 little-endian for -mcall-aixdesc.
6571 2013-04-25 Alan Modra <amodra@gmail.com>
6573 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6574 replace_equiv_address_nv.
6576 2013-04-25 Alan Modra <amodra@gmail.com>
6578 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6580 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6583 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6584 * rtl.h (struct rtx_def): ...
6586 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6588 PR rtl-optimizations/57046
6589 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6590 for multi-reg splits.
6592 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6594 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6596 2013-04-24 Sterling Augustine <saugustine@google.com>
6598 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6599 (comp_dir_string, debug_str_dwo_section): New.
6600 (DEBUG_STR_DWO_SECTION): Rename to ...
6601 (DEBUG_DWO_STR_SECTION): ... this.
6602 (DEBUG_NORM_STR_SECTION): Delete.
6603 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6604 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6605 (find_AT_string): Move most logic to ...
6606 (find_AT_string_in_table): ... here. New.
6607 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6608 add_skeleton_AT_string. Delete logic.
6609 (output_skeleton_debug_sections): Remove call to
6610 add_top_level_skeleton_die_attrs.
6611 (add_comp_dir_attribute): Move logic to comp_dir_string.
6612 (dwarf2out_init): Initialize debug_str_dwo_section.
6613 (output_indirect_string): Call find_string_form.
6614 (output_indirect_strings): Rewrite.
6615 (prune_unused_types): Empty skeleton_debug_str_hash.
6616 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6617 (dwarf2out_finish): Call output_indirect_strings.
6619 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6621 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6623 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6625 * rtl.h (struct rtx_def): Add comment for field jump.
6626 (LRA_SUBREG_P): New macro.
6627 * recog.c (register_operand): Check LRA_SUBREG_P.
6628 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6630 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6631 (lra_final_code_change): Skip subreg change for operators.
6632 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6633 if there are no operand changes.
6634 * lra-constraints.c (curr_insn_set): New.
6635 (match_reload): Set LRA_SUBREG_P.
6636 (emit_spill_move): Ditto.
6637 (check_and_process_move): Use curr_insn_set. Process only single
6638 set insns. Don't initialize sec_mem_p and change_p.
6639 (simplify_operand_subreg): Use LRA_SUBREG_P.
6640 (reg_in_class_p): New function.
6641 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6642 of #ifdef. Add code to remove cycling.
6643 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6644 non-null disp. Reload inner instead of disp when base and index
6645 are null. Try to put lo_sum into register.
6646 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6647 (check_and_process_move): Move code for move cost check to
6648 simple_move_p. Remove equiv_substitution.
6649 (simple_move_p): New function.
6650 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6651 curr_insn_set. Call check_and_process_move only for single set
6652 insns. Use the new function. Move call of check_and_process_move
6653 after operand equiv substitution and address process.
6655 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6657 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6658 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6659 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6661 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6663 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6665 2013-04-24 Marek Polacek <polacek@redhat.com>
6667 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6668 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6669 (select_loops_exit_conditions): Likewise.
6670 (number_of_iterations_for_all_loops): Likewise.
6671 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6672 (scev_analysis): Likewise.
6674 2013-04-02 Catherine Moore <clm@codesourcery.com>
6675 Chao-ying Fu <fu@mips.com>
6677 * config/mips/micromips.md (jraddiusp): New pattern.
6678 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6679 instruction if possible.
6681 2013-04-24 Alan Modra <amodra@gmail.com>
6683 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6685 2013-04-24 Julian Brown <julian@codesourcery.com>
6686 Chung-Lin Tang <cltang@codesourcery.com>
6688 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6689 dependency behavior in enumeration type DIE generation. Add TODO note
6690 to comments about future DW_FORM_sdata/udata re-work of related code.
6692 2013-04-23 Lawrence Crowl <crowl@google.com>
6694 * Makefile.in: Update as needed below.
6696 * hash-table.h (class hash_table):
6697 Correct many methods with parameter types compare_type to the correct
6698 value_type. (Correct code was unlikely to notice the change.)
6699 (hash_table::elements_with_deleted) New.
6700 (class hashtable::iterator): New.
6701 (hashtable::begin()): New.
6702 (hashtable::end()): New.
6703 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6705 * statistics.c (statistics_hashes):
6706 Change type to hash_table. Update dependent calls and types.
6708 * tree-into-ssa.c (var_infos):
6709 Change type to hash_table. Update dependent calls and types.
6711 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6712 Change type to hash_table. Update dependent calls and types.
6714 * tree-ssa-loop-im.c (struct mem_ref.refs):
6715 Change type to hash_table. Update dependent calls and types.
6717 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6718 Change type to hash_table. Update dependent calls and types.
6720 * tree-ssa-sccvn.c (vn_tables_s::nary):
6721 Change type to hash_table. Update dependent calls and types.
6722 (vn_tables_s::phis): Likewise.
6723 (vn_tables_s::references): Likewise.
6725 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6726 (vn_reference_eq): Update parameter and return types.
6728 * tree-ssa-structalias.c (pointer_equiv_class_table):
6729 Change type to hash_table. Update dependent calls and types.
6730 (location_equiv_class_table): Likewise.
6732 * tree-vect-data-refs.c: Consequential changes for making
6733 peeling a hash_table.
6735 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6736 (destroy_loop_vec_info): Dependent hash_table update.
6738 * tree-vectorizer.h (peeling_htab):
6739 Change type to hash_table. Update dependent calls and types.
6741 2013-04-23 Shiva Chen <shiva0217@gmail.com>
6743 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6744 to check the register content is equal or not.
6745 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6746 to assign register content record.
6747 * lra-eliminations.c (update_reg_eliminate): Use
6748 lra_update_reg_val_offset to update register content offset.
6749 * lra-int.h (struct lra_reg): Add offset member.
6750 (lra_reg_val_equal_p): New static inline function.
6751 (lra_update_reg_val_offset): New static inline function.
6752 (lra_assign_reg_val): New static inline function.
6753 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6754 to assign register content record.
6755 (initialize_lra_reg_info_element): Initial offset to zero.
6757 2013-04-23 Catherine Moore <clm@codesourcery.com>
6759 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6760 operands. Record compression.
6762 2013-04-23 Xinliang David Li <davidxl@google.com>
6764 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6766 2013-04-23 Richard Biener <rguenther@suse.de>
6769 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6770 parameter, only add abnormal goto edges from the copied body
6771 if the call could perform abnormal gotos.
6772 (copy_cfg_body): Adjust.
6774 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6776 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6778 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6780 * coretypes.h (gimple_stmt_iterator): Add struct to make
6783 2013-04-23 Richard Biener <rguenther@suse.de>
6785 PR tree-optimization/57026
6786 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6787 from SSA names occuring in abnormal PHI nodes.
6789 2013-04-22 Andi Kleen <ak@linux.intel.com>
6791 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6793 2013-04-22 Andi Kleen <ak@linux.intel.com>
6795 * lto/lto.c (print_lto_report_1): Declare early.
6796 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6798 2013-04-22 Andi Kleen <ak@linux.intel.com>
6800 * common.opt (-flto-report-wpa): Add.
6801 * doc/invoke.texi (-flto-report-wpa): Add.
6802 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6805 2013-04-22 Xinliang David Li <davidxl@google.com>
6807 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6808 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6809 * Makefile.in: New dependency
6811 David Daney <ddaney.cavm@gmail.com>
6813 * configure.ac (gcc_cv_as_micromips_support): Use the
6814 --fatal-warnings option.
6815 * configure: Regenerate.
6817 2013-04-22 Marek Polacek <polacek@redhat.com>
6820 * tsan.c (instrument_expr): Don't instrument expression
6821 in case its size is zero.
6823 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
6827 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6829 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6831 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6833 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6834 (gimple_stmt_iterator): New typedef.
6835 * gimple.h (gimple_stmt_iterator): Rename to...
6836 (gimple_stmt_iterator_d): ... This.
6837 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6838 trees be valid for GIMPLE and GENERIC.
6839 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6840 * gimple-fold.c (gimple_fold_call): Call target hook
6841 gimple_fold_builtin.
6842 * hooks.c (hook_bool_gsiptr_false): New.
6843 * hooks.h (hook_bool_gsiptr_false): New.
6844 * target.def (fold_stmt): New.
6845 * doc/tm.texi: Regenerate.
6847 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6850 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6851 a set sp if no stack realignment.
6853 2013-04-22 Nick Clifton <nickc@redhat.com>
6855 * config.gcc (tilegx-linux): Extend extra_objs rather than
6857 (tilepro-linux): Likewise.
6859 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6861 * config/aarch64/aarch64-builtins.c
6863 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6864 (VAR<1-12>): Add MAP parameter.
6865 (BUILTIN_*): Likewise.
6866 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6867 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6868 (aarch64_ushl_n<mode>): Likewise.
6869 (aarch64_sshr_n<mode>): Likewise.
6870 (aarch64_ushr_n<mode>): Likewise.
6871 (aarch64_<maxmin><mode>): Likewise.
6872 (aarch64_sqrt<mode>): Likewise.
6873 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6874 (vshr<q>_n_*): Likewise.
6876 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6878 * config/aarch64/aarch64-builtins.c
6879 (aarch64_simd_builtin_type_mode): Handle SF types.
6881 (BUILTIN_GPF): Define.
6882 (aarch64_init_simd_builtins): Handle SF types.
6883 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6886 * config/aarch64/aarch64-simd.md
6887 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6888 (aarch64_frecpe<mode>): New.
6889 (aarch64_frecps<mode>): Likewise.
6890 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6891 (v8type): Add frecp<esx>.
6892 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6893 (aarch64_frecps<mode>): Likewise.
6894 * config/aarch64/iterators.md (FRECP): New.
6895 (frecp_suffix): Likewise.
6896 * config/aarch64/arm_neon.h
6897 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6899 2013-04-22 Christian Bruel <christian.bruel@st.com>
6902 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6903 (REG_CLASS_NAMES): Idem.
6904 (REG_CLASS_CONTENTS): Idem.
6905 (REGCLASS_HAS_FP_REG): Idem.
6906 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6907 (sh_conditional_register_usage): Idem.
6909 2013-04-21 Jeff Law <law@redhat.com>
6911 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6912 (ssa_forward_propagate_and_combine): Use it.
6914 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6916 * lra.c: Update the flow chart diagram.
6918 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6920 PR rtl-optimization/56847
6921 * lra-constraints.c (process_alt_operands): Discourage alternative
6922 with non-matche doffsettable memory constraint fro memory with
6925 2013-04-19 Richard Biener <rguenther@suse.de>
6927 PR tree-optimization/56982
6928 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6930 * gimplify.c (gimplify_call_expr): Notice special calls.
6931 (gimplify_modify_expr): Likewise.
6932 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6933 abnormal control flow receivers.
6934 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6935 in the same way as cfun->has_nonlocal_labels.
6936 (gimple_purge_dead_abnormal_call_edges): Likewise.
6937 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6938 receivers start a basic-block.
6940 2013-04-19 Richard Biener <rguenther@suse.de>
6942 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6944 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6945 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6946 (SLP_TREE_LOAD_PERMUTATION): Add.
6947 (vect_transform_slp_perm_load): Adjust prototype.
6948 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6949 (vect_free_slp_instance): Likewise.
6950 (vect_create_new_slp_node): Likewise.
6951 (vect_supported_slp_permutation_p): Remove.
6952 (vect_slp_rearrange_stmts): Adjust.
6953 (vect_supported_load_permutation_p): Likewise. Inline
6954 vect_supported_slp_permutation_p here.
6955 (vect_analyze_slp_instance): Compute load permutations per
6956 slp node instead of per instance.
6957 (vect_get_slp_defs): Adjust.
6958 (vect_transform_slp_perm_load): Likewise.
6959 (vect_schedule_slp_instance): Remove redundant code.
6960 (vect_schedule_slp): Remove hack for PR56270, add it ...
6961 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6962 CSE loads for SLP. Adjust.
6964 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6966 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6967 spelling in two comments.
6969 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6972 * config/arm/arm.c (load_multiple_sequence): Require SP
6973 as base register for loads if SP is in the register list.
6975 2013-04-19 Martin Jambor <mjambor@suse.cz>
6977 PR tree-optimization/56718
6978 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6979 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6980 and made public. Adjusted all callers.
6981 (ipa_intraprocedural_devirtualization): New function.
6982 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6983 (ipa_intraprocedural_devirtualization): Likewise.
6984 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6986 2013-04-19 Richard Biener <rguenther@suse.de>
6988 PR tree-optimization/57000
6989 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6991 2013-04-19 Terry Guo <terry.guo@arm.com>
6993 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6995 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6996 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6997 (cortex_m4_fmacs): Use new reservations.
6998 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
7000 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
7002 PR rtl-optimization/56999
7003 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
7005 (lra_coalesce): Remove split_origin_bitmap and related code.
7006 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
7007 ranges if necessary.
7009 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
7011 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
7013 (ix86_expand_call): Remove clobbered_registers array and use
7014 x86_64_ms_sysv_extra_clobbered_registers instead.
7015 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
7017 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
7019 * config/i386/i386.md (*call_rex64_ms_sysv): Use
7020 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
7021 (*call_value_rex64_ms_sysv): Ditto.
7023 2013-04-18 Cary Coutant <ccoutant@google.com>
7025 * dwarf2out.c (output_pubnames): Check die_perennial_p of
7026 parent instead of die_mark.
7028 2013-04-18 Diego Novillo <dnovillo@google.com>
7030 * gimple.c (create_gimple_tmp): New.
7031 (get_expr_type): New.
7032 (build_assign): New.
7033 (build_type_cast): New.
7034 * gimple.h (enum ssa_mode): Define.
7035 (gimple_seq_set_location): New.
7036 * asan.c (build_check_stmt): Change some gimple_build_* calls
7037 to use build_assign and build_type_cast.
7039 2013-04-18 Richard Biener <rguenther@suse.de>
7041 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7042 handle negative step. Remove redundant checks.
7043 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7044 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7045 for negative step and grouped loads fail to vectorize.
7047 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7049 * emit-rtl.c (reset_insn_used_flags): New function.
7050 (reset_all_used_flags): Use it.
7051 (verify_insn_sharing): New function.
7052 (verify_rtl_sharing): Fix verification for SEQUENCEs.
7054 2013-04-18 Jakub Jelinek <jakub@redhat.com>
7056 PR tree-optimization/56984
7057 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7058 and (x >> M) >= N don't register any assertion if N << M is the
7061 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7063 * lower-subreg.c (resolve_simple_move): If called self-recursive,
7064 do not delete_insn insns that have not yet been emitted, only
7065 unlink them with remove_insn.
7066 * df-scan.c (df_insn_delete): Revert r197492.
7068 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
7070 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7071 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7073 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7075 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7076 define_insn_and_split.
7077 (and_scc,ior_scc,negscc): Likewise.
7078 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7080 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7082 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7083 can benefit from using a sequence of LDRD instructions in epilogue
7084 instead of a single LDM instruction.
7086 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7089 * doc/extend.texi: Fix typo.
7091 2013-04-17 Richard Biener <rguenther@suse.de>
7093 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7094 (vect_build_slp_tree): ... here.
7095 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7096 match. Remove special-casing of mismatched complex loads.
7097 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7098 re-try the match with swapped commutative operands.
7099 (vect_supported_load_permutation_p): Remove special-casing of
7100 mismatched complex loads.
7101 (vect_analyze_slp_instance): Adjust.
7103 2013-04-17 Richard Biener <rguenther@suse.de>
7105 PR rtl-optimization/56921
7106 * cfgloop.h (struct loop): Add simple_loop_desc member.
7107 (struct niter_desc): Mark with GTY(()).
7108 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7109 * loop-iv.c (get_simple_loop_desc): Likewise.
7110 (free_simple_loop_desc): Likewise.
7113 2013-04-16 Richard Biener <rguenther@suse.de>
7115 PR rtl-optimization/56921
7116 * loop-init.c (pass_rtl_move_loop_invariants): Add
7117 TODO_do_not_ggc_collect to todo_flags_finish.
7118 (pass_rtl_unswitch): Same.
7119 (pass_rtl_unroll_and_peel_loops): Same.
7120 (pass_rtl_doloop): Same.
7122 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7124 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7125 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7126 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7128 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7129 * tree-streamer.c (record_common_node): Adjust reference in comment.
7131 2013-04-17 Terry Guo <terry.guo@arm.com>
7133 * config/arm/cortex-m4.md: Add a new bypass.
7135 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7137 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7139 (*subs_<optab><mode>_multp2): New pattern.
7140 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7141 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7143 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7145 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7146 (*subs_mul_imm_<mode>): New pattern.
7148 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
7151 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7152 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7153 (vsx_movti_32bit): Change j->wa to O->wa.
7155 2013-04-16 Richard Biener <rguenther@suse.de>
7157 PR rtl-optimization/56921
7158 * loop-init.c (pass_rtl_move_loop_invariants): Add
7159 TODO_do_not_ggc_collect to todo_flags_finish.
7160 (pass_rtl_unswitch): Same.
7161 (pass_rtl_unroll_and_peel_loops): Same.
7162 (pass_rtl_doloop): Same.
7164 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
7166 * config/arm/arm.c (emit_multi_reg_push): New declaration
7167 for an existing function.
7168 (arm_emit_strd_push): New function.
7169 (arm_expand_prologue): Used here.
7170 (arm_emit_ldrd_pop): New function.
7171 (arm_expand_epilogue): Used here.
7172 (arm_get_frame_offsets): Update condition.
7173 (arm_emit_multi_reg_pop): Add a special case for load of a single
7174 register with writeback.
7176 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
7178 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7181 2013-04-16 Richard Biener <rguenther@suse.de>
7183 PR tree-optimization/56756
7184 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7185 (first_mem_ref_loc): New.
7186 (execute_sm): Place the load temporarily before a previous
7187 access instead of in the latch edge to ensure its SSA dependencies
7188 are defined at points dominating the load.
7190 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7192 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7193 correct fix by moving header and footer insn to the footer of
7194 the merged basic block. Clear BB_END of the merged-away block.
7197 * emit-rtl.c (make_note_raw): New function.
7198 (link_insn_into_chain): New static inline function.
7200 (add_insn_before, add_insn_after): Factor insn chain linking code...
7201 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7202 using link_insn_into_chain.
7203 (note_outside_basic_block_p): New helper function for emit_note_after
7204 and emit_note_before.
7205 (emit_note_after): Use nobb variant of add_insn_after if the note
7206 should not be contained in a basic block.
7207 (emit_note_before): Use nobb variant of add_insn_before if the note
7208 should not be contained in a basic block.
7209 (emit_note_copy): Use make_note_raw.
7210 (emit_note): Likewise.
7211 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7212 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7213 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7214 the moved barrier the tail of the basic block it follows.
7215 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7217 2013-04-15 Jakub Jelinek <jakub@redhat.com>
7219 PR tree-optimization/56962
7220 * gimple-ssa-strength-reduction.c (record_increment): Only set
7221 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7222 either rhs1 or rhs2 is equal to c->base_expr.
7224 2013-04-15 Richard Biener <rguenther@suse.de>
7226 PR tree-optimization/56933
7227 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7229 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7230 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7231 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7232 dependence check ...
7233 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7235 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7236 GROUP_READ_WRITE_DEPENDENCE.
7238 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7240 * emit-rtl.c (reset_all_used_flags): New function.
7241 (verify_rtl_sharing): Call reset_all_used_flags before and after
7242 performing the checks.
7244 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7246 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7247 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7248 * config/arm/constraints.md (De): New constraint.
7249 * config/arm/neon.md (anddi3_neon): Delete.
7250 (neon_vand<mode>): Expand to standard anddi3 pattern.
7251 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7252 Move earlier in the file.
7253 (neon_inv_logic_op2): Likewise.
7254 (arm_anddi_operand_neon): New predicate.
7256 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7258 * configure.ac (gcc_cv_ld_as_needed): Set
7259 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7260 Use -z ignore, -z record on *-*-solaris2*.
7261 (HAVE_LD_AS_NEEDED): Update comment.
7262 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7263 * configure: Regenerate.
7264 * config.in: Regenerate.
7265 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7266 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7267 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7268 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7269 equivalents. Fix markup.
7270 * doc/tm.texi: Regenerate.
7272 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7274 * config/i386/i386.opt: New option mstack-protector-guard=.
7275 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7276 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7277 TARGET_SSP_TLS_GUARD.
7278 * config/i386/i386.c (ix86_option_override_internal): Set
7279 ix86_stack_protector_guard.
7280 * config/i386/i386.md (stack_protect_set): Enable for
7281 TARGET_SSP_TLS_GUARD only.
7282 (stack_protect_set_<mode>): Ditto.
7283 (stack_protect_test): Ditto.
7284 (stack_protect_test_<mode>): Ditto.
7285 * doc/invoke.texi (i386 Option): Document.
7287 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7290 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7291 (S_MODES): Set H_MODE bit.
7292 (SF_MODES): Set only S_MODE and SF_MODE bits.
7293 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7294 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7295 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7296 <MODE_FLOAT>: Likewise.
7298 2013-04-15 Joey Ye <joey.ye@arm.com>
7300 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7302 2013-04-15 Joey Ye <joey.ye@arm.com>
7304 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7306 (thumb_far_jump_used_p): Count instruction size and set
7309 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7311 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7312 * resource.c (mark_target_live_regs): Reformat conditional block.
7314 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7316 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7317 notes, they are emitted only just before final.
7318 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7320 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7322 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7323 * cfgrtl.c (delete_insn): Call it here instead.
7324 * lra-spills.c (lra_final_code_change): Use delete_insn.
7325 * haifa-sched.c (sched_remove_insn): Likewise.
7326 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7327 returning to the nop pool.
7328 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7329 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7331 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7333 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7334 * doc/tm.texi: Regenerated.
7336 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
7338 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7341 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7343 * df-core.c (df_find_def): Compare register numbers.
7344 (df_find_use): Likewise.
7346 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7349 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7350 lra_in_progress for return.
7352 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7354 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7355 define_insn into define_insn_and_split and emit movsicc patterns.
7357 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7359 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7361 2013-04-12 Richard Biener <rguenther@suse.de>
7363 * tree-pass.h (TODO_do_not_ggc_collect): New.
7364 * passes.c (execute_one_ipa_transform_pass): Honor
7365 TODO_do_not_ggc_collect.
7366 (execute_one_pass): Likewise.
7369 2013-04-10 Richard Biener <rguenther@suse.de>
7371 * passes.c (init_optimization_passes): Remove reload pass.
7372 * ira.c (do_reload): Merge into ...
7374 (rest_of_handle_reload): Remove.
7375 (pass_reload): Likewise.
7376 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7377 of reload for vzeroupper pass placement.
7379 2013-04-12 Jakub Jelinek <jakub@redhat.com>
7381 PR tree-optimization/56918
7382 PR tree-optimization/56920
7383 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7384 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7385 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7386 use wide_mul_with_sign method.
7388 2013-04-12 Richard Biener <rguenther@suse.de>
7390 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7391 not be considered a gimple constant.
7393 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
7395 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7396 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7399 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7400 Jakub Jelinek <jakub@redhat.com>
7402 * opts.c: Include diagnostic-color.h.
7403 (common_handle_option): Handle OPT_fdiagnostics_color_.
7404 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7405 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7406 (diagnostic-color.o): New.
7407 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7408 (diagnostic_color_rule): New enum.
7409 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7410 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7411 the location string.
7412 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7413 either NULL, or color kind.
7414 * diagnostic-color.c: New file.
7415 * diagnostic-color.h: New file.
7416 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7418 * doc/invoke.texi (-fdiagnostics-color): Document.
7419 * pretty-print.h (pp_show_color): Define.
7420 (struct pretty_print_info): Add show_color field.
7421 * diagnostic.c: Include diagnostic-color.h.
7422 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7423 macros. Colorize error:, warning: etc. strings and also the location
7425 (diagnostic_show_locus): Colorize the caret line.
7426 * pretty-print.c: Include diagnostic-color.h.
7427 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7428 inside of %< %> quotes or quoted through q format modifier.
7430 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7432 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7434 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7436 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7438 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7441 2013-04-11 Marek Polacek <polacek@redhat.com>
7443 PR tree-optimization/48184
7444 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7446 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7448 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7449 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7450 (skip_simple_arithmetic): Tidy up.
7451 * tree.h (skip_simple_constant_arithmetic): Declare.
7453 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7455 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7457 2013-04-11 Richard Biener <rguenther@suse.de>
7459 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7460 generate vector constants.
7462 2013-04-11 Richard Biener <rguenther@suse.de>
7464 PR tree-optimization/56878
7465 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7466 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7468 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7469 Prefer to align the DR with the most invariant base address.
7471 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7473 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7476 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7478 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7479 floating-point vector comparisons against 0.
7481 2013-04-11 Jakub Jelinek <jakub@redhat.com>
7483 PR tree-optimization/56899
7484 * fold-const.c (extract_muldiv_1): Apply distributive law
7485 only if TYPE_OVERFLOW_WRAPS (ctype).
7487 2013-04-11 Bin Cheng <bin.cheng@arm.com>
7490 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7491 loading has side effect.
7493 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7495 * config/sparc/sparc.c: Include tree-pass.h.
7496 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7497 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7498 head of file. Change return type. Split off gate function.
7499 (sparc_gate_work_around_errata): New function.
7500 (pass_work_around_errata): New pass definition.
7501 (insert_pass_work_around_errata) New pass insert definition to
7502 insert pass_work_around_errata just after delayed-branch scheduling.
7503 (sparc_option_override): Insert the pass.
7504 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7506 2013-04-10 David S. Miller <davem@davemloft.net>
7508 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7509 or -mcpu=hypersparc.
7511 * target.def (cstore_mode): New hook.
7512 * target.h: Include insn-codes.h
7513 * targhooks.c: Likewise.
7514 (default_cstore_mode): New function.
7515 * targhooks.h: Declare it.
7516 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7517 * doc/tm.texi: Rebuild.
7518 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7519 target hook, rather than inspecting the insn_data.
7520 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7521 (TARGET_CSTORE_MODE): Redefine.
7522 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7524 * config/sparc/predicates.md (cstore_result_operand): New special
7526 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7527 Use it for operand 0.
7528 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7529 (*snesi_special): Likewise.
7530 (*snesi_zero): Likewise.
7531 (*seqsi_zero): Likewise.
7532 (*sltu_insn): Likewise.
7533 (*sgeu_insn): Likewise.
7534 (*seqdi_special): Make operand 0 and comparison operation be of
7536 (*snedi_special): Likewise.
7537 (*snedi_special_vis3): Likewise.
7538 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7539 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7540 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7541 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7542 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7543 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7544 (*sltu_extend_sp64): Likewise.
7545 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7546 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7547 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7548 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7549 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7551 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7553 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7554 (aarch64_start_file): Use the new function.
7556 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7557 Jason Merrill <jason@redhat.com>
7559 * common.opt: Add -gdwarf.
7560 * opts.c (common_handle_option): Handle it.
7561 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7563 2013-04-10 Richard Biener <rguenther@suse.de>
7565 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7566 (execute_one_ipa_transform_pass): But unconditionally here.
7567 (execute_one_pass): And here.
7568 (init_optimization_passes): Remove reload pass.
7569 * tree-pass.h (TODO_ggc_collect): Remove.
7570 (pass_reload): Likewise.
7571 * ira.c (do_reload): Merge into ...
7573 (rest_of_handle_reload): Remove.
7574 (pass_reload): Likewise.
7575 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7576 of reload for vzeroupper pass placement.
7577 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7578 and todo_flags_finish of all passes.
7580 2013-04-10 Richard Biener <rguenther@suse.de>
7582 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7583 first_const_oprnd field, rename first_def_type to first_op_type.
7584 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7585 (vect_get_and_check_slp_defs): Always use the type of the
7586 operand. Allow mixed vect_external_def, vect_constant_def types.
7587 (vect_get_constant_vectors): Handle mixed vect_external_def,
7588 vect_constant_def types.
7590 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7592 PR tree-optimization/55524
7593 * tree-ssa-math-opts.c
7594 (convert_mult_to_fma): Don't use an fms construct
7595 when we don't have an fms operation, but fnma, and it looks
7596 likely that we'll be able to use the latter.
7598 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7600 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7602 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7603 inline fail caused by overwritable functions.
7605 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7607 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7608 unnecessary bits in the constant power of two case.
7610 2013-04-10 Richard Biener <rguenther@suse.de>
7612 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7613 broken code swapping operands.
7614 (vect_build_slp_tree): Do not compute load permutations here.
7615 (vect_analyze_slp_instance): Compute load permutations here,
7616 after building the SLP tree.
7618 2013-04-09 Christian Bruel <christian.bruel@st.com>
7620 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7621 of next/prev_real_insn.
7623 2013-04-09 Jan Hubicka <jh@suse.cz>
7625 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7626 Drop aliased parameter.
7627 (function_and_variable_visibility): Do not handle alias pairs.
7628 * cgraph.c (varpool_externally_visible_p): Update prototype.
7629 * varpool.c (varpool_add_new_variable): Update.
7631 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7633 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7635 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7637 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7639 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7641 2013-04-09 Marek Polacek <polacek@redhat.com>
7643 PR tree-optimization/48762
7644 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7646 2013-04-09 Richard Biener <rguenther@suse.de>
7648 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7650 (vect_build_slp_tree): Likewise.
7651 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7652 calculating the cost of a SLP instance.
7653 (vect_analyze_slp_instance): Use it from here, after building
7656 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7659 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7660 expand_omp_for_static_chunk): Use simple_p = true in
7661 force_gimple_operand_gsi calls when assigning to addressable decls.
7663 2013-04-09 Jeff Law <law@redhat.com>
7665 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7666 when the boolean was created by converting a wider object which
7667 had a boolean range.
7669 2013-04-09 Richard Biener <rguenther@suse.de>
7671 * tree-vectorizer.h (slp_void_p): Remove.
7672 (slp_tree): Typedef before _slp_tree declaration.
7673 (struct _slp_tree): Use a vector of slp_tree as children.
7674 (vect_get_place_in_interleaving_chain): Remove.
7675 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7677 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7679 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7680 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7681 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7682 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7683 Use slp_node instead of slp_void_p and adjust.
7685 2013-04-09 Richard Biener <rguenther@suse.de>
7687 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7688 work that is not necessary.
7690 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7692 PR tree-optimization/56854
7693 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7694 forward into clobber stmts if it would change MEM_REF lhs into
7697 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7699 * tree.c (type_hash_lookup, type_hash_add): Make static.
7700 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7702 2013-04-09 Richard Biener <rguenther@suse.de>
7704 * tree.h (unsave_expr_now): Remove.
7705 * tree-inline.c (mark_local_for_remap_r): Remove.
7706 (unsave_expr_1): Likewise.
7707 (unsave_r): Likewise.
7708 (unsave_expr_now): Likewise.
7709 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7710 (propagate_tree_value): Likewise.
7712 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7714 * doc/rtl.texi (sequence): Rewrite documentation to match the
7715 current use of SEQUENCE rtl objects.
7716 * rtl.def (SEQUENCE): Likewise.
7718 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7719 Update documentation.
7720 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7721 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7723 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7725 2013-04-08 Teresa Johnson <tejohnson@google.com>
7727 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7728 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7730 (estimate_edge_size_and_time): Add comment to suggest using rounding
7732 (estimate_node_size_and_time): Ditto.
7733 (remap_edge_change_prob): Use helper rounding divide methods.
7734 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7735 (gimple_mod_pow2_value_transform): Ditto.
7736 (gimple_mod_subtract_transform): Ditto.
7737 (gimple_ic_transform): Ditto.
7738 (gimple_stringops_transform): Ditto.
7739 * stmt.c (conditional_probability): Ditto.
7740 (emit_case_dispatch_table): Ditto.
7741 * lto-cgraph.c (merge_profile_summaries): Ditto.
7742 * tree-optimize.c (execute_fixup_cfg): Ditto.
7743 * cfgcleanup.c (try_forward_edges): Ditto.
7744 * cfgloopmanip.c (scale_loop_profile): Ditto.
7746 (duplicate_loop_to_header_edge): Ditto.
7747 (lv_adjust_loop_entry_edge): Ditto.
7748 * tree-vect-loop.c (vect_transform_loop): Ditto.
7749 * profile.c (compute_branch_probabilities): Ditto.
7750 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7751 * lto-streamer-in.c (input_cfg): Ditto.
7752 * gimple-streamer-in.c (input_bb): Ditto.
7753 * ipa-cp.c (update_profiling_info): Ditto.
7754 (update_specialized_profile): Ditto.
7755 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7756 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7758 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7759 (compute_trg_info): Ditto.
7760 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7761 (purge_dead_edges): Ditto.
7762 * loop-unswitch.c (unswitch_loop): Ditto.
7763 * cgraphclones.c (cgraph_clone_edge): Ditto.
7764 (cgraph_clone_node): Ditto.
7765 * tree-inline.c (copy_bb): Ditto.
7766 (copy_edges_for_bb): Ditto.
7767 (initialize_cfun): Ditto.
7768 (copy_cfg_body): Ditto.
7769 (expand_call_inline): Ditto.
7771 2013-04-08 Kai Tietz <ktietz@redhat.com>
7773 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7774 TARGET_CYGWIN64 by TARGET_64BIT.
7776 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7778 * config/epiphany/epiphany.md (GPR_1): New constant.
7779 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7780 * config/epiphany/epiphany.c (gen_compare_reg):
7781 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7782 is already in place.
7783 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7784 Don't require being called during rtl expansion; If y operlaps r0,
7786 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7787 (epiphany_expand_epilogue): Likewise.
7789 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7790 Don't use CC_FPmode for ORDERED / UNORDERED.
7791 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7793 * config/epiphany/constraints.md (CnL): New constraint.
7794 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7795 * config/epiphany/predicates.md (add_operand): Allow 1024.
7797 * config/epiphany/epiphany.md (logical_op): New code iterator.
7798 (op_mnc): New code attribute.
7799 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7800 (mov_f+1, mov_f+2): New peephole2 patterns.
7802 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7803 (cstoresi4): Also allow re-use of zero result when doing a NE
7804 comparison to a non-zero operand.
7805 Use (clobber (scratch)) for first insn if the gpr output is not needed.
7807 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7808 Use gen_addsi3_i / gen_subsi3_i.
7810 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7814 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7815 contain anything but clobbers, at most one __builtin_stack_restore,
7816 optionally debug stmts and final resx, and if it has at least one
7817 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7818 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7819 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7820 which isn't defaut definition, remove them.
7821 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7822 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7823 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7824 with MEM_REF LHS with SSA_NAME address.
7826 2013-04-08 Jeff Law <law@redhat.com>
7828 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7830 2013-04-08 Richard Biener <rguenther@suse.de>
7832 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7834 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7835 determined vector type.
7836 (vect_analyze_data_refs): Likewise.
7837 (vect_get_new_vect_var): Adjust.
7838 (vect_create_destination_var): Preserve SSA name versions.
7839 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7840 not dump anything here.
7842 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7844 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7845 Add member lr_slot_known.
7846 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7848 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7849 Remove code that sets lr_slot_offset according to what a previous
7850 version of epiphany_emit_save_restore used to do.
7851 (epiphany_emit_save_restore): When doing an lr save or restore,
7852 set/verify lr_slot_known and lr_slot_offset.
7854 2013-04-08 Xinyu Qi <xyqi@marvell.com>
7857 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7860 2013-04-08 Richard Biener <rguenther@suse.de>
7862 * alias.c (find_base_term): Fix thinko in previous change.
7864 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7866 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7867 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7868 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7869 if possible to compute val.
7870 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7871 For QImode integers don't require anything about precision. Use
7872 const_with_all_bytes_same to find out if the constant doesn't have
7873 repeated bytes in it.
7875 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7877 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7880 2013-04-08 Marek Polacek <polacek@redhat.com>
7882 PR rtl-optimization/48182
7883 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7886 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7889 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7890 nuses, make sure we have a label.
7892 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7895 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7896 (rs6000_emit_swdiv_low_precision): Remove.
7897 (rs6000_emit_swdiv): Rewrite to handle between one and four
7898 iterations of Newton-Raphson generally; modify required number of
7899 iterations for some cases.
7900 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7902 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7904 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7905 set-but-unused variable.
7907 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7908 basic blocks of released function bodies garbage-collectable.
7910 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7911 (struct rtl_opt_pass): Add TODO_df_finish.
7913 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7915 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7917 * config/arm/constraints.md (q): New constraint.
7918 * config/arm/ldrdstrd.md: New file.
7919 * config/arm/arm.md (ldrdstrd.md) New include.
7920 (arm_movdi): Use "q" instead of "r" constraint
7921 for double-word memory access.
7922 (movdf_soft_insn): Likewise.
7923 * config/arm/vfp.md (movdi_vfp): Likewise.
7924 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7925 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7926 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7927 (mem_ok_for_ldrd_strd): Likewise.
7928 (output_move_double): Update assertion.
7930 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7932 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7934 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7936 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7937 define_insn_and_split.
7938 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7940 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7942 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7943 define_insn_and_split.
7944 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7945 (shiftsi3_compare): New pattern.
7947 * config/arm/unspecs.md (UNSPEC_RRX): New.
7949 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7951 * config/arm/arm.md (negdi_extendsidi): New pattern.
7952 (negdi_zero_extendsidi): Likewise.
7954 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7956 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7957 define_insn_and_split.
7958 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7959 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7961 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7963 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7964 define_insn_and_split.
7965 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7966 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7968 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7970 * config/arm/arm.md (subsi3_carryin): New pattern.
7971 (subsi3_carryin_const): Likewise.
7972 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7973 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7975 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7977 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7979 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7981 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7982 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7984 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7986 * config/arm/arm.c (arm_expand_builtin): Change fcode
7987 type to unsigned int.
7989 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7991 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7993 2013-04-04 Ian Lance Taylor <iant@google.com>
7995 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7998 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
8001 * df-scan.c (df_insn_delete): Disable failing assert.
8003 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8005 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
8006 New function prototype.
8007 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
8008 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
8009 (arm_builtin_vectorized_function): New function.
8011 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8013 * config/arm/arm_neon_builtins.def: New file.
8014 * config/arm/arm.c (neon_builtin_data): Move contents to
8015 arm_neon_builtins.def.
8016 (enum arm_builtins): Include neon builtin definitions.
8017 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
8018 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
8020 2013-04-04 Marek Polacek <polacek@redhat.com>
8022 PR tree-optimization/48186
8023 * predict.c (maybe_hot_frequency_p): Return false if
8024 HOT_BB_FREQUENCY_FRACTION is 0.
8025 (cgraph_maybe_hot_edge_p): Likewise.
8027 2013-04-04 Richard Biener <rguenther@suse.de>
8029 PR tree-optimization/56826
8030 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8033 2013-04-04 Richard Biener <rguenther@suse.de>
8035 PR tree-optimization/56213
8036 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8037 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
8039 2013-04-04 Richard Biener <rguenther@suse.de>
8041 PR tree-optimization/56837
8042 * tree-loop-distribution.c (classify_partition): For non-zero
8043 values require that the value has the same precision as its
8044 mode to be useful as memset value.
8046 2013-04-03 Nick Clifton <nickc@redhat.com>
8048 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
8049 (fmssf4): Use fmsf.s on E3V5 architectures.
8050 (fnmasf4): Use fnmaf.s on E3V5 architectures.
8051 (fnmssf4): Use fnmsf.s on E3V5 architectures.
8053 2013-04-03 Jeff Law <law@redhat.com>
8055 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8056 (lra-eliminations.o): Likewise.
8058 2013-04-03 Teresa Johnson <tejohnson@google.com>
8060 * gcov-io.c (compute_working_sets): Moved most of body of old
8061 compute_working_sets here from profile.c.
8062 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8063 (gcov_working_set_t): Moved typedef here from basic-block.h
8064 (compute_working_set): Declare.
8065 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8066 (get_working_sets): Renamed from compute_working_set,
8067 replace most of body with call to new compute_working_sets.
8068 (get_exec_counts): Replace call to compute_working_sets
8069 to get_working_sets.
8070 * profile.h (get_working_sets): Renamed from compute_working_set.
8071 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8072 to get_working_sets.
8073 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8074 * gcov-dump.c (dump_working_sets): New function.
8076 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8078 * hwint.c (sext_hwi, zext_hwi): New functions.
8079 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8080 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8081 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8082 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8083 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8084 (sext_hwi, zext_hwi): New functions.
8086 2013-04-03 Jeff Law <law@redhat.com>
8088 PR tree-optimization/56799
8089 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8090 back test for widening conversion erroneously dropped in prior change.
8092 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8095 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8096 instead of next_real_insn.
8098 2013-04-03 Marek Polacek <polacek@redhat.com>
8101 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8103 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8106 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8108 (thumb1_output_casesi): Likewise.
8109 (thumb2_output_casesi): Likewise.
8111 2013-04-03 Richard Biener <rguenther@suse.de>
8113 PR tree-optimization/56817
8114 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8116 (tree_unroll_loops_completely_1): ... new function to manually
8117 walk the loop tree, properly defering outer loops of unrolled
8118 loops to later iterations.
8120 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8122 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8123 (vectorizable_load): Likewise.
8124 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8125 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8127 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8129 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8132 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8134 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8136 2013-04-03 Bin Cheng <bin.cheng@arm.com>
8138 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8140 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8142 PR tree-optimization/56790
8143 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8146 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8148 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8150 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8151 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8154 2013-04-03 Jakub Jelinek <jakub@redhat.com>
8157 * tree.h (force_folding_builtin_constant_p): New decl.
8158 * builtins.c (force_folding_builtin_constant_p): New variable.
8159 (fold_builtin_constant_p): Fold immediately also if
8160 force_folding_builtin_constant_p.
8162 2013-04-03 Richard Biener <rguenther@suse.de>
8164 PR tree-optimization/56812
8165 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8166 DRs of the same interleaving chain are independent.
8168 2013-04-02 Jason Merrill <jason@redhat.com>
8170 * gdbinit.in (pbb): Use debug fn.
8172 2013-04-02 Lawrence Crowl <crowl@google.com>
8174 * sese.h (struct ivtype_map_elt_s): Remove unused.
8175 (extern debug_ivtype_map): Remove unused.
8176 (extern eq_ivtype_map_elts): Remove unused.
8177 * sese.c (debug_ivtype_map): Removed unused.
8178 (debug_ivtype_map_1): Removed unused.
8179 (debug_ivtype_elt): Remove unused.
8180 (eq_ivtype_map_elts): Remove unused.
8183 2013-04-02 Kai Tietz <ktietz@redhat.com>
8186 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8187 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8188 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8190 (legitimize_pe_coff_symbol): Likewise.
8191 (is_imported_p): New helper-function.
8192 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8193 for Windows x64 targets.
8194 (ix86_expand_prologue): Optimize for pe-coff targets.
8195 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8196 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8197 medium/large code-model.
8198 (legitimize_pic_address): Likewise.
8199 (legitimize_tls_address): Likewise.
8200 (ix86_expand_call): Likewise.
8201 (x86_output_mi_thunk): Likewise.
8202 (get_dllimport_decl): Add new beimport argument.
8203 (construct_plt_address): Don't assert for x64 pe-coff targets.
8204 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8206 (SYMBOL_FLAG_STUBVAR): New macro.
8207 (SYMBOL_REF_STUBVAR_P): Likewise.
8208 * config/i386/winnt.c (stub_list): New structure.
8209 (stub_head): New local variable.
8210 (i386_pe_record_stub): New function.
8211 (i386_pe_file_end): Emit refptr-stubs.
8213 2013-04-02 Jakub Jelinek <jakub@redhat.com>
8215 PR rtl-optimization/56745
8216 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8217 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8220 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8221 and both of them are MEM_REFs, just compare first argument for
8222 equality and attempt to deal even with differing offsets.
8225 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8226 of gimple_clobber_p to be MEM_REF.
8227 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8228 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8229 after gimplification.
8230 * asan.c (get_mem_ref_of_assignment): Don't instrument
8231 gimple_clobber_p stmts.
8232 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8233 gimple_clobber_p stmt if they have MEM_REF lhs and
8234 are dead because of another gimple_clobber_p stmt.
8235 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8236 gimple_clobber_p stmts like debug stmts.
8237 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8238 that refer to unused VAR_DECLs or uninitialized values.
8239 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8240 gimple_clobber_p stmts if they refer to removed parameters.
8241 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8244 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
8246 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8247 using SWI48 mode attribute.
8249 2013-04-02 Wei Mi <wmi@google.com>
8251 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8252 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8253 *<rotate_insn><mode>3_mask in i386.md.
8255 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8257 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8259 2013-04-02 Richard Biener <rguenther@suse.de>
8261 PR tree-optimization/56778
8262 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8263 Runtime alias tests are not supported for gather loads.
8264 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8265 stmts referenced from SSA operands before updating SSA form.
8267 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8268 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8270 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8271 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8272 * config/arm/cortex-a53.md: New file.
8273 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8274 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8275 * config/arm/arm.c (arm_issue_rate): Likewise.
8276 * config/arm/arm-tune.md: Regenerate
8277 * config/arm/arm-tables.opt: Regenerate.
8278 * config/arm/arm-cores.def: Add cortex-a53.
8280 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8282 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8285 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8287 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8288 scalar load/store operations using B/H registers.
8289 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8291 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8293 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8295 * config/aarch64/aarch64.c
8296 (aarch64_simd_scalar_immediate_valid_for_move): New.
8297 * config/aarch64/aarch64-protos.h
8298 (aarch64_simd_scalar_immediate_valid_for_move): New.
8299 * config/aarch64/constraints.md (Dh, Dq): New.
8300 * config/aarch64/iterators.md (hq): New.
8302 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8304 * reorg.c (get_branch_condition): Deal with conditional returns.
8305 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8307 2013-04-01 Wei Mi <wmi@google.com>
8309 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8310 Truncate operand 2 using %b asm operand modifier.
8311 (*<shift_insn><mode>3_mask): Ditto.
8312 (*<rotate_insn><mode>3_mask): Ditto.
8314 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8317 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8319 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8321 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8323 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8325 2013-03-30 Lawrence Crowl <crowl@google.com>
8327 * dse.c (clear_alias_sets): Remove never set.
8328 (disqualified_clear_alias_sets): Remove never set.
8329 (clear_alias_mode_pool): Remove never set.
8330 (dse_step0): Remove condition that is never true.
8331 (canon_address): Remove condition that is never true.
8332 (dse_step7): Remove condition that is never true.
8333 (rest_of_handle_dse): Remove condition that is never true.
8334 (rest_of_handle_dse::did_global): Remove never read from above.
8335 (dse_step2_spill): Remove never called from above.
8336 (dse_step5_spill): Remove never called from above.
8338 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8340 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8341 JUMP_TABLE_DATA changes.
8342 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8343 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8344 (Insns) <jump_table_data>: New entry.
8345 * doc/tm.texi: Regenerate.
8347 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8349 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8350 for table jump at the end of a basic block using tablejump_p.
8351 * targhooks.c (default_invalid_within_doloop): Likewise.
8352 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8353 target hook implementation that is identical to the default hook.
8354 (rs6000_invalid_within_doloop): Remove.
8356 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8357 unused variable from tablejump_p call.
8359 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8360 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8361 (INSN_DELETED_P): Likewise.
8362 (emit_jump_table_data): New prototype.
8363 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8364 after 4th as unused.
8365 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8366 * sched-vis.c (print_insn): Likewise.
8367 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8368 insn for compatibility with back ends that use next_active_insn to
8369 identify jump table data.
8370 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8371 (remove_insn): Likewise.
8372 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8374 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8375 (emit_jump_table_data): New function.
8377 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8378 basic block, a JUMP_TABLE_DATA never is.
8379 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8380 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8381 off from code handling real insns.
8382 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8383 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8384 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8385 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8386 is not a NONDEBUG_INSN_P.
8387 * ira-costs.c (scan_one_insn): Likewise.
8388 * jump.c (mark_all_labels): Likewise.
8389 (mark_jump_label_1): Likewise.
8390 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8391 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8393 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8394 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8395 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8396 JUMP_TABLE_DATA_P insns.
8397 (calculate_elim_costs_all_insns): Likewise.
8398 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8399 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8400 (delete_output_reload): Code style fixups.
8401 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8402 insn flags on this non-insn.
8403 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8404 as scheduling barriers, for pre-change compatibility.
8405 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8406 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8408 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8409 redundant JUMP_TABLE_DATA_P test.
8410 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8411 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8412 (frv_for_each_packet): Likewise.
8413 * config/i386/i386.c (min_insn_size): Likewise.
8414 (ix86_avoid_jump_mispredicts): Likewise.
8415 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8416 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8417 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8418 (mips16_insn_length): Robustify.
8419 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8420 (mips16_split_long_branches): Likewise.
8421 * config/pa/pa.c (pa_combine_instructions): Likewise.
8422 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8423 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8424 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8425 as contributing to pool range lengths.
8426 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8427 Remove redundant JUMP_TABLE_DATA_P test.
8428 (sh_loop_align): Likewise.
8429 (split_branches): Likewise.
8430 (sh_insn_length_adjustment): Likewise.
8431 * config/spu/spu.c (get_branch_target): Likewise.
8433 2013-03-29 Jan Hubicka <jh@suse.cz>
8435 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8436 gcov streaming; stream hot bb threshold to ltrans.
8437 * predict.c (get_hot_bb_threshold): Break out from ....
8438 (maybe_hot_count_p): ... here.
8439 (set_hot_bb_threshold): New function.
8440 * lto-section-in.c (lto_section_name): Add profile.
8441 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8442 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8444 (histogram_entry): New structure.
8445 (histogram, histogram_pool): New global vars.
8446 (histogram_hash): New structure.
8447 (histogram_hash::hash): New method.
8448 (histogram_hash::equal): Likewise.
8449 (account_time_size): New function.
8450 (cmp_counts): New function.
8451 (dump_histogram): New function.
8452 (ipa_profile_generate_summary): New function.
8453 (ipa_profile_write_summary): New function.
8454 (ipa_profile_read_summary): New function.
8455 (ipa_profile): Decide on threshold.
8456 (pass_ipa_profile): Add ipa_profile_write_summary and
8457 ipa_profile_read_summary.
8458 * Makefile.in (ipa.o): Update dependencies.
8459 * lto-streamer.h (LTO_section_ipa_profile): New section.
8461 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8463 * tree.h (VAR_P): New.
8465 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8468 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8470 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8472 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8473 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8474 (control_flow_insn_p): Likewise.
8475 * cfgrtl.c (duplicate_insn_chain): Likewise.
8476 * final.c (get_attr_length_1): Likewise.
8477 (shorten_branches): Likewise.
8478 (final_scan_insn): Likewise.
8479 * function.c (instantiate_virtual_regs): Likewise.
8480 * gcse.c (insert_insn_end_basic_block): Likewise.
8481 * ira-costs.c (scan_one_insn): Likewise.
8482 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8483 * lra.c (check_rtl): Likewise.
8484 * reload1.c (elimination_costs_in_insn): Likewise.
8485 * reorg.c (follow_jumps): Likewise.
8487 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8488 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8489 (thumb_far_jump_used_p): Likewise.
8490 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8491 (workaround_speculation): Likewise.
8492 (add_sched_insns_for_speculation): Likewise.
8493 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8494 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8495 (frv_for_each_packet): Likewise.
8496 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8497 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8498 (final_emit_insn_group_barriers): Likewise.
8499 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8500 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8501 (mips16_insn_length): Likewise.
8502 * config/pa/pa.c (pa_reorg): Likewise.
8503 (pa_combine_instructions): Likewise.
8504 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8505 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8506 (sh_reorg): Likewise.
8507 (split_branches): Likewise.
8508 * config/spu/spu.c (get_branch_target): Likewise.
8510 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8513 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8515 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8516 Fix declaration name.
8518 2013-03-28 Lawrence Crowl <crowl@google.com>
8520 * graphds.h (struct graph.indicies): Remove unused.
8521 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8522 (SCOP_ORIGINAL_PDDRS): Remove unused.
8523 * sese.h (extern insert_loop_close_phis): Removed unused.
8524 (extern insert_guard_phis): Removed unused.
8525 (extern ivtype_map_elt_info): Removed unused.
8526 (new_ivtype_map_elt): Removed unused.
8527 * sese.c (ivtype_map_elt_info): Removed unused.
8529 2013-03-28 Lawrence Crowl <crowl@google.com>
8531 * Makefile.in: Add several missing include dependences.
8533 (test-dump.o): New. This object is not added to any executable,
8534 but is present for ad-hoc testing.
8536 (debug (const bitmap_head_def &)): New.
8537 (debug (const bitmap_head_def *)): New.
8539 (extern debug (const bitmap_head_def &)): New.
8540 (extern debug (const bitmap_head_def *)): New.
8542 (debug (edge_def &)): New.
8543 (debug (edge_def *)): New.
8545 (debug (basic_block_def &)): New.
8546 (debug (basic_block_def *)): New.
8548 (dump_node (const_tree, int, FILE *)): Correct source file.
8550 (debug (die_struct &)): New.
8551 (debug (die_struct *)): New.
8553 (extern debug (die_struct &)): New.
8554 (extern debug (die_struct *)): New.
8555 * gimple-pretty-print.c
8556 (debug (gimple_statement_d &)): New.
8557 (debug (gimple_statement_d *)): New.
8558 * gimple-pretty-print.h
8559 (extern debug (gimple_statement_d &)): New.
8560 (extern debug (gimple_statement_d *)): New.
8562 (debug (ira_allocno_copy &)): New.
8563 (debug (ira_allocno_copy *)): New.
8564 (debug (ira_allocno &)): New.
8565 (debug (ira_allocno *)): New.
8567 (extern debug (ira_allocno_copy &)): New.
8568 (extern debug (ira_allocno_copy *)): New.
8569 (extern debug (ira_allocno &)): New.
8570 (extern debug (ira_allocno *)): New.
8572 (debug (live_range &)): New.
8573 (debug (live_range *)): New.
8575 (debug (lra_live_range &)): New.
8576 (debug (lra_live_range *)): New.
8578 (debug (lra_live_range &)): New.
8579 (debug (lra_live_range *)): New.
8581 (debug (omega_pb_d &)): New.
8582 (debug (omega_pb_d *)): New.
8584 (extern debug (omega_pb_d &)): New.
8585 (extern debug (omega_pb_d *)): New.
8587 (debug (const rtx_def &)): New.
8588 (debug (const rtx_def *)): New.
8590 (debug_tree (tree): Move within file.
8591 (debug_raw (const tree_node &)): New.
8592 (debug_raw (const tree_node *)): New.
8593 (dump_tree_via_hooks (const tree_node *, int)): New.
8594 (debug (const tree_node &)): New.
8595 (debug (const tree_node *)): New.
8596 (debug_verbose (const tree_node &)): New.
8597 (debug_verbose (const tree_node *)): New.
8598 (debug_head (const tree_node &)): New.
8599 (debug_head (const tree_node *)): New.
8600 (debug_body (const tree_node &)): New.
8601 (debug_body (const tree_node *)): New.
8602 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8603 (debug (vec<tree, va_gc> &)): New.
8604 (debug (vec<tree, va_gc> *)): New.
8606 (extern debug (const rtx_def &)): New.
8607 (extern debug (const rtx_def *)): New.
8609 (debug_raw (simple_bitmap_def &)): New.
8610 (debug_raw (simple_bitmap_def *)): New.
8611 (debug (simple_bitmap_def &)): New.
8612 (debug (simple_bitmap_def *)): New.
8614 (extern debug (simple_bitmap_def &)): New.
8615 (extern debug (simple_bitmap_def *)): New.
8616 (extern debug_raw (simple_bitmap_def &)): New.
8617 (extern debug_raw (simple_bitmap_def *)): New.
8619 (debug (vinsn_def &)): New.
8620 (debug (vinsn_def *)): New.
8621 (debug_verbose (vinsn_def &)): New.
8622 (debug_verbose (vinsn_def *)): New.
8623 (debug (expr_def &)): New.
8624 (debug (expr_def *)): New.
8625 (debug_verbose (expr_def &)): New.
8626 (debug_verbose (expr_def *)): New.
8627 (debug (vec<rtx> &)): New.
8628 (debug (vec<rtx> *)): New.
8630 (extern debug (vinsn_def &)): New.
8631 (extern debug (vinsn_def *)): New.
8632 (extern debug_verbose (vinsn_def &)): New.
8633 (extern debug_verbose (vinsn_def *)): New.
8634 (extern debug (expr_def &)): New.
8635 (extern debug (expr_def *)): New.
8636 (extern debug_verbose (expr_def &)): New.
8637 (extern debug_verbose (expr_def *)): New.
8638 (extern debug (vec<rtx> &)): New.
8639 (extern debug (vec<rtx> *)): New.
8641 (_list_iter_cond_expr): Make inline instead of static.
8643 (debug (sreal &)): New.
8644 (debug (sreal *)): New.
8646 (extern debug (sreal &)): New.
8647 (extern debug (sreal *)): New.
8649 (extern debug_raw (const tree_node &)): New.
8650 (extern debug_raw (const tree_node *)): New.
8651 (extern debug (const tree_node &)): New.
8652 (extern debug (const tree_node *)): New.
8653 (extern debug_verbose (const tree_node &)): New.
8654 (extern debug_verbose (const tree_node *)): New.
8655 (extern debug_head (const tree_node &)): New.
8656 (extern debug_head (const tree_node *)): New.
8657 (extern debug_body (const tree_node &)): New.
8658 (extern debug_body (const tree_node *)): New.
8659 (extern debug (vec<tree, va_gc> &)): New.
8660 (extern debug (vec<tree, va_gc> *)): New.
8662 (debug (struct loop &)): New.
8663 (debug (struct loop *)): New.
8664 (debug_verbose (struct loop &)): New.
8665 (debug_verbose (struct loop *)): New.
8666 * tree-dump.c: Add header dependence.
8668 (extern debug (struct loop &)): New.
8669 (extern debug (struct loop *)): New.
8670 (extern debug_verbose (struct loop &)): New.
8671 (extern debug_verbose (struct loop *)): New.
8673 (debug (data_reference &)): New.
8674 (debug (data_reference *)): New.
8675 (debug (vec<data_reference_p> &)): New.
8676 (debug (vec<data_reference_p> *)): New.
8677 (debug (vec<ddr_p> &)): New.
8678 (debug (vec<ddr_p> *)): New.
8680 (extern debug (data_reference &)): New.
8681 (extern debug (data_reference *)): New.
8682 (extern debug (vec<data_reference_p> &)): New.
8683 (extern debug (vec<data_reference_p> *)): New.
8684 (extern debug (vec<ddr_p> &)): New.
8685 (extern debug (vec<ddr_p> *)): New.
8687 (debug (pt_solution &)): New.
8688 (debug (pt_solution *)): New.
8690 (extern debug (pt_solution &)): New.
8691 (extern debug (pt_solution *)): New.
8693 (debug (_var_map &)): New.
8694 (debug (_var_map *)): New.
8695 (debug (tree_live_info_d &)): New.
8696 (debug (tree_live_info_d *)): New.
8698 (extern debug (_var_map &)): New.
8699 (extern debug (_var_map *)): New.
8700 (extern debug (tree_live_info_d &)): New.
8701 (extern debug (tree_live_info_d *)): New.
8703 2013-03-28 Jan Hubicka <jh@suse.cz>
8705 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8707 2013-03-28 Ian Bolton <ian.bolton@arm.com>
8709 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8710 record only when desired or required.
8712 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
8714 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8715 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8717 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8719 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8720 (*andsi3_compare0_uxtw): New pattern.
8721 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8722 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8724 2013-03-28 Jan Hubicka <jh@suse.cz>
8726 * data-streamer-in.c (streamer_read_gcov_count): New function.
8727 * gimple-streamer-out.c: Include value-prof.h.
8728 (output_gimple_stmt): Output histogram.
8729 (output_bb): Use streamer_write_gcov_count.
8730 * value-prof.c: Include data-streamer.h
8731 (dump_histogram_value): Add HIST_TYPE_MAX.
8732 (stream_out_histogram_value): New function.
8733 (stream_in_histogram_value): New function.
8734 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8735 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8736 * data-streamer-out.c (streamer_write_gcov_count): New function.
8737 (streamer_write_gcov_count_stream): New function.
8738 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8739 (lto_output_node): Likewise.
8740 (input_node, input_edge): Likewise.
8741 * lto-streamer-out.c (output_cfg): Update streaming.
8742 * lto-streamer-in.c (input_cfg): Likewise.
8743 * data-streamer.h (streamer_write_gcov_count,
8744 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8745 * gimple-streamer-in.c: Include value-prof.h
8746 (input_gimple_stmt): Input histograms.
8747 (input_bb): Update profile streaming.
8749 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8751 * genmodes.c (emit_max_int): New function.
8752 (emit_insn_modes_h): Added call to emit_max_function.
8753 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8755 * machmode.def: Fixed comment.
8757 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8759 * combine.c (try_combine): Removed useless assert.
8760 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8762 2013-03-28 Marek Polacek <polacek@redhat.com>
8763 Richard Biener <rguenther@suse.de>
8765 PR tree-optimization/56695
8766 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8767 build signed result of a vector comparison.
8768 * tree-cfg.c (verify_gimple_comparison): Check that a result
8769 of a vector comparison has signed type.
8771 2013-03-28 Richard Biener <rguenther@suse.de>
8773 PR tree-optimization/37021
8774 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8775 do not restrict gaps between groups.
8776 * tree-vect-stmts.c (vectorizable_load): Properly account for
8777 a gap between groups.
8779 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8781 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8782 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8785 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8787 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8788 * doc/extend.texi (Named Address Spaces): Ditto.
8789 (Variable Attributes): Ditto.
8791 2013-03-27 Kai Tietz <ktietz@redhat.com>
8793 * config.build: Add support for cygwin x64 target.
8794 * config.gcc: Likewise.
8795 * config.host: Likewise.
8796 * configure.ac: Likewise
8797 * configure: Regenerated.
8799 2013-03-27 Kai Tietz <ktietz@redhat.com>
8801 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8802 * config/i386/t-cygwin-w64: New file.
8803 * config/i386/cygwin-w64.h: New file.
8804 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8805 and add support for x64-cygwin target.
8806 (CPP_SPEC): Likewise.
8807 (CXX_WRAP_SPEC_LIST): Undefine before define.
8808 (LIBGCJ_SONAME): Use 15 as version.
8810 2013-03-27 Richard Biener <rguenther@suse.de>
8812 PR tree-optimization/56716
8813 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8814 dumping for ref nodes.
8816 2013-03-27 Martin Jambor <mjambor@suse.cz>
8818 PR tree-optimization/55334
8819 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8820 restricted pointers to arrays.
8822 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8824 * Makefile.in (.SUFFIXES): Add .cc.
8825 (.c.o): Apply same recipe for implicit rule .cc.o.
8827 2013-03-27 Richard Biener <rguenther@suse.de>
8829 PR tree-optimization/37021
8830 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8831 REALPART/IMAGPART_EXPRs around the supported refs.
8832 * tree-ssa-structalias.c (find_func_aliases): Assume that
8833 floating-point values are not used to transfer pointers.
8835 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8837 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8838 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8839 * doc/tm.texi: Regenerate.
8840 * targhooks.h (default_has_ifunc_p): New.
8841 * targhooks.c (default_has_ifunc_p): Ditto.
8842 * config/linux-protos.h: New file.
8843 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8844 this hook for linux which disables support of indirect functions in
8846 * config/linux-android.c: New file.
8847 * config/t-linux-android.c: Ditto.
8848 * config.gcc: Added new object file linux-android.o.
8849 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8850 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8851 * varasm.c (do_assemble_alias): Likewise.
8852 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8853 doesn't support indirect functions.
8854 * configure: Regenerate.
8856 2013-03-27 Bin Cheng <bin.cheng@arm.com>
8859 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8860 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8863 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8865 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8867 2013-03-27 Terry Guo <terry.guo@arm.com>
8869 * config/arm/arm-cores.def: Added core cortex-r7.
8870 * config/arm/arm-tune.md: Regenerated.
8871 * config/arm/arm-tables.opt: Regenerated.
8872 * doc/invoke.texi: Added entry for core cortex-r7.
8874 2013-03-27 Walter Lee <walt@tilera.com>
8876 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8877 double-decrement of next_scratch_regno.
8879 2013-03-27 Walter Lee <walt@tilera.com>
8881 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8883 (insn_v1mulus): Ditto.
8884 (insn_v2muls): Ditto.
8886 2013-03-27 Walter Lee <walt@tilera.com>
8888 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8889 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8891 2013-03-27 Walter Lee <walt@tilera.com>
8893 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8894 (*sibcall_value): Ditto.
8896 2013-03-27 Walter Lee <walt@tilera.com>
8898 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8899 (insn_mnz_v8qi): ... this ...
8900 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8902 (insn_v<n>mnz): Replaced by ...
8903 (insn_v1mnz): ... this ...
8904 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8906 (insn_mz_<mode>): Replaced by ...
8907 (insn_mz_v8qi): ... this ...
8908 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8910 (insn_v<n>mz): Replaced by ...
8911 (insn_v1mz): ... this ...
8912 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8915 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8917 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8919 2013-03-26 Roland McGrath <mcgrathr@google.com>
8921 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8922 than fprintf with a non-constant, non-format string.
8924 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8926 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8927 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8928 operand 0 predicate.
8929 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8930 attribute. Use general_x64nomem_operand as operand 1 predicate.
8931 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8932 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8933 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8934 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8935 (mov<mode>_insv_1): Remove expander. Merge insn with
8936 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8937 Use general_x64nomem_operand as operand 1 predicate.
8938 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8939 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8940 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8941 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8942 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8943 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8944 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8945 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8946 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8947 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8948 (general_x64nomem_operand): Ditto.
8950 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
8952 * config/rtems.opt: Add -pthread option.
8954 2013-03-26 Richard Biener <rguenther@suse.de>
8956 * alias.c (find_base_term): Avoid redundant and not used recursion.
8957 (base_alias_check): Get the initial base term from the caller.
8958 (true_dependence_1): Compute and pass base terms to base_alias_check.
8959 (write_dependence_p): Likewise.
8960 (may_alias_p): Likewise.
8962 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8964 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8965 PC-relative load in SI modes and above only.
8967 2013-03-26 Xinyu Qi <xyqi@marvell.com>
8969 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8970 * config/arm/iwmmxt.md (WCGR0): Update.
8971 (WCGR1, WCGR2, WCGR3): Likewise.
8973 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8975 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8976 Use x64 and nox64 isa attributes.
8978 2013-03-26 Richard Biener <rguenther@suse.de>
8980 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8981 alignment computations and rely on get_object_alignment_1
8982 for the !TYPE_P case.
8983 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8985 2013-03-26 Walter Lee <walt@tilera.com>
8987 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8988 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8990 2013-03-25 Jeff Law <law@redhat.com>
8992 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8993 check for INTEGRAL_TYPE_P that was missing due to checking in
8994 wrong version of prior patch.
8996 2013-03-25 Walter Lee <walt@tilera.com>
8998 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8999 TILEGX_INSN_SHUFFLEBYTES1.
9000 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
9002 (tilegx_builtins): Ditto.
9003 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
9005 2013-03-25 Walter Lee <walt@tilera.com>
9007 * config/tilegx/tilegx.md (floatsisf2): New pattern.
9008 (floatunssisf2): New pattern.
9009 (floatsidf2): New pattern.
9010 (floatunssidf2): New pattern.
9012 2013-03-25 Walter Lee <walt@tilera.com>
9014 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
9015 tests for constraint J, K, N, P.
9017 2013-03-25 Walter Lee <walt@tilera.com>
9019 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
9020 Use indirect/pcrel encoding.
9021 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
9024 2013-03-25 Steve Ellcey <sellcey@mips.com>
9026 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9027 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9028 * config/mips/mips.c (mips_option_override): Set IMADD default.
9029 * config/mips/mips.h (PTF_AVOID_IMADD): New.
9030 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9031 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9032 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9033 * doc/invoke.texi (-mimadd/-mno-imadd): New.
9035 2013-03-25 Jeff Law <law@redhat.com>
9037 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9038 slightly to avoid creating and folding useless trees. Simplify
9039 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9041 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
9043 * config/i386/i386.md (*zero_extendsidi2): Merge with
9044 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
9045 * config/i386/predicates.md (x86_64_zext_operand): Rename from
9046 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
9047 targets. Clarify comment.
9049 2013-03-25 Martin Jambor <mjambor@suse.cz>
9051 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9052 pass-through jump functions differently.
9053 (ipa_read_jump_function): Likewise. Also use setter functions to set
9056 2013-03-25 Martin Jambor <mjambor@suse.cz>
9058 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9059 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9061 (ipa_get_indirect_edge_target): New function.
9062 (devirtualization_time_bonus): New parameter known_aggs, pass it to
9063 ipa_get_indirect_edge_target. Update all callers.
9064 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
9065 ipa_get_indirect_edge_target_1 instead of calling
9066 ipa_get_indirect_edge_target.
9067 (create_specialized_node): Pass aggvlas to
9068 ipcp_discover_new_direct_edges.
9070 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9072 * config/arm/arm.md (f_sels, f_seld): New types.
9073 (*cmov<mode>): New pattern.
9074 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9077 2013-03-25 Kai Tietz <ktietz@redhat.com>
9079 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9080 POSIX-printf for mingw-hosted builds.
9082 2013-03-25 Richard Biener <rguenther@suse.de>
9085 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9086 must-not-throw stmt location.
9088 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9090 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9091 Emit load-acquire versions when acq is true.
9092 (arm_emit_store_exclusive): Add rel parameter.
9093 Emit store-release versions when rel is true.
9094 (arm_split_compare_and_swap): Use acquire-release instructions
9096 of barriers when appropriate.
9097 (arm_split_atomic_op): Likewise.
9098 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9099 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9100 (VUNSPEC_SLX): Likewise.
9101 (VUNSPEC_LDA): Likewise.
9102 (VUNSPEC_STL): Likewise.
9103 * config/arm/sync.md (atomic_load<mode>): New pattern.
9104 (atomic_store<mode>): Likewise.
9105 (arm_load_acquire_exclusive<mode>): Likewise.
9106 (arm_load_acquire_exclusivesi): Likewise.
9107 (arm_load_acquire_exclusivedi): Likewise.
9108 (arm_store_release_exclusive<mode>): Likewise.
9110 2013-03-25 Catherine Moore <clm@codesourcery.com>
9112 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9113 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9114 * config/mip/predicates.md (lwsp_swsp_operand,
9115 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9116 sb16_operand, db4_operand, db7_operand, ib3_operand,
9117 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9118 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9119 andi16_operand): New predicates.
9120 * config/mips/mips.md (compression): New attribute.
9121 (enabled): New attribute.
9122 (length): Consider compression in computing length.
9123 (shift_compression): New code attribute.
9124 (*add<mode>3): New operands. Record compression.
9125 (sub<mode>3): Likewise.
9126 (one_cmpl<mode>2): Likewise.
9127 (*and<mode>3): Likewise.
9128 (*ior<mode>3): Likewise.
9129 (unnamed pattern for xor): Likewise.
9130 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9131 (*<optab><mode>3): Likewise.
9132 (*mov<mode>_internal: Likewise.
9133 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9134 (mips_unsigned_immediate_p): New.
9135 (umips_lwsp_swsp_address_p): New.
9136 (m16_based_address_p): New.
9137 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9138 (mips_unsigned_immediate_p): New prototype.
9139 (lwsp_swsp_address_p): New prototype.
9140 (m16_based_address_p): New prototype.
9141 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9142 (mips_signed_immediate_p): New function.
9143 (m16_based_address_p): New function.
9144 (lwsp_swsp_address_p): New function.
9145 (mips_print_operand_punctuation): Recognize short delay slot insns
9146 for microMIPS.add<mode>3"
9148 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9151 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9152 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9154 2013-03-25 Richard Biener <rguenther@suse.de>
9156 PR tree-optimization/56689
9157 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9160 2013-03-25 Richard Biener <rguenther@suse.de>
9162 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9164 (memory_references): Likewise.
9165 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9166 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9167 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9168 (gather_mem_refs_in_loops): Fold into ...
9169 (analyze_memory_references): ... this. Move initialization
9170 to tree_ssa_lim_initialize.
9171 (fill_always_executed_in): Rename to ...
9172 (fill_always_executed_in_1): ... this.
9173 (fill_always_executed_in): Move contains_call computation to
9174 this new function from ...
9175 (tree_ssa_lim_initialize): ... here.
9176 (tree_ssa_lim): Call fill_always_executed_in.
9178 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9180 * postreload.c (reload_combine): Fix code detecting returns.
9182 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9184 * function.c (emit_use_return_register_into_block): On cc0 targets,
9185 do not emit the sequence between cc0 setter and user.
9187 2013-03-25 Kai Tietz <ktietz@redhat.com>
9189 * config/i386/predicates.md (local_symbolic_operand): Interpret
9190 dll-imported symbols as none-local.
9192 2013-03-25 Richard Biener <rguenther@suse.de>
9194 * tree-ssa-loop-im.c (struct depend): Remove.
9195 (struct lim_aux_data): Make depends a vec of gimples.
9196 (free_lim_aux_data): Adjust.
9197 (add_dependency): Likewise.
9198 (set_level): Likewise.
9200 2013-03-25 Richard Biener <rguenther@suse.de>
9203 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9204 the pointer returned by calls with ECF_MALLOC set.
9206 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9208 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9210 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9212 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9213 using MMXMODE mode iterator.
9214 (*move<mode>_internal): Merge with *movv2sf_internal and
9215 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9217 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9219 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9220 (record_last_mem_set_info): Likewise.
9222 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9223 of XNEWVEC followed by memset.
9224 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9226 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9228 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9229 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9230 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9231 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9232 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9233 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9234 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9235 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9236 BARRIER_P instead of GET_CODE.
9238 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9240 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9241 inaccuracy in the probing code.
9243 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9244 (ctrapdi4): Likewise.
9246 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9248 * calls.c (expand_call): Add missing guard to code handling return
9249 of non-BLKmode structures in MSB.
9250 * function.c (expand_function_end): Likewise.
9252 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9254 * combine.c (try_combine): Adjust comment. Do not add the set of
9255 insn #0 if the destination indirectly is set or dies in insn #2.
9256 Tidy up code to distribute a new note.
9258 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9260 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9261 also for alternatives 16 and 17.
9263 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9265 * config/i386/sse.md (*mov<mode>_internal): Merge with
9266 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9267 Emit insn template depending on type attribute. Use
9268 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9269 movd instead of movq mnemonic for interunit moves. Rewrite mode
9270 attribute calculation. Remove unit attribute calculation.
9271 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9272 Set prefix_data16 attribute for DImode ssemov types.
9273 Use Ym instead of y for SSE-MMX conversion alternatives.
9274 Reorder operand constraints.
9276 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9278 * df.h (df_insn_delete): Adjust prototype.
9279 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9280 and let it decide whether mark the basic block dirty.
9281 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9282 * df-scan.c (df_insn_info_delete): New helper function, split
9283 off from df_insn_delete.
9284 (df_scan_free_bb_info): Use it.
9285 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9287 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9288 that the insn is actually an insn and it has a non-NULL basic block.
9289 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9291 2013-03-22 Richard Biener <rguenther@suse.de>
9293 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9295 (mem_ref_alloc): Do not allocate them.
9296 (refs_independent_p): Do not query or maintain a cache.
9298 2013-03-22 Richard Biener <rguenther@suse.de>
9300 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9301 (gather_mem_refs_in_loops): Do not compute it.
9302 (analyze_memory_references): Do not allocate it.
9303 (tree_ssa_lim_finalize): Do not free it.
9304 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9306 2013-03-22 Richard Biener <rguenther@suse.de>
9308 * is-a.h (as_a): Use gcc_checking_assert.
9310 2013-03-22 Ian Bolton <ian.bolton@arm.com>
9312 * config/aarch64/aarch64.c (aarch64_print_operand): New
9313 format specifier for printing a constant in hex.
9314 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9315 format specifier for printing second operand.
9317 2013-03-22 Richard Biener <rguenther@suse.de>
9319 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9321 (gather_mem_refs_in_loops): Perform store accumulation here.
9322 (create_vop_ref_mapping_loop): Remove.
9323 (create_vop_ref_mapping): Likewise.
9324 (analyze_memory_references): Initialize refs_stored_in_loop.
9325 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9326 (record_indep_loop): Remove.
9327 (record_dep_loop): New function.
9328 (ref_indep_loop_p_1): Adjust to only walk over references
9329 in the loop, not its subloops.
9330 (ref_indep_loop_p): Rename to ...
9331 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9332 maintaining a more fine-grained cache.
9333 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9334 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9336 2013-03-22 Richard Biener <rguenther@suse.de>
9338 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9339 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9340 aggregate mem_ref_loc.
9341 (free_mem_ref_locs): Inline into ...
9342 (memref_free): ... this and adjust.
9343 (mem_ref_alloc): Adjust.
9344 (mem_ref_locs_alloc): Remove.
9345 (record_mem_ref_loc): Adjust.
9346 (get_all_locs_in_loop): Rewrite into ...
9347 (for_all_locs_in_loop): ... this iterator.
9348 (rewrite_mem_ref_loc): New functor.
9349 (rewrite_mem_refs): Use for_all_locs_in_loop.
9350 (sm_set_flag_if_changed): New functor.
9351 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9352 (ref_always_accessed): New functor.
9353 (ref_always_accessed_p): Use for_all_locs_in_loop.
9355 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9357 * tree-pass.h (PROP_gimple_lvec): New.
9358 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9359 (init_optimization_passes): Move pass_lower_vector.
9360 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9362 (pass_lower_vector): Provide PROP_gimple_lvec.
9363 (pass_lower_vector_ssa): Likewise.
9364 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9366 2013-03-21 Mark Wielaard <mjw@redhat.com>
9368 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9370 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9372 * config/i386/i386.md (*movdi_internal): Disparage slightly
9373 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9374 conversion alternatives.
9376 2013-03-21 Jakub Jelinek <jakub@redhat.com>
9379 * diagnostic.def (DK_WERROR): New kind.
9380 * diagnostic.h (werrorcount): Define.
9381 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9382 promoted to DK_ERROR, increment DK_WERROR counter instead of
9384 * toplev.c (toplev_main): Call print_ignored_options even if
9385 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9386 even if just werrorcount is non-zero.
9389 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9391 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9392 (string_cst_pool_decl): New function.
9393 (optimize_one_addr_into_implicit_ptr): New function.
9394 (resolve_addr_in_expr): Optimize DWARF location expression
9395 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9396 which doesn't live in memory, but has DW_AT_location or
9397 DW_AT_const_value, or refers to a string literal, into
9398 DW_OP_GNU_implicit_pointer.
9399 (optimize_location_into_implicit_ptr): New function.
9400 (resolve_addr): If removing DW_AT_location of a variable because
9401 it was DW_OP_addr of address of the variable, but the variable doesn't
9402 live in memory, try to emit const value attribute for the initializer.
9404 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9406 * tree.h (VECTOR_TYPE_P): New macro.
9407 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9409 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9410 VEC_COND_EXPR cannot be lvalues.
9411 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9413 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9415 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9416 Restrict the transformation to equal modes.
9418 2013-03-21 Richard Biener <rguenther@suse.de>
9420 PR tree-optimization/39326
9421 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9422 (MEM_ANALYZABLE): Adjust.
9423 (record_mem_ref_loc): Move bitmap ops ...
9424 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9425 unanalyzable refs, do not record locations for it.
9426 (analyze_memory_references): Allocate ref zero as shared
9428 (refs_independent_p): Do not test for unanalyzed mems here.
9429 (ref_indep_loop_p_1): Special-case disambiguation against
9431 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9433 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9435 * config/arm/arm-protos.h (tune_params): Add
9436 prefer_neon_for_64bits field.
9437 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9438 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9439 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9440 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9441 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9442 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9443 (arm_option_override): Handle -mneon-for-64bits new option.
9444 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9445 (prefer_neon_for_64bits): Declare new variable.
9446 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9447 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9448 (arch_enabled): Handle new arch types. Remove support for onlya8
9450 (one_cmpldi2): Use new arch names.
9451 (zero_extend<mode>di2, extend<mode>di2): Ditto.
9452 * config/arm/arm.opt (mneon-for-64bits): Add option.
9453 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9454 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9455 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9457 * doc/invoke.texi (-mneon-for-64bits): Document.
9459 2013-03-21 Richard Biener <rguenther@suse.de>
9461 PR tree-optimization/39326
9462 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9463 (sort_bbs_in_loop_postorder_cmp): New function.
9464 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9466 2013-03-21 Richard Biener <rguenther@suse.de>
9468 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9469 (vect_insert_into_interleaving_chain): Likewise.
9470 (vect_drs_dependent_in_basic_block): Inline ...
9471 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9473 (vect_analyze_data_ref_dependence): ... here. Simplify.
9474 (vect_check_interleaving): Simplify.
9475 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9476 (vect_slp_analyze_data_ref_dependences): ... this new function.
9477 (dr_group_sort_cmp): New function.
9478 (vect_analyze_data_ref_accesses): Compute data-reference groups
9479 here instead of in vect_analyze_data_ref_dependence. Use
9480 a more efficient algorithm.
9481 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9482 vect_slp_analyze_data_ref_dependences. Call
9483 vect_analyze_data_ref_accesses earlier.
9484 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9485 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9486 (vect_slp_analyze_data_ref_dependences): New prototype.
9488 2013-03-21 Richard Biener <rguenther@suse.de>
9490 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9491 ref is stored in the loop.
9492 (find_refs_for_sm): Walk only over all stores.
9493 (store_motion_loop): Allocate from lim_bitmap_obstack.
9494 (store_motion): Likewise.
9496 2013-03-21 Richard Biener <rguenther@suse.de>
9498 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9499 Update virtual SSA form.
9501 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9503 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9504 * configure: Regenerate.
9505 * config.in: Regenerate.
9506 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9507 if !HAVE_LD_EH_FRAME_CIEV3.
9509 2013-03-21 Richard Biener <rguenther@suse.de>
9511 * tree-cfg.c (verify_expr_no_block): New function.
9512 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9513 nor DECL_VALUE_EXPR have locations with associated blocks.
9514 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9515 (clear_unused_block_pointer): Remove code dealing with
9516 blocks in DECL_DEBUG_EXPR locations.
9518 2013-03-21 Richard Biener <rguenther@suse.de>
9520 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9521 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9522 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9523 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9524 instead of DECL_DEBUG_EXPR_IS_FROM.
9525 * gimplify.c (gimplify_modify_expr): Likewise.
9526 * tree-cfg.c (verify_expr_location_1): Likewise.
9527 * tree-complex.c (create_one_component_var): Likewise.
9528 * tree-sra.c (create_access_replacement): Likewise.
9529 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9530 (clear_unused_block_pointer): Likewise.
9531 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9532 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9533 * var-tracking.c (var_debug_decl): Likewise.
9534 (track_expr_p): Likewise.
9535 * tree-inline.c (add_local_variables): Likewise. Set
9536 DECL_HAS_DEBUG_EXPR_P after copying it.
9537 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9538 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9540 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9543 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9544 * configure: Regenerate.
9545 * config.in: Regenerate.
9546 * config/i386/i386.md (*movdf_internal): Use
9547 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9548 movd instead of movq mnemonic for interunit moves.
9549 (*movdi_internal): Ditto.
9551 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9553 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9554 (abd<mode>_3): New pattern.
9555 (aba<mode>_3): New pattern.
9556 (fabd<mode>_3): New pattern.
9558 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9560 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9561 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9562 occurrence of REGISTER_PREFIX as its empty string.
9564 2013-03-20 Jeff Law <law@redhat.com>
9566 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9567 addititional equivalences for equality comparisons between an SSA_NAME
9568 and a constant where the SSA_NAME was set from a widening conversion.
9570 2013-03-20 Walter Lee <walt@tilera.com>
9572 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9574 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9576 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9577 depending on type attribute.
9578 (*movti_internal): Ditto.
9579 (*movtf_internal): Ditto.
9580 (*movxf_internal): Ditto.
9581 (*movdf_internal): Ditto.
9582 (*movsf_internal): Ditto.
9584 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9586 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9587 maybe_vex for sselog1 and ssemov types.
9588 (*movdi_internal): Reorder operand constraints.
9589 (*movsi_internal): Ditto. Set prefix attribute to
9590 maybe_vex for sselog1 and ssemov types.
9591 (*movtf_internal): Set prefix attribute to maybe_vex
9592 for sselog1 and ssemov types.
9593 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9594 DImode ssemov types. Reorder operand constraints.
9595 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9596 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9597 attribute for SImode ssemov types. Reorder operand constraints.
9599 2013-03-20 Martin Jambor <mjambor@suse.cz>
9601 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9602 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9604 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9606 * config/rs6000/predicates.md (indexed_address, update_address_mem
9607 update_indexed_address_mem): New predicates.
9608 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9609 attribute for load/store instructions.
9610 * config/rs6000/dfp.md (movsd_store): Likewise.
9611 (movsd_load): Likewise.
9612 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9613 (unnamed HI->DI extend define_insn): Likewise.
9614 (unnamed SI->DI extend define_insn): Likewise.
9615 (unnamed QI->SI extend define_insn): Likewise.
9616 (unnamed QI->HI extend define_insn): Likewise.
9617 (unnamed HI->SI extend define_insn): Likewise.
9618 (unnamed HI->SI extend define_insn): Likewise.
9619 (extendsfdf2_fpr): Likewise.
9620 (movsi_internal1): Likewise.
9621 (movsi_internal1_single): Likewise.
9622 (movhi_internal): Likewise.
9623 (movqi_internal): Likewise.
9624 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9625 attribute for load/store instructions.
9626 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9628 (mov<mode>_softfloat): Likewise.
9629 (mov<mode>_hardfloat32): Likewise.
9630 (mov<mode>_hardfloat64): Likewise.
9631 (mov<mode>_softfloat64): Likewise.
9632 (movdi_internal32): Likewise.
9633 (movdi_internal64): Likewise.
9634 (probe_stack_<mode>): Likewise.
9636 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9638 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9639 floating point, and decimal floating point to reload iterator.
9641 * config/rs6000/constraints.md (wl constraint): New constraints to
9642 return FLOAT_REGS if certain options are used to reduce the number
9643 of separate patterns that exist in the file.
9644 (wx constraint): Likewise.
9645 (wz constraint): Likewise.
9647 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9648 -mdebug=reg, print wg, wl, wx, and wz constraints.
9649 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9650 Initialize the reload functions for 64-bit binary/decimal floating
9652 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9653 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9654 create the buffer on the stack to overcome not having a 32-bit
9656 (rs6000_emit_move): Likewise.
9657 (rs6000_secondary_memory_needed_rtx): Likewise.
9658 (rs6000_alloc_sdmode_stack_slot): Likewise.
9659 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9660 via xxlxor, just like DFmode 0.0.
9662 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9663 define as 1 if we are running on a power7 or newer.
9664 (enum r6000_reg_class_enum): Add new constraints.
9666 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9667 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9668 with other moves by using conditional constraits (wg). Use LFIWZX
9669 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
9670 (movsd splitter): Likewise.
9671 (movsd_hardfloat): Likewise.
9672 (movsd_softfloat): Likewise.
9674 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9675 binary and decimal floating point moves.
9676 (fmove_ok): New attributes to combine binary and decimal floating
9677 point moves, and to combine power6x (mfpgpr) moves along normal
9679 (real_value_to_target): Likewise.
9686 (movsf): Combine binary and decimal floating point moves. Combine
9687 power6x (mfpgpr) moves with other moves by using conditional
9688 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
9689 (mov<mode> for SFmode/SDmode); Likewise.
9690 (SFmode/SDmode splitters): Likewise.
9691 (movsf_hardfloat): Likewise.
9692 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9693 (movsf_softfloat): Likewise.
9694 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9696 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9697 wx and wz constraints.
9699 * config/rs6000/constraints.md (wg constraint): New constraint to
9700 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9702 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9705 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9706 -mdebug=reg, print wg, wl, wx, and wz constraints.
9707 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9708 Initialize the reload functions for 64-bit binary/decimal floating
9710 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9711 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9712 create the buffer on the stack to overcome not having a 32-bit
9714 (rs6000_emit_move): Likewise.
9715 (rs6000_secondary_memory_needed_rtx): Likewise.
9716 (rs6000_alloc_sdmode_stack_slot): Likewise.
9717 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9718 via xxlxor, just like DFmode 0.0.
9720 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9721 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9722 with other moves by using conditional constraits (wg). Use LFIWZX
9723 and STFIWX for loading SDmode on power7.
9724 (movdd splitters): Likewise.
9725 (movdd_hardfloat32): Likewise.
9726 (movdd_softfloat32): Likewise.
9727 (movdd_hardfloat64_mfpgpr): Likewise.
9728 (movdd_hardfloat64): Likewise.
9729 (movdd_softfloat64): Likewise.
9731 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9732 64-bit binary and decimal floating point moves.
9733 (FMOVE64X): Likewise.
9734 (movdf): Combine 64-bit binary and decimal floating point moves.
9735 Combine power6x (mfpgpr) moves with other moves by using
9736 conditional constraits (wg).
9737 (mov<mode> for DFmode/DDmode): Likewise.
9738 (DFmode/DDmode splitters): Likewise.
9739 (movdf_hardfloat32): Likewise.
9740 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9741 (movdf_softfloat32): Likewise.
9742 (movdf_hardfloat64_mfpgpr): Likewise.
9743 (movdf_hardfloat64): Likewise.
9744 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9745 (movdf_softfloat64): Likewise.
9746 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9747 (reload_<mode>_load): Move to later in the file so they aren't in
9748 the middle of the floating point move insns.
9749 (reload_<mode>_store): Likewise.
9751 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9754 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9755 constraint if -mdebug=reg.
9756 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9757 Enable using dd reload support if needed.
9759 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9760 binary and decimal floating point moves in rs6000.md.
9761 (movtd_internal): Likewise.
9763 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9764 decimal floating point moves.
9766 (movtf_internal): Likewise.
9767 (mov<mode>_internal, TDmode/TFmode): Likewise.
9768 (movtf_softfloat): Likewise.
9769 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9771 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9772 movdi_internal64, using wg constraint for move direct operations.
9773 (movdi_internal64): Likewise.
9775 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9776 MODES_TIEABLE_P for selected modes. Print the numerical value of
9777 the various virtual registers. Use GPR/FPR first/last values,
9778 instead of hard coding the register numbers. Print which modes
9779 have reload functions registered.
9780 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9781 settings before/after setting cpu, target and subtarget settings.
9782 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9783 and for secondary reload failures in rs6000_secondary_reload_inner.
9784 (rs6000_secondary_reload_fail): Likewise.
9785 (rs6000_secondary_reload_inner): Likewise.
9787 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9788 macros for first/last GPR and FPR registers.
9789 (LAST_GPR_REGNO): Likewise.
9790 (FIRST_FPR_REGNO): Likewise.
9791 (LAST_FPR_REGNO): Likewise.
9793 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9794 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9795 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9796 (vcond<mode><mode>): Likewise.
9797 (vcondu<mode><mode>): Likewise.
9798 (vector_gtu<mode>): Likewise.
9799 (vector_gte<mode>): Likewise.
9800 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9801 to prevent the compiler from converting DImode operations to TImode.
9802 (ior<mode>3): Likewise.
9803 (and<mode>3): Likewise.
9804 (one_cmpl<mode>2): Likewise.
9805 (nor<mode>3): Likewise.
9806 (andc<mode>3): Likewise.
9808 * config/rs6000/constraints.md (wt constraint): New constraint
9809 that returns VSX_REGS if TImode is allowed in VSX registers.
9811 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9814 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9815 similar to TImode, but it is restricted to being in the GPRs.
9817 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9818 TImode to occupy a single VSX register.
9820 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9821 -mvsx-timode for power7/power8.
9822 (power7 cpu): Likewise.
9823 (power8 cpu): Likewise.
9825 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9826 sure that TFmode/TDmode take up two registers if they are ever
9827 allowed in the upper VSX registers.
9828 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9830 (rs6000_init_hard_regno_mode_ok): Likewise.
9831 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9832 constraint. Print if LRA is turned on.
9833 (rs6000_option_override_internal): Give an error if -mvsx-timode
9834 and VSX is not enabled.
9835 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9836 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9837 to reg+offset addressing. Use PTImode when checking offset
9838 addresses for validity.
9839 (reg_offset_addressing_ok_p): Likewise.
9840 (rs6000_legitimate_offset_address_p): Likewise.
9841 (rs6000_legitimize_address): Likewise.
9842 (rs6000_legitimize_reload_address): Likewise.
9843 (rs6000_legitimate_address_p): Likewise.
9844 (rs6000_eliminate_indexed_memrefs): Likewise.
9845 (rs6000_emit_move): Likewise.
9846 (rs6000_secondary_reload): Likewise.
9847 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9848 reloads to fpr registers to continue to use reg+offset addressing,
9849 but 64-bit reloads to altivec registers need reg+reg addressing.
9850 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9851 it. Treat LO_SUM like a PLUS operation.
9852 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9853 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9854 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9855 registers to share a register with a smaller sized type, since VSX
9856 puts scalars in the upper 64-bits.
9857 (print_operand): Add support for PTImode.
9858 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9859 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9860 registers, but don't have arithmetic support.
9861 (rs6000_memory_move_cost): Add test for VSX.
9862 (rs6000_opt_masks): Add -mvsx-timode.
9864 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9867 (VSr): Use wt constraint for TImode.
9868 (VSv): Drop TImode support.
9869 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9870 (vsx_movti_64bit): Likewise.
9871 (vsx_movti_32bit): Likewise.
9872 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9873 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9874 one '?' on the appropriate output constraint. Do not allow TImode
9875 logical operations on 32-bit systems.
9876 (vsx_ior<mode>3): Likewise.
9877 (vsx_xor<mode>3): Likewise.
9878 (vsx_one_cmpl<mode>2): Likewise.
9879 (vsx_nor<mode>3): Likewise.
9880 (vsx_andc<mode>3): Likewise.
9881 (vsx_concat_<mode>): Likewise.
9882 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9884 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9885 OPTION_MASK_VSX_TIMODE.
9886 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9887 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9889 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9890 (TI2 iterator): New iterator for TImode, PTImode.
9891 (wd mode attribute): Add values for vector types.
9892 (movti_string): Replace TI move operations with operations for TImode
9893 and PTImode. Add support for TImode being allowed in VSX registers.
9894 (mov<mode>_string, TImode/PTImode): Likewise.
9895 (movti_ppc64): Likewise.
9896 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9897 (TI mode splitters): Likewise.
9899 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9902 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
9904 PR tree-optimization/56355
9905 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9906 Also handle integers with undefined overflow.
9908 2013-03-20 Catherine Moore <clm@codesourcery.com>
9909 Maciej W. Rozycki <macro@codesourcery.com>
9910 Tom de Vries <tom@codesourcery.com>
9911 Nathan Sidwell <nathan@codesourcery.com>
9912 Iain Sandoe <iain@codesourcery.com>
9913 Nathan Froyd <froydnj@codesourcery.com>
9914 Chao-ying Fu <fu@mips.com>
9916 * doc/extend.texi: (micromips, nomicromips, nocompression):
9917 Document new function attributes.
9918 * doc/invoke.texi (minterlink-compressed, mmicromips,
9919 m14k, m14ke, m14kec): Document new options.
9920 (minterlink-mips16): Update documentation.
9921 * doc/md.texi (ZC, ZD): Document new constraints.
9922 * configure.ac (gcc_cv_as_micromips): Check if linker
9923 supports the .set micromips directive.
9924 * configure: Regenerate.
9925 * config.in: Regenerate.
9926 * config/mips/mips-tables.opt: Regenerate.
9927 * config/mips/micromips.md: New file.
9928 * constraints.md (ZC, ZD): New constraints.
9929 * config/mips/predicates.md (movep_src_register): New predicate.
9930 (movep_src_operand): New predicate.
9931 (non_volatile_mem_operand): New predicate.
9932 * config/mips/mips.md (multimem): New type.
9933 (length): Differentiate between 17-bit and 18-bit branch offsets.
9934 (MOVEP1, MOVEP2): New mode iterator.
9935 (mov_<load>l): Use ZC constraint.
9936 (mov_<load>r): Likewise.
9937 (mov_<store>l): Likewise.
9938 (mov_<store>r): Likewise.
9939 (*branch_equality<mode>_inverted): Add microMIPS support.
9940 (*branch_equality<mode>): Likewise.
9941 (*jump_absolute): Likewise.
9942 (indirect_jump_<mode>): Likewise.
9943 (tablejump_<mode>): Likewise.
9944 (<optab>_internal): Likewise.
9945 (sibcall_internal): Likewise.
9946 (sibcall_value_internal): Likewise.
9947 (prefetch): Use constraint ZD.
9948 * config/mips/mips.opt (minterlink-compressed): New option.
9949 (minterlink-mips16): Now an alias for minterlink-compressed.
9950 (mmicromips): New option.
9951 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9952 (compare_and_swap_12): Likewise.
9953 (sync_add<mode>): Likewise.
9954 (sync_<optab>_12): Likewise.
9955 (sync_old_<optab>_12): Likewise.
9956 (sync_new_<optab>_12): Likewise.
9957 (sync_nand_12): Likewise.
9958 (sync_old_nand_12): Likewise.
9959 (sync_new_nand_12): Likewise.
9960 (sync_sub<mode>): Likewise.
9961 (sync_old_add<mode>): Likewise.
9962 (sync_old_sub<mode>): Likewise.
9963 (sync_new_add<mode>): Likewise.
9964 (sync_new_sub<mode>): Likewise.
9965 (sync_<optab><mode>): Likewise.
9966 (sync_old_<optab><mode>): Likewise.
9967 (sync_new_<optab><mode>): Likewise.
9968 (sync_nand<mode>): Likewise.
9969 (sync_old_nand<mode>): Likewise.
9970 (sync_new_nand<mode>): Likewise.
9971 (sync_lock_test_and_set<mode>): Likewise.
9972 (test_and_set_12): Likewise.
9973 (atomic_compare_and_swap<mode>): Likewise.
9974 (atomic_exchange<mode>_llsc): Likewise.
9975 (atomic_fetch_add<mode>_llsc): Likewise.
9976 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9977 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9978 (umips_save_restore_pattern_p): Likewise.
9979 (umips_load_store_pair_p): Likewise.
9980 (umips_output_load_store_pair): Likewise.
9981 (umips_movep_target_p): Likewise.
9982 (umips_12bit_offset_address_p): Likewise.
9983 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9984 (mips_base_mips16): Rename this...
9985 (mips_base_compression_flags): ...to this. Update all uses.
9986 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9987 (mips_mips16_decl_p): Delete.
9988 (mips_nomips16_decl_p): Delete.
9989 (mips_get_compress_on_flags): New function.
9990 (mips_get_compress_off_flags): New function.
9991 (mips_get_compress_mode): New function.
9992 (mips_get_compress_on_name): New function.
9993 (mips_get_compress_off_name): New function.
9994 (mips_insert_attributes): Support multiple compression types.
9995 (mips_merge_decl_attributes): Likewise.
9996 (umips_12bit_offset_address_p): New function.
9997 (mips_start_function_definition): Emit .set micromips directive.
9998 (mips_call_may_need_jalx_p): New function.
9999 (mips_function_ok_for_sibcall): Add microMIPS support.
10000 (mips_print_operand_punctuation): Support short delay slots and
10002 (umips_swm_mask, umips_swm_encoding): New.
10003 (umips_build_save_restore): New function.
10004 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
10005 (was_mips16_p): Remove.
10006 (old_compression_mode): New.
10007 (mips_set_compression_mode): New function.
10008 (mips_set_current_function): Add microMIPS support.
10009 (mips_option_override): Likewise.
10010 (umips_save_restore_pattern_p): New function.
10011 (umips_output_save_restore): New function.
10012 (umips_load_store_pair_p_1): New function.
10013 (umips_load_store_pair_p): New function.
10014 (umips_output_load_store_pair_1): New function.
10015 (umips_output_load_store_pair): New function.
10016 (umips_movep_target_p) New function.
10017 (mips_prepare_pch_save): Add microMIPS support.
10018 * config/mips/mips.h (TARGET_COMPRESSION): New.
10019 (TARGET_CPU_CPP_BUILTINS): Update macro
10020 to use new compression flags and to support microMIPS.
10021 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
10022 (MIPS_ARCH_FLOAT_SPEC): Likewise.
10023 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
10024 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10025 (ASM_SPEC): Support mmicromips and mno-micromips.
10026 (M16STORE_REG_P): New macro.
10027 (MIPS_CALL): Support TARGET_MICROMIPS.
10028 (MICROMIPS_J): New macro.
10029 (mips_base_mips16): Rename this...
10030 (mips_base_compression_flags): ...to this.
10031 (UMIPS_12BIT_OFFSET_P): New macro.
10032 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10033 (MULTILIB_DIRNAMES): Likewise.
10034 2013-03-20 Richard Biener <rguenther@suse.de>
10036 PR tree-optimization/56661
10037 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10038 the result does not have to be distinct.
10040 2013-03-20 Richard Biener <rguenther@suse.de>
10042 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10045 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10046 Steven Bosscher <steven@gcc.gnu.org>
10048 PR rtl-optimization/56605
10049 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10051 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10054 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10055 that require movd instead of movq.
10057 2013-03-20 Richard Biener <rguenther@suse.de>
10059 * tree-ssa-structalias.c (struct variable_info): Add pointer
10060 to the first field of an aggregate with sub-vars. Make
10061 this and the pointer to the next subfield its ID.
10062 (vi_next): New function.
10063 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10064 storedanything_id, integer_id): Increment by one.
10065 (new_var_info, get_call_vi, lookup_call_clobber_vi,
10066 get_call_clobber_vi): Adjust.
10067 (solution_set_expand): Simplify and speedup.
10068 (solution_set_add): Inline into ...
10069 (set_union_with_increment): ... this. Adjust accordingly.
10070 (do_sd_constraint): Likewise.
10071 (do_ds_constraint): Likewise.
10072 (do_complex_constraint): Simplify.
10073 (build_pred_graph): Adjust.
10074 (solve_graph): Likewise. Simplify and speedup.
10075 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10076 get_constraint_for_component_ref, get_constraint_for_1,
10077 first_vi_for_offset, first_or_preceding_vi_for_offset,
10078 create_function_info_for, create_variable_info_for_1,
10079 create_variable_info_for, intra_create_variable_infos): Adjust.
10080 (init_base_vars): Push NULL for ID zero.
10081 (compute_points_to_sets): Adjust.
10083 2013-03-20 Richard Biener <rguenther@suse.de>
10085 * cfgloop.c (verify_loop_structure): Streamline and avoid
10086 ICEing on corrupt loop tree.
10087 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10090 2013-03-20 Richard Biener <rguenther@suse.de>
10092 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10093 check whether an SSA update is needed.
10095 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10097 * config/mips/constraints.md (T): Rename to...
10101 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10102 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10104 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10106 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10107 (*subsi3_carryin_uxtw): Likewise.
10109 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10111 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10112 (*rorsi3_insn_uxtw): Likewise.
10114 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10116 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10117 (*extrsi5_insn_uxtw): Likewise.
10119 2013-03-19 Richard Biener <rguenther@suse.de>
10121 PR tree-optimization/56273
10122 * passes.c (init_optimization_passes): Move second VRP after DOM.
10124 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
10126 * config/i386/i386.md (*movti_internal): Merge from
10127 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10128 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10129 nox64 isa attributes.
10131 2013-03-18 Richard Biener <rguenther@suse.de>
10133 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10135 (merge_node_constraints): Likewise.
10136 (build_succ_graph): Likewise.
10137 (valid_graph_edge): Inline into single caller.
10138 (unify_nodes): Likewise. Use bitmap_set_bit return value
10140 (scc_visit): Fix formatting and variable use.
10141 (do_sd_constraint): Use gcc_checking_assert.
10142 (do_ds_constraint): Likewise.
10143 (do_complex_constraint): Likewise.
10144 (condense_visit): Likewise. Cleanup.
10145 (dump_pred_graph): New function.
10146 (perform_var_substitution): Dump the pred-graph before
10147 variable substitution.
10148 (find_equivalent_node): Use gcc_checking_assert.
10149 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10151 2013-03-18 Richard Biener <rguenther@suse.de>
10153 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10154 Remove cond_expr_stmt_list argument and do not gimplify the
10156 (vect_loop_versioning): Adjust.
10157 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10158 Cleanup to use less temporaries.
10159 (vect_create_data_ref_ptr): Cleanup.
10161 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10163 PR tree-optimization/56635
10164 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10165 require types_compatible_p types.
10167 2013-03-18 Nick Clifton <nickc@redhat.com>
10169 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10170 spurious backslash.
10172 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10173 Add missing line to comment describing function.
10175 2013-03-18 Richard Biener <rguenther@suse.de>
10177 PR tree-optimization/56210
10178 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10179 Handle string / character search functions.
10180 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10182 2013-03-18 Richard Biener <rguenther@suse.de>
10184 PR middle-end/56483
10185 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10186 and implement properly.
10187 * gimple.h (gimple_cond_single_var_p): Remove.
10189 2013-03-18 Richard Biener <rguenther@suse.de>
10191 * tree-data-ref.h (find_data_references_in_loop): Declare.
10192 * tree-data-ref.c (get_references_in_stmt): Use a stack
10193 vector pre-allocated in the callers.
10194 (find_data_references_in_stmt): Adjust.
10195 (graphite_find_data_references_in_stmt): Likewise.
10196 (create_rdg_vertices): Likewise.
10197 (find_data_references_in_loop): Export.
10198 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10199 Compute dependences here...
10200 (vect_analyze_data_refs): ...not here. When we encounter
10201 a non-vectorizable data reference in basic-block vectorization
10202 truncate the data reference vector. Do not bother to
10203 fixup data-dependence information for gather loads.
10204 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10205 of data references, as reported.
10207 2013-03-18 Richard Biener <rguenther@suse.de>
10209 PR tree-optimization/3713
10210 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10211 has_constants and expr.
10212 (stmt_has_constants): Properly valueize SSA names when deciding
10213 whether the stmt has constants.
10215 2013-03-18 Richard Biener <rguenther@suse.de>
10217 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10218 whole function when there is nothing to do.
10219 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10220 * tree-vectorizer.c (vectorize_loops): Update virtual and
10221 loop-closed SSA once.
10222 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10224 2013-03-18 Richard Biener <rguenther@suse.de>
10226 PR middle-end/56113
10227 * domwalk.c (bb_postorder): New global static.
10228 (cmp_bb_postorder): New function.
10229 (walk_dominator_tree): Replace scheme imposing an order for
10230 visiting dominator sons by one sorting them at the time they
10231 are pushed on the stack.
10233 2013-03-18 Richard Biener <rguenther@suse.de>
10235 PR tree-optimization/39326
10236 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10237 (struct mem_ref): Replace mem member with ao_ref typed member.
10238 (MEM_ANALYZABLE): Adjust.
10239 (memref_eq): Likewise.
10240 (mem_ref_alloc): Likewise.
10241 (gather_mem_refs_stmt): Likewise.
10242 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10243 (execute_sm_if_changed_flag_set): Adjust.
10244 (execute_sm): Likewise.
10245 (ref_always_accessed_p): Likewise.
10246 (refs_independent_p): Likewise.
10247 (can_sm_ref_p): Likewise.
10249 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10252 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10253 return 1 even for !unsignedp.
10255 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10257 * config/i386/i386.md (isa): Add x64 and nox64.
10258 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10259 (*pushtf): Enable *roF alternative for x64 isa only.
10260 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10261 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10262 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10263 (*movtf_internal): Merge from *movtf_internal_rex64 and
10264 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10265 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10266 nox64 isa attributes.
10267 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10268 nox64 isa attributes.
10269 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10271 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10273 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10275 2013-03-17 Jakub Jelinek <jakub@redhat.com>
10278 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10279 class names. Remove trailing comma after "ALL_REGS".
10281 2013-03-16 Jan Hubicka <jh@suse.cz>
10283 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10284 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10285 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10286 of cgraph_get_create_node.
10287 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10289 2013-03-16 Jason Merrill <jason@redhat.com>
10292 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10293 with DW_AT_default_value.
10295 2013-03-16 Jakub Jelinek <jakub@redhat.com>
10297 * BASE-VER: Set to 4.9.0.
10299 2013-03-14 Andi Kleen <ak@linux.intel.com>
10302 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10303 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10304 Document _x* TSX intrinsics.
10306 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10307 David Holsgrove <david.holsgrove@xilinx.com>
10309 * configure.ac: Add MicroBlaze TLS support detection.
10310 * configure: Regenerate.
10311 * config/microblaze/microblaze-protos.h
10312 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10313 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10314 * config/microblaze/microblaze.c (microblaze_address_type): Add
10315 ADDRESS_TLS and tls_reloc address types.
10316 (microblaze_address_info): Add tls_reloc.
10317 (TARGET_HAVE_TLS): Define.
10318 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10319 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10320 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10321 load_tls_operand, microblaze_call_tls_get_addr,
10322 microblaze_legitimize_tls_address): New functions.
10323 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10324 (get_base_reg): Use microblaze_tls_symbol_p.
10325 (microblaze_classify_address): Handle TLS.
10326 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10327 label_mentioned_p and microblaze_tls_referenced_p.
10328 (microblaze_legitimize_address): Handle TLS.
10329 (microblaze_address_insns): Handle ADDRESS_TLS.
10330 (pic_address_needs_scratch): Handle TLS.
10331 (print_operand_address): Handle TLS.
10332 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10333 (microblaze_expand_move): Handle TLS.
10334 (microblaze_legitimate_constant_p): Check
10335 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10336 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10337 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10338 (PIC_OFFSET_TABLE_REGNUM): Set.
10339 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10340 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10341 (addsi3, movsi_internal2, movdf_internal): Update constraints
10342 * config/microblaze/predicates.md (arith_plus_operand): Define
10343 (move_operand): Redefine as move_src_operand,
10344 check microblaze_tls_referenced_p.
10346 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10348 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10349 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10351 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10353 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10356 2013-03-14 Jakub Jelinek <jakub@redhat.com>
10358 PR tree-optimization/53265
10359 * common.opt (Waggressive-loop-optimizations): New option.
10360 * tree-ssa-loop-niter.c: Include tree-pass.h.
10361 (do_warn_aggressive_loop_optimizations): New function.
10362 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10363 if number_of_latch_executions returned constant.
10364 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10365 early. If number_of_latch_executions returned constant, set
10366 nb_iterations_upper_bound back to it.
10367 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10369 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10370 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10372 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10373 (MULTILIB_OSDIRNAMES): Set.
10374 * genmultilib: If defaultosdirname doesn't start with :: , set
10375 defaultosdirname2 instead, clear it and emit two . multilib_raw
10376 entries instead of just one.
10378 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10380 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10381 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10382 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10383 (SUBTARGET_OVERRIDE_OPTIONS): New.
10385 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10388 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10389 (musermode): Convert to Var(TARGET_USERMODE).
10390 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10391 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10392 * config/sh/sh.c (sh_option_override): Use
10393 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10394 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10396 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10398 (udivsi3_i4_single, divsi3_i4_single): Use
10399 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10401 2013-03-13 Dave Korn <dave.korn.cygwin@....>
10403 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10406 2013-03-13 Richard Biener <rguenther@suse.de>
10408 PR tree-optimization/56608
10409 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10410 calls when vectorizing basic-blocks.
10412 2013-03-13 Jakub Jelinek <jakub@redhat.com>
10415 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10418 2013-03-12 Jakub Jelinek <jakub@redhat.com>
10420 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10422 2013-03-11 Jan Hubicka <jh@suse.cz>
10425 * lto-streamer-out.c (output_symbol_p): Skip references from
10426 constructors of external variables.
10428 2013-03-11 Jan Hubicka <jh@suse.cz>
10430 PR middle-end/56571
10431 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10433 * emit-rtl.c (verify_rtx_sharing): Likewise.
10434 (copy_insn_1): Likewise.
10435 * rtl.c (copy_rtx): Likewise.
10437 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
10440 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10441 output_operand_lossage message.
10443 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
10446 * arm.c (shift_op): Validate RTL pattern on the fly.
10447 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10450 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10453 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10454 new call patterns that clobber %fr12.
10455 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10456 split and postreload patterns.
10457 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10458 registers %fr12 and %fr12R as call used.
10460 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10462 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10463 (canon_address, record_store, replace_read, check_mem_read_rtx,
10464 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10465 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10466 rest_of_handle_dse): Likewise.
10468 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10470 PR middle-end/56524
10471 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10473 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10474 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10475 (save_optabs_if_changed): Replace with...
10476 (init_tree_optimization_optabs): ...this.
10477 * optabs.c (save_optabs_if_changed): Rename to...
10478 (init_tree_optimization_optabs): ...this. Take the optimization node
10479 as argument. Do nothing if the base optabs are already correct.
10480 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10481 to recompute optabs.
10482 * function.h (function): Remove optabs field.
10483 * function.c (invoke_set_current_function_hook): Call
10484 init_tree_optimization_optabs. Use the result to initialize
10487 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
10489 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10490 if GTMA_HAS_NO_INSTRUMENTATION.
10491 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10492 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10493 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10494 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10495 GTMA_HAS_NO_INSTRUMENTATION.
10497 2013-03-08 Jakub Jelinek <jakub@redhat.com>
10499 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10502 2013-03-08 Marek Polacek <polacek@redhat.com>
10503 Jakub Jelinek <jakub@redhat.com>
10505 PR tree-optimization/56478
10506 * predict.c (is_comparison_with_loop_invariant_p): Change the
10507 type of loop_step to tree.
10508 (predict_loops): Adjust.
10509 (predict_iv_comparison): Perform the computations on double_ints.
10511 2013-03-08 Richard Biener <rguenther@suse.de>
10513 PR tree-optimization/56570
10514 * tree-cfg.c (verify_expr_location_1): Verify locations for
10516 * tree-sra.c (create_access_replacement): Strip locations
10517 from DECL_DEBUG_EXPRs.
10519 2013-03-08 Richard Biener <rguenther@suse.de>
10521 * tree-inline.c (expand_call_inline): Do not associate
10522 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10523 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10525 2013-03-08 Richard Biener <rguenther@suse.de>
10527 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10528 or block changes with -Og. Fix for location / block encoding
10529 changes and PHI arguments with locations.
10531 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10533 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10535 (struct output_info): Likewise.
10536 (register_overhead): Remove bad gcc_assert.
10537 (bitmap_find_bit): If there is only a single bitmap element, do not
10538 count a miss as a search.
10539 (print_statistics): Update for counter type changes.
10540 (dump_bitmap_statistics): Likewise. Print headers such that they
10541 are properly lined up with the printed counters.
10543 2013-03-07 Jakub Jelinek <jakub@redhat.com>
10545 PR tree-optimization/56559
10546 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10547 check that it has only a single use.
10549 2013-03-07 Richard Biener <rguenther@suse.de>
10551 * doc/invoke.texi (fwhole-program): Discourage use in combination
10554 2013-03-06 Jakub Jelinek <jakub@redhat.com>
10556 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10558 PR tree-optimization/56539
10559 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10560 instead of GSI_CONTINUE_LINKING as last argument to
10561 force_gimple_operand_gsi. Adjust function comment.
10563 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10566 PR middle-end/56548
10567 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10568 promoted mode, convert the result back to the original mode.
10570 2013-03-06 Richard Biener <rguenther@suse.de>
10572 PR middle-end/56294
10573 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10574 (insert_updated_phi_nodes_compare_uids): New function.
10575 (update_ssa): Sort symbols_to_rename after UID before
10576 traversing it to insert PHI nodes.
10578 2013-03-06 Richard Biener <rguenther@suse.de>
10580 PR middle-end/50494
10581 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10582 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10585 2013-02-13 Richard Biener <rguenther@suse.de>
10588 * varasm.c (output_constant_def_1): Get the decl representing
10589 the constant as argument.
10590 (output_constant_def): Wrap output_constant_def_1.
10591 (make_decl_rtl): Use output_constant_def_1 with the decl
10592 representing the constant.
10593 (build_constant_desc): Optionally re-use a decl already
10594 representing the constant.
10595 (tree_output_constant_def): Adjust.
10597 2013-03-06 Joey Ye <joey.ye@arm.com>
10600 * gcc.c (convert_white_space): New function.
10601 (main): Handles white space in function name.
10603 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10606 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10607 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10608 to SH_DIV_CALL_TABLE for TARGET_SH2.
10609 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10611 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10612 call-table options.
10614 2013-03-05 Sterling Augustine <saugustine@google.com>
10615 Cary Coutant <ccoutant@google.com>
10618 * dwarf2out.c (resolve_addr): Don't call
10619 remove_loc_list_addr_table_entries a second time for the same
10622 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10625 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10626 (avoid_complex_debug_insns): New function.
10627 (expand_debug_locations): Call it.
10629 PR rtl-optimization/56484
10630 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10631 lifetimes of hard registers on small register class machines.
10633 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10635 * config/microblaze/microblaze-protos.h: Rename
10636 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10637 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10639 (microblaze_fast_interrupt_function_p): New function.
10640 (microblaze_is_interrupt_handler): Rename to
10641 microblaze_is_interrupt_variant and add fast_interrupt check.
10642 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10643 (save_restore_insns): Likewise.
10644 (compute_frame_size): Likewise.
10645 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10646 (microblaze_globalize_label): Likewise.
10647 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10648 * config/microblaze/microblaze.md: Use wrapper
10649 microblaze_is_interrupt_variant.
10651 2013-03-05 Kai Tietz <ktietz@redhat.com>
10653 * sdbout.c (sdbout_one_type): Switch to current function's section
10654 supporting cold/hot.
10656 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10658 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10661 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10663 PR middle-end/56461
10664 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10665 if VALGRIND_GET_VBITS is defined, temporarily make object
10666 memory all defined, and restore previous valgrind addressability
10667 and definability afterwards. Free this_object at the end.
10669 PR middle-end/56461
10670 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10671 right before calling lra_create_live_ranges, also call it
10672 when clearing live_p. Only call lra_clear_live_ranges
10673 at the end if live_p.
10675 PR middle-end/56461
10676 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10678 2013-03-05 Richard Biener <rguenther@suse.de>
10680 PR tree-optimization/56521
10681 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10684 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10687 * except.h (remove_unreachable_eh_regions): New prototype.
10688 * except.c (remove_eh_handler_splicer): New function, split out
10689 of remove_eh_handler.
10690 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10691 warning about running it on many EH regions one at a time.
10692 (remove_unreachable_eh_regions_worker): New function, walk the
10693 EH tree in depth-first order and remove non-marked regions.
10694 (remove_unreachable_eh_regions): New function.
10695 * tree-eh.c (mark_reachable_handlers): New function, split out
10696 from remove_unreachable_handlers.
10697 (remove_unreachable_handlers): Use mark_reachable_handlers and
10698 remove_unreachable_eh_regions.
10699 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10700 and remove_unreachable_eh_regions.
10702 2013-03-05 Richard Biener <rguenther@suse.de>
10704 PR middle-end/56525
10705 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10706 not freeing them until the end.
10708 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10710 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10712 2013-03-05 Richard Biener <rguenther@suse.de>
10714 PR tree-optimization/56270
10715 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10716 of loads after scheduling an SLP instance.
10718 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10720 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10722 (check_gcc_parallelize): Run guality.exp as a separate job from
10723 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10724 struct-layout-1.exp with stackalign.exp.
10726 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10728 PR middle-end/56461
10729 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10730 load_index sbitmap even if some bit in it isn't set.
10732 PR middle-end/56461
10733 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10734 (discover_iteration_bound_by_body_walk): Change queues to
10735 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10736 spelling in comment. Call safe_push on queues[bound_index] directly.
10737 Release queues[queue_index] in every iteration unconditionally.
10738 Release bounds vector.
10740 PR middle-end/56461
10741 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10742 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10743 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10746 2013-03-05 Richard Biener <rguenther@suse.de>
10749 * tree-inline.c (remap_blocks_to_null): New function.
10750 (expand_call_inline): When expanding a call stmt without
10751 an associated block inline remap all callee blocks to NULL.
10753 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10755 PR rtl-optimization/56494
10756 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10757 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10758 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10760 PR middle-end/56461
10761 * sel-sched-ir.c (free_sched_pools): Release
10762 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10763 if succs_info_pool.max_top isn't -1.
10766 * opts.c (opts_obstack, opts_concat): Moved to...
10767 * opts-common.c (opts_obstack, opts_concat): ... here.
10769 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10771 PR middle-end/56461
10772 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10774 2013-03-04 Martin Jambor <mjambor@suse.cz>
10776 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10777 all appropriate places.
10779 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10781 PR tree-optimization/56424
10782 * ipa-split.c (split_function): Do not set the RSO flag if result is
10783 not by reference and its type is a register type.
10785 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
10787 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10788 (microblaze_legitimate_pic_operand): Likewise
10789 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10790 new function microblaze_legitimate_pic_operand
10791 * config/microblaze/microblaze-protos.h
10792 (microblaze_legitimate_pic_operand): Declare.
10794 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10796 * config/microblaze/predicates.md (call_insn_simple_operand):
10797 New predicate for supported rtx code types.
10798 * config/microblaze/microblaze.md (call_internal1): Use
10799 call_insn_simple_operand predicate.
10801 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10803 PR middle-end/56461
10804 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10805 partitions.ordered_remove.
10807 PR middle-end/56461
10808 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10809 vec_oprnds0.create (1) for modifier == NONE.
10811 PR middle-end/56461
10812 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10813 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10814 vec_oprnds1 right before pushing anything to it for
10817 PR middle-end/56461
10818 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10819 set nbbs to 0 instead of having separate code path.
10820 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10821 instead of false as last argument if returning NULL.
10823 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10825 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10826 the attribute is now called "target" instead of "option".
10827 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10828 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10829 attribute/pragma name for TARGET_OPTION_VALID_P and
10830 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10831 * doc/tm.texi: Regenerated.
10833 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
10835 * config/microblaze/microblaze.c:
10836 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10837 * config/microblaze/microblaze.h: Add -mxl-reorder to
10839 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10840 instructions emitted if TARGET_REORDER.
10841 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10842 or 0 for -m/-mno case, but initialises as 2 to detect default use case
10845 2013-03-01 Xinliang David Li <davidxl@google.com>
10847 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10850 2013-03-01 Jakub Jelinek <jakub@redhat.com>
10852 PR middle-end/56461
10853 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10854 vector even when returning true. Fix up function comment formatting.
10856 PR middle-end/56461
10857 * ira-build.c (ira_loop_nodes_count): New variable.
10858 (create_loop_tree_nodes): Initialize it.
10859 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10861 PR middle-end/56461
10862 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10863 method on dr_chain and result_chain.
10864 * tree-vect-stmts.c (vectorizable_store): Only call
10865 result_chain.create if j == 0.
10867 PR middle-end/56461
10868 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10869 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10870 before overwriting it.
10872 2013-03-01 Tobias Burnus <burnus@net-b.de>
10874 * doc/extended.texi (C Extensions): Change order in @menu
10876 (Other MIPS Built-in Functions): Move last MIPS entry before
10877 "picoChip Built-in Functions".
10878 (SH Built-in Functions): Move after RX Built-in Functions.
10879 * doc/gcc.texi (Introduction): Change order in @menu
10881 * doc/md.texi (Constraints): Ditto.
10882 * gty.texi (Type Information): Ditto.
10883 (User-provided marking routines for template types): Make
10885 * doc/invoke.texi (AArch64 Options): Move before
10886 "Adapteva Epiphany Options".
10888 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10889 Jakub Jelinek <jakub@redhat.com>
10892 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10893 no_address_safety_analysis attribute.
10894 * doc/extend.texi (no_address_safety_attribute): Rename to
10895 no_sanitize_address attribute, mention no_address_safety_analysis
10896 attribute as deprecated alias.
10898 2013-02-28 Jakub Jelinek <jakub@redhat.com>
10900 PR middle-end/56461
10901 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10902 type to vec<vec<tree> > *.
10903 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10904 to be vec<tree> instead of vec<tree> *, set vec_defs
10905 to vNULL and call vec_defs.create (number_of_vects), adjust other
10907 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10908 vectorizable_condition): Adjust vect_get_slp_defs callers.
10910 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10912 * config/aarch64/aarch64.c
10913 (aarch64_float_const_representable): Remove unused variable.
10915 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10917 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10919 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10921 * config/aarch64/aarch64-builtins.c
10922 (aarch64_init_simd_builtins): Make static.
10924 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10926 * config/aarch64/aarch64.c
10927 (aarch64_simd_make_constant): Make static.
10929 2013-02-28 Martin Jambor <mjambor@suse.cz>
10931 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10932 with no initialization to the RHS of debug statements.
10934 2013-02-28 Martin Jambor <mjambor@suse.cz>
10936 PR tree-optimization/56294
10937 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10939 (get_access_replacement): Do not call create_access_replacement.
10940 Assert a replacement exists.
10941 (get_repl_default_def_ssa_name): Create the replacement declaration
10944 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10946 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10947 final_end_function.
10949 2013-02-28 Marek Polacek <polacek@redhat.com>
10951 PR rtl-optimization/56466
10952 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10953 if we're changing a loop.
10954 (peel_loops_completely): Likewise.
10956 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10959 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10961 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10964 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10965 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10966 INTX_FTYPE_FX, FX_FTYPE_INTX.
10967 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10969 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10971 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10972 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10973 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10974 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10975 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10976 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10977 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10978 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10979 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10980 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10981 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10982 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10983 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10984 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10985 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10986 (avrxmega6): Increase max flash segments from 5 to 6.
10987 * config/avr/t-multilib: Regenerate.
10988 * config/avr/avr-tables.opt: Regenerate.
10989 * doc/avr-mmcu.texi: Regenerate.
10991 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10993 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10994 (avr_device_to_arch): Rename to avr_device_to_ld.
10995 (avr_device_to_as): New prototype.
10996 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10997 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10998 * config/avr/driver-avr.c (avr_device_to_as): New.
10999 (avr_device_to_arch): Rename to avr_device_to_ld.
11001 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11003 PR middle-end/56461
11004 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
11005 method on dr_chain and result_chain.
11007 PR middle-end/56461
11008 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
11009 pointer_set_destroy on not_executed_last_iteration.
11011 PR middle-end/56461
11012 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
11014 PR middle-end/56461
11015 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
11016 FOR_EACH_DEFINED_FUNCTION when freeing state.
11018 PR middle-end/56461
11019 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
11021 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
11024 PR middle-end/56461
11025 * ipa-cp.c (decide_whether_version_node): Call vec_free on
11026 known_aggs[i].items and release known_aggs vector.
11028 PR middle-end/56461
11029 * ipa-reference.c (propagate): Free node_info even for alias nodes.
11031 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11033 * config/microblaze/microblaze.c (microblaze_emit_compare):
11034 Use xor for EQ/NE comparisions.
11035 * config/microblaze/microblaze.md (cstoresf4): Add constraints
11036 (cbranchsf4): Adjust operator to comparison_operator.
11038 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11040 PR middle-end/56461
11041 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11043 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11044 vec_safe_push, always update *slot.
11045 (redirect_edge_var_map_clear): Use vec_free.
11046 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11047 (free_var_map_entry): Use vec_free.
11048 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11049 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11051 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
11053 PR middle-end/45472
11054 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11055 when the may_trap_p bit of the exprs being merged differs.
11056 Reorder tests for speculativeness in the logical and operator.
11058 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11060 * incpath.c (add_standard_paths): Use reconcat instead of concat
11061 where appropriate and avoid leaking memory.
11063 * opts.h: Include obstack.h.
11064 (opts_concat): New prototype.
11065 (opts_obstack): New declaration.
11066 * opts.c (opts_concat): New function.
11067 (opts_obstack): New variable.
11068 (init_options_struct): Call gcc_init_obstack on opts_obstack.
11069 (finish_options): Use opts_concat instead of concat
11070 and XOBNEWVEC instead of XNEWVEC.
11071 * opts-common.c (generate_canonical_option, decode_cmdline_option,
11072 generate_option): Likewise.
11073 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11074 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11077 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11078 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11080 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11082 PR middle-end/56461
11083 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11085 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11087 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11088 (arm_block_move_unaligned_straight): Likewise.
11089 (arm_adjust_block_mem): Likewise.
11091 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11094 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11095 temp, cond and label.
11096 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11099 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11100 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11103 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11104 of prologue/epilogue functions.
11107 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11108 Remove unused variable cfa_offset.
11109 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11112 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11113 type promotion to unsigned.
11116 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11117 for HOST_WIDE_INT of 32 bit / same size as int.
11118 (arm_block_move_unaligned_straight): Likewise.
11119 (arm_adjust_block_mem): Likewise.
11122 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11125 2013-02-26 Marek Polacek <polacek@redhat.com>
11127 PR tree-optimization/56426
11128 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11130 2013-02-26 Richard Biener <rguenther@suse.de>
11133 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11134 unused variable loops.
11136 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11138 PR tree-optimization/56448
11139 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11140 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11141 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11142 later operands of the references, or even first operand for
11143 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11145 PR tree-optimization/56443
11146 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11147 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11148 to type_for_mode langhook.
11150 2013-02-25 Matt Turner <mattst88@gmail.com>
11152 * doc/invoke.texi: Document r4700.
11154 2013-02-25 Richard Biener <rguenther@suse.de>
11156 PR tree-optimization/56175
11157 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11159 (simplify_bitwise_binary): ... here. Also guard the conversion
11160 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11162 2013-02-25 Catherine Moore <clm@codesourcery.com>
11165 2013-02-24 Catherine Moore <clm@codesourcery.com>
11166 Maciej W. Rozycki <macro@codesourcery.com>
11167 Tom de Vries <tom@codesourcery.com>
11168 Nathan Sidwell <nathan@codesourcery.com>
11169 Iain Sandoe <iain@codesourcery.com>
11170 Nathan Froyd <froydnj@codesourcery.com>
11171 Chao-ying Fu <fu@mips.com>
11173 * doc/extend.texi: (micromips, nomicromips, nocompression):
11174 Document new function attributes.
11175 * doc/invoke.texi (minterlink-compressed, mmicromips,
11176 m14k, m14ke, m14kec): Document new options.
11177 (minterlink-mips16): Update documentation.
11178 * doc/md.texi (ZC, ZD): Document new constraints.
11179 * configure.ac (gcc_cv_as_micromips): Check if linker
11180 supports the .set micromips directive.
11181 * configure: Regenerate.
11182 * config.in: Regenerate.
11183 * config/mips/mips-tables.opt: Regenerate.
11184 * config/mips/micromips.md: New file.
11185 * constraints.md (ZC, AD): New constraints.
11186 * config/mips/predicates.md (movep_src_register): New predicate.
11187 (movep_src_operand): New predicate.
11188 (non_volatile_mem_operand): New predicate.
11189 * config/mips/mips.md (multimem): New type.
11190 (length): Differentiate between 17-bit and 18-bit branch offsets.
11191 (MOVEP1, MOVEP2): New mode iterator.
11192 (mov_<load>l): Use ZC constraint.
11193 (mov_<load>r): Likewise.
11194 (mov_<store>l): Likewise.
11195 (mov_<store>r): Likewise.
11196 (*branch_equality<mode>_inverted): Add microMIPS support.
11197 (*branch_equality<mode>): Likewise.
11198 (*jump_absolute): Likewise.
11199 (indirect_jump_<mode>): Likewise.
11200 (tablejump_<mode>): Likewise.
11201 (<optab>_internal): Likewise.
11202 (sibcall_internal): Likewise.
11203 (sibcall_value_internal): Likewise.
11204 (prefetch): Use constraint ZD.
11205 * config/mips/mips.opt (minterlink-compressed): New option.
11206 (minterlink-mips16): Now an alias for minterlink-compressed.
11207 (mmicromips): New option.
11208 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11209 (compare_and_swap_12): Likewise.
11210 (sync_add<mode>): Likewise.
11211 (sync_<optab>_12): Likewise.
11212 (sync_old_<optab>_12): Likewise.
11213 (sync_new_<optab>_12): Likewise.
11214 (sync_nand_12): Likewise.
11215 (sync_old_nand_12): Likewise.
11216 (sync_new_nand_12): Likewise.
11217 (sync_sub<mode>): Likewise.
11218 (sync_old_add<mode>): Likewise.
11219 (sync_old_sub<mode>): Likewise.
11220 (sync_new_add<mode>): Likewise.
11221 (sync_new_sub<mode>): Likewise.
11222 (sync_<optab><mode>): Likewise.
11223 (sync_old_<optab><mode>): Likewise.
11224 (sync_new_<optab><mode>): Likewise.
11225 (sync_nand<mode>): Likewise.
11226 (sync_old_nand<mode>): Likewise.
11227 (sync_new_nand<mode>): Likewise.
11228 (sync_lock_test_and_set<mode>): Likewise.
11229 (test_and_set_12): Likewise.
11230 (atomic_compare_and_swap<mode>): Likewise.
11231 (atomic_exchange<mode>_llsc): Likewise.
11232 (atomic_fetch_add<mode>_llsc): Likewise.
11233 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11234 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11235 (umips_save_restore_pattern_p): Likewise.
11236 (umips_load_store_pair_p): Likewise.
11237 (umips_output_load_store_pair): Likewise.
11238 (umips_movep_target_p): Likewise.
11239 (umips_12bit_offset_address_p): Likewise.
11240 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11241 (mips_base_mips16): Rename this...
11242 (mips_base_compression_flags): ...to this. Update all uses.
11243 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11244 (mips_mips16_decl_p): Delete.
11245 (mips_nomips16_decl_p): Delete.
11246 (mips_get_compress_on_flags): New function.
11247 (mips_get_compress_off_flags): New function.
11248 (mips_get_compress_mode): New function.
11249 (mips_get_compress_on_name): New function.
11250 (mips_get_compress_off_name): New function.
11251 (mips_insert_attributes): Support multiple compression types.
11252 (mips_merge_decl_attributes): Likewise.
11253 (umips_12bit_offset_address_p): New function.
11254 (mips_start_function_definition): Emit .set micromips directive.
11255 (mips_call_may_need_jalx_p): New function.
11256 (mips_function_ok_for_sibcall): Add microMIPS support.
11257 (mips_print_operand_punctuation): Support short delay slots and
11259 (umips_swm_mask, umips_swm_encoding): New.
11260 (umips_build_save_restore): New function.
11261 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11262 (was_mips16_p): Remove.
11263 (old_compression_mode): New.
11264 (mips_set_compression_mode): New function.
11265 (mips_set_current_function): Add microMIPS support.
11266 (mips_option_override): Likewise.
11267 (umips_save_restore_pattern_p): New function.
11268 (umips_output_save_restore): New function.
11269 (umips_load_store_pair_p_1): New function.
11270 (umips_load_store_pair_p): New function.
11271 (umips_output_load_store_pair_1): New function.
11272 (umips_output_load_store_pair): New function.
11273 (umips_movep_target_p) New function.
11274 (mips_prepare_pch_save): Add microMIPS support.
11275 * config/mips/mips.h (TARGET_COMPRESSION): New.
11276 (TARGET_CPU_CPP_BUILTINS): Update macro
11277 to use new compression flags and to support microMIPS.
11278 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11279 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11280 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11281 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11282 (ASM_SPEC): Support mmicromips and mno-micromips.
11283 (M16STORE_REG_P): New macro.
11284 (MIPS_CALL): Support TARGET_MICROMIPS.
11285 (MICROMIPS_J): New macro.
11286 (mips_base_mips16): Rename this...
11287 (mips_base_compression_flags): ...to this.
11288 (UMIPS_12BIT_OFFSET_P): New macro.
11289 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11290 (MULTILIB_DIRNAMES): Likewise.
11292 2013-02-25 Tom de Vries <tom@codesourcery.com>
11294 PR rtl-optimization/56131
11295 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11296 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11297 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11299 2013-02-25 Tobias Burnus <burnus@net-b.de>
11301 * doc/invoke.texi (-fsanitize=): Move from optimization
11302 to debugging options.
11304 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11306 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11308 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11309 Alexander Monakov <amonakov@ispras.ru>
11311 PR middle-end/56077
11312 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11313 flush pending lists also on non-jumps. Adjust comment.
11315 2013-02-24 Catherine Moore <clm@codesourcery.com>
11316 Maciej W. Rozycki <macro@codesourcery.com>
11317 Tom de Vries <tom@codesourcery.com>
11318 Nathan Sidwell <nathan@codesourcery.com>
11319 Iain Sandoe <iain@codesourcery.com>
11320 Nathan Froyd <froydnj@codesourcery.com>
11321 Chao-ying Fu <fu@mips.com>
11323 * doc/extend.texi: (micromips, nomicromips, nocompression):
11324 Document new function attributes.
11325 * doc/invoke.texi (minterlink-compressed, mmicromips,
11326 m14k, m14ke, m14kec): Document new options.
11327 (minterlink-mips16): Update documentation.
11328 * doc/md.texi (ZC, ZD): Document new constraints.
11329 * configure.ac (gcc_cv_as_micromips): Check if linker
11330 supports the .set micromips directive.
11331 * configure: Regenerate.
11332 * config.in: Regenerate.
11333 * config/mips/mips-tables.opt: Regenerate.
11334 * config/mips/micromips.md: New file.
11335 * constraints.md (ZC, AD): New constraints.
11336 * config/mips/predicates.md (movep_src_register): New predicate.
11337 (movep_src_operand): New predicate.
11338 (non_volatile_mem_operand): New predicate.
11339 * config/mips/mips.md (multimem): New type.
11340 (length): Differentiate between 17-bit and 18-bit branch offsets.
11341 (MOVEP1, MOVEP2): New mode iterator.
11342 (mov_<load>l): Use ZC constraint.
11343 (mov_<load>r): Likewise.
11344 (mov_<store>l): Likewise.
11345 (mov_<store>r): Likewise.
11346 (*branch_equality<mode>_inverted): Add microMIPS support.
11347 (*branch_equality<mode>): Likewise.
11348 (*jump_absolute): Likewise.
11349 (indirect_jump_<mode>): Likewise.
11350 (tablejump_<mode>): Likewise.
11351 (<optab>_internal): Likewise.
11352 (sibcall_internal): Likewise.
11353 (sibcall_value_internal): Likewise.
11354 (prefetch): Use constraint ZD.
11355 * config/mips/mips.opt (minterlink-compressed): New option.
11356 (minterlink-mips16): Now an alias for minterlink-compressed.
11357 (mmicromips): New option.
11358 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11359 (compare_and_swap_12): Likewise.
11360 (sync_add<mode>): Likewise.
11361 (sync_<optab>_12): Likewise.
11362 (sync_old_<optab>_12): Likewise.
11363 (sync_new_<optab>_12): Likewise.
11364 (sync_nand_12): Likewise.
11365 (sync_old_nand_12): Likewise.
11366 (sync_new_nand_12): Likewise.
11367 (sync_sub<mode>): Likewise.
11368 (sync_old_add<mode>): Likewise.
11369 (sync_old_sub<mode>): Likewise.
11370 (sync_new_add<mode>): Likewise.
11371 (sync_new_sub<mode>): Likewise.
11372 (sync_<optab><mode>): Likewise.
11373 (sync_old_<optab><mode>): Likewise.
11374 (sync_new_<optab><mode>): Likewise.
11375 (sync_nand<mode>): Likewise.
11376 (sync_old_nand<mode>): Likewise.
11377 (sync_new_nand<mode>): Likewise.
11378 (sync_lock_test_and_set<mode>): Likewise.
11379 (test_and_set_12): Likewise.
11380 (atomic_compare_and_swap<mode>): Likewise.
11381 (atomic_exchange<mode>_llsc): Likewise.
11382 (atomic_fetch_add<mode>_llsc): Likewise.
11383 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11384 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11385 (umips_save_restore_pattern_p): Likewise.
11386 (umips_load_store_pair_p): Likewise.
11387 (umips_output_load_store_pair): Likewise.
11388 (umips_movep_target_p): Likewise.
11389 (umips_12bit_offset_address_p): Likewise.
11390 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11391 (mips_base_mips16): Rename this...
11392 (mips_base_compression_flags): ...to this. Update all uses.
11393 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11394 (mips_mips16_decl_p): Delete.
11395 (mips_nomips16_decl_p): Delete.
11396 (mips_get_compress_on_flags): New function.
11397 (mips_get_compress_off_flags): New function.
11398 (mips_get_compress_mode): New function.
11399 (mips_get_compress_on_name): New function.
11400 (mips_get_compress_off_name): New function.
11401 (mips_insert_attributes): Support multiple compression types.
11402 (mips_merge_decl_attributes): Likewise.
11403 (umips_12bit_offset_address_p): New function.
11404 (mips_start_function_definition): Emit .set micromips directive.
11405 (mips_call_may_need_jalx_p): New function.
11406 (mips_function_ok_for_sibcall): Add microMIPS support.
11407 (mips_print_operand_punctuation): Support short delay slots and
11409 (umips_swm_mask, umips_swm_encoding): New.
11410 (umips_build_save_restore): New function.
11411 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11412 (was_mips16_p): Remove.
11413 (old_compression_mode): New.
11414 (mips_set_compression_mode): New function.
11415 (mips_set_current_function): Add microMIPS support.
11416 (mips_option_override): Likewise.
11417 (umips_save_restore_pattern_p): New function.
11418 (umips_output_save_restore): New function.
11419 (umips_load_store_pair_p_1): New function.
11420 (umips_load_store_pair_p): New function.
11421 (umips_output_load_store_pair_1): New function.
11422 (umips_output_load_store_pair): New function.
11423 (umips_movep_target_p) New function.
11424 (mips_prepare_pch_save): Add microMIPS support.
11425 * config/mips/mips.h (TARGET_COMPRESSION): New.
11426 (TARGET_CPU_CPP_BUILTINS): Update macro
11427 to use new compression flags and to support microMIPS.
11428 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11429 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11430 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11431 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11432 (ASM_SPEC): Support mmicromips and mno-micromips.
11433 (M16STORE_REG_P): New macro.
11434 (MIPS_CALL): Support TARGET_MICROMIPS.
11435 (MICROMIPS_J): New macro.
11436 (mips_base_mips16): Rename this...
11437 (mips_base_compression_flags): ...to this.
11438 (UMIPS_12BIT_OFFSET_P): New macro.
11439 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11440 (MULTILIB_DIRNAMES): Likewise.
11442 2013-02-24 Jakub Jelinek <jakub@redhat.com>
11445 * target-globals.c (save_target_globals): For init_reg_sets and
11446 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11448 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11450 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11451 * config/aarch64/t-aarch64
11452 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11454 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11456 PR inline-asm/56148
11457 * lra-constraints.c (process_alt_operands): Reload operand
11458 conflicting with earlier clobber only if no more other conflicting
11461 2013-02-22 Jakub Jelinek <jakub@redhat.com>
11464 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11465 if not linking a shared library.
11467 2013-02-22 Seth LaForge <sethml@google.com>
11469 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11471 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11473 * config/arm/arm.md (split for extendsidi): Update condition.
11474 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11475 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11476 (qhs_zextenddi_cstr): Likewise.
11478 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11480 PR middle-end/56420
11481 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11482 avoid signed wrapping.
11483 (expand_mult): Handle properly multiplication by
11484 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11485 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11486 in the compiler if coeff is HOST_WIDE_INT_MIN.
11487 (expand_divmod): Don't make ext_op1 static, change it's type to
11488 uhwi. Avoid undefined behavior in -INTVAL (op1).
11490 PR rtl-optimization/50339
11491 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11493 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11494 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11495 into splitting_ashiftrt field.
11496 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11498 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11501 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
11503 PR middle-end/56108
11504 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11505 are sure to go irrevocable.
11507 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
11509 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11510 scalars are valid operands.
11512 2013-02-21 Martin Jambor <mjambor@suse.cz>
11514 PR tree-optimization/56310
11515 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11516 only matching indices and non-negative final offsets.
11517 (intersect_aggregates_with_edge): Pass src_idx to
11518 agg_replacements_to_vector. Pass src_idx insstead of index to
11519 intersect_with_agg_replacements.
11521 2013-02-21 Martin Jambor <mjambor@suse.cz>
11523 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11524 instead of hard-wired defaults.
11526 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11528 * doc/invoke.texi (MIPS Options): Update documentation of the
11529 floating-point multiply-accumulate instruction restrictions.
11531 2013-02-21 Kostya Serebryany <kcc@google.com>
11533 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11534 asan_shadow_offset on x86_64 linux.
11536 2013-02-21 Richard Biener <rguenther@suse.de>
11538 PR tree-optimization/56415
11540 2013-02-11 Richard Biener <rguenther@suse.de>
11542 PR tree-optimization/56273
11543 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11546 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11549 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11552 PR inline-asm/56405
11553 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11554 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11556 2013-02-20 Jan Hubicka <jh@suse.cz>
11558 PR tree-optimization/56265
11559 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11560 when target is referenced for first time.
11562 2013-02-20 Richard Biener <rguenther@suse.de>
11564 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11565 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11566 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11567 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11568 not return anything.
11569 (rename_ssa_copies): Do not remove unused locals.
11570 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11571 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11572 * passes.c (execute_function_todo): Do not schedule unused locals
11573 removal if cleanup_tree_cfg did something.
11574 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11575 about the number of removed locals.
11577 2013-02-20 Richard Biener <rguenther@suse.de>
11579 PR tree-optimization/56398
11580 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11582 2013-02-20 Martin Jambor <mjambor@suse.cz>
11584 PR tree-optimization/55334
11585 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11586 restricted pointers to arrays.
11588 2013-02-20 Richard Biener <rguenther@suse.de>
11589 Jakub Jelinek <jakub@redhat.com>
11591 PR tree-optimization/56396
11592 * tree-ssa-ccp.c (n_const_val): New static variable.
11593 (get_value): Return NULL for SSA names we don't have a lattice
11595 (ccp_initialize): Initialize n_const_val.
11596 * tree-ssa-copy.c (n_copy_of): New static variable.
11597 (init_copy_prop): Initialize n_copy_of.
11598 (get_value): Return NULL_TREE for SSA names we don't have a
11601 2013-02-20 Martin Jambor <mjambor@suse.cz>
11603 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11605 2013-02-20 Richard Biener <rguenther@suse.de>
11607 * genpreds.c (write_lookup_constraint): Do not compare first
11608 letter of the constraint again.
11610 2013-02-20 Richard Biener <rguenther@suse.de>
11612 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11614 (get_use_iv_cost): Terminate hashtable walk when coming across
11617 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11619 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11620 reassociation for avx2 targets.
11622 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11624 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11625 Add version check for v8.10.a to enable microblaze_has_clz
11626 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11627 version and TARGET_PATTERN_COMPARE check
11628 * config/microblaze/microblaze.md: New clzsi2 instruction
11630 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11632 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11633 function before branching.
11635 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11637 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11639 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11641 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11643 PR middle-end/55889
11644 * sel-sched.c: Include ira.h.
11645 (implicit_clobber_conflict_p): New function.
11646 (moveup_expr): Use it.
11647 * Makefile.in (sel-sched.o): Depend on ira.h.
11649 2013-02-19 Richard Biener <rguenther@suse.de>
11651 PR tree-optimization/56384
11652 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11653 (vn_hash_type): Split out from ...
11654 (vn_hash_constant_with_type): ... here.
11655 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11656 (vn_phi_eq): Compare types from vn_phi_s structure.
11657 (vn_phi_lookup): Populate vn_phi_s type.
11658 (vn_phi_insert): Likewise.
11660 2013-02-19 Jakub Jelinek <jakub@redhat.com>
11662 PR tree-optimization/56350
11663 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11664 if haven't found reduction or nested cycle operand, rather than
11665 asserting we must find it.
11667 PR tree-optimization/56381
11668 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11671 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
11672 Jakub Jelinek <jakub@redhat.com>
11675 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11676 (swap_optab_enable): Same.
11677 (init_all_optabs): Use argument instead of global.
11678 * tree.h (struct tree_optimization_option): New field target_optabs.
11679 * expr.h (init_all_optabs): Add argument to prototype.
11680 (TREE_OPTIMIZATION_OPTABS): New.
11681 (save_optabs_if_changed): Protoize.
11682 * optabs.h: Declare this_fn_optabs.
11683 * optabs.c (save_optabs_if_changed): New.
11684 Declare this_fn_optabs.
11685 (init_optabs): Add argument to init_all_optabs() call.
11686 * function.c (invoke_set_current_function_hook): Handle per
11688 * function.h (struct function): New field optabs.
11689 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11690 optimization_current_node has changed.
11691 * target-globals.h (save_target_globals_default_opts): Protoize.
11692 * target-globals.c (save_target_globals_default_opts): New.
11694 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11697 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11698 registers %fr12 and %fr12R as call used.
11701 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11702 and HImode, require all displacements to be an integer multiple of
11704 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11705 only allow QImode and HImode when reload is in progress and strict is
11706 true. Likewise for symbolic addresses. Use base14_operand to check
11707 displacements in REG+BASE addresses.
11709 2013-02-18 Richard Biener <rguenther@suse.de>
11711 PR tree-optimization/56366
11712 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11713 handle sign-conversion of outer-loop initial induction value.
11715 2013-02-18 Richard Biener <rguenther@suse.de>
11717 PR middle-end/56349
11718 * cfghooks.c (merge_blocks): If we merge a latch into another
11719 block adjust references to it.
11720 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11721 (verify_loop_structure): Verify that a recorded latch is in fact
11724 2013-02-18 Richard Biener <rguenther@suse.de>
11726 PR tree-optimization/56321
11727 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11728 order SSA name release and virtual operand unlinking.
11730 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11732 * config/microblaze/microblaze.md (save_stack_block): Define.
11733 (restore_stack_block): Likewise.
11735 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11737 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11738 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11739 * config/microblaze/microblaze.c (microblaze_option_override):
11740 Bail out early for PIC modes when target does not support PIC.
11742 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11744 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11745 Replace with a microblaze version.
11746 (microblaze_trampoline_init): Adapt for microblaze.
11747 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11750 2013-02-16 Jakub Jelinek <jakub@redhat.com>
11751 Dodji Seketeli <dodji@redhat.com>
11754 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11755 (instrument_mem_region_access): Do not forget to always put
11756 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11757 0) statement, even for cases where either 'base' or 'base + len'
11758 are not instrumented -- because they have been previously
11759 instrumented. Simplify the logic by putting all the statements
11760 instrument 'base + len' inside a sequence, and then insert that
11761 sequence right before the current insertion point. Then, to
11762 instrument 'base + len', just get an iterator on that statement.
11763 And do not forget to update the pointer to iterator the function
11764 received as argument.
11766 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11768 PR rtl-optimization/56348
11769 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11771 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11773 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11774 (clean_graph_dump_file): Pass base to start_graph_dump.
11776 2013-02-14 Richard Henderson <rth@redhat.com>
11779 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11781 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11783 * collect2-aix.h: Define F_LOADONLY.
11785 2013-02-14 Richard Biener <rguenther@suse.de>
11788 * varasm.c (output_constant_def_1): Get the decl representing
11789 the constant as argument.
11790 (output_constant_def): Wrap output_constant_def_1.
11791 (make_decl_rtl): Use output_constant_def_1 with the decl
11792 representing the constant.
11793 (build_constant_desc): Optionally re-use a decl already
11794 representing the constant.
11795 (tree_output_constant_def): Adjust.
11797 2013-02-14 Dodji Seketeli <dodji@redhat.com>
11800 * asan.c (instrument_builtin_call): Really put the length of the
11801 second source argument into src1_len.
11803 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11805 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11806 argument. If it is false, don't create edge from then_bb to
11808 (insert_if_then_before_iter): Pass true to it.
11809 (build_check_stmt): Pass false to it.
11810 (transform_statements): Flush hash table only on extended basic
11811 block boundaries, rather than at the beginning of every bb.
11812 Don't flush hash table on nonfreeing_call_p calls.
11813 * tree-flow.h (nonfreeing_call_p): New prototype.
11814 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11816 2013-02-13 David S. Miller <davem@davemloft.net>
11818 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11820 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11823 * ira.c (max_regno_before_ira): Move from ...
11825 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11828 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11830 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11832 2013-02-13 Richard Biener <rguenther@suse.de>
11835 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11836 globals in MEM_REFs.
11838 2013-02-13 Richard Biener <rguenther@suse.de>
11840 * loop-init.c (loop_optimizer_init): Clear loop state when
11841 re-initializing preserved loops.
11842 * loop-unswitch.c (unswitch_single_loop): Return whether
11843 we unswitched the loop. Do not verify loop state here.
11844 (unswitch_loops): When we unswitched a loop discover new loops.
11846 2013-02-13 Kostya Serebryany <kcc@google.com>
11848 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11850 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11852 2013-02-12 Dodji Seketeli <dodji@redhat.com>
11854 Avoid instrumenting duplicated memory access in the same basic block
11855 * Makefile.in (asan.o): Add new dependency on hash-table.h
11856 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11857 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11858 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11859 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11860 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11861 (get_mem_ref_of_assignment): New functions.
11862 (get_mem_refs_of_builtin_call): Extract from
11863 instrument_builtin_call and tweak a little bit to make it fit with
11865 (instrument_builtin_call): Use the new
11866 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11867 of is_gimple_builtin_call.
11868 (instrument_derefs, instrument_mem_region_access): Insert the
11869 instrumented memory reference into the hash table.
11870 (maybe_instrument_assignment): Renamed instrument_assignment into
11871 this, and change it to advance the iterator when instrumentation
11872 actually happened and return true in that case. This makes it
11873 homogeneous with maybe_instrument_assignment, and thus give a
11874 chance to callers to be more 'regular'.
11875 (transform_statements): Clear the memory reference hash table
11876 whenever we enter a new BB, when we cross a function call, or when
11877 we are done transforming statements. Use
11878 maybe_instrument_assignment instead of instrumentation. No more
11879 need to special case maybe_instrument_assignment and advance the
11880 iterator after calling it; it's now handled just like
11881 maybe_instrument_call. Update comment.
11883 2013-02-13 Richard Biener <rguenther@suse.de>
11885 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11886 Fix loop discovery code.
11888 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11890 PR inline-asm/56148
11891 * lra-constraints.c (process_alt_operands): Match early clobber
11892 operand with itself. Check conflicts with earlyclobber only if
11893 the operand is not reloaded. Prefer to reload conflicting operand
11894 if earlyclobber and matching operands are the same.
11896 2013-02-12 Richard Biener <rguenther@suse.de>
11899 * lto-streamer-out.c (write_symbol): Do not output symbols
11900 for hard register variables.
11902 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
11905 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11906 (umulsidi3_insn, mulsidi3_insn): New insns.
11908 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
11910 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11911 (struct tune_params): Add vec_costs field.
11912 * config/arm/arm.c (arm_builtin_vectorization_cost)
11913 (arm_add_stmt_cost): New functions.
11914 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11915 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11916 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11917 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11918 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11919 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11920 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11922 2013-02-12 Richard Biener <rguenther@suse.de>
11925 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11926 decls again if possible.
11928 2013-02-12 Richard Biener <rguenther@suse.de>
11930 PR middle-end/56288
11931 * tree-ssa.c (verify_ssa_name): Fix check, move
11932 SSA_NAME_IN_FREE_LIST check up.
11934 2013-02-12 Jakub Jelinek <jakub@redhat.com>
11935 Steven Bosscher <steven@gcc.gnu.org>
11937 PR rtl-optimization/56151
11938 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11939 equal to op0 or op1, and last_insn pattern is CODE operation
11940 with MEM dest and one of the operands matches that MEM.
11942 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11944 * doc/extend.texi: Document Function Multiversioning and "default"
11945 parameter string to target attribute.
11946 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11947 target attribute parameter is "default".
11948 (ix86_compare_version_priority): Remove checks for target attribute.
11949 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11950 Remove check for target attribute equal to NULL. Add assert.
11951 (ix86_generate_version_dispatcher_body): Change error to sorry.
11953 2013-02-11 Iain Sandoe <iain@codesourcery.com>
11954 Jack Howarth <howarth@bromo.med.uc.edu>
11955 Patrick Marlier <patrick.marlier@gmail.com>
11958 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11959 define ENDFILE_SPEC as TM_DESTRUCTOR.
11960 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11962 2013-02-11 Alexander Potapenko <glider@google.com>
11963 Jack Howarth <howarth@bromo.med.uc.edu>
11964 Jakub Jelinek <jakub@redhat.com>
11967 * config/darwin.c (cdtor_record): Rename ctor_record.
11968 (sort_cdtor_records): Rename sort_ctor_records.
11969 (finalize_dtors): New routine to sort destructors by
11970 priority before use in assemble_integer.
11971 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11973 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
11975 PR rtl-optimization/56275
11976 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11977 offset is non-negative and less than cmode size before
11978 calling simplify_subreg.
11980 2013-02-11 Richard Biener <rguenther@suse.de>
11982 PR tree-optimization/56264
11983 * cfgloop.h (fix_loop_structure): Adjust prototype.
11984 * loop-init.c (fix_loop_structure): Return the number of
11985 newly discovered loops.
11986 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11987 are discovered, do a full loop-closed SSA rewrite.
11989 2013-02-11 Richard Biener <rguenther@suse.de>
11991 PR tree-optimization/56273
11992 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11994 (check_array_ref): Fix missing newline in dumps.
11995 (search_for_addr_array): Likewise.
11997 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
11999 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
12001 2013-02-09 Jakub Jelinek <jakub@redhat.com>
12004 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
12006 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
12008 PR rtl-optimization/56246
12009 * lra-constraints.c (simplify_operand_subreg): Try to reuse
12011 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
12012 constraints are satisfied.
12014 2013-02-08 Jeff Law <law@redhat.com>
12017 * emit-rtl.c (reg_is_parm_p): New function.
12018 * regs.h (reg_is_parm_p): New prototype.
12019 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
12020 callee-clobbered registers.
12022 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12025 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12026 If there is no implicit builtin declaration, just return NULL.
12028 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12030 * config/i386/sse.md (FMAMODEM): New mode iterator.
12031 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12032 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12034 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12036 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12037 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12038 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12040 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12042 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12043 (microblaze*-*-elf): Likewise.
12044 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12046 * config/microblaze/microblaze-c.c: Add builtin defines for
12047 _LITTLE_ENDIAN and _BIG_ENDIAN.
12048 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12049 add to TARGET_DEFAULT flags.
12050 Expand ASM_SPEC and LINK_SPEC.
12051 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12052 * config/microblaze/microblaze.md: Update extendsidi2 and
12053 movdi_internal instructions to use low-order / high-order reg
12055 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12056 options and inversemask / mask of LITTLE_ENDIAN.
12057 * config/microblaze/t-microblaze: Expand multilib options to
12058 include mlittle-endian (le) and update exceptions patterns.
12060 2013-02-08 Jakub Jelinek <jakub@redhat.com>
12062 PR rtl-optimization/56195
12063 * lra-constraints.c (get_reload_reg): Don't reuse regs
12064 if they have smaller mode than requested, if they have
12065 wider mode than requested, try to return a SUBREG.
12067 PR tree-optimization/56250
12068 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12069 if type is unsigned and code isn't MULT_EXPR.
12071 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12073 PR tree-optimization/56064
12074 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12075 bits according to mode.
12076 * fixed-value.h (fixed_from_double_int)
12077 (const_fixed_from_double_int): Adjust comments.
12079 2013-02-08 Richard Biener <rguenther@suse.de>
12082 * lto-streamer.h (struct data_in): Remove current_file, current_line
12083 and current_col members.
12084 * lto-streamer-out.c (lto_output_location): Stream changed bits
12085 en-block for efficiency.
12086 * lto-streamer-in.c (clear_line_info): Remove.
12087 (lto_input_location): Cache current file, line and column
12088 globally via local statics. Read changed bits en-block.
12089 (input_function): Do not call clear_line_info.
12090 (lto_read_body): Likewise.
12091 (lto_input_toplevel_asms): Likewise.
12093 2013-02-08 Michael Matz <matz@suse.de>
12095 PR tree-optimization/52448
12096 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12097 (nt_call_phase): New static.
12098 (add_or_mark_expr): Only mark accesses with newer phase than any
12100 (nonfreeing_call_p): New.
12101 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12102 (nt_fini_block): Keep blocks marked as visited.
12103 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12105 2013-02-08 Richard Biener <rguenther@suse.de>
12107 * ira.c (ira): Free broken dominator information.
12109 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12111 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12113 2013-02-08 Marek Polacek <polacek@redhat.com>
12115 * cfgloop.c (verify_loop_structure): Add more checking of headers.
12117 2013-02-08 Richard Biener <rguenther@suse.de>
12119 PR middle-end/56181
12120 * cfgloop.h (flow_loops_find): Adjust.
12121 (bb_loop_header_p): Declare.
12122 * cfgloop.c (bb_loop_header_p): New function split out from ...
12123 (flow_loops_find): ... here. Adjust function signature,
12124 support incremental loop structure update.
12125 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12126 * cfgloopmanip.c (fix_loop_structure): Move ...
12127 * loop-init.c (fix_loop_structure): ... here.
12128 (apply_loop_flags): Split out from ...
12129 (loop_optimizer_init): ... here.
12130 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12131 in incremental mode, only remove dead loops here.
12133 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12136 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12137 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12138 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12139 (*round<mode>3.libgcc): New insns for fixed-modes.
12140 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12141 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12142 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12143 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12144 implementations. Define to __builtin_avr_absFX,
12145 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12146 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12147 __builtin_avr_countlsFX, respectively.
12148 * config/avr/avr-c.c (target.h): Include it.
12149 (enum avr_builtin_id): New enum.
12150 (avr_resolve_overloaded_builtin): New static function.
12151 (avr_register_target_pragmas): Use it to set
12152 targetm.resolve_overloaded_builtin.
12153 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12154 tree nodes used by DEF_BUILTIN.
12155 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12156 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12157 <AVR_BUILTIN_xxBITS>: Same.
12159 2013-02-08 Richard Biener <rguenther@suse.de>
12161 * cfgloop.c (verify_loop_structure): Properly handle
12162 a loop exiting to another loop header.
12163 * ira-int.h (ira_loops): Remove.
12164 * ira.c (ira_loops): Remove.
12165 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12166 (do_reload): Use loop_optimizer_finalize.
12167 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12168 number_of_loops to access the loop tree.
12169 (more_one_region_p): Likewise.
12170 (finish_loop_tree_nodes): Likewise.
12171 (rebuild_regno_allocno_maps): Likewise.
12172 (mark_loops_for_removal): Likewise.
12173 (mark_all_loops_for_removal): Likewise.
12174 (remove_unnecessary_regions): Likewise.
12175 (ira_build): Likewise.
12176 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12178 2013-02-08 Richard Biener <rguenther@suse.de>
12180 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12181 * ipa-pure-const.c (analyze_function): Avoid calling
12182 mark_irreducible_loops twice.
12183 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12185 2013-02-07 David S. Miller <davem@davemloft.net>
12187 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12189 * var-tracking.c (vt_add_function_parameter): Test the presence of
12190 HAVE_window_save properly and do not remap argument registers when
12191 we have a leaf function.
12193 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
12196 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12198 * config/i386/i386.c (ix86_print_operand): Ditto.
12200 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12202 * lra-constraints.c (process_alt_operands): Fix recently added comment.
12204 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12206 PR rtl-optimization/56225
12207 * lra-constraints.c (process_alt_operands): Check that reload hard
12208 reg can hold value for strict_low_part.
12210 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12213 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12214 dwarf2out_end_function.
12215 (in_first_function_p, maybe_at_text_label_p,
12216 first_loclabel_num_not_at_text_label): New variables.
12217 (dwarf2out_var_location): In the first function find out
12218 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12219 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12222 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12224 PR rtl-optimization/56178
12225 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12226 SUBREG of a register. Tidy up related block of code.
12227 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12228 note if the source is a register or a SUBREG of a register.
12230 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12233 * config/rs6000/rs6000.md (ptrm): New mode attr.
12234 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12235 call_value_indirect_aix<pttrsize>,
12236 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12239 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12241 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12242 if -bnortl. Convert to strcmp and strncmp.
12244 2013-02-07 Alan Modra <amodra@gmail.com>
12247 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12248 addresses won't wrap when offsetting.
12249 (rs6000_secondary_reload): Provide secondary reloads needed for
12250 wrapping LO_SUM addresses.
12252 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12254 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12255 MACH, just __MACH__.
12257 2013-02-06 Richard Biener <rguenther@suse.de>
12259 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12260 instead of calling fix_loop_structure.
12262 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12264 PR middle-end/56217
12265 * omp-low.c (use_pointer_for_field): Return false if
12266 lower_send_shared_vars doesn't generate any copy-out code.
12268 2013-02-06 Tom de Vries <tom@codesourcery.com>
12270 PR rtl-optimization/56131
12271 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12272 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12273 of the label is NULL. Add comment.
12275 2013-02-05 Jakub Jelinek <jakub@redhat.com>
12277 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12280 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12281 (STATIC_LIBTSAN_LIBS): Likewise.
12282 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12283 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12284 is defined, don't add anything else beyond that.
12285 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12286 (LINK_COMMAND_SPEC): Use them.
12288 PR tree-optimization/56205
12289 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12290 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12291 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12293 2013-02-05 Richard Biener <rguenther@suse.de>
12295 PR tree-optimization/53342
12296 PR tree-optimization/53185
12297 * tree-vectorizer.h (vect_check_strided_load): Remove.
12298 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12299 not disallow peeling for vectorized strided loads.
12300 (vect_check_strided_load): Make static and simplify.
12301 (vect_analyze_data_refs): Adjust.
12302 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12303 correctly when vectorizing strided loads.
12305 2013-02-05 Richard Biener <rguenther@suse.de>
12307 * doc/install.texi: Refer to ISL, not PPL.
12309 2013-02-05 Jan Hubicka <jh@suse.cz>
12311 PR tree-optimization/55789
12312 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12314 2013-02-05 Jan Hubicka <jh@suse.cz>
12316 PR tree-optimization/55789
12317 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12318 the dead call anyway.
12320 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12323 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12325 2013-02-04 Alexander Potapenko <glider@google.com>
12326 Jack Howarth <howarth@bromo.med.uc.edu>
12327 Jakub Jelinek <jakub@redhat.com>
12330 * config/darwin.c (sort_ctor_records): Stabilized qsort
12331 on constructor priority by using original position.
12332 (finalize_ctors): New routine to sort constructors by
12333 priority before use in assemble_integer.
12334 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12336 2013-02-04 Jakub Jelinek <jakub@redhat.com>
12339 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12340 about visibility on artificial decls.
12341 * config/sol2.c (solaris_assemble_visibility): Likewise.
12343 2013-02-04 Kai Tietz <ktietz@redhat.com>
12346 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12347 argument and improve checking of return-argument types for 16-byte
12349 (ix86_function_value_1): Add additional valtype argument on call
12350 of function_value_64.
12351 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12352 handling infunction_value_64 function.
12354 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12356 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12358 2013-02-04 Richard Biener <rguenther@suse.de>
12360 PR tree-optimization/56188
12361 * tree-ssa-structalias.c (label_visit): Consider case with
12362 initially non-empty points-to set.
12363 (perform_var_substitution): Dump node mapping and clean up.
12365 2013-02-04 Richard Guenther <rguenther@suse.de>
12368 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12369 node prevail as last resort.
12370 (lto_symtab_merge_decls): Remove guard on LTRANS here.
12371 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12373 2013-02-04 Richard Biener <rguenther@suse.de>
12375 PR tree-optimization/56113
12376 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12378 (equiv_class_lookup_or_add): ... this.
12379 (label_visit): Adjust and fix error in previous patch.
12380 (perform_var_substitution): Adjust.
12382 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12384 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12385 * config/sh/sh4-300.md: Likewise.
12386 * config/sh/sh4a.md: Likewise.
12387 * config/sh/constraints.md: Likewise.
12388 * config/sh/sh.md: Likewise.
12389 * config/sh/netbsd-elf.h: Likewise.
12390 * config/sh/predicates.md: Likewise.
12391 * config/sh/sh-protos.h: Likewise.
12392 * config/sh/ushmedia.h: Likewise.
12393 * config/sh/linux.h: Likewise.
12394 * config/sh/sh.c: Likewise.
12395 * config/sh/superh.h: Likewise.
12396 * config/sh/elf.h: Likewise.
12397 * config/sh/sh4.md: Likewise.
12398 * config/sh/sh.h: Likewise.
12400 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12402 * config/pa/constraints.md: Adjust unused letters. Change "T"
12403 constraint to match_test floating_point_store_memory_operand().
12404 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12405 (base14_operand): New.
12406 (floating_point_store_memory_operand): New.
12407 (integer_store_memory_operand): Revise to use base14_operand and
12408 reg_plus_base_memory_operand.
12409 (move_dest_operand): Allow symbolic_memory_operands.
12410 (symbolic_memory_operand): Check for LO_SOM.
12411 (symbolic_operand): Change default case to break.
12412 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12413 CONST_DOUBLE values to be reloaded by putting them into memory when
12414 the destination is a floating point register.
12415 (movdf): Remove code to handle CONST_DOUBLE.
12417 (reload_indf_r1): New.
12418 (reload_insf_r1): New.
12419 Consistently use "Q" and "T" constraints with integer and floating
12420 point move instructions, respectively.
12421 (movdi): Remove FAIL.
12422 Change predicate for source operand unamed DImode move from
12423 general_operand to move_src_operand.
12424 (umulsidi3): Change predicate for destination operand to
12426 Likewise for similar unamed patterns.
12427 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12428 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12429 (hppa_legitimize_address): Simplify mask calculation.
12430 (pa_emit_move_sequence): Revised handling of secondary reloads from
12431 REG+D addresses for floating point loads and stores. Directly handle
12432 loading CONST0_RTX (mode) to a floating point register.
12433 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12434 to floating point registers. Don't restrict secondary reloads to
12435 floating point registers to integer modes. Revise some comments and
12437 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12438 (pa_legitimate_address_p): New.
12439 (pa_legitimize_reload_address): New.
12440 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12441 (STRICT_REG_OK_FOR_BASE_P): New.
12442 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12443 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12445 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
12446 Andrew Dixie <andrewd@gentrack.com>
12448 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12451 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12453 * expmed.c (extract_bit_field_1): Pass the full width of the
12454 structure to get_best_reg_extraction_insn.
12456 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12459 * configure.ac (use_cxa_atexit): Add AIX.
12460 * configure: Regenerate.
12462 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12464 2013-02-01 Jakub Jelinek <jakub@redhat.com>
12467 * final.c (need_profile_function): New variable.
12468 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12469 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12470 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12471 notes, targetm.asm_out.function_prologue doesn't emit anything,
12472 HAVE_prologue and profiler should be emitted before prologue,
12473 set need_profile_function instead of emitting it.
12474 (final_scan_insn): If need_profile_function, emit
12475 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12476 NOTE_INSN_FUNCTION_BEG note.
12478 2013-02-01 Richard Henderson <rth@redhat.com>
12480 * config/rs6000/rs6000.md (smulditi3): New.
12483 * config/alpha/alpha.md (umulditi3): New.
12485 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12487 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12488 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12490 2013-02-01 Richard Biener <rguenther@suse.de>
12492 PR tree-optimization/56113
12493 * tree-ssa-structalias.c (label_visit): Reduce work for
12494 single-predecessor nodes.
12496 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12498 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12499 range isn't testing for zero.
12501 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12503 PR middle-end/56113
12504 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12506 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12507 Nick Clifton <nickc@redhat.com>
12509 * config/v850/constraints.md (Q): Define as a memory constraint.
12510 * config/v850/predicates.md (label_ref_operand): New predicate.
12511 (e3v5_shift_operand): New predicate.
12512 (ior_operator): New predicate.
12513 * config/v850/t-v850: Add e3v5 multilib.
12514 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12515 (v850_gen_movdi): Prototype.
12516 * config/v850/v850.c: Add support for e3v5 architecture.
12517 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12519 (construct_save_jarl): Add e3v5 long JARL support.
12520 (v850_adjust_insn_length): New function. Adjust length of call
12521 insns when using e3v5 instructions.
12522 (v850_gen_movdi): New function: Generate instructions to move a
12524 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12525 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12526 (TARGET_USE_FPU): Enable for e3v5.
12527 (CONST_OK_FOR_W): New macro.
12528 (ADJUST_INSN_LENGTH): Define.
12529 * config/v850/v850.md (UNSPEC_LOOP): Define.
12530 (attr cpu): Add v850e3v5.
12531 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12532 (movdi): New pattern.
12533 (movdi_internal): New pattern.
12534 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12535 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12536 (cstoresf4): Likewise.
12537 (cstoredf4): Likewise.
12538 (insv): New pattern.
12539 (rotlso3_a): New pattern.
12540 (rotlsi3_b): New pattern
12541 (rotlsi3_v850e3v5): New pattern.
12542 (doloop_begin): New pattern.
12543 (fix_loop_counter): New pattern.
12544 (doloop_end): New pattern.
12545 (branch_normal): Add e3v5 long branch support.
12546 (branch_invert): Likewise.
12547 (branch_z_normal): Likewise.
12548 (branch_z_invert): Likewise.
12549 (branch_nz_normal): Likewise.
12550 (branch_nz_invert): Likewise.
12551 (call_internal_short): Add e3v5 register-indirect JARL support.
12552 (call_internal_long): Likewise.
12553 (call_value_internal_short): Likewise.
12554 (call_value_internal_long): Likewise.
12555 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12556 (mloop): New option.
12557 * config.gcc: Add support for configuring v840e3v5 target.
12558 * doc/invoke.texi: Document new v850 specific command line options.
12560 2013-01-31 Paul Koning <ni1d@arrl.net>
12564 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12565 children if parent is a class.
12566 (prune_unused_types_prune): Don't add DW_AT_declaration.
12568 2013-01-31 Richard Biener <rguenther@suse.de>
12570 PR tree-optimization/56157
12571 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12572 match up operand with SLP child.
12574 2013-01-31 Jason Merrill <jason@redhat.com>
12577 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12578 parameters the first time.
12579 (gen_scheduled_generic_parms_dies): Check completeness here.
12581 2013-01-31 Richard Biener <rguenther@suse.de>
12583 PR middle-end/53073
12584 * common.opt (faggressive-loop-optimizations): New flag,
12585 enabled by default.
12586 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12587 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12588 infer_loop_bounds_from_undefined by it.
12590 2013-01-31 Richard Biener <rguenther@suse.de>
12592 PR tree-optimization/56150
12593 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12594 visit virtual operands.
12595 (find_uses_to_rename_bb): Likewise.
12597 2013-01-31 Richard Biener <rguenther@suse.de>
12599 PR tree-optimization/56150
12600 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12601 mixed store non-store stmts.
12603 2013-01-30 Jakub Jelinek <jakub@redhat.com>
12606 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12607 LIBASAN_EARLY_SPEC is defined.
12608 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12609 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12611 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12614 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12615 invalid args instead of ICEing on it.
12616 (ix86_valid_target_attribute_tree): Return error_mark_node if
12617 ix86_valid_target_attribute_inner_p failed.
12618 (ix86_valid_target_attribute_p): Return false only if
12619 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12620 target("default") attribute.
12621 (sorted_attr_string): Change argument from const char * to tree,
12622 merge in all target attribute arguments rather than just one.
12623 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12624 instead of free. Avoid using strcat.
12625 (ix86_mangle_function_version_assembler_name): Mangle
12626 target("default") as if no target attribute is present. Adjust
12627 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12628 instead of xmalloc and XDELETEVEC instead of free.
12629 (ix86_function_versions): Don't return true if one of the decls
12630 doesn't have target attribute. If they don't and one of the decls
12631 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12632 sorted_attr_string caller. Use XDELETEVEC instead of free.
12633 (ix86_supports_function_versions): Remove.
12634 (make_name): Fix up formatting.
12635 (make_dispatcher_decl): Remove resolver_name and its initialization.
12636 Avoid leaking memory.
12637 (is_function_default_version): Return true if there is
12638 target("default") attribute rather than no target attribute at all.
12639 (make_resolver_func): Avoid leaking memory.
12640 (ix86_generate_version_dispatcher_body): Likewise.
12641 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12642 * target.def (supports_function_versions): Remove.
12643 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12644 * doc/tm.texi: Regenerated.
12646 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12648 PR rtl-optimization/56144
12649 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12650 for values with side effects.
12652 2013-01-30 Richard Biener <rguenther@suse.de>
12654 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12655 (sparseset_pop): Likewise.
12656 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12657 to be able to use quick_push in the worker loop.
12659 2013-01-30 Marek Polacek <polacek@redhat.com>
12661 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12663 2013-01-30 Richard Biener <rguenther@suse.de>
12666 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12668 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
12670 PR tree-optimization/56064
12671 * fixed-value.c (fixed_from_double_int): New function.
12672 * fixed-value.h (fixed_from_double_int): New prototype.
12673 (const_fixed_from_double_int): New static inline function.
12674 * fold-const.c (native_interpret_fixed): New static function.
12675 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12676 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12677 (native_encode_fixed): New static function.
12678 (native_encode_expr) <FIXED_CST>: Use it.
12679 (native_interpret_int): Move double_int worker code to...
12680 * double-int.c (double_int::from_buffer): ...this new static method.
12681 * double-int.h (double_int::from_buffer): Prototype it.
12683 2013-01-30 Richard Biener <rguenther@suse.de>
12685 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12686 New pointer-map and obstack.
12687 (init_alias_vars): Allocate pointer-map and obstack.
12688 (delete_points_to_sets): Free them.
12689 (find_what_var_points_to): Cache result.
12690 (find_what_p_points_to): Adjust for changed interface of
12691 find_what_var_points_to.
12692 (compute_points_to_sets): Likewise.
12693 (ipa_pta_execute): Likewise.
12695 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12697 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12698 * configure: Regenerate.
12699 * config.in: Regenerate.
12700 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12701 #nobits/#progbits if supported.
12703 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12706 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12707 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12708 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12710 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12712 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12713 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12715 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12717 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12718 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12720 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12722 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12724 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12725 * config/arm/cortex-a7.md: New bypasses using
12726 arm_mac_accumulator_is_result.
12728 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12730 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
12731 (cortex_a7_neon_mla): Likewise.
12732 (cortex_a7_fpfmad): New reservation.
12733 (cortex_a7_fpmacs): Use ffmas and update required units.
12734 (cortex_a7_fpmuld): Update required units and latency.
12735 (cortex_a7_fpmacd): Likewise.
12736 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12737 (cortex_a7_neon). Likewise.
12738 (bypass) Update participating units.
12740 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12742 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12743 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12745 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12746 (vfp_fmul): Use ffmad.
12747 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12748 (cortex_r4_fmacd): Use ffmad.
12749 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12750 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12751 (cortex_a9_fmacd): Use ffmad.
12752 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12753 (cortex_a8_vfp_macd): Use ffmad.
12754 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12755 (cortex_a5_fpmacd): Use ffmad.
12756 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12757 (cortex_a15_vfp_macd): Use ffmad.
12758 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12760 2013-01-29 Jason Merrill <jason@redhat.com>
12763 * varasm.c (default_assemble_visibility): Don't warn about
12764 visibility on artificial decls.
12766 2013-01-29 Richard Biener <rguenther@suse.de>
12768 PR tree-optimization/56113
12769 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12771 (label_visit): Free duplicate bitmaps and record the leader instead.
12772 (perform_var_substitution): Adjust.
12774 2013-01-29 Richard Biener <rguenther@suse.de>
12776 PR tree-optimization/55270
12777 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12778 the CFG, schedule loops for fixup.
12780 2013-01-29 Nick Clifton <nickc@redhat.com>
12782 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12785 2013-01-28 Leif Ekblad <leif@rdos.net>
12787 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12788 * config/i386/i386.h (TARGET_RDOS): New macro.
12789 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12790 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12791 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12792 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12793 DEFAULT_LARGE_SECTION_THRESHOLD.
12794 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12795 * config/i386/rdos.h: New file.
12796 * config/i386/rdos64.h: New file.
12798 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12801 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12804 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12806 PR rtl-optimization/56117
12807 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12808 call cselib_lookup_from_insn on the MEM before calling
12809 add_insn_mem_dependence.
12811 2013-01-28 Richard Biener <rguenther@suse.de>
12813 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12814 to a stmt that didn't have one.
12815 (copy_phis_for_bb): Likewise for PHI arguments.
12816 (copy_debug_stmt): Likewise for debug stmts.
12818 2013-01-28 Richard Biener <rguenther@suse.de>
12820 PR tree-optimization/56034
12821 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12822 (partition_builtin_p): Adjust.
12823 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12824 it is the last partition.
12825 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12826 up the vertex for the definition.
12827 (classify_partition): Classify whether a partition is a
12828 PKIND_REDUCTION, thus has uses outside of the loop.
12829 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12830 Merge all PKIND_REDUCTION partitions into the last partition.
12831 (tree_loop_distribution): Seed partitions from reductions as well.
12833 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12835 PR tree-optimization/56125
12836 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12837 pow(x,c) into sqrt(x) * powi(x, n/2) or
12838 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12839 optimizing for size.
12840 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12841 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12844 PR tree-optimization/56094
12845 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12846 to UNKNOWN_LOCATION while gimplifying expr.
12848 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
12851 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12852 operand 0 in movabs insn template for -masm=intel asm alternative.
12853 (*movabs<mode>_2): Ditto for operand 1.
12855 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
12858 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12861 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12863 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12866 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12868 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12869 Undef to avoid warning.
12871 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12873 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12874 * configure: Regenerate.
12876 2013-01-25 Jakub Jelinek <jakub@redhat.com>
12878 PR tree-optimization/56098
12879 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12880 for stmts with volatile ops.
12881 (cond_store_replacement): Don't optimize if assign has volatile ops.
12882 (cond_if_else_store_replacement_1): Don't optimize if either
12883 then_assign or else_assign have volatile ops.
12884 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12887 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12889 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12891 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12893 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12894 missing ':' in asm example.
12896 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12898 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12899 entries into lane and laneq entries.
12900 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12901 Remove AdvSIMD scalar modes.
12902 (aarch64_sq<r>dmulh_laneq<mode>): New.
12903 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12905 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12906 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12907 * config/aarch64/iterators.md (VCOND): New.
12910 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12913 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12914 Add NULL LIBNAME argument to existing definitions.
12915 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12916 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12917 * config/avr/avr.c (DEF_BUILTIN): Same.
12918 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12919 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12920 implementation is available (DECL_ASSEMBLER_NAME is set).
12921 (avr_fold_absfx): New static function.
12922 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12923 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12924 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12925 AVR_BUILTIN_ABSLLK.
12926 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12927 (abshk, absk, abslk, absllk): Provide as static inline functions.
12929 2013-01-25 Marek Polacek <polacek@redhat.com>
12931 PR tree-optimization/56035
12932 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12934 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
12936 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12937 (*movtf_internal_rex64): Add (!o,C) alternative
12938 (*movxf_internal_rex64): Ditto.
12939 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12941 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
12943 * doc/invoke.texi: fix typo.
12944 * doc/objc.texi: fix typo.
12946 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12948 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12949 for the first two alternatives.
12951 2013-01-24 Diego Novillo <dnovillo@google.com>
12953 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
12954 (ggc-zone.o): Remove.
12955 * configure.ac: Remove option --with-gc.
12956 * configure: Re-generate.
12957 * doc/install.texi: Remove documentation for --with-gc.
12958 * gengtype.c (write_enum_defn): Remove. Update all users.
12959 (write_Types_process_field): Remove generation of gt_e_* argument.
12960 (output_type_enum): Remove. Update all users.
12961 (write_enum_defn): Remove. Update all users.
12962 (enum alloc_zone): Remove. Update all users.
12963 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12964 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12965 Update all callers.
12966 (struct ptr_data): Remove field TYPE. Update all users.
12967 (gt_pch_note_object): Remove argument TYPE. Update all users.
12968 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12970 * ggc-none.c (ggc_alloc_typed_stat): Remove.
12971 (struct alloc_zone): Remove.
12972 (ggc_internal_alloc_zone_stat): Remove.
12973 (ggc_internal_cleared_alloc_zone_stat): Remove.
12974 * ggc-page.c (ggc_alloc_typed_stat): Remove.
12975 (ggc_pch_count_object): Remove last argument. Update all users.
12976 (ggc_pch_alloc_object): Remove last argument. Update all users.
12977 (struct alloc_zone): Remove.
12978 * ggc-zone.c: Remove.
12979 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
12980 (struct alloc_zone): Remove.
12981 (ggc_alloc_typed_stat): Remove.
12982 (ggc_alloc_typed): Remove.
12983 (ggc_splay_alloc): Remove first argument.
12984 (rtl_zone): Remove. Update all users.
12985 (tree_zone): Remove. Update all users.
12986 (tree_id_zone): Remove. Update all users.
12987 (ggc_internal_zone_alloc_stat): Remove. Update all users.
12988 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
12989 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
12990 * tree-ssanames.c: Remove references to zone allocator in comments.
12992 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
12994 * config/avr/avr.c (avr_out_fract): Make register numbers that
12995 might be outside of source operand signed.
12997 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
12999 * config/i386/constraints.md (Yf): New constraint.
13000 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
13001 of f constraint to conditionaly disable x87 register preferences.
13002 (*movdf_internal): Ditto.
13003 (*movsf_internal): Ditto.
13005 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
13007 PR inline-asm/55934
13008 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
13009 that have operands with impossible constraints.
13010 Add a FIXME for a speed-up opportunity.
13011 * lra-constraints.c (process_alt_operands): Verify that a class
13012 selected from constraints on asms is valid for the operand mode.
13013 (curr_insn_transform): Remove incorrect comment.
13015 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
13017 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
13018 TOC operand is a valid symbol ref in the constant pool.
13020 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
13022 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
13024 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
13027 * config/avr/stdfix.h: New file.
13028 * t-avr (stdfix-gcc.h): New rule to build it.
13029 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13031 2013-01-23 Kostya Serebryany <kcc@google.com>
13033 * config/darwin.h: remove dependency on
13034 CoreFoundation (asan on Mac OS).
13036 2013-01-23 Jakub Jelinek <jakub@redhat.com>
13039 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13040 instead of cmpdi_operand for first comparison operand.
13041 Don't assert that comparison operands aren't both constants.
13043 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13045 * doc/install.texi (Downloading the Source): Update references to
13046 downloading separate components.
13048 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13050 * doc/extend.texi (__int128): Improve grammar.
13052 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
13055 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13056 alternative to (o,r).
13057 (*movdi_internal_rex64): Remove (!o,n) alternative.
13058 (DImode immediate->memory splitter): Remove.
13059 (DImode immediate->memory peephole2): Remove.
13060 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13061 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13062 alternative to (!o,*r).
13063 (*movtf_internal_sse): New pattern.
13064 (*movxf_internal_rex64): New pattern.
13065 (*movxf_internal): Disable for TARGET_64BIT.
13066 (*movdf_internal_rex64): Remove (!o,F) alternative.
13068 2013-01-22 Jakub Jelinek <jakub@redhat.com>
13070 PR middle-end/56074
13071 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13072 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13073 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13074 stmt locations where LOCATION_LOCUS of the stmt location is
13075 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13078 * config/i386/i386.md (UNSPEC_STOS): New.
13079 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13080 *strsetqi_1): Add UNSPEC_STOS.
13082 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13085 * doc/invoke.texi: Remove left over -Wsynth example.
13087 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13089 PR tree-optimization/56051
13090 * fold-const.c (fold_binary_loc): Don't fold
13091 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13092 a narrowing conversion, or widening conversion from signed
13095 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13097 PR rtl-optimization/56023
13098 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13099 dependent on debug instruction.
13101 2013-01-21 Martin Jambor <mjambor@suse.cz>
13103 PR middle-end/56022
13104 * function.c (allocate_struct_function): Call
13105 invoke_set_current_function_hook earlier.
13107 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13109 * reload1.c (init_reload): Only initialize reload_obstack
13110 during the first call.
13112 2013-01-21 Marek Polacek <polacek@redhat.com>
13114 * cfgloop.c (verify_loop_structure): Fix up grammar.
13116 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13118 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13119 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13121 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13124 * config/arm/marvell-pj4.md: Update copyright year.
13125 Fix up use of alu to alu_reg and simple_alu_imm.
13127 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13129 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13131 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13134 * lra-constraints.c (curr_insn_transform): Don't reuse original
13135 insn for secondary memory move when memory mode should be different.
13137 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13139 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13140 atomic_storedi_1): New patterns.
13142 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13144 btver2 pipeline descriptions.
13145 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13147 * config/i386/i386.md (btver2_decode): New type attributes.
13148 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13150 * config/i386/btver2.md: New file describing btver2 pipelines.
13152 2013-01-19 Andrew Pinski <apinski@cavium.com>
13154 PR tree-optimization/52631
13155 * tree-ssa-sccvn (visit_use): Before looking up the original
13156 statement, try looking up the simplified expression.
13158 2013-01-19 Anthony Green <green@moxielogic.com>
13160 * config/moxie/moxie.c (moxie_expand_prologue): Set
13161 current_function_static_stack_size.
13163 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13165 PR tree-optimization/56029
13166 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13167 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13169 2013-01-18 Sharad Singhai <singhai@google.com>
13171 PR tree-optimization/55995
13172 * dumpfile.c (dump_loc): Print location only if available.
13173 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13175 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13178 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13179 secondary memory move.
13180 (inherit_reload_reg): Use rclass instead of cl for
13181 check_secondary_memory_needed_p.
13183 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13185 PR middle-end/56015
13186 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13187 the case where writing real complex part of target modifies op1.
13189 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13191 * config/aarch64/aarch64-simd.md
13192 (aarch64_vcond_internal<mode>): Handle unordered cases.
13193 * config/aarch64/iterators.md (v_cmp_result): New.
13195 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13196 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13198 * config/arm/marvell-pj4.md: New file.
13199 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13200 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13201 (generic_vfp): Likewise.
13202 * config/arm/arm-cores.def: Add marvell-pj4.
13203 * config/arm/arm-tune.md: Regenerate.
13204 * config/arm/arm-tables.opt: Regenerate.
13205 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13206 * doc/invoke.texi: Document marvell-pj4.
13208 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13210 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13212 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13217 * var-tracking.c (negative_power_of_two_p): New.
13218 (global_get_addr_cache, local_get_addr_cache): New.
13219 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13220 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13222 (vt_stack_offset_p): Remove.
13223 (vt_canon_true_dep): Always canonicalize loc's address.
13224 (clobber_overlapping_mems): Make sure we have a MEM.
13225 (local_get_addr_clear_given_value): New.
13226 (val_reset): Clear local cached entries.
13227 (compute_bb_dataflow): Create and release the local cache.
13228 Disable duplicate MEMs clobbering.
13229 (emit_notes_in_bb): Clobber MEMs likewise.
13230 (vt_emit_notes): Create and release the local cache.
13231 (vt_initialize, vt_finalize): Create and release the global
13232 cache, respectively.
13233 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13235 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13237 PR libmudflap/53359
13238 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13239 not found in the symtab.
13241 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13244 PR rtl-optimization/55547
13245 PR rtl-optimization/53827
13248 * alias.c (offset_overlap_p): New, factored out of...
13249 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13250 the conservative special case for symbolic constants. Don't
13251 adjust zero sizes on alignment.
13253 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13255 PR rtl-optimization/52573
13256 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13257 REG_UNUSED for the same register.
13259 2013-01-17 Richard Biener <rguenther@suse.de>
13260 Marek Polacek <polacek@redhat.com>
13262 PR rtl-optimization/55833
13263 * loop-unswitch.c (unswitch_loops): Move loop verification...
13264 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13265 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13266 Set it to true when we're removing a loop from hierarchy tree in
13267 an irreducible region.
13268 (fix_bb_placements): Adjust caller.
13269 (fix_loop_placements): Likewise.
13271 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
13273 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13274 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13275 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13276 Remove ID. Adjust comments.
13277 * config/avr/avr-c.c (avr_builtin_name): Remove.
13278 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13279 * config/avr/avr.c (avr_tolower): New static function.
13280 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13281 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13282 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13285 2013-01-17 Jan Hubicka <jh@suse.cz>
13287 PR tree-optimization/55273
13288 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13290 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
13293 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13294 store through atomic_store<mode>_1.
13295 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13297 2013-01-17 Martin Jambor <mjambor@suse.cz>
13299 PR tree-optimizations/55264
13300 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13301 for virtual methods.
13302 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13303 virtual methods before inlining is over.
13304 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13306 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13309 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13311 PR rtl-optimization/56005
13312 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13313 pending reads for prefetch.
13315 2013-01-16 Ian Bolton <ian.bolton@arm.com>
13317 * config/aarch64/aarch64.md
13318 (*cstoresi_neg_uxtw): New pattern.
13319 (*cmovsi_insn_uxtw): New pattern.
13320 (*<optab>si3_uxtw): New pattern.
13321 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13322 (*<optab>si3_insn_uxtw): New pattern.
13323 (*bswapsi2_uxtw): New pattern.
13325 2013-01-16 Richard Biener <rguenther@suse.de>
13327 * tree-inline.c (tree_function_versioning): Remove set but
13328 never used variable.
13330 2013-01-16 Richard Biener <rguenther@suse.de>
13332 PR tree-optimization/55964
13333 * tree-flow.h (rename_variables_in_loop): Remove.
13334 (rename_variables_in_bb): Likewise.
13335 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13336 (copy_loop_before): Adjust and delete update-ssa status.
13337 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13338 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
13339 (rename_variables_in_loop): Remove.
13340 (slpeel_update_phis_for_duplicate_loop): Likewise.
13341 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13342 use available cfg machinery instead of duplicating it.
13343 Update PHI nodes and perform poor-mans SSA update here.
13344 (slpeel_tree_peel_loop_to_edge): Adjust.
13346 2013-01-16 Richard Biener <rguenther@suse.de>
13348 PR tree-optimization/54767
13349 PR tree-optimization/53465
13350 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13351 (vrp_visit_phi_node): For PHI arguments coming via backedges
13352 drop all symbolical range information.
13353 (execute_vrp): Compute backedges.
13355 2013-01-16 Richard Biener <rguenther@suse.de>
13357 * doc/install.texi: Update CLooG and ISL requirements to
13360 2013-01-16 Christian Bruel <christian.bruel@st.com>
13363 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13364 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13365 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13367 2013-01-16 DJ Delorie <dj@redhat.com>
13369 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13370 (UNSPECV_SP_SWITCH_E): New.
13371 (sp_switch_1): Change to an unspec.
13372 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13375 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
13377 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13378 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13379 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13380 (expand_mem_thread_fence): Ditto.
13381 (expand_mem_signal_fence): Ditto.
13382 (expand_atomic_load): Ditto.
13383 (expand_atomic_store): Ditto.
13385 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
13387 PR rtl-optimization/55547
13388 PR rtl-optimization/53827
13391 * alias.c (memrefs_conflict_p): Set sizes to negative after
13394 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13397 * function.c (thread_prologue_and_epilogue_insns): Always
13398 add crtl->drap_reg to set_up_by_prologue.set, even if
13399 stack_realign_drap is false.
13401 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13403 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13404 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13405 *call): Fix indention.
13407 2013-01-15 Tom de Vries <tom@codesourcery.com>
13410 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13413 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13415 PR rtl-optimization/55153
13416 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13418 2013-01-15 Martin Jambor <mjambor@suse.cz>
13420 PR tree-optimization/55920
13421 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13422 accesses as grp_to_be_debug_replaced.
13424 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13426 PR tree-optimization/55920
13427 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13428 there is non-useless type conversion needed from debug rhs to lhs,
13429 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13431 2013-01-15 Joseph Myers <joseph@codesourcery.com>
13432 Mikael Pettersson <mikpe@it.uu.se>
13435 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13437 (ASM_OUTPUT_CASE_LABEL): Remove.
13438 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13439 * final.c (shorten_branches): Update alignment of labels before
13440 jump tables if CASE_VECTOR_SHORTEN_MODE.
13442 2013-01-15 Richard Biener <rguenther@suse.de>
13445 * system.h: Do not include gmp.h for building host tools.
13447 2013-01-15 Richard Biener <rguenther@suse.de>
13449 PR middle-end/55882
13450 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13451 account for bitpos when computing alignment.
13453 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13455 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13456 (ix86_target_macros_internal): Likewise.
13458 * config/i386/i386.c (m_CORE2I7): Removed.
13459 (m_CORE_HASWELL): New macro.
13460 (m_CORE_ALL): Likewise.
13461 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13462 (initial_ix86_arch_features): Likewise.
13463 (processor_target_table): Initializations for Core avx2.
13464 (cpu_names): New names "core-avx2".
13465 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13466 PROCESSOR_CORE_HASWELL.
13467 (ix86_issue_rate): New case.
13468 (ia32_multipass_dfa_lookahead): Likewise.
13469 (ix86_sched_init_global): Likewise.
13471 * config/i386/i386.h (TARGET_HASWELL): New macro.
13472 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13473 (processor_type): New PROCESSOR_HASWELL.
13475 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13477 PR tree-optimization/55955
13478 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13479 *SHIFT_EXPR and *ROTATE_EXPR codes.
13481 PR tree-optimization/48766
13482 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13483 -ftrapv disable -fwrapv.
13485 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13488 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13489 etc. to 1 and not to __flash.
13490 Use LL suffix for __INT24_MAX__ with -mint8.
13491 Use ULL suffix for __UINT24_MAX__ with -mint8.
13493 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13495 * config/avr/avr-arch.h
13496 (struct base_arch_s): Use typedef avr_arch_t instead.
13497 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13498 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13499 * config/avr/avr.c: Same.
13500 * config/avr/avr-devices.c: Same.
13501 * config/avr/driver-avr.c: Same.
13502 * config/avr/gen-avr-mmcu-texi.c: Same.
13503 * config/avr/avr-mcus.def: Adjust comment.
13505 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13507 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13508 * config/aarch64/iterators.md (VALLDI): New.
13510 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
13511 Andi Kleen <ak@linux.intel.com>
13514 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13515 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13518 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13520 * config/avr/avr-stdint.h: Remove trailing blanks.
13521 * config/avr/avr-log.h: Same.
13522 * config/avr/avr-arch.h: Same.
13523 * config/avr/avr-devices.c: Same.
13524 * config/avr/avr-dimode.md: Same.
13525 * config/avr/predicates.md: Same.
13526 * config/avr/avr-c.c: Same. And fix typo.
13528 * config/avr/avr-protos.h: Same. And:
13529 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13530 (init_cumulative_args): Rename to avr_init_cumulative_args.
13531 (expand_prologue): Rename to avr_expand_prologue.
13532 (expand_epilogue): Rename to avr_expand_epilogue.
13533 (adjust_insn_length): Rename to avr_adjust_insn_length.
13534 (notice_update_cc): Rename to avr_notice_update_cc.
13535 (final_prescan_insn): Rename to avr_final_prescan_insn.
13536 * config/avr/avr.c: Same.
13537 * config/avr/avr.h: Same.
13538 * config/avr/avr.md: Remove trailing blanks.
13539 (prologue): Use avr_expand_prologue.
13540 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13542 2013-01-14 Richard Biener <rguenther@suse.de>
13544 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13545 verify_location, collect_subblocks): New functions.
13546 (verify_gimple_in_cfg): Verify that locations only reference
13547 BLOCKs in the functions BLOCK tree.
13549 2013-01-14 Richard Biener <rguenther@suse.de>
13551 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13553 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13555 (insert_out_of_ssa_copy_on_edge): Likewise.
13556 (rewrite_close_phi_out_of_ssa): Likewise.
13557 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13559 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13560 propagated constants.
13561 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13564 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13566 * config/avr/avr-modes.def: Add GPL copyright notice.
13568 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
13570 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13571 MEMMODEL_MASK to determine memory model.
13572 (atomic_store<mode>): Ditto from operands[2].
13573 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13575 2013-01-13 Jakub Jelinek <jakub@redhat.com>
13578 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13579 (fold_gimple_assign): Don't call unshare_expr here.
13580 (fold_ctor_reference): Call unshare_expr.
13582 2013-01-13 Terry Guo <terry.guo@arm.com>
13584 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13585 * doc/fragments.texi: Document MULTILIB_REUSE.
13586 * gcc.c (multilib_reuse): New internal spec.
13587 (set_multilib_dir): Also search multilib from multilib_reuse.
13588 * genmultilib (tmpmultilib3): Refactor code.
13589 (tmpmultilib4): Ditto.
13590 (multilib_reuse): New multilib argument.
13592 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13594 * Makefile.in: Update copyright.
13596 2013-01-12 Tom de Vries <tom@codesourcery.com>
13598 PR middle-end/55890
13599 * calls.c (expand_call): Check if arg_nr is valid.
13601 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13603 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13604 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13605 documentation. Add missing '__' in front of
13606 __builtin_ia32_packssdw256.
13608 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13611 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13612 NO_REGS for larl operands.
13613 (s390_reload_larl_operand): Use s390_load_address instead of
13616 2013-01-11 Richard Biener <rguenther@suse.de>
13618 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13619 (verify_node_sharing): ... here.
13620 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13622 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13624 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13625 Substitute TREECHECKING.
13626 * configure: Regenerate.
13627 * Makefile.in (TREECHECKING): New.
13629 2013-01-11 Richard Guenther <rguenther@suse.de>
13631 PR tree-optimization/44061
13632 * tree-vrp.c (extract_range_basic): Compute zero as
13633 value-range for __builtin_constant_p of function parameters.
13635 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13637 Update copyright years.
13639 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13641 PR rtl-optimization/55672
13642 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13643 const to be eliminable.
13645 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
13647 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13648 * configure: Regenerate.
13650 2013-01-10 Richard Biener <rguenther@suse.de>
13652 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13654 2013-01-10 Richard Biener <rguenther@suse.de>
13657 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13658 locations for virtual PHI arguments.
13659 (rewrite_update_phi_arguments): Likewise.
13661 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13663 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13666 2013-01-10 Jakub Jelinek <jakub@redhat.com>
13668 PR tree-optimization/55921
13669 * tree-complex.c (expand_complex_asm): New function.
13670 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13672 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13675 * config/s390/s390.c (s390_symref_operand_p)
13676 (s390_loadrelative_operand_p): Merge the two functions.
13677 (s390_check_qrst_address, print_operand_address): Add parameters
13678 to s390_loadrelative_operand_p invokation.
13679 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13680 (s390_reload_larl_operand, s390_secondary_reload): Use
13681 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13682 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13684 2013-01-09 Mike Stump <mikestump@comcast.net>
13686 * dse.c (record_store): Remove unnecessary assert.
13688 2013-01-09 Jan Hubicka <jh@suse.cz>
13690 PR tree-optimization/55569
13691 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13692 * cfgloop.h (scale_loop_profile): Likewise.
13694 2013-01-09 Jan Hubicka <jh@suse.cz>
13697 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13699 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13701 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13703 PR middle-end/55114
13704 * expr.h (maybe_emit_group_store): Declare.
13705 * expr.c (maybe_emit_group_store): New function.
13706 * builtins.c (expand_builtin_int_roundingfn): Call it.
13707 (expand_builtin_int_roundingfn_2): Likewise.
13709 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13711 PR rtl-optimization/55829
13712 * lra-constraints.c (match_reload): Add code for absent output.
13713 (curr_insn_transform): Add code for reloads of matched inputs
13716 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
13718 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13719 attribute of movddup insn to DF.
13720 (*vec_interleave_lowv2df): Ditto.
13721 (vec_dupv2df): Ditto.
13723 2013-01-09 Jan Hubicka <jh@suse.cz>
13725 PR tree-optimiation/55875
13726 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13727 EVERY_ITERATION parameter.
13728 (number_of_iterations_exit): Check if exit is executed every iteration.
13729 (idx_infer_loop_bounds): Similarly here.
13730 (n_of_executions_at_most): Simplify
13731 to only test for cases where statement is dominated by the
13732 particular bound; handle correctly the "postdominance" test.
13733 (scev_probably_wraps_p): Use max loop iterations info
13734 as a global bound first.
13736 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
13737 Nick Clifton <nickc@redhat.com>
13739 * config/v850/v850.md (cbranchsf4): New pattern.
13740 (cstoresf4): New pattern.
13741 (cbranchdf4): New pattern.
13742 (cstoredf4): New pattern.
13743 (movsicc): Disallow floating point comparisons.
13744 (cmpsf_le_insn): Fix order of operators.
13745 (cmpsf_lt_insn): Likewise.
13746 (cmpsf_eq_insn): Likewise.
13747 (cmpdf_le_insn): Likewise.
13748 (cmpdf_lt_insn): Likewise.
13749 (cmpdf_eq_insn): Likewise.
13750 (cmpsf_ge_insn): Use LE comparison.
13751 (cmpdf_ge_insn): Likewise.
13752 (cmpsf_gt_insn): Use LT comparison.
13753 (cmpdf_gt_insn): Likewise.
13754 (cmpsf_ne_insn): Delete pattern.
13755 (cmpdf_ne_insn): Delete pattern.
13756 * config/v850/v850.c (v850_gen_float_compare): Use
13757 gen_cmpdf_eq_insn for NE comparison.
13758 (v850_float_z_comparison_operator)
13759 (v850_float_nz_comparison_operator): Move from here ...
13760 * config/v850/predicates.md: ... to here. Move GT and GE
13761 comparisons into v850_float_z_comparison_operator.
13762 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13764 (v850_float_nz_comparison_operator): Likewise.
13766 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13768 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13769 with calls to gen_insvsi/gen_insvdi.
13771 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13773 * config/i386/i386.c (initial_ix86_tune_features): Set up
13774 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13776 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13777 Jakub Jelinek <jakub@redhat.com>
13779 PR tree-optimization/48189
13780 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13781 If nitercst is 0, don't predict the exit edge.
13783 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13785 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13786 in asm_fprintf with reg_names.
13787 (aarch64_print_operand_address): Likewise.
13788 (aarch64_return_addr): Likewise.
13789 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13791 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13793 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13794 (INT_U6_BITS): Likewise.
13795 * config/pa/predicates.md (uint6_operand): New predicate.
13796 (shift5_operand, shift6_operand): Likewise.
13797 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13799 (lshrdi3): Use shift6_operand.
13800 (shrpsi4, shrpdi4): New insn patterns.
13801 (extzv): Delete expander.
13802 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13803 predicates in unamed zero extract patterns. Tighten common constraint.
13804 (extv): Delete expander.
13805 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13806 predicates in unamed sign extract patterns. Tighten common constraint.
13807 (insv): Delete expander.
13808 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13809 predicates in unamed insert patterns. Tighten common constraint.
13810 Change uint32_operand predicate to uint6_operand predicate in unamed
13811 DImode pattern to insert constant values of type 1...1xxxx.
13813 2013-01-04 Jan Hubicka <jh@suse.cz>
13815 PR tree-optimization/55823
13816 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13819 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13820 Uros Bizjak <ubizjak@gmail.com>
13822 PR rtl-optimization/55845
13823 * df-problems.c (can_move_insns_across): Stop scanning at
13824 volatile_insn_p source instruction or give up if
13825 across_from .. across_to range contains any volatile_insn_p
13828 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13830 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13831 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13833 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13834 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13836 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13839 * asan.c (asan_clear_shadow): New function.
13840 (asan_emit_stack_protection): Use it.
13842 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13844 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13845 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13846 with tab instead of space.
13848 2013-01-08 Nick Clifton <nickc@redhat.com>
13850 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13851 register bank 0 at the start of an interrupt handler.
13852 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13855 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13857 * config/aarch64/aarch64-simd.md
13858 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13859 (aarch64_simd_bsl): Likewise.
13860 (aarch64_vcond_internal<mode>): Likewise.
13861 (vcond<mode><mode>): Likewise.
13862 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13863 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13865 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13867 * config/aarch64/aarch64-builtins.c
13868 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13870 2013-01-08 Martin Jambor <mjambor@suse.cz>
13873 * tree-sra.c (analyze_access_subtree): Return true also after
13874 potentially creating a debug-only replacement.
13876 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13878 PR middle-end/55890
13879 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13881 PR tree-optimization/54120
13882 * tree-vrp.c (range_fits_type_p): Don't allow
13883 src_precision < precision from signed vr to unsigned_p
13884 if vr->min or vr->max is negative.
13885 (simplify_float_conversion_using_ranges): Test can_float_p
13886 against CODE_FOR_nothing.
13888 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13889 Richard Biener <rguenther@suse.de>
13891 PR middle-end/55851
13892 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13893 types instead of just INTEGER_TYPE types.
13895 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
13897 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13900 2013-01-07 Steve Ellcey <sellcey@mips.com>
13903 * config/mips/mips.opt: Change mad to mmad to match documentation.
13905 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13908 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13909 .progmemx.data now.
13911 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13914 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13915 (avr_addrspace_t): Add .section_name field.
13916 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13918 (avr_addrspace): Same. Initialize .section_name. Remove last
13919 NULL entry. Put __memx into .progmemx.data.
13920 (progmem_section_prefix): Remove.
13921 (avr_asm_init_sections): No need to initialize progmem_section.
13922 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13923 section name prefix.
13924 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13925 retrieve the progmem section.
13926 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13927 boundary to run over avr_addrspace[].
13928 (avr_register_target_pragmas): Ditto.
13930 2013-01-06 Jakub Jelinek <jakub@redhat.com>
13932 * varasm.c (output_constant_def_contents): For asan_protect_global
13933 protected strings, adjust DECL_ALIGN if needed, before testing for
13935 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13936 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13938 (output_object_block): For asan protected decls, emit asan padding
13939 after their contents.
13940 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13941 (asan_finish_file): Test it here instead.
13943 2013-01-07 Nick Clifton <nickc@redhat.com>
13944 Matthias Klose <doko@debian.org>
13945 Doug Kwan <dougkwan@google.com>
13946 H.J. Lu <hongjiu.lu@intel.com>
13949 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13951 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13953 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13955 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13957 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13959 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13962 * doc/install.texi (Cross-Compiler-Specific Options): Document
13965 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13967 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13968 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13969 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13970 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13971 vqmovun_high_s64): Fix source operand number and update copyright.
13973 2013-01-07 Richard Biener <rguenther@suse.de>
13975 PR middle-end/55890
13976 * gimple.h (gimple_call_builtin_p): New overload.
13977 * gimple.c (validate_call): New function.
13978 (gimple_call_builtin_p): Likewise.
13979 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13980 Use gimple_call_builtin_p.
13981 (find_func_clobbers): Likewise.
13982 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13983 (strlen_optimize_stmt): Likewise.
13985 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13987 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13988 (vld1q_dup_*): Likewise.
13989 (vld1_*): Likewise.
13990 (vld1q_*): Likewise.
13991 (vld1_lane_*): Likewise.
13992 (vld1q_lane_*): Likewise.
13994 2013-01-07 Richard Biener <rguenther@suse.de>
13996 * lto-streamer.h (LTO_minor_version): Bump to 2.
13998 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
14000 * config/aarch64/aarch64-protos.h
14001 (aarch64_const_double_zero_rtx_p): Rename to...
14002 (aarch64_float_const_zero_rtx_p): ...this.
14003 (aarch64_float_const_representable_p): New.
14004 (aarch64_output_simd_mov_immediate): Likewise.
14005 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
14006 move immediate case.
14007 * config/aarch64/aarch64.c
14008 (aarch64_const_double_zero_rtx_p): Rename to...
14009 (aarch64_float_const_zero_rtx_p): ...this.
14010 (aarch64_print_operand): Allow printing of new constants.
14011 (aarch64_valid_floating_const): New.
14012 (aarch64_legitimate_constant_p): Check for valid floating-point
14014 (aarch64_simd_valid_immediate): Likewise.
14015 (aarch64_vect_float_const_representable_p): New.
14016 (aarch64_float_const_representable_p): Likewise.
14017 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
14018 (aarch64_output_simd_mov_immediate): New.
14019 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
14020 (*movdf_aarch64): Likewise.
14021 * config/aarch64/constraints.md (Ufc): New.
14022 (Y): call aarch64_float_const_zero_rtx.
14023 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14025 2013-01-07 Richard Biener <rguenther@suse.de>
14027 PR tree-optimization/55888
14028 PR tree-optimization/55862
14029 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14030 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14031 not if it is contained therein.
14033 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14035 * config/avr/t-avr: Typo.
14037 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14040 * config/avr/t-avr: Don't automatically rebuild
14041 $(srcdir)/config/avr/t-multilib
14042 $(srcdir)/config/avr/avr-tables.opt
14043 $(srcdir)/doc/avr-mmcu.texi
14044 (avr-mcus): New phony target to build them on request.
14045 (s-avr-mlib, s-avr-mmcu-texi): Remove.
14046 * avr/avr-mcus.def: Adjust comments.
14048 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
14050 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14052 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14054 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14056 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14058 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14060 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
14062 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14063 to generate profiling.
14064 * config/rs6000/aix64.h (LIB_SPEC): Same.
14066 2013-01-04 Andrew Pinski <apinski@cavium.com>
14068 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14070 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14072 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
14074 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14076 (ix86_expand_move): Ditto.
14077 (ix86_zero_extend_to_Pmode): Ditto.
14078 (ix86_expand_call): Ditto.
14079 (ix86_expand_special_args_builtin): Ditto.
14080 (ix86_expand_builtin): Ditto.
14082 2013-01-04 Richard Biener <rguenther@suse.de>
14084 PR tree-optimization/55862
14085 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14086 translating them through PHI nodes.
14088 2013-01-04 Martin Jambor <mjambor@suse.cz>
14090 PR tree-optimization/55755
14091 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14092 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14094 2013-01-04 Marek Polacek <polacek@redhat.com>
14096 PR middle-end/55859
14097 * opts.c (default_options_optimization): Clarify error message.
14099 2013-01-04 Richard Biener <rguenther@suse.de>
14101 PR middle-end/55863
14102 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14105 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14108 * config/pa/pa.md (movsi): Revert previous change.
14109 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14112 2013-01-03 Richard Henderson <rth@redhat.com>
14114 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14115 after eliminating TLS symbols.
14117 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
14120 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14121 * graphite-poly.c (debug_gmp_value): Likewise.
14123 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
14126 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14127 selected code model, define __code_mode_small__, __code_model_medium__,
14128 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14129 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14130 xchg temporary register with %k. Declare temporary register as
14132 [__x86_64__]: For medium and large code models, preserve %rbx register.
14134 2013-01-03 Richard Biener <rguenther@suse.de>
14136 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14137 (dump_subscript): Adjust.
14138 (finalize_ddr_dependent): Do not dump redundant info.
14139 (analyze_siv_subscript): Adjust.
14140 (subscript_dependence_tester): Likewise.
14141 (compute_affine_dependence): Likewise.
14143 2013-01-03 Richard Biener <rguenther@suse.de>
14146 2013-01-03 Richard Biener <rguenther@suse.de>
14148 PR tree-optimization/55857
14149 * tree-vect-stmts.c (vectorizable_load): Do not setup
14150 re-alignment for invariant loads.
14152 2013-01-02 Richard Biener <rguenther@suse.de>
14154 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14155 invariant load do not generate a vector load from the scalar location.
14157 2013-01-03 Richard Biener <rguenther@suse.de>
14159 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14160 for not vectorizing.
14161 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14162 not build INDIRECT_REFs, call get_name once only.
14163 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14164 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14166 2013-01-03 Richard Biener <rguenther@suse.de>
14168 PR tree-optimization/55857
14169 * tree-vect-stmts.c (vectorizable_load): Do not setup
14170 re-alignment for invariant loads.
14172 2013-01-03 Richard Biener <rguenther@suse.de>
14175 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14176 prefer a built-in decl.
14178 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14180 * gcc.c (process_command): Update copyright notice dates.
14181 * gcov.c (print_version): Likewise.
14182 * gcov-dump.c (print_version): Likewise.
14184 PR rtl-optimization/55838
14185 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14186 iv0.step, iv1.step and step.
14188 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14189 Marc Glisse <marc.glisse@inria.fr>
14191 PR tree-optimization/55832
14192 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14193 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14194 integer_{one,zero}_node.
14196 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14199 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14200 * var-tracking.c (reverse_op): Don't add reverse ops to
14201 VALUEs that have already
14202 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14204 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14206 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14208 2013-01-02 Teresa Johnson <tejohnson@google.com>
14210 * dumpfile.c (dump_loc): Print filename with location.
14211 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14212 new location_t parameter to emit complete unroll message with
14213 new dump framework.
14214 (canonicalize_loop_induction_variables): Compute loops location
14215 and pass to try_unroll_loop_completely.
14216 * loop-unroll.c (report_unroll_peel): New function.
14217 (peel_loops_completely): Use new dump format with location
14218 for main dumpfile message, and invoke report_unroll_peel on success.
14219 (decide_unrolling_and_peeling): Ditto.
14220 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14221 by report_unroll_peel.
14222 (decide_peel_completely): Ditto.
14223 (decide_unroll_constant_iterations): Ditto.
14224 (decide_unroll_runtime_iterations): Ditto.
14225 (decide_peel_simple): Ditto.
14226 (decide_unroll_stupid): Ditto.
14227 * cfgloop.c (get_loop_location): New function.
14228 * cfgloop.h (get_loop_location): Declare.
14230 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14232 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14235 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14237 PR middle-end/55198
14238 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14239 BLKmode objects when EXPAND_MEMORY is specified.
14241 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14243 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14245 (fold_builtin_cpu): Do not share cpu model decls across statements.
14247 2013-01-02 Jason Merrill <jason@redhat.com>
14250 * tree.c (build_array_type_1): Revert earlier change.
14252 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14254 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14256 * config/aarch64/aarch64-tune.md: Re-generate.
14258 2013-01-02 Richard Biener <rguenther@suse.de>
14260 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14261 invariant load do not generate a vector load from the scalar location.
14263 2013-01-02 Richard Biener <rguenther@suse.de>
14266 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14267 * configure: Regenerate.
14269 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14271 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14272 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14273 (expand_builtin_int_roundingfn_2): Keep the original target around
14274 for the fallback case.
14276 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14278 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14279 to be clear for sign changes.
14281 2013-01-01 Jan Hubicka <jh@suse.cz>
14283 * ipa-inline-analysis.c: Fix formatting.
14285 2013-01-01 Jakub Jelinek <jakub@redhat.com>
14287 PR tree-optimization/55831
14288 * tree-vect-loop.c (get_initial_def_for_induction): Use
14289 gsi_after_labels instead of gsi_start_bb.
14291 Copyright (C) 2013 Free Software Foundation, Inc.
14293 Copying and distribution of this file, with or without modification,
14294 are permitted in any medium without royalty provided the copyright
14295 notice and this notice are preserved.