1 2013-07-09 Joseph Myers <joseph@codesourcery.com>
3 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Only
4 adjust register size for TDmode and TFmode for VSX registers.
6 2013-07-08 Kai Tietz <ktietz@redhat.com>
9 * config/i386/i386.c (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): Define as
10 hook_bool_const_tree_true.
12 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14 * config/s390/s390.c: Replace F*_REGNUM with FPR*_REGNUM.
15 * config/s390/s390.h: Remove F*_REGNUM macro definitions.
16 * config/s390/s390.md: Define FPR*_REGNUM constants.
17 Fix FPR2_REGNUM constant (18 -> 17).
18 ("*trunc<BFP:mode><DFP_ALL:mode>2")
19 ("*trunc<DFP_ALL:mode><BFP:mode>2")
20 ("trunc<BFP:mode><DFP_ALL:mode>2")
21 ("trunc<DFP_ALL:mode><BFP:mode>2")
22 ("*extend<BFP:mode><DFP_ALL:mode>2")
23 ("*extend<DFP_ALL:mode><BFP:mode>2")
24 ("extend<BFP:mode><DFP_ALL:mode>2")
25 ("extend<DFP_ALL:mode><BFP:mode>2"): Replace FPR2_REGNUM with
28 2013-07-08 Graham Stott <graham.stott@btinternet.com>
29 * Makefile.in: (c-family-warn): Define to $(STRICT_WARN)
31 2013-07-08 Graham Stott <graham.stott@btinternet.com>
32 * c-family/array-notation-common.c (length_mismatch_in_expr_p): Delete
33 unused variables l_length and l_node.
35 2013-07-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
37 * config/s390/s390.c: Rename cfun_set_fpr_bit to cfun_set_fpr_save
38 and cfun_fpr_bit_p to cfun_fpr_save_p.
39 (s390_frame_area, s390_register_info, s390_frame_info)
40 (s390_emit_prologue, s390_emit_epilogue)
41 (s390_conditional_register_usage): Use the *_REGNUM macros for FPR
43 * config/s390/s390.h: Define *_REGNUM macros for floating point
46 2013-07-08 Eric Botcazou <ebotcazou@adacore.com>
48 * Makefile.in (tree-ssa-reassoc.o): Add dependency on $(PARAMS_H).
50 2013-07-08 Po-Chun Chang <pchang9@cs.wisc.edu>
52 PR rtl-optimization/57786
53 * combine.c (distribute_notes) <case REG_DEAD>: Change all_used to bool
54 and break out of the loop when it is set to false.
56 2013-07-08 Jakub Jelinek <jakub@redhat.com>
59 * simplify-rtx.c (simplify_unary_operation_1) <case ZERO_EXTEND>:
60 Simplify (zero_extend:SI (subreg:QI (and:SI (reg:SI)
62 * combine.c (make_extraction): Create ZERO_EXTEND or SIGN_EXTEND
63 using simplify_gen_unary instead of gen_rtx_*_EXTEND.
64 * config/i386/i386.md (*jcc_bt<mode>_1): New define_insn_and_split.
66 PR rtl-optimization/57829
67 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Ensure that
68 mask bits outside of mode are just sign-extension from mode to HWI.
70 2013-07-08 Michael Zolotukhin <michael.v.zolotukhin@gmail.com>
72 * config/i386/i386-opts.h (enum stringop_alg): Add vector_loop.
73 * config/i386/i386.c (expand_set_or_movmem_via_loop): Use
74 adjust_address instead of change_address to keep info about alignment.
75 (emit_strmov): Remove.
76 (emit_memmov): New function.
77 (expand_movmem_epilogue): Refactor to properly handle bigger sizes.
78 (expand_movmem_epilogue): Likewise and return updated rtx for
80 (expand_constant_movmem_prologue): Likewise and return updated rtx for
81 destination and source.
82 (decide_alignment): Refactor, handle vector_loop.
83 (ix86_expand_movmem): Likewise.
84 (ix86_expand_setmem): Likewise.
85 * config/i386/i386.opt (Enum): Add vector_loop to option stringop_alg.
87 2013-07-07 Uros Bizjak <ubizjak@gmail.com>
89 * config/i386/driver-i386.c (host_detect_local_cpu): Do not check
90 signature_TM2_ebx, it interferes with signature_INTEL_ebx.
92 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
94 * config/i386/sse.md (sse_movlhps): Change alternative 3
97 2013-07-06 Uros Bizjak <ubizjak@gmail.com>
100 * config/i386/sse.md (iptr): New mode attribute.
101 (sse2_movq128): Add pointer size overrides for Intel asm dialect.
102 (<sse>_vm<plusminus_insn><mode>3): Ditto.
103 (<sse>_vmmul<mode>3): Ditto.
104 (<sse>_vmdiv<mode>3): Ditto.
105 (sse_vmrcpv4sf2): Ditto.
106 (<sse>_vmsqrt<mode>2): Ditto.
107 (sse_vmrsqrtv4sf2): Ditto.
108 (<sse>_vm<code><mode>3): Ditto.
109 (avx_vmcmp<mode>3): Ditto.
110 (<sse>_vmmaskcmp<mode>3): Ditto.
112 (<sse>_ucomi): Ditto.
113 (*xop_vmfrcz_<mode>): Ditto.
114 (*fmai_fmadd_<mode>): Ditto.
115 (*fmai_fmsub_<mode>): Ditto.
116 (*fmai_fnmadd_<mode>): Ditto.
117 (*fmai_fnmsub_<mode>): Ditto.
118 (*fma4i_vmfmadd_<mode>): Ditto.
119 (*fma4i_vmfmsub_<mode>): Ditto.
120 (*fma4i_vmfnmadd_<mode>): Ditto.
121 (*fma4i_vmfnmsub_<mode>): Ditto.
122 (*xop_vmfrcz_<mode>): Ditto.
123 (sse_cvtps2pi): Ditto.
124 (sse_cvttps2pi): Ditto.
125 (sse_cvtss2si): Ditto.
126 (sse_cvtss2si_2): Ditto.
127 (sse_cvtss2siq_2): Ditto.
128 (sse_cvttss2si): Ditto.
129 (sse_cvttss2siq): Ditto.
130 (sse_cvtsd2si): Ditto.
131 (sse_cvtsd2si_2): Ditto.
132 (sse_cvtsd2siq_2): Ditto.
133 (sse_cvttsd2si): Ditto.
134 (sse_cvttsd2siq): Ditto.
135 (sse_cvtsd2ss): Ditto.
136 (sse_cvtss2sd): Ditto.
137 (avx2_pbroadcast<mode>): Ditto.
138 (avx2_pbroadcast<mode>_1): Ditto.
139 (*avx_vperm_broadcast_v4sf): Ditto.
141 (sse_movhlps): Ditto for movlp[sd]/movhp[sd] alternatives.
142 (sse_movlhps): Ditto.
143 (sse_storehps): Ditto.
144 (sse_loadhps): Ditto.
145 (sse_storelps): Ditto.
146 (sse_loadlps): Ditto.
147 (*vec_concatv4sf): Ditto.
148 (*vec_interleave_highv2df): Ditto.
149 (*vec_interleave_lowv2df): Ditto.
150 (*vec_extractv2df_1_sse): Ditto.
151 (*vec_extractv2df_0_sse): Ditto.
152 (sse2_storelpd): Ditto.
153 (sse2_loadlpd): Ditto.
155 (*vec_concatv4si): Ditto.
156 (vec_concatv2di): Ditto.
158 * config/i386/mmx.md (mmx_punpcklbw): Add pointer size overrides
159 for Intel asm dialect.
160 (mmx_punpcklwd): Ditto.
161 (mmx_punpckldq): Ditto.
163 * config/i386/i386.c (ix86_print_operand) ['H']: Output 'qword ptr'
164 for intel assembler dialect.
166 2013-07-06 Jakub Jelinek <jakub@redhat.com>
169 * fold-const.c (tree_call_nonnegative_warnv_p): Return true
170 for BUILT_IN_C{LZ,LRSB}*.
171 * tree.h (CASE_INT_FN): Add FN##IMAX case.
172 * tree-vrp.c (extract_range_basic): Handle
173 BUILT_IN_{FFS,PARITY,POPCOUNT,C{LZ,TZ,LRSB}}*. For
174 BUILT_IN_CONSTANT_P if argument isn't (D) of PARM_DECL,
175 fall thru to code calling set_value*.
176 * builtins.c (expand_builtin): Remove *IMAX cases.
177 (fold_builtin_bitop): For BUILT_IN_CLRSB* return NULL_TREE
178 if width is bigger than 2*HWI.
180 2013-07-05 Vladimir Makarov <vmakarov@redhat.com>
182 PR rtl-optimization/55342
183 * lra-int.h (lra_subreg_reload_pseudos): New.
184 * lra.c: Add undoing optional reloads to the block diagram.
185 (lra_subreg_reload_pseudos): New.
186 (lra_optional_reload_pseudos): Change comments.
187 (lra): Init and clear lra_subreg_reload_pseudos. Clear
188 lra_optional_reload_pseudos after undo transformations.
189 * lra-assigns.c (pseudo_prefix_title): New.
190 (lra_setup_reg_renumber): Use it.
191 (spill_for): Ditto. Check subreg reload pseudos too.
192 (assign_by_spills): Consider subreg reload pseudos too.
193 * lra-constraints.c (simplify_operand_subreg): Use
194 lra_subreg_reload_pseudos instead of lra_optional_reload_pseudos.
195 (curr_insn_transform): Recognize and do optional reloads.
196 (undo_optional_reloads): New.
197 (lra_undo_inheritance): Call undo_optional_reloads.
199 2013-07-05 Thomas Quinot <quinot@adacore.com>
201 * tree-complex.c (expand_complex_operations_1): Fix typo.
203 2013-07-04 Tejas Belagod <tejas.belagod@arm.com>
205 * config/aarch64/aarch64-protos.h (cpu_vector_cost): New.
206 (tune_params): New member 'const vec_costs'.
207 * config/aarch64/aarch64.c (generic_vector_cost): New.
208 (generic_tunings): New member 'generic_vector_cost'.
209 (aarch64_builtin_vectorization_cost): New.
210 (aarch64_add_stmt_cost): New.
211 (TARGET_VECTORIZE_ADD_STMT_COST): New.
212 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): New.
214 2013-07-03 Jakub Jelinek <jakub@redhat.com>
217 * config/i386/predicates.md (vsib_address_operand): Disallow
218 SYMBOL_REF or LABEL_REF in parts.disp if TARGET_64BIT && flag_pic.
220 2013-07-03 Hans-Peter Nilsson <hp@bitrange.com>
223 * stmt.c (expand_nl_goto_receiver): Remove almost-copy of
224 expand_builtin_setjmp_receiver.
225 (expand_label): Adjust, call expand_builtin_setjmp_receiver
226 with NULL for the label parameter.
227 * builtins.c (expand_builtin_setjmp_receiver): Don't clobber
228 the frame-pointer. Adjust comments.
229 [HAVE_builtin_setjmp_receiver]: Emit builtin_setjmp_receiver
230 only if LABEL is non-NULL.
232 2013-07-03 Yufeng Zhang <yufeng.zhang@arm.com>
234 * config/aarch64/aarch64.h (enum arm_abi_type): Remove.
235 (ARM_ABI_AAPCS64): Ditto.
237 (ARM_DEFAULT_ABI): Ditto.
239 2013-07-03 James Greenhalgh <james.greenhalgh@arm.com>
241 * config/aarch64/aarch64-builtins.c
242 (aarch64_simd_expand_builtin): Handle AARCH64_SIMD_STORE1.
243 * config/aarch64/aarch64-simd-builtins.def (ld1): New.
245 * config/aarch64/aarch64-simd.md
246 (aarch64_ld1<VALL:mode>): New.
247 (aarch64_st1<VALL:mode>): Likewise.
248 * config/aarch64/arm_neon.h
249 (vld1<q>_<fpsu><8, 16, 32, 64>): Convert to RTL builtins.
251 2013-07-02 Sriraman Tallam <tmsriram@google.com>
253 * config/i386/i386.c (gate_insert_vzeroupper): Check if
255 (ix86_option_override_internal):Turn on all -mavx target flags by
256 default as they are dependent on AVX anyway.
258 2013-07-02 Cary Coutant <ccoutant@google.com>
260 * dwarf2out.c (loc_checksum): Call hash_loc_operands for a
262 (loc_checksum_ordered): Likewise.
263 (hash_loc_operands): Remove inline keyword.
265 2013-07-02 Jakub Jelinek <jakub@redhat.com>
267 PR tree-optimization/57741
268 * tree-vect-loop.c (vect_is_simple_iv_evolution): Disallow
269 non-INTEGRAL_TYPE_P non-SCALAR_FLOAT_TYPE_P SSA_NAME step_exprs,
270 or SCALAR_FLOAT_TYPE_P SSA_NAMEs if !flag_associative_math.
271 Allow REAL_CST step_exprs if flag_associative_math.
272 (get_initial_def_for_induction): Handle SCALAR_FLOAT_TYPE_P step_expr.
274 2013-07-02 Ian Bolton <ian.bolton@arm.com>
276 * config/aarch64/aarch64-simd.md (absdi2): Support abs for DI mode.
278 2013-07-02 Ian Bolton <ian.bolton@arm.com>
280 * config/aarch64/aarch64.md (*extr_insv_reg<mode>): New pattern.
282 2013-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
284 * config/arm/arm.md (arm_andsi3_insn): Add alternatives for 16-bit
286 (iorsi3_insn): Likewise.
287 (arm_xorsi3): Likewise.
289 2013-07-01 Sofiane Naci <sofiane.naci@arm.com>
291 * arm.md (attribute "wtype"): Delete. Move attribute values from here
293 (attribute "type"): ... here, and prefix with "wmmx_".
294 (attribute "core_cycles"): Update for attribute changes.
295 * iwmmxt.md (tbcstv8qi): Update for attribute changes.
296 (tbcstv4hi): Likewise.
297 (tbcstv2si): Likewise.
298 (iwmmxt_iordi3): Likewise.
299 (iwmmxt_xordi3): Likewise.
300 (iwmmxt_anddi3): Likewise.
301 (iwmmxt_nanddi3): Likewise.
302 (iwmmxt_arm_movdi): Likewise.
303 (iwmmxt_movsi_insn): Likewise.
304 (mov<mode>_internal): Likewise.
305 (and<mode>3_iwmmxt): Likewise.
306 (ior<mode>3_iwmmxt): Likewise.
307 (xor<mode>3_iwmmxt): Likewise.
308 (add<mode>3_iwmmxt): Likewise.
309 (ssaddv8qi3): Likewise.
310 (ssaddv4hi3): Likewise.
311 (ssaddv2si3): Likewise.
312 (usaddv8qi3): Likewise.
313 (usaddv4hi3): Likewise.
314 (usaddv2si3): Likewise.
315 (sub<mode>3_iwmmxt): Likewise.
316 (sssubv8qi3): Likewise.
317 (sssubv4hi3): Likewise.
318 (sssubv2si3): Likewise.
319 (ussubv8qi3): Likewise.
320 (ussubv4hi3): Likewise.
321 (ussubv2si3): Likewise.
322 (mulv4hi3_iwmmxt): Likewise.
323 (smulv4hi3_highpart): Likewise.
324 (umulv4hi3_highpart): Likewise.
325 (iwmmxt_wmacs): Likewise.
326 (iwmmxt_wmacsz): Likewise.
327 (iwmmxt_wmacu): Likewise.
328 (iwmmxt_wmacuz): Likewise.
329 (iwmmxt_clrdi): Likewise.
330 (iwmmxt_clrv8qi): Likewise.
331 (iwmmxt_clr4hi): Likewise.
332 (iwmmxt_clr2si): Likewise.
333 (iwmmxt_uavgrndv8qi3): Likewise.
334 (iwmmxt_uavgrndv4hi3): Likewise.
335 (iwmmxt_uavgv8qi3): Likewise.
336 (iwmmxt_uavgv4hi3): Likewise.
337 (iwmmxt_tinsrb): Likewise.
338 (iwmmxt_tinsrh): Likewise.
339 (iwmmxt_tinsrw): Likewise.
340 (iwmmxt_textrmub): Likewise.
341 (iwmmxt_textrmsb): Likewise.
342 (iwmmxt_textrmuh): Likewise.
343 (iwmmxt_textrmsh): Likewise.
344 (iwmmxt_textrmw): Likewise.
345 (iwmxxt_wshufh): Likewise.
349 (gtuv8qi3): Likewise.
350 (gtuv4hi3): Likewise.
351 (gtuv2si3): Likewise.
355 (smax<mode>3_iwmmxt): Likewise.
356 (umax<mode>3_iwmmxt): Likewise.
357 (smin<mode>3_iwmmxt): Likewise.
358 (umin<mode>3_iwmmxt): Likewise.
359 (iwmmxt_wpackhss): Likewise.
360 (iwmmxt_wpackwss): Likewise.
361 (iwmmxt_wpackdss): Likewise.
362 (iwmmxt_wpackhus): Likewise.
363 (iwmmxt_wpackwus): Likewise.
364 (iwmmxt_wpackdus): Likewise.
365 (iwmmxt_wunpckihb): Likewise.
366 (iwmmxt_wunpckihh): Likewise.
367 (iwmmxt_wunpckihw): Likewise.
368 (iwmmxt_wunpckilb): Likewise.
369 (iwmmxt_wunpckilh): Likewise.
370 (iwmmxt_wunpckilw): Likewise.
371 (iwmmxt_wunpckehub): Likewise.
372 (iwmmxt_wunpckehuh): Likewise.
373 (iwmmxt_wunpckehuw): Likewise.
374 (iwmmxt_wunpckehsb): Likewise.
375 (iwmmxt_wunpckehsh): Likewise.
376 (iwmmxt_wunpckehsw): Likewise.
377 (iwmmxt_wunpckelub): Likewise.
378 (iwmmxt_wunpckeluh): Likewise.
379 (iwmmxt_wunpckeluw): Likewise.
380 (iwmmxt_wunpckelsb): Likewise.
381 (iwmmxt_wunpckelsh): Likewise.
382 (iwmmxt_wunpckelsw): Likewise.
383 (ror<mode>3): Likewise.
384 (ashr<mode>3_iwmmxt): Likewise.
385 (lshr<mode>3_iwmmxt): Likewise.
386 (ashl<mode>3_iwmmxt): Likewise.
387 (ror<mode>3_di): Likewise.
388 (ashr<mode>3_di): Likewise.
389 (lshr<mode>3_di): Likewise.
390 (ashl<mode>3_di): Likewise.
391 (iwmmxt_wmadds): Likewise.
392 (iwmmxt_wmaddu): Likewise.
393 (iwmmxt_tmia): Likewise.
394 (iwmmxt_tmiaph): Likewise.
395 (iwmmxt_tmiabb): Likewise.
396 (iwmmxt_tmiatb): Likewise.
397 (iwmmxt_tmiabt): Likewise.
398 (iwmmxt_tmiatt): Likewise.
399 (iwmmxt_tmovmskb): Likewise.
400 (iwmmxt_tmovmskh): Likewise.
401 (iwmmxt_tmovmskw): Likewise.
402 (iwmmxt_waccb): Likewise.
403 (iwmmxt_wacch): Likewise.
404 (iwmmxt_waccw): Likewise.
405 (iwmmxt_waligni): Likewise.
406 (iwmmxt_walignr): Likewise.
407 (iwmmxt_walignr0): Likewise.
408 (iwmmxt_walignr1): Likewise.
409 (iwmmxt_walignr2): Likewise.
410 (iwmmxt_walignr3): Likewise.
411 (iwmmxt_wsadb): Likewise.
412 (iwmmxt_wsadh): Likewise.
413 (iwmmxt_wsadbz): Likewise.
414 (iwmmxt_wsadhz): Likewise.
415 * iwmmxt2.md (iwmmxt_wabs<mode>3): Update for attribute changes.
416 (iwmmxt_wabsdiffb): Likewise.
417 (iwmmxt_wabsdiffh): Likewise.
418 (iwmmxt_wabsdiffw): Likewise.
419 (iwmmxt_waddsubhx): Likewise
420 (iwmmxt_wsubaddhx): Likewise.
421 (addc<mode>3): Likewise.
422 (iwmmxt_avg4): Likewise.
423 (iwmmxt_avg4r): Likewise.
424 (iwmmxt_wmaddsx): Likewise.
425 (iwmmxt_wmaddux): Likewise.
426 (iwmmxt_wmaddsn): Likewise.
427 (iwmmxt_wmaddun): Likewise.
428 (iwmmxt_wmulwsm): Likewise.
429 (iwmmxt_wmulwum): Likewise.
430 (iwmmxt_wmulsmr): Likewise.
431 (iwmmxt_wmulumr): Likewise.
432 (iwmmxt_wmulwsmr): Likewise.
433 (iwmmxt_wmulwumr): Likewise.
434 (iwmmxt_wmulwl): Likewise.
435 (iwmmxt_wqmulm): Likewise.
436 (iwmmxt_wqmulwm): Likewise.
437 (iwmmxt_wqmulmr): Likewise.
438 (iwmmxt_wqmulwmr): Likewise.
439 (iwmmxt_waddbhusm): Likewise.
440 (iwmmxt_waddbhusl): Likewise.
441 (iwmmxt_wqmiabb): Likewise.
442 (iwmmxt_wqmiabt): Likewise.
443 (iwmmxt_wqmiatb): Likewise.
444 (iwmmxt_wqmiatt): Likewise.
445 (iwmmxt_wqmiabbn): Likewise.
446 (iwmmxt_wqmiabtn): Likewise.
447 (iwmmxt_wqmiatbn): Likewise.
448 (iwmmxt_wqmiattn): Likewise.
449 (iwmmxt_wmiabb): Likewise.
450 (iwmmxt_wmiabt): Likewise.
451 (iwmmxt_wmiatb): Likewise.
452 (iwmmxt_wmiatt): Likewise.
453 (iwmmxt_wmiabbn): Likewise.
454 (iwmmxt_wmiabtn): Likewise.
455 (iwmmxt_wmiatbn): Likewise.
456 (iwmmxt_wmiattn): Likewise.
457 (iwmmxt_wmiawbb): Likewise.
458 (iwmmxt_wmiawbt): Likewise.
459 (iwmmxt_wmiawtb): Likewise.
460 (iwmmxt_wmiawtt): Likewise.
461 (iwmmxt_wmiawbbn): Likewise.
462 (iwmmxt_wmiawbtn): Likewise.
463 (iwmmxt_wmiawtbn): Likewise.
464 (iwmmxt_wmiawttn): Likewise.
465 (iwmmxt_wmerge): Likewise.
466 (iwmmxt_tandc<mode>3): Likewise.
467 (iwmmxt_torc<mode>3): Likewise.
468 (iwmmxt_torvsc<mode>3): Likewise.
469 (iwmmxt_textrc<mode>3): Likewise.
470 * marvell-f-iwmmxt.md (wmmxt_shift): Update for attribute changes.
471 (wmmxt_pack): Likewise.
472 (wmmxt_mult_c1): Likewise.
473 (wmmxt_mult_c2): Likewise.
474 (wmmxt_alu_c1): Likewise.
475 (wmmxt_alu_c2): Likewise.
476 (wmmxt_alu_c3): Likewise.
477 (wmmxt_transfer_c1): Likewise.
478 (wmmxt_transfer_c2): Likewise.
479 (wmmxt_transfer_c3): Likewise.
480 (marvell_f_iwmmxt_wstr): Likewise.
481 (marvell_f_iwmmxt_wldr): Likewise.
483 2013-06-29 Yufeng Zhang <yufeng.zhang@arm.com>
485 * config/aarch64/aarch64.c: Remove junk from the beginning of the file.
487 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
490 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
491 * lra-constraints.c (need_for_split_p): Check call used hard regs
492 living through calls.
494 * lra-constraints.c (inherit_in_ebb): Reset live_hard_regs for
495 call used regs for call insn.
497 2013-06-28 Jakub Jelinek <jakub@redhat.com>
500 * config/i386/i386.c (ix86_expand_builtin): If target == NULL and
501 mode is VOIDmode, don't create a VOIDmode pseudo to copy result into.
503 2013-06-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
505 * builtins.def: Fixed the function type of CILKPLUS_BUILTIN.
507 2013-06-28 Vladimir Makarov <vmakarov@redhat.com>
509 * lra-constraints.c (need_for_split_p): Check call used hard regs
510 living through calls.
512 2013-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
515 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Do not allow PTImode
516 to tie with any other modes. Eliminate Altivec vector mode tests,
517 since these are a subset of ALTIVEC or VSX vector modes. Simplify
518 code, to return 0 if testing MODE2 for a condition, if we've
519 already tested MODE1 for the same condition.
521 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
523 * config/aarch64/aarch64.c (aarch64_cannot_force_const_mem): Adjust
526 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
528 * config/aarch64/aarch64-protos.h (aarch64_symbol_type):
529 Update comment w.r.t SYMBOL_TINY_ABSOLUTE.
531 2013-06-28 Marcus Shawcroft <marcus.shawcroft@arm.com>
533 * config/aarch64/aarch64-protos.h (aarch64_classify_symbol_expression):
535 (aarch64_symbolic_constant_p): Remove.
536 * config/aarch64/aarch64.c (aarch64_classify_symbol_expression): Remove
537 static. Fix line length and white space.
538 (aarch64_symbolic_constant_p): Remove.
539 * config/aarch64/predicates.md (aarch64_valid_symref):
540 Use aarch64_classify_symbol_expression.
542 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
544 * config/arm/constraints.md (Ts): New constraint.
545 * config/arm/arm.md (arm_movqi_insn): Add alternatives for
547 (compare_scc): Use "Ts" constraint for operand 0.
548 (ior_scc_scc): Likewise.
549 (and_scc_scc): Likewise.
550 (and_scc_scc_nodom): Likewise.
551 (ior_scc_scc_cmp): Likewise for operand 7.
552 (and_scc_scc_cmp): Likewise.
553 * config/arm/thumb2.md (thumb2_movsi_insn):
554 Add alternatives for 16-bit encodings.
555 (thumb2_movhi_insn): Likewise.
556 (thumb2_movsicc_insn): Likewise.
557 (thumb2_and_scc): Take 'and' outside cond_exec. Use "Ts" constraint.
558 (thumb2_negscc): Use "Ts" constraint.
559 Move mvn instruction outside cond_exec block.
560 * config/arm/vfp.md (thumb2_movsi_vfp): Add alternatives
561 for 16-bit encodings.
563 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
565 * config/arm/arm.md (arm_mulsi3_v6): Add alternative for 16-bit
567 (mulsi3addsi_v6): Disable predicable variant for arm_restrict_it.
568 (mulsi3subsi): Likewise.
569 (mulsidi3adddi): Likewise.
570 (mulsidi3_v6): Likewise.
571 (umulsidi3_v6): Likewise.
572 (umulsidi3adddi_v6): Likewise.
573 (smulsi3_highpart_v6): Likewise.
574 (umulsi3_highpart_v6): Likewise.
575 (mulhisi3tb): Likewise.
576 (mulhisi3bt): Likewise.
577 (mulhisi3tt): Likewise.
578 (maddhisi4): Likewise.
579 (maddhisi4tb): Likewise.
580 (maddhisi4tt): Likewise.
581 (maddhidi4): Likewise.
582 (maddhidi4tb): Likewise.
583 (maddhidi4tt): Likewise.
584 (zeroextractsi_compare0_scratch): Likewise.
585 (insv_zero): Likewise.
587 (anddi_notzesidi_di): Likewise.
588 (anddi_notsesidi_di): Likewise.
589 (andsi_notsi_si): Likewise.
590 (iordi_zesidi_di): Likewise.
591 (xordi_zesidi_di): Likewise.
592 (andsi_iorsi3_notsi): Likewise.
596 (not_shiftsi): Likewise.
597 (unaligned_loadsi): Likewise.
598 (unaligned_loadhis): Likewise.
599 (unaligned_loadhiu): Likewise.
600 (unaligned_storesi): Likewise.
601 (unaligned_storehi): Likewise.
602 (extv_reg): Likewise.
603 (extzv_t2): Likewise.
606 (arm_zero_extendhisi2addsi): Likewise.
607 (arm_zero_extendqisi2addsi): Likewise.
608 (compareqi_eq0): Likewise.
609 (arm_extendhisi2_v6): Likewise.
610 (arm_extendqisi2addsi): Likewise.
611 (arm_movt): Likewise.
612 (thumb2_ldrd): Likewise.
613 (thumb2_ldrd_base): Likewise.
614 (thumb2_ldrd_base_neg): Likewise.
615 (thumb2_strd): Likewise.
616 (thumb2_strd_base): Likewise.
617 (thumb2_strd_base_neg): Likewise.
618 (arm_negsi2): Add alternative for 16-bit encoding.
619 (arm_one_cmplsi2): Likewise.
621 2013-06-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
623 * config/arm/predicates.md (arm_cond_move_operator): New predicate.
624 * config/arm/arm.md (movsfcc): Use arm_cond_move_operator predicate.
626 * config/arm/vfp.md (*thumb2_movsf_vfp):
627 Disable predication for arm_restrict_it.
628 (*thumb2_movsfcc_vfp): Disable for arm_restrict_it.
629 (*thumb2_movdfcc_vfp): Likewise.
630 (*abssf2_vfp, *absdf2_vfp, *negsf2_vfp, *negdf2_vfp,*addsf3_vfp,
631 *adddf3_vfp, *subsf3_vfp, *subdf3_vfpc, *divsf3_vfp,*divdf3_vfp,
632 *mulsf3_vfp, *muldf3_vfp, *mulsf3negsf_vfp, *muldf3negdf_vfp,
633 *mulsf3addsf_vfp, *muldf3adddf_vfp, *mulsf3subsf_vfp,
634 *muldf3subdf_vfp, *mulsf3negsfaddsf_vfp, *fmuldf3negdfadddf_vfp,
635 *mulsf3negsfsubsf_vfp, *muldf3negdfsubdf_vfp, *fma<SDF:mode>4,
636 *fmsub<SDF:mode>4, *fnmsub<SDF:mode>4, *fnmadd<SDF:mode>4,
637 *extendsfdf2_vfp, *truncdfsf2_vfp, *extendhfsf2, *truncsfhf2,
638 *truncsisf2_vfp, *truncsidf2_vfp, fixuns_truncsfsi2, fixuns_truncdfsi2,
639 *floatsisf2_vfp, *floatsidf2_vfp, floatunssisf2, floatunssidf2,
640 *sqrtsf2_vfp, *sqrtdf2_vfp, *cmpsf_vfp, *cmpsf_trap_vfp, *cmpdf_vfp,
641 *cmpdf_trap_vfp, <vrint_pattern><SDF:mode>2):
642 Disable predication for arm_restrict_it.
644 2013-06-28 Kirill Yukhin <kirill.yukhin@intel.com>
646 * config/i386/bmiintrin.h (_bextr_u32): New.
649 2013-06-27 Richard Sandiford <rdsandiford@googlemail.com>
651 * config.gcc (mips*-mti-elf*, mips*-sde-elf*, mips64r5900-*-elf*)
652 (mips64r5900el-*-elf*): Include mips/n32-elf.h.
653 * config/mips/sde.h (LOCAL_LABEL_PREFIX, NO_DOLLAR_IN_LABEL)
654 (LONG_DOUBLE_TYPE_SIZE, LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move to...
655 * config/mips/n32-elf.h: ...this new file.
657 2013-06-27 Marc Glisse <marc.glisse@inria.fr>
660 * config/i386/i386.c (enum ix86_builtins, bdesc_args): Remove
661 IX86_BUILTIN_CMPNGTSS and IX86_BUILTIN_CMPNGESS.
663 2013-06-27 Catherine Moore <clm@codesourcery.com>
665 * config/mips/mips-tables.opt: Regenerate.
666 * config/mips/mips-cpus.def: Add m14ke and m14kec.
667 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS): m14ke* implies -mdspr2.
668 * doc/invoke.texi: Add -m14kc.
670 2013-06-27 Jakub Jelinek <jakub@redhat.com>
673 * config/i386/i386.md (bmi_bextr_<mode>): Swap predicates and
674 constraints of operand 1 and 2.
677 * config/i386/i386.md (bmi2_bzhi_<mode>3): Swap AND arguments
678 to match RTL canonicalization. Swap predicates and
679 constraints of operand 1 and 2.
681 2013-06-27 Vladimir Makarov <vmakarov@redhat.com>
683 * lra-constraints.c (inherit_in_ebb): Process static hard regs too.
684 Process OP_INOUT regs for splitting too.
686 2013-06-27 Jakub Jelinek <jakub@redhat.com>
688 * tree-vect-stmts.c (vectorizable_store): Move ptr_incr var
689 decl before the loop, initialize to NULL.
690 (vectorizable_load): Initialize ptr_incr to NULL.
692 2013-06-27 Martin Jambor <mjambor@suse.cz>
695 * ipa-ref.h (ipa_maybe_record_reference): Declare.
696 * ipa-ref.c (ipa_maybe_record_reference): New function.
697 * cgraphclones.c (cgraph_create_virtual_clone): Use it.
698 * ipa-cp.c (create_specialized_node): Record potential references from
700 * Makefile.in (ipa-ref.o): Add IPA_REF_H to dependencies.
702 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
704 * config/aarch64/aarch64.c (aarch64_force_temporary): Add an extra
705 parameter 'mode' of type 'enum machine_mode mode'; change to pass
707 (aarch64_add_offset): Update calls to aarch64_force_temporary.
708 (aarch64_expand_mov_immediate): Likewise.
710 2013-06-27 Yufeng Zhang <yufeng.zhang@arm.com>
712 * config/aarch64/aarch64.c (aarch64_add_offset): Change to pass
713 'mode' to aarch64_plus_immediate and gen_rtx_PLUS.
715 2013-06-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
717 * config/s390/s390.c: Rename UNSPEC_CCU_TO_INT to
718 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
719 (struct machine_function): Add tbegin_p.
720 (s390_canonicalize_comparison): Fold CC mode compares to
721 conditional jump if possible.
722 (s390_emit_jump): Return the emitted jump.
723 (s390_branch_condition_mask, s390_branch_condition_mnemonic):
724 Handle CCRAWmode compares.
725 (s390_option_override): Default to -mhtm if available.
726 (s390_reg_clobbered_rtx): Handle floating point regs as well.
727 (s390_regs_ever_clobbered): Use s390_regs_ever_clobbered also for
728 FPRs instead of df_regs_ever_live_p.
729 (s390_optimize_nonescaping_tx): New function.
730 (s390_init_frame_layout): Extend clobbered_regs array to cover
732 (s390_emit_prologue): Call s390_optimize_nonescaping_tx.
733 (s390_expand_tbegin): New function.
734 (enum s390_builtin): New enum definition.
735 (code_for_builtin): New array definition.
736 (s390_init_builtins): New function.
737 (s390_expand_builtin): New function.
738 (TARGET_INIT_BUILTINS): Define.
739 (TARGET_EXPAND_BUILTIN): Define.
740 * common/config/s390/s390-common.c (processor_flags_table): Add PF_TX.
741 * config/s390/predicates.md (s390_comparison): Handle CCRAWmode.
742 (s390_alc_comparison): Likewise.
743 * config/s390/s390-modes.def: Add CCRAWmode.
744 * config/s390/s390.h (processor_flags): Add PF_TX.
745 (TARGET_CPU_HTM): Define macro.
746 (TARGET_HTM): Define macro.
747 (TARGET_CPU_CPP_BUILTINS): Define __HTM__ for htm.
748 * config/s390/s390.md: Rename UNSPEC_CCU_TO_INT to
749 UNSPEC_STRCMPCC_TO_INT and UNSPEC_CCZ_TO_INT to UNSPEC_CC_TO_INT.
750 (UNSPECV_TBEGIN, UNSPECV_TBEGINC, UNSPECV_TEND, UNSPECV_TABORT)
751 (UNSPECV_ETND, UNSPECV_NTSTG, UNSPECV_PPA): New unspecv enum values.
752 (TBEGIN_MASK, TBEGINC_MASK): New constants.
753 ("*cc_to_int"): Move up.
754 ("*mov<mode>cc", "*cjump_64", "*cjump_31"): Accept integer
755 constants other than 0.
756 ("*ccraw_to_int"): New insn and splitter definition.
757 ("tbegin", "tbegin_nofloat", "tbegin_retry")
758 ("tbegin_retry_nofloat", "tbeginc", "tend", "tabort")
759 ("tx_assist"): New expander.
760 ("tbegin_1", "tbegin_nofloat_1", "*tbeginc_1", "*tend_1")
761 ("*tabort_1", "etnd", "ntstg", "*ppa"): New insn definition.
762 * config/s390/s390.opt: Add -mhtm option.
763 * config/s390/s390-protos.h (s390_emit_jump): Add return type.
764 * config/s390/htmxlintrin.h: New file.
765 * config/s390/htmintrin.h: New file.
766 * config/s390/s390intrin.h: New file.
767 * doc/extend.texi: Document htm builtins.
768 * config.gcc: Add the new header files to extra_headers.
770 2013-06-26 Thomas Schwinge <thomas@codesourcery.com>
772 * config/i386/gnu.h [TARGET_LIBC_PROVIDES_SSP]
773 (TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Undefine.
775 2013-06-26 Michael Meissner <meissner@linux.vnet.ibm.com>
776 Pat Haugen <pthaugen@us.ibm.com>
777 Peter Bergner <bergner@vnet.ibm.com>
779 * config/rs6000/power8.md: New.
780 * config/rs6000/rs6000-cpus.def (RS6000_CPU table): Adjust processor
781 setting for power8 entry.
782 * config/rs6000/t-rs6000 (MD_INCLUDES): Add power8.md.
783 * config/rs6000/rs6000.c (is_microcoded_insn, is_cracked_insn): Adjust
784 test for Power4/Power5 only.
785 (insn_must_be_first_in_group, insn_must_be_last_in_group): Add Power8
787 (force_new_group): Adjust comment.
788 * config/rs6000/rs6000.md: Include power8.md.
790 2013-06-26 Greta Yorsh <Greta.Yorsh@arm.com>
792 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Define macro.
793 * config/arm/arm-protos.h (arm_max_conditional_execute): New
795 (tune_params): Update comment.
796 * config/arm/arm.c (arm_cortex_a15_tune): Set max_cond_insns to 2.
797 (arm_max_conditional_execute): New function.
798 (thumb2_final_prescan_insn): Use max_insn_skipped and
799 MAX_INSN_PER_IT_BLOCK to compute maximum instructions in a block.
801 2013-06-25 Jakub Jelinek <jakub@redhat.com>
803 PR tree-optimization/57705
804 * tree-vect-loop.c (vect_is_simple_iv_evolution): Allow
805 SSA_NAME step, provided that it is not defined inside the loop.
806 (vect_analyze_scalar_cycles_1): Disallow SSA_NAME step in nested loop.
807 (get_initial_def_for_induction): Handle SSA_NAME IV step.
809 2013-06-25 Martin Jambor <mjambor@suse.cz>
812 * cgraph.h (cgraph_indirect_call_info): New flag member_ptr.
813 * ipa-prop.c (ipa_print_node_jump_functions): Mark member pointer
815 (ipa_note_param_call): Initialize member_ptr flag.
816 (ipa_analyze_indirect_call_uses): Set member_ptr flag.
817 (ipa_make_edge_direct_to_target): Bail out if member_ptr is set.
818 (ipa_write_indirect_edge_info): Stream member_ptr flag.
819 (ipa_read_indirect_edge_info): Likewise.
821 2013-06-25 Richard Biener <rguenther@suse.de>
824 * passes.c (init_optimization_passes): Move pass_fold_builtins
825 and pass_dce earlier with -Og.
827 2013-06-25 Eric Botcazou <ebotcazou@adacore.com>
829 * expr.c (expand_expr_real_1) <ARRAY_REF>: Fix formatting glitches.
830 <BIT_FIELD_REF>: Remove trailing TAB.
831 * varasm.c (output_constructor_bitfield): Fix formatting glitch and
834 2013-06-24 Martin Jambor <mjambor@suse.cz>
836 PR tree-optimization/57358
837 * ipa-prop.c (ipa_func_spec_opts_forbid_analysis_p): New function.
838 (ipa_compute_jump_functions_for_edge): Bail out if it returns true.
839 (ipa_analyze_params_uses): Generate pessimistic info when true.
841 2013-06-24 Martin Jambor <mjambor@suse.cz>
843 PR tree-optimization/57539
844 * cgraphclones.c (cgraph_clone_node): Add parameter new_inlined_to, set
845 global.inlined_to of the new node to it. All callers changed.
846 * ipa-inline-transform.c (clone_inlined_nodes): New variable
847 inlining_into, pass it to cgraph_clone_node.
848 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not call
849 ipa_free_edge_args_substructures.
850 (ipa_edge_duplication_hook): Only add edges from inlined nodes to
851 rdesc linked list. Do not assert rdesc edges have inlined caller.
852 Assert we have found an rdesc in the rdesc list.
854 2013-06-24 Richard Biener <rguenther@suse.de>
856 * pointer-set.h (struct pointer_set_t): Move here from pointer-set.c.
857 (pointer_set_lookup): Declare.
858 (class pointer_map): New template class implementing a
859 generic pointer to T map.
860 (pointer_map<T>::pointer_map, pointer_map<T>::~pointer_map,
861 pointer_map<T>::contains, pointer_map<T>::insert,
862 pointer_map<T>::traverse): New functions.
863 * pointer-set.c (struct pointer_set_t): Moved to pointer-set.h.
864 (pointer_set_lookup): New function.
865 (pointer_set_contains): Use pointer_set_lookup.
866 (pointer_set_insert): Likewise.
867 (insert_aux): Remove.
868 (struct pointer_map_t): Embed a pointer_set_t.
869 (pointer_map_create): Adjust.
870 (pointer_map_destroy): Likewise.
871 (pointer_map_contains): Likewise.
872 (pointer_map_insert): Likewise.
873 (pointer_map_traverse): Likewise.
874 * tree-streamer.h (struct streamer_tree_cache_d): Use a
875 pointer_map<unsigned> instead of a pointer_map_t.
876 * tree-streamer.c (streamer_tree_cache_insert_1): Adjust.
877 (streamer_tree_cache_lookup): Likewise.
878 (streamer_tree_cache_create): Likewise.
879 (streamer_tree_cache_delete): Likewise.
880 * lto-streamer.h (struct lto_tree_ref_encoder): Use a
881 pointer_map<unsigned> instead of a pointer_map_t.
882 (lto_init_tree_ref_encoder): Adjust.
883 (lto_destroy_tree_ref_encoder): Likewise.
884 * lto-section-out.c (lto_output_decl_index): Likewise.
885 (lto_record_function_out_decl_state): Likewise.
886 * dominance.c (iterate_fix_dominators): Use pointer_map<int>.
888 2013-06-24 Richard Biener <rguenther@suse.de>
890 PR tree-optimization/57488
891 * tree-ssa-pre.c (insert): Clear NEW sets before each iteration.
893 2013-06-24 Alan Modra <amodra@gmail.com>
895 * config/rs6000/rs6000.c (vspltis_constant): Correct for little-endian.
896 (gen_easy_altivec_constant): Likewise.
897 * config/rs6000/predicates.md (easy_vector_constant_add_self,
898 easy_vector_constant_msb): Likewise.
900 2013-06-23 Jakub Jelinek <jakub@redhat.com>
903 * common/config/i386/i386-common.c (ix86_handle_option): For OPT_mlzcnt
904 add missing return true.
906 2013-06-23 Oleg Endo <olegendo@gcc.gnu.org>
909 * config/sh/predicates.md (general_extend_operand): Invoke
910 general_movsrc_operand for memory operands.
911 (general_movsrc_operand): Allow reg+reg addressing, do not use
912 general_operand for memory operands.
914 2013-06-23 Sriraman Tallam <tmsriram@google.com>
916 * config/i386/i386.c (ix86_pragma_target_parse): Restore target
917 when current target options does not apply.
918 * config/i386/i386-protos.h (ix86_reset_previous_fndecl): New function.
919 * config/i386/i386.c (ix86_reset_previous_fndecl): Ditto.
920 * config/i386/bmiintrin.h: Pass appropriate target
921 attributes to header.
922 * config/i386/mmintrin.h: Ditto.
923 * config/i386/nmmintrin.h: Ditto.
924 * config/i386/avx2intrin.h: Ditto.
925 * config/i386/fxsrintrin.h: Ditto.
926 * config/i386/tbmintrin.h: Ditto.
927 * config/i386/xsaveintrin.h: Ditto.
928 * config/i386/f16cintrin.h: Ditto.
929 * config/i386/xtestintrin.h: Ditto.
930 * config/i386/xsaveoptintrin.h: Ditto.
931 * config/i386/bmi2intrin.h: Ditto.
932 * config/i386/lzcntintrin.h: Ditto.
933 * config/i386/smmintrin.h: Ditto.
934 * config/i386/wmmintrin.h: Ditto.
935 * config/i386/x86intrin.h: Remove all header include guards.
936 * config/i386/prfchwintrin.h: Ditto.
937 * config/i386/pmmintrin.h: Ditto.
938 * config/i386/tmmintrin.h: Ditto.
939 * config/i386/xmmintrin.h: Ditto.
940 * config/i386/popcntintrin.h: Ditto.
941 * config/i386/rdseedintrin.h: Ditto.
942 * config/i386/ammintrin.h: Ditto.
943 * config/i386/emmintrin.h: Ditto.
944 * config/i386/immintrin.h: Remove all header include guards.
945 * config/i386/fma4intrin.h: Ditto.
946 * config/i386/lwpintrin.h: Ditto.
947 * config/i386/xopintrin.h: Ditto.
948 * config/i386/ia32intrin.h: Ditto.
949 * config/i386/avxintrin.h: Ditto.
950 * config/i386/rtmintrin.h: Ditto.
951 * config/i386/fmaintrin.h: Ditto.
952 * config/i386/mm3dnow.h: Ditto.
954 2013-06-22 Sriraman Tallam <tmsriram@google.com>
956 * common/config/i386/i386-common.c: Handle LZCNT.
958 2013-06-22 Andi Kleen <ak@linux.intel.com>
960 * doc/extend.texi: Use __atomic_store_n instead of
961 __atomic_store in HLE example.
963 2013-06-22 Oleg Endo <olegendo@gcc.gnu.org>
965 * config/sh/sh.c: Remove <cstdlib> workaround.
967 2013-06-21 Andi Kleen <ak@linux.intel.com>
969 * doc/extend.texi: Dont use __atomic_clear in HLE example. Fix typo.
971 2013-06-21 Andi Kleen <ak@linux.intel.com>
973 * doc/extend.texi: Document that __atomic_clear and
974 __atomic_test_and_set should only be used with bool.
976 2013-06-20 Jan Hubicka <jh@suse.cz>
978 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Use
980 * tree.c (decls_same_for_odr): New function.
981 (same_for_edr): New function.
982 (types_same_for_odr): New function.
983 (get_binfo_at_offset): Use it.
984 * tree.h (types_same_for_odr): Declare.
986 2013-06-20 Oleg Endo <olegendo@gcc.gnu.org>
987 Jason Merrill <jason@redhat.com>
989 * system.h: Include <cstdlib> as well as <stdlib.h>.
991 2013-06-20 Uros Bizjak <ubizjak@gmail.com>
994 * config/i386/i386.c (construct_container): Report error if
995 long double is used with disabled x87 float returns.
997 2013-06-20 Jan Hubicka <jh@suse.cz>
999 * lto-cgraph.c (input_symtab): Do not set cgraph state.
1001 2013-06-20 Joern Rennecke <joern.rennecke@embecosm.com>
1003 PR rtl-optimization/57425
1004 PR rtl-optimization/57569
1005 * alias.c (write_dependence_p): Remove parameters mem_mode and
1006 canon_mem_addr. Add parameters x_mode, x_addr and x_canonicalized.
1007 Changed all callers.
1008 (canon_anti_dependence): Get comments and semantics in sync.
1009 Add parameter mem_canonicalized. Changed all callers.
1010 * rtl.h (canon_anti_dependence): Update prototype.
1012 2013-06-20 Richard Biener <rguenther@suse.de>
1014 * data-streamer-in.c (streamer_read_uhwi): Optimize single
1015 byte case, inline streamer_read_uchar and defer section
1018 2013-06-20 Richard Biener <rguenther@suse.de>
1020 PR tree-optimization/57584
1021 * tree-ssa-loop-niter.c (expand_simple_operations): Avoid including
1022 SSA names into the expanded expression that take part in
1023 abnormal coalescing.
1025 2013-06-19 <singhai@google.com>
1027 * gcov.c (print_usage): Handle new option.
1028 (process_args): Ditto.
1029 (get_gcov_intermediate_filename): New function.
1030 (output_intermediate_file): New function.
1031 (output_gcov_file): New function
1032 (generate_results): Handle new option.
1033 (release_function): Relase demangled name.
1034 (read_graph_file): Handle demangled name.
1035 (output_lines): Ditto.
1036 * doc/gcov.texi: Document gcov intermediate format.
1038 2013-06-19 Vladimir Makarov <vmakarov@redhat.com>
1041 * lra.c (emit_add3_insn, emit_add2_insn): New functions.
1042 (lra_emit_add): Use the functions. Add comment about Y as an
1045 2013-06-19 David Edelsohn <dje.gcc@gmail.com>
1048 * collect2.c (collect_atexit): New.
1049 (collect_exit): Delete.
1050 (main): Register collect_atexit with atexit.
1051 (collect_wait): Change collect_exit to exit.
1053 * collect2.h (collect_exit): Delete.
1054 * tlink.c (do_tlink): Rename exit to ret. Change collect_exit to exit.
1056 2013-06-19 Wei Mi <wmi@google.com>
1058 PR rtl-optimization/57518
1059 * ira.c (set_paradoxical_subreg): Set pdx_subregs[regno]
1060 if regno is used in paradoxical subreg.
1061 (update_equiv_regs): Check pdx_subregs[regno] before
1062 set a reg to be equivalent with a mem.
1064 2013-06-19 Matthias Klose <doko@ubuntu.com>
1067 * file-find.h (find_a_file): Add a mode parameter.
1068 * file-find.c (find_a_file): Likewise.
1069 * gcc-ar.c (main): Call find_a_file with R_OK for the plugin,
1070 with X_OK for the executables.
1071 * collect2.c (main): Call find_a_file with X_OK.
1073 2013-06-19 Steve Ellcey <sellcey@mips.com>
1076 * config/mips/mips.md (casesi_internal_mips16_<mode>):
1077 Use NEXT_INSN instead of next_real_insn.
1079 2013-06-19 Jan Hubicka <jh@suse.cz>
1081 * cgraph.h (const_value_known_p): Replace by ...
1082 (ctor_for_folding): .. this one.
1083 * cgraphunit.c (process_function_and_variable_attributes): Use it.
1084 * lto-cgraph.c (compute_ltrans_boundary): Use ctor_for_folding.
1085 * expr.c (expand_expr_real_1): Likewise.
1086 (string_constant): Likewise.
1087 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
1088 * ipa.c (process_references): Likewise.
1089 (symtab_remove_unreachable_nodes): Likewise.
1090 * ipa-inline-analysis.c (param_change_prob): Likewise.
1091 * gimple-fold.c (canonicalize_constructor_val): Likewise.
1092 (get_base_constructor): Likwise.
1093 * varpool.c (varpool_remove_node): Likewise.
1094 (varpool_remove_initializer): LIkewise.
1095 (dump_varpool_node): LIkwise.
1096 (const_value_known_p): Rewrite to ...
1097 (ctor_for_folding): ... this one.
1099 2013-06-19 Jakub Jelinek <jakub@redhat.com>
1102 * gcc-ar.c (main): If not CROSS_DIRECTORY_STRUCTURE, look for
1103 PERSONALITY in $PATH derived prefixes.
1105 2013-06-19 Jeff Law <law@redhat.com>
1107 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): Fix typo
1110 * tree-ssa-forwprop.c (simplify_bitwise_binary_boolean): New function.
1111 (simplify_bitwise_binary): Use it to simpify certain binary ops on
1114 2013-06-19 Sofiane Naci <sofiane.naci@arm.com>
1116 * config/arm/vfp.md: Move VFP instruction classification documentation
1118 * config/arm/arm.md: ... here. Update instruction classification
1121 2013-06-19 Richard Earnshaw <rearnsha@arm.com>
1123 arm.md (split for eq(reg, 0)): Add variants for ARMv5 and Thumb2.
1124 (peepholes for eq(reg, not-0)): Ensure condition register is dead after
1125 pattern. Use more efficient sequences on ARMv5 and Thumb2.
1127 2013-06-19 Steven Bosscher <steven@gcc.gnu.org>
1130 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1131 with NEXT_INSN. Use tablejump_p to check for jump table data
1134 2013-06-19 Paolo Carlini <paolo.carlini@oracle.com>
1137 * doc/cpp.texi [Standard Predefined Macros, __cplusplus]: Document
1138 that now in C++ the value is correct per the C++ standards.
1140 2013-06-19 Richard Biener <rguenther@suse.de>
1142 * expr.c (expand_expr_real_1): Use SCOPE_FILE_SCOPE_P to check
1145 2013-06-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1148 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1151 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1152 with next_active_insn.
1154 2013-06-18 Sriraman Tallam <tmsriram@google.com>
1156 * ipa-inline.c (inline_always_inline_functions): Pretend always_inline
1157 functions are inlined during failures to flag an error.
1158 * tree-inline.c (expand_call_inline): Allow the error to be flagged
1159 in early inline pass.
1161 2013-06-18 H.J. Lu <hongjiu.lu@intel.com>
1163 * config/i386/i386.c (initial_ix86_tune_features): Fix a typo
1166 2013-06-18 Julian Brown <julian@codesourcery.com>
1168 * config/arm/arm.c (neon_vector_mem_operand): Add strict argument.
1169 Permit virtual register pre-reload if !strict.
1170 (coproc_secondary_reload_class): Adjust for neon_vector_mem_operand
1172 * config/arm/arm-protos.h (neon_vector_mem_operand): Adjust
1174 * config/arm/neon.md (movmisalign<mode>): Use
1175 neon_perm_struct_or_reg_operand instead of
1176 neon_struct_or_register_operand.
1177 (*movmisalign<mode>_neon_load, *movmisalign<mode>_neon_store): Use
1178 neon_permissive_struct_operand instead of neon_struct_operand.
1179 * config/arm/constraints.md (Un, Um, Us): Adjust calls to
1180 neon_vector_mem_operand.
1181 * config/arm/predicates.md (neon_struct_operand): Adjust call to
1182 neon_vector_mem_operand.
1183 (neon_permissive_struct_operand): New.
1184 (neon_struct_or_register_operand): Rename to...
1185 (neon_perm_struct_or_reg_operand): This. Adjust call to
1186 neon_vector_mem_operand.
1188 2013-06-18 Richard Biener <rguenther@suse.de>
1190 * Makefile.in (LTO_STREAMER_H): Add pointer-set.h dependency.
1191 * lto-streamer.h: Include pointer-set.h.
1192 (struct lto_decl_slot): Remove.
1193 (struct lto_tree_ref_encoder): Make tree_hash_table a pointer-map.
1194 Remove next_index entry.
1195 (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1196 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1197 (lto_init_tree_ref_encoder): Adjust.
1198 (lto_destroy_tree_ref_encoder): Likewise.
1199 * lto-section-out.c (lto_hash_decl_slot_node, lto_eq_decl_slot_node,
1200 lto_hash_type_slot_node, lto_eq_type_slot_node): Remove.
1201 (lto_output_decl_index): Adjust.
1202 (lto_new_out_decl_state): Likewise.
1203 (lto_record_function_out_decl_state): Likewise.
1204 * lto-streamer-out.c (copy_function): Likewise.
1206 2013-06-18 Richard Biener <rguenther@suse.de>
1208 * Makefile.in (cgraphunit.o): Add $(CFGLOOP_H) dependency.
1209 * cgraphunit.c: Include cfgloop.h.
1210 (init_lowered_empty_function): Initialize the loop tree.
1211 (assemble_thunk): Insert new BBs into loops.
1213 2013-06-18 Richard Biener <rguenther@suse.de>
1215 * tree-streamer.h (streamer_tree_cache_create): Adjust prototype.
1216 * tree-streamer.c (streamer_tree_cache_create): Make maintaining
1217 the map from cache entry to cache index optional.
1218 (streamer_tree_cache_replace_tree): Adjust accordingly.
1219 (streamer_tree_cache_append): Likewise.
1220 (streamer_tree_cache_delete): Likewise.
1221 * lto-streamer-in.c (lto_data_in_create): Do not maintain the
1222 streamer cache map from cache entry to cache index.
1223 * lto-streamer-out.c (create_output_block): Adjust.
1225 2013-06-18 Sofiane Naci <sofiane.naci@arm.com>
1227 * config/arm/arm.md (attribute "insn"): Move multiplication and
1228 division attributes to...
1229 (attribute "type"): ... here. Remove mult.
1230 (attribute "mul32"): New attribute.
1231 (attribute "mul64"): Add umaal.
1232 (*arm_mulsi3): Update attributes.
1233 (*arm_mulsi3_v6): Likewise.
1234 (*thumb_mulsi3): Likewise.
1235 (*thumb_mulsi3_v6): Likewise.
1236 (*mulsi3_compare0): Likewise.
1237 (*mulsi3_compare0_v6): Likewise.
1238 (*mulsi_compare0_scratch): Likewise.
1239 (*mulsi_compare0_scratch_v6): Likewise.
1240 (*mulsi3addsi): Likewise.
1241 (*mulsi3addsi_v6): Likewise.
1242 (*mulsi3addsi_compare0): Likewise.
1243 (*mulsi3addsi_compare0_v6): Likewise.
1244 (*mulsi3addsi_compare0_scratch): Likewise.
1245 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1246 (*mulsi3subsi): Likewise.
1247 (*mulsidi3adddi): Likewise.
1248 (*mulsi3addsi_v6): Likewise.
1249 (*mulsidi3adddi_v6): Likewise.
1250 (*mulsidi3_nov6): Likewise.
1251 (*mulsidi3_v6): Likewise.
1252 (*umulsidi3_nov6): Likewise.
1253 (*umulsidi3_v6): Likewise.
1254 (*umulsidi3adddi): Likewise.
1255 (*umulsidi3adddi_v6): Likewise.
1256 (*smulsi3_highpart_nov6): Likewise.
1257 (*smulsi3_highpart_v6): Likewise.
1258 (*umulsi3_highpart_nov6): Likewise.
1259 (*umulsi3_highpart_v6): Likewise.
1260 (mulhisi3): Likewise.
1261 (*mulhisi3tb): Likewise.
1262 (*mulhisi3bt): Likewise.
1263 (*mulhisi3tt): Likewise.
1264 (maddhisi4): Likewise.
1265 (*maddhisi4tb): Likewise.
1266 (*maddhisi4tt): Likewise.
1267 (maddhidi4): Likewise.
1268 (*maddhidi4tb): Likewise.
1269 (*maddhidi4tt): Likewise.
1271 (udivsi3): Likewise.
1272 * config/arm/thumb2.md (thumb2_mulsi_short): Update attributes.
1273 (thumb2_mulsi_short_compare0): Likewise.
1274 (thumb2_mulsi_short_compare0_scratch): Likewise.
1275 * config/arm/arm1020e.md (1020mult1): Update attribute change.
1276 (1020mult2): Likewise.
1277 (1020mult3): Likewise.
1278 (1020mult4): Likewise.
1279 (1020mult5): Likewise.
1280 (1020mult6): Likewise.
1281 * config/arm/cortex-a15.md (cortex_a15_mult32): Update attribute
1283 (cortex_a15_mult64): Likewise.
1284 (cortex_a15_sdiv): Likewise.
1285 (cortex_a15_udiv): Likewise.
1286 * config/arm/arm1026ejs.md (mult1): Update attribute change.
1292 * config/arm/marvell-pj4.md (pj4_ir_mul): Update attribute change.
1293 (pj4_ir_div): Likewise.
1294 * config/arm/arm1136jfs.md (11_mult1): Update attribute change.
1295 (11_mult2): Likewise.
1296 (11_mult3): Likewise.
1297 (11_mult4): Likewise.
1298 (11_mult5): Likewise.
1299 (11_mult6): Likewise.
1300 (11_mult7): Likewise.
1301 * config/arm/cortex-a8.md (cortex_a8_mul): Update attribute change.
1302 (cortex_a8_mla): Likewise.
1303 (cortex_a8_mull): Likewise.
1304 (cortex_a8_smulwy): Likewise.
1305 (cortex_a8_smlald): Likewise.
1306 * config/arm/cortex-m4.md (cortex_m4_alu): Update attribute change.
1307 * config/arm/cortex-r4.md (cortex_r4_mul_4): Update attribute change.
1308 (cortex_r4_mul_3): Likewise.
1309 (cortex_r4_mla_4): Likewise.
1310 (cortex_r4_mla_3): Likewise.
1311 (cortex_r4_smlald): Likewise.
1312 (cortex_r4_mull): Likewise.
1313 (cortex_r4_sdiv): Likewise.
1314 (cortex_r4_udiv): Likewise.
1315 * config/arm/cortex-a7.md (cortex_a7_mul): Update attribute change.
1316 (cortex_a7_idiv): Likewise.
1317 * config/arm/arm926ejs.md (9_mult1): Update attribute change.
1318 (9_mult2): Likewise.
1319 (9_mult3): Likewise.
1320 (9_mult4): Likewise.
1321 (9_mult5): Likewise.
1322 (9_mult6): Likewise.
1323 * config/arm/cortex-a53.md (cortex_a53_mul): Update attribute change.
1324 (cortex_a53_sdiv): Likewise.
1325 (cortex_a53_udiv): Likewise.
1326 * config/arm/fa726te.md (726te_mult_op): Update attribute change.
1327 * config/arm/fmp626.md (mp626_mult1): Update attribute change.
1328 (mp626_mult2): Likewise.
1329 (mp626_mult3): Likewise.
1330 (mp626_mult4): Likewise.
1331 * config/arm/fa526.md (526_mult1): Update attribute change.
1332 (526_mult2): Likewise.
1333 * config/arm/arm-generic.md (mult): Update attribute change.
1334 (mult_ldsched_strongarm): Likewise.
1335 (mult_ldsched): Likewise.
1336 (multi_cycle): Likewise.
1337 * config/arm/cortex-a5.md (cortex_a5_mul): Update attribute change.
1338 * config/arm/fa606te.md (606te_mult1): Update attribute change.
1339 (606te_mult2): Likewise.
1340 (606te_mult3): Likewise.
1341 (606te_mult4): Likewise.
1342 * config/arm/cortex-a9.md (cortex_a9_mult16): Update attribute change.
1343 (cortex_a9_mac16): Likewise.
1344 (cortex_a9_multiply): Likewise.
1345 (cortex_a9_mac): Likewise.
1346 (cortex_a9_multiply_long): Likewise.
1347 * config/arm/fa626te.md (626te_mult1): Update attribute change.
1348 (626te_mult2): Likewise.
1349 (626te_mult3): Likewise.
1350 (626te_mult4): Likewise.
1352 2013-06-18 Richard Biener <rguenther@suse.de>
1355 * lto-symtab.c (lto_symtab_merge_decls): Process nodes properly.
1357 2013-06-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1360 * config/s390/s390.c (s390_chunkify_start): Replace next_real_insn
1361 with next_active_insn.
1363 2013-06-18 Alan Modra <amodra@gmail.com>
1365 * config/rs6000/rs6000.h (enum data_align): New.
1366 (LOCAL_ALIGNMENT, DATA_ALIGNMENT): Use rs6000_data_alignment.
1367 (DATA_ABI_ALIGNMENT): Define.
1368 (CONSTANT_ALIGNMENT): Correct comment.
1369 * config/rs6000/rs6000-protos.h (rs6000_data_alignment): Declare.
1370 * config/rs6000/rs6000.c (rs6000_data_alignment): New function.
1372 2013-06-17 David Malcolm <dmalcolm@redhat.com>
1374 * ggc-page.c (ggc_pch_write_object) <d>: Remove erroneous
1375 ATTRIBUTE_UNUSED marking.
1377 2013-06-17 Sofiane Naci <sofiane.naci@arm.com>
1379 * config/aarch64/aarch64-simd.md (aarch64_dup_lane<mode>): Add r<-w
1380 alternative and update.
1381 (aarch64_dup_lanedi): Delete.
1382 * config/aarch64/arm_neon.h (vdup<bhsd>_lane_*): Update.
1383 * config/aarch64/aarch64-simd-builtins.def: Update.
1385 2013-06-17 Richard Biener <rguenther@suse.de>
1387 * lto-streamer.h (enum LTO_tags): Add LTO_tree_scc.
1388 (lto_input_scc): Declare.
1389 (lto_input_tree_1): Likewise.
1390 (struct lto_stats_d): Add num_tree_bodies_output and
1391 num_pickle_refs_output.
1392 * lto-streamer-in.c (lto_read_body): Use streamer_tree_cache_get_tree.
1393 (lto_read_tree_1): Split out from ...
1394 (lto_read_tree): ... this.
1395 (lto_input_scc): New function.
1396 (lto_input_tree_1): Split out from ...
1397 (lto_input_tree): ... this. Handle LTO_tree_scc.
1398 (lto_data_in_create): Create the streamer cache without hashes.
1399 * lto-streamer-out.c (create_output_block): Create the streamer
1400 cache with hashes when not doing WPA.
1401 (lto_write_tree_1): Split out from ...
1402 (lto_write_tree): ... this.
1403 (get_symbol_initial_value): New function.
1404 (lto_output_tree_1): Split out from ...
1405 (lto_output_tree): ... this. Write trees as series of SCCs
1406 using a DFS walk via DFS_write_tree.
1407 (struct sccs, struct scc_entry): New types.
1408 (next_dfs_num, sccstack, sccstate, sccstate_obstack): New globals.
1409 (DFS_write_tree_body): New function.
1410 (DFS_write_tree): Likewise.
1411 (hash_tree): Likewise.
1412 (scc_entry_compare): Likewise.
1413 (hash_scc): Likewise.
1414 (tree_is_indexable): DEBUG_EXPR_DECLs are local entities.
1415 * tree-streamer-in.c (lto_input_ts_list_tree_pointers): Stream
1416 TREE_CHAIN as regular reference.
1417 (streamer_read_integer_cst): Remove.
1418 (streamer_get_pickled_tree): Adjust.
1419 * tree-streamer-out.c (streamer_write_chain): Disable streaming
1420 of DECL_EXTERNALs in BLOCK_VARS for now.
1421 (write_ts_list_tree_pointers): Stream TREE_CHAIN as regular
1423 * tree-streamer.c (streamer_tree_cache_add_to_node_array):
1424 Add hash value argument and record that if hashes are recorded
1426 (streamer_tree_cache_insert_1): Adjust.
1427 (streamer_tree_cache_insert): Likewise.
1428 (streamer_tree_cache_insert_at): Rename to ...
1429 (streamer_tree_cache_replace_tree): ... this and adjust.
1430 (streamer_tree_cache_append): Adjust.
1431 (record_common_node): Likewise.
1432 (streamer_tree_cache_create): Add argument whether to
1433 record hash values together with trees.
1434 (streamer_tree_cache_delete): Adjust.
1435 * tree-streamer.h (struct streamer_tree_cache_d): Add
1437 (streamer_read_integer_cst): Remove.
1438 (streamer_tree_cache_insert): Adjust.
1439 (streamer_tree_cache_append): Likewise.
1440 (streamer_tree_cache_insert_at): Rename to ...
1441 (streamer_tree_cache_replace_tree): ... this and adjust.
1442 (streamer_tree_cache_create): Add argument whether to record hashes.
1443 (streamer_tree_cache_get): Rename to ...
1444 (streamer_tree_cache_get_tree): ... this.
1445 (streamer_tree_cache_get_hash): New function.
1446 * tree.c (cache_integer_cst): New function.
1447 * tree.h (cache_integer_cst): Declare.
1448 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Move here from cp/cp-tree.h.
1449 * lto-symtab.c (lto_varpool_replace_node): Only release
1450 DECL_INITIAL of non-prevailing decls.
1451 * varpool.c (varpool_remove_initializer): Do not release
1452 DECL_INITIAL when we are still in CGRAPH_LTO_STREAMING.
1454 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1456 * config/mips/mips.h (ISA_HAS_MUL3): Include TARGET_MIPS5900.
1457 (ISA_HAS_MULT, ISA_HAS_DMULT, ISA_HAS_DIV, ISA_HAS_DDIV): New macros.
1458 * config/mips/mips.md (mul<mode>3, mul<mode>3_internal)
1459 (mul<mode>3_r4000): Require ISA_HAS_<D>MULT.
1460 (mul<mode>3_mul3): Handle TARGET_MIPS5900.
1461 (mulsidi3_64bit_dmul): Remove redundant TARGET_64BIT test.
1462 (<su>muldi3_highpart, <su>muldi3_highpart_internal, <u>mulditi3)
1463 (<u>mulditi3_internal, <u>mulditi3_r4000): Require ISA_HAS_DMULT
1464 instead of TARGET_64BIT.
1465 (divmod<mode>4, udivmod<mode>4, <u>divmod<GPR:mode>4_hilo_<HILO:mode>):
1466 Require ISA_HAS_<D>DIV.
1468 2013-06-16 Richard Sandiford <rdsandiford@googlemail.com>
1470 * config.gcc (mips*-mti-linux*, mips64*-*-linux*, mipsisa64*-*-linux*)
1471 (mips*-*-linux*): Move default with_llsc setting to where other
1473 (mips*-*-vxworks*): Move with_arch default from with_cpu block to
1475 (mips64r5900-*-*, mips64r5900el-*-*, mipsr5900-*-*, mipsr5900el-*-*):
1476 Likewise. Remove default with_tune setting. Move default float
1477 setting to its own block. Handle with_llsc in the same block as above.
1479 2013-06-16 Joern Rennecke <joern.rennecke@embecosm.com>
1481 PR rtl-optimization/57425
1482 PR rtl-optimization/57569
1483 * alias.c (write_dependence_p): Add new parameters mem_mode,
1484 canon_mem_addr and mem_canonicalized. Change type of writep to bool.
1485 Changed all callers.
1486 (canon_anti_dependence): New function.
1487 * cse.c (check_dependence): Use canon_anti_dependence.
1488 * cselib.c (cselib_invalidate_mem): Likewise.
1489 * rtl.h (canon_anti_dependence): Declare.
1491 2013-06-16 Jürgen Urban <JuergenUrban@gmx.de>
1493 * config/mips/mips.h (ISA_HAS_LL_SC): Exclude TARGET_MIPS5900.
1494 * config/mips/mips.c (mips_start_ll_sc_sync_block): Output
1495 ".set mips3" for 64-bit targets.
1497 2013-06-15 Dehao Chen <dehao@google.com>
1499 * tree-flow.h (gimple_check_call_matching_types): Add new argument.
1500 * gimple-low.c (gimple_check_call_matching_types): Likewise.
1501 (gimple_check_call_args): Likewise.
1502 * value-prof.c (check_ic_target): Likewise.
1503 * ipa-inline.c (early_inliner): Likewise.
1504 * ipa-prop.c (update_indirect_edges_after_inlining): Likewise.
1505 * cgraph.c (cgraph_create_edge_1): Likewise.
1506 (cgraph_make_edge_direct): Likewise.
1508 2013-06-14 Michael Meissner <meissner@linux.vnet.ibm.com>
1511 * config/rs6000/rs6000.md (mov<mode>_ppc64): Call
1512 rs6000_output_move_128bit to handle emitting quad memory
1513 operations. Set attribute length to 8 bytes.
1515 2013-06-14 Vidya Praveen <vidyapraveen@arm.com>
1517 * config/aarch64/aarch64-simd.md (aarch64_<su>mlal_lo<mode>):
1519 (aarch64_<su>mlal_hi<mode>, aarch64_<su>mlsl_lo<mode>): Likewise.
1520 (aarch64_<su>mlsl_hi<mode>, aarch64_<su>mlal<mode>): Likewise.
1521 (aarch64_<su>mlsl<mode>): Likewise.
1523 2013-06-14 Mike Stump <mikestump@comcast.net>
1525 * Makefile.in (TARGET_H): Add insn-codes.h.
1527 2013-06-14 Alan Modra <amodra@gmail.com>
1531 * expr.c (expand_expr_real_1 <normal_inner_ref>): Pass
1532 EXPAND_MEMORY and EXPAND_WRITE to recursive call. Don't use
1533 bitfield expansion when EXPAND_MEMORY.
1534 (expand_expr_real_1 <VIEW_CONVERT_EXPR>): Pass modifier likewise.
1536 2013-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1538 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1539 test for clearing quad memory on 32-bit later.
1541 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1543 * fold-const.c (negate_expr_p): Handle VECTOR_CST.
1544 (fold_negate_expr): Likewise.
1545 (fold_real_zero_addition_p): Handle vectors.
1546 (fold_binary_loc) <PLUS_EXPR, MINUS_EXPR>: Likewise.
1548 2013-06-14 Alan Modra <amodra@gmail.com>
1550 * varasm.c (force_const_mem): Revert 2013-06-07 change.
1552 2013-06-13 Jan Hubicka <jh@suse.cz>
1554 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1555 Local comdats are not externally visible.
1556 * symtab.c (dump_symtab_base): Dump externally visible.
1557 (verify_symtab_base): Verify back links in the symtab hash.
1559 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1561 * fold-const.c (operand_equal_p): Consider NOP_EXPR and
1562 CONVERT_EXPR as equal nodes.
1564 2013-06-13 Bin Cheng <bin.cheng@arm.com>
1566 * rtlanal.c (noop_move_p): Check the code to be executed for COND_EXEC.
1568 2013-06-13 Marc Glisse <marc.glisse@inria.fr>
1570 * tree-ssa-forwprop.c (simplify_bitwise_binary, associate_plusminus):
1571 Generalize to complex and vector.
1572 * tree.c (build_all_ones_cst): New function.
1573 * tree.h (build_all_ones_cst): Declare it.
1575 2013-06-13 Alan Modra <amodra@gmail.com>
1577 * config/rs6000/rs6000.h (LONG_DOUBLE_LARGE_FIRST): Define.
1578 * config/rs6000/rs6000.md (signbittf2): New insn.
1579 (extenddftf2_internal): Use LONG_DOUBLE_LARGE_FIRST.
1580 (abstf2_internal, cmptf_internal2): Likewise.
1581 * config/rs6000/spe.md (spe_abstf2_cmp, spe_abstf2_tst): Likewise.
1583 2013-06-12 Michael Meissner <meissner@linux.vnet.ibm.com>
1584 Pat Haugen <pthaugen@us.ibm.com>
1585 Peter Bergner <bergner@vnet.ibm.com>
1587 * config/rs6000/rs6000.c (emit_load_locked): Add support for
1588 power8 byte, half-word, and quad-word atomic instructions.
1589 (emit_store_conditional): Likewise.
1590 (rs6000_expand_atomic_compare_and_swap): Likewise.
1591 (rs6000_expand_atomic_op): Likewise.
1593 * config/rs6000/sync.md (larx): Add new modes for power8.
1595 (AINT): New mode iterator to include TImode as well as normal
1596 integer modes on power8.
1597 (fetchop_pred): Use int_reg_operand instead of gpc_reg_operand so
1598 that VSX registers are not considered. Use AINT mode iterator
1599 instead of INT1 to allow inclusion of quad word atomic operations
1601 (load_locked<mode>): Likewise.
1602 (store_conditional<mode>): Likewise.
1603 (atomic_compare_and_swap<mode>): Likewise.
1604 (atomic_exchange<mode>): Likewise.
1605 (atomic_nand<mode>): Likewise.
1606 (atomic_fetch_<fetchop_name><mode>): Likewise.
1607 (atomic_nand_fetch<mode>): Likewise.
1608 (mem_thread_fence): Use gen_loadsync_<mode> instead of enumerating
1610 (ATOMIC): On power8, add QImode, HImode modes.
1611 (load_locked<QHI:mode>_si): Varients of load_locked for QI/HI
1612 modes that promote to SImode.
1613 (load_lockedti): Convert TImode arguments to PTImode, so that we
1614 get a guaranteed even/odd register pair.
1615 (load_lockedpti): Likewise.
1616 (store_conditionalti): Likewise.
1617 (store_conditionalpti): Likewise.
1619 * config/rs6000/rs6000.md (QHI): New mode iterator for power8
1620 atomic load/store instructions.
1623 2013-06-12 Richard Sandiford <rdsandiford@googlemail.com>
1625 * config/mips/mips.md (extended_mips16): Include GOT and constant-pool
1627 (insn_count): New attribute, with most cases extracted from...
1628 (length): ...here. Redefine most cases in terms of insn_count.
1629 (single_insn): Delete.
1630 (can_delay): Use insn_count to check for single instructions.
1631 (*mul<mode>3_r4300, mul<mode>3_r4000, *mul_acc_si, *mul_acc_si_r3900)
1632 (*msac_using_macc, *mul_sub_si, <u>mulsidi3_32bit_r4000)
1633 (<u>mulsidi3_64bit_r4000, <su>muldi3_highpart_internal)
1634 (<su>mulsi3_highpart_split, <su>muldi3_highpart_internal)
1635 (<u>mulditi3_r4000, *div<mode>3, *recip<mode>3, divmod<mode>4)
1636 (udivmod<mode>4, sqrt<mode>2, *rsqrt<mode>a, *rsqrt<mode>b)
1637 (fix_truncdfsi2_macro, fix_truncsfsi2_macro, *lea_high64)
1638 (*lea64, cprestore_<mode>, clear_hazard_<mode>, <unnamed insn>)
1639 (casesi_internal_mips16_<mode>, *tls_get_tp_<mode>_split)
1640 (tls_get_tp_mips16, *tls_get_tp_mips16_call_<mode>): Use "insn_count"
1641 rather than "length".
1642 (tls_get_tp_<mode>): Likewise. Remove redundant "no_delay" attribute.
1643 * config/mips/mips-ps-3d.md (mips_c_cond_4s, mips_cabs_cond_4s):
1644 Use "insn_count" rather than "length".
1645 * config/mips/mips-dsp.md
1646 (mips_l<SHORT:size><u>x_ext<GPR:mode>_<P:mode>)
1647 (mips_l<GPR:size>x_<P:mode>, *mips_lw<u>x_<P:mode>_ext): Remove
1650 2013-06-12 Marc Glisse <marc.glisse@inria.fr>
1652 PR tree-optimization/57361
1653 * tree-ssa-dse.c (dse_possible_dead_store_p): Handle self-assignment.
1655 2013-06-12 Sofiane Naci <sofiane.naci@arm.com>
1657 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Convert
1659 (aarch64_simd_combine<mode>): New instruction expansion.
1660 * config/aarch64/aarch64-protos.h (aarch64_split_simd_combine): New
1662 * config/aarch64/aarch64.c (aarch64_split_combine): New function.
1663 * config/aarch64/iterators.md (Vdbl): Add entry for DF.
1665 2013-06-12 Jan Hubicka <jh@suse.cz>
1667 * cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about
1668 decl has when in streaming stage.
1669 * lto-symtab.c (lto_symtab_merge_symbols): Likewise.
1670 * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING.
1672 2013-06-12 Roland Stigge <stigge@antcom.de>
1675 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Fix SPE version detection.
1677 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1679 PR tree-optimization/57537
1680 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): If
1681 vect_handle_widen_op_by_const, convert oprnd1 to half_type1.
1683 2013-06-12 Richard Biener <rguenther@suse.de>
1685 * data-streamer.h (streamer_write_char_stream): CSE
1686 obs->current_pointer.
1687 * data-streamer-out.c (streamer_write_uhwi_stream): Inline
1688 streamer_write_char_stream manually and optimize the resulting loop.
1689 (streamer_write_hwi_stream): Likewise.
1691 2013-06-12 Jan Hubicka <jh@suse.cz>
1693 * lto-symtab.c (lto_symtab_merge_symbols): Populate symtab hashtable.
1694 * cgraph.h (varpool_create_empty_node): Declare.
1695 * lto-cgraph.c (input_node, input_varpool_node): Forcingly create
1697 * symtab.c (symtab_unregister_node): Be lax about missin entries
1699 (symtab_get_node): Update comment.
1700 * varpool.c (varpool_create_empty_node): Break out from ...
1701 (varpool_node_for_decl): ... here.
1702 * lto-streamer.h (lto_file_decl_data): Add RESOLUTION_MAP.
1704 2013-06-12 Eric Botcazou <ebotcazou@adacore.com>
1706 * expr.c (expand_expr_real_1) <TARGET_MEM_REF>: Use straight-line flow.
1707 <MEM_REF>: Use 'type' instead of TREE_TYPE (exp) and tidy up the first
1708 part. Use straight-line flow at the end.
1709 <COMPONENT_REF>: Remove superfluous else.
1710 <VIEW_CONVERT_EXPR>: Use 'type' instead of TREE_TYPE (exp).
1712 2013-06-12 Jakub Jelinek <jakub@redhat.com>
1715 * varasm.c (decl_binds_to_current_def_p): Call binds_local_p
1716 target hook even for !TREE_PUBLIC decls. If no resolution info
1717 is available, return false for common and external decls.
1719 2013-06-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
1721 * config/rl78/constraints.md (U): New constraint.
1722 * config/rl78/rl78.md (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): Add
1725 2013-06-11 Michael Meissner <meissner@linux.vnet.ibm.com>
1728 * config/rs6000/driver-rs6000.c (elf_platform): Make buffer static
1729 to allow returning address to AT_PLATFORM name.
1731 2013-06-11 Jan Hubicka <jh@suse.cz>
1733 * cgraph.c (cgraph_create_function_alias): Set weakref flag.
1734 * cgraph.h (symtab_node_base): Add weakref flag.
1735 * cgraphunit.c (cgraph_reset_node): Clear weakref flag.
1736 (handle_alias_pairs): Set weakref flag, do not set DECL_EXTERNAL.
1737 (output_weakrefs): Use weakref flag.
1738 * fold-const.c (simple_operand_p): Handle WEAK.
1739 * gimple-fold.c (can_refer_decl_in_current_unit_p): Drop weakref.
1740 * ipa.c (varpool_externally_visible_p): Drop weakref.
1741 (function_and_variable_visibility): Update comment; fix weakref
1742 sanity checks; do not clear DECL_WEAK on them.
1743 * lto-cgraph.c (lto_output_node): update.
1744 (lto_output_varpool_node): Update.
1745 (input_overwrite_node): Update.
1746 (input_node): Update.
1747 (input_varpool_node): Update.
1748 * lto-symtab.c (lto_symtab_symbol_p): Do not special case weakrefs.
1749 (lto_symtab_merge_symbols): Add sanity check.
1750 (lto_symtab_prevailing_decl): Do not special case weakrefs.
1751 * passes.c (rest_of_decl_compilation): Set static flag, too.
1752 * symtab.c (dump_symtab_base): Dump weakref.
1753 (verify_symtab_base): Sanity check weakrefs.
1754 (symtab_make_decl_local): Remove duplicated code.
1755 (symtab_alias_ultimate_target): Simplify.
1756 * varpool.c (varpool_create_variable_alias): Set weakref flag.
1758 2013-06-11 DJ Delorie <dj@redhat.com>
1760 * config/rl78/rl78.c (TARGET_UNWIND_WORD_MODE): Define.
1761 (rl78_unwind_word_mode): New.
1763 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1765 * final.c (debug_prefix_maps): Make static.
1767 2013-06-11 David Malcolm <dmalcolm@redhat.com>
1769 * function.c (initial_trampoline): Remove stray copy.
1771 2013-06-11 Sofiane Naci <sofiane.naci@arm.com>
1773 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>): Update.
1775 2013-06-11 Martin Jambor <mjambor@suse.cz>
1777 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that param_index is
1778 within bounds at the beginning of the function.
1780 2013-06-11 Alan Modra <amodra@gmail.com>
1782 * varasm.c (get_section): Don't die on !DECL_P decl. Tidy error
1784 (get_named_section): Don't NULL !DECL_P decl.
1786 2013-06-11 Igor Zamyatin <igor.zamyatin@intel.com>
1788 * doc/invoke.texi (core-avx2): Document.
1790 (atom): Updated with MOVBE.
1792 2013-06-11 Richard Biener <rguenther@suse.de>
1794 * collect2.c (main): Do not redirect ld stdout/stderr when debugging.
1796 2013-06-11 Anton Blanchard <anton@samba.org>
1798 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Calculate
1799 correct shift value in little-endian mode.
1801 2013-06-11 Jakub Jelinek <jakub@redhat.com>
1804 * varasm.c (get_variable_align): Move #endif to the right place.
1806 2013-06-10 Cary Coutant <ccoutant@google.com>
1808 * dwarf2out.c (hash_external_ref): Use die_symbol or signature
1809 for hash so that hash table traversal order is deterministic.
1811 2013-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1812 Pat Haugen <pthaugen@us.ibm.com>
1813 Peter Bergner <bergner@vnet.ibm.com>
1815 * config/rs6000/vector.md (GPR move splitter): Do not split moves
1816 of vectors in GPRS if they are direct moves or quad word load or
1819 * config/rs6000/rs6000-protos.h (rs6000_output_move_128bit): Add
1821 (direct_move_p): Likewise.
1822 (quad_load_store_p): Likewise.
1824 * config/rs6000/rs6000.c (enum rs6000_reg_type): Simplify register
1825 classes into bins based on the physical register type.
1826 (reg_class_to_reg_type): Likewise.
1827 (IS_STD_REG_TYPE): Likewise.
1828 (IS_FP_VECT_REG_TYPE): Likewise.
1829 (reload_fpr_gpr): Arrays to determine what insn to use if we can
1830 use direct move instructions.
1831 (reload_gpr_vsx): Likewise.
1832 (reload_vsx_gpr): Likewise.
1833 (rs6000_init_hard_regno_mode_ok): Precalculate the register type
1834 information that is a simplification of register classes. Also
1835 precalculate direct move reload helpers.
1836 (direct_move_p): New function to return true if the operation can
1837 be done as a direct move instruciton.
1838 (quad_load_store_p): New function to return true if the operation
1839 is a quad memory operation.
1840 (rs6000_legitimize_address): If quad memory, only allow register
1841 indirect for TImode addresses.
1842 (rs6000_legitimate_address_p): Likewise.
1843 (enum reload_reg_type): Delete, replace with rs6000_reg_type.
1844 (rs6000_reload_register_type): Likewise.
1845 (register_to_reg_type): Return register type.
1846 (rs6000_secondary_reload_simple_move): New helper function for
1847 secondary reload and secondary memory needed to identify anything
1848 that is a simple move, and does not need reloading.
1849 (rs6000_secondary_reload_direct_move): New helper function for
1850 secondary reload to identify cases that can be done with several
1851 instructions via the direct move instructions.
1852 (rs6000_secondary_reload_move): New helper function for secondary
1853 reload to identify moves between register types that can be done.
1854 (rs6000_secondary_reload): Add support for quad memory operations
1855 and for direct move.
1856 (rs6000_secondary_memory_needed): Likewise.
1857 (rs6000_debug_secondary_memory_needed): Change argument names.
1858 (rs6000_output_move_128bit): New function to return the move to
1859 use for 128-bit moves, including knowing about the various
1860 limitations of quad memory operations.
1862 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for quad
1863 memory operations. call rs6000_output_move_128bit for the actual
1864 instruciton(s) to generate.
1865 (vsx_movti_64bit): Likewise.
1867 * config/rs6000/rs6000.md (UNSPEC_P8V_FMRGOW): New unspec values.
1868 (UNSPEC_P8V_MTVSRWZ): Likewise.
1869 (UNSPEC_P8V_RELOAD_FROM_GPR): Likewise.
1870 (UNSPEC_P8V_MTVSRD): Likewise.
1871 (UNSPEC_P8V_XXPERMDI): Likewise.
1872 (UNSPEC_P8V_RELOAD_FROM_VSX): Likewise.
1873 (UNSPEC_FUSION_GPR): Likewise.
1874 (FMOVE128_GPR): New iterator for direct move.
1875 (f32_lv): New mode attribute for load/store of SFmode/SDmode values.
1878 (zero_extend<mode>di2_internal1): Add support for power8 32-bit
1879 loads and direct move instructions.
1880 (zero_extendsidi2_lfiwzx): Likewise.
1881 (extendsidi2_lfiwax): Likewise.
1882 (extendsidi2_nocell): Likewise.
1883 (floatsi<mode>2_lfiwax): Likewise.
1885 (floatunssi<mode>2_lfiwzx): Likewise.
1887 (fix_trunc<mode>_stfiwx): Likewise.
1888 (fixuns_trunc<mode>_stfiwx): Likewise.
1889 (mov<mode>_hardfloat, 32-bit floating point): Likewise.
1890 (mov<move>_hardfloat64, 64-bit floating point): Likewise.
1891 (parity<mode>2_cmpb): Set length/type attr.
1892 (unnamed shift right patterns, mov<mode>_internal2): Change type attr
1893 for 'mr.' to fast_compare.
1894 (bpermd_<mode>): Change type attr to popcnt.
1895 (p8_fmrgow_<mode>): New insns for power8 direct move support.
1896 (p8_mtvsrwz_1): Likewise.
1897 (p8_mtvsrwz_2): Likewise.
1898 (reload_fpr_from_gpr<mode>): Likewise.
1899 (p8_mtvsrd_1): Likewise.
1900 (p8_mtvsrd_2): Likewise.
1901 (p8_xxpermdi_<mode>): Likewise.
1902 (reload_vsx_from_gpr<mode>): Likewise.
1903 (reload_vsx_from_gprsf): Likewise.
1904 (p8_mfvsrd_3_<mode>): LIkewise.
1905 (reload_gpr_from_vsx<mode>): Likewise.
1906 (reload_gpr_from_vsxsf): Likewise.
1907 (p8_mfvsrd_4_disf): Likewise.
1908 (multi-word GPR splits): Do not split direct moves or quad memory
1911 2013-06-10 David Malcolm <dmalcolm@redhat.com>
1913 * tree-into-ssa.c (interesting_blocks): Make static.
1915 2013-06-10 Jakub Jelinek <jakub@redhat.com>
1918 * varasm.c (align_variable): Don't use DATA_ALIGNMENT or
1919 CONSTANT_ALIGNMENT if !decl_binds_to_current_def_p (decl).
1920 Use DATA_ABI_ALIGNMENT for that case instead if defined.
1921 (get_variable_align): New function.
1922 (get_variable_section, emit_bss, emit_common,
1923 assemble_variable_contents, place_block_symbol): Use
1924 get_variable_align instead of DECL_ALIGN.
1925 (assemble_noswitch_variable): Add align argument, use it
1926 instead of DECL_ALIGN.
1927 (assemble_variable): Adjust caller. Use get_variable_align
1928 instead of DECL_ALIGN.
1929 * config/i386/i386.h (DATA_ALIGNMENT): Adjust x86_data_alignment
1931 (DATA_ABI_ALIGNMENT): Define.
1932 * config/i386/i386-protos.h (x86_data_alignment): Adjust prototype.
1933 * config/i386/i386.c (x86_data_alignment): Add opt argument. If
1934 opt is false, only return the psABI mandated alignment increase.
1935 * config/c6x/c6x.h (DATA_ALIGNMENT): Renamed to...
1936 (DATA_ABI_ALIGNMENT): ... this.
1937 * config/mmix/mmix.h (DATA_ALIGNMENT): Renamed to...
1938 (DATA_ABI_ALIGNMENT): ... this.
1939 * config/mmix/mmix.c (mmix_data_alignment): Adjust function comment.
1940 * config/s390/s390.h (DATA_ALIGNMENT): Renamed to...
1941 (DATA_ABI_ALIGNMENT): ... this.
1942 * doc/tm.texi.in (DATA_ABI_ALIGNMENT): Document.
1943 * doc/tm.texi: Regenerated.
1945 2013-06-10 Uros Bizjak <ubizjak@gmail.com>
1947 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Also use
1948 cmp_code to construct REG_EQUAL note.
1950 2013-06-09 Jakub Jelinek <jakub@redhat.com>
1953 * config/i386/i386.md (TARGET_READ_MODIFY_WRITE peepholes): Ensure
1954 that operands[2] doesn't overlap with operands[0].
1956 2013-06-09 David Edelsohn <dje.gcc@gmail.com>
1957 Jan Hubicka <jh@suse.cz>
1959 * config/rs6000/rs6000.c (print_operand, 'z'): Remove historical
1960 hack to mark symbols as used.
1962 2013-06-08 Vladimir Makarov <vmakarov@redhat.com>
1964 PR rtl-optimization/57559
1965 * lra-constraints.c (process_alt_operands): Don't discourage
1966 memory with known offset for offsetable memory constraint.
1967 * lra.c (lra_emit_add): Exchange y and z for 2-op add insn.
1969 2013-06-08 Eric Botcazou <ebotcazou@adacore.com>
1971 * varasm.c (struct oc_local_state): Reorder fields.
1972 (output_constructor_bitfield): Replace OUTER parameter with BIT_OFFSET
1973 and adjust accordingly.
1974 (output_constructor): Reorder initialization code and adjust call to
1975 output_constructor_bitfield.
1977 2013-06-07 Jan Hubicka <jh@suse.cz>
1979 * symtab.c (symtab_resolve_alias): Do not remove alias attribute.
1981 2013-06-07 David Malcolm <dmalcolm@redhat.com>
1983 * tree-object-size.c (unknown): Make const.
1985 2013-06-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1987 * config/s390/s390.md (cpu_facility): Add cpu_zarch.
1988 ("*movmem_short", "*clrmem_short", "*cmpmem_short): Use cpu_zarch
1989 for last alternative in the cpu_facility attribute.
1991 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1994 * config/arm/arm.md (*xordi3_insn): Change to insn_and_split.
1995 (xordi3): Change operand 2 constraint to arm_xordi_operand.
1996 * config/arm/arm.c (const_ok_for_dimode_op): Handle XOR.
1997 * config/arm/constraints.md (Dg): New constraint.
1998 * config/arm/neon.md (xordi3_neon): Remove.
1999 (neon_veor<mode>): Generate xordi3 instead of xordi3_neon.
2000 * config/arm/predicates.md (arm_xordi_operand): New predicate.
2002 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2004 * config/arm/arm.md (anddi3_insn): Remove duplicate alternatives.
2005 Clean up alternatives.
2007 2013-06-07 Alan Modra <amodra@gmail.com>
2009 * config/rs6000/rs6000.c (setup_incoming_varargs): Round up
2012 2013-06-07 Alan Modra <amodra@gmail.com>
2014 * varasm.c (force_const_mem): Assert mode is not VOID or BLK.
2016 2013-06-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2018 * config/arm/constraints.md (Df): New constraint.
2019 * config/arm/arm.md (iordi3_insn): Use Df constraint instead of De.
2020 Correct length attribute for last two alternatives.
2022 2013-06-07 Alan Modra <amodra@gmail.com>
2024 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
2025 override user -mfp-in-toc.
2026 (offsettable_ok_by_alignment): Consider just the current access
2027 rather than the whole object, unless BLKmode. Handle
2028 CONSTANT_POOL_ADDRESS_P constants that lack a decl too.
2029 (use_toc_relative_ref): Allow CONSTANT_POOL_ADDRESS_P constants
2030 for -mcmodel=medium.
2031 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't
2032 override user -mfp-in-toc or -msum-in-toc. Default to
2033 -mno-fp-in-toc for -mcmodel=medium.
2035 2013-06-06 DJ Delorie <dj@redhat.com>
2037 * config/rl78/rl78.c (rl78_valid_pointer_mode): New, implements
2038 TARGET_VALID_POINTER_MODE.
2040 2013-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
2041 Pat Haugen <pthaugen@us.ibm.com>
2042 Peter Bergner <bergner@vnet.ibm.com>
2044 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
2045 Document new power8 builtins.
2047 * config/rs6000/vector.md (and<mode>3): Add a clobber/scratch of a
2048 condition code register, to allow 128-bit logical operations to be
2049 done in the VSX or GPR registers.
2050 (nor<mode>3): Use the canonical form for nor.
2051 (eqv<mode>3): Add expanders for power8 xxleqv, xxlnand, xxlorc,
2052 vclz*, and vpopcnt* vector instructions.
2053 (nand<mode>3): Likewise.
2054 (orc<mode>3): Likewise.
2055 (clz<mode>2): LIkewise.
2056 (popcount<mode>2): Likewise.
2058 * config/rs6000/predicates.md (int_reg_operand): Rework tests so
2059 that only the GPRs are recognized.
2061 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2062 support for new power8 builtins.
2064 * config/rs6000/rs6000-builtin.def (xscvspdpn): Add new power8
2066 (xscvdpspn): Likewise.
2072 (vpopcnt): Likewise.
2073 (vpopcntb): Likewise.
2074 (vpopcnth): Likewise.
2075 (vpopcntw): Likewise.
2076 (vpopcntd): Likewise.
2081 (eqv_v16qi3): Likewise.
2082 (eqv_v8hi3): Likewise.
2083 (eqv_v4si3): Likewise.
2084 (eqv_v2di3): Likewise.
2085 (eqv_v4sf3): Likewise.
2086 (eqv_v2df3): Likewise.
2088 (nand_v16qi3): Likewise.
2089 (nand_v8hi3): Likewise.
2090 (nand_v4si3): Likewise.
2091 (nand_v2di3): Likewise.
2092 (nand_v4sf3): Likewise.
2093 (nand_v2df3): Likewise.
2095 (orc_v16qi3): Likewise.
2096 (orc_v8hi3): Likewise.
2097 (orc_v4si3): Likewise.
2098 (orc_v2di3): Likewise.
2099 (orc_v4sf3): Likewise.
2100 (orc_v2df3): Likewise.
2102 * config/rs6000/rs6000.c (rs6000_option_override_internal): Only
2103 allow power8 quad mode in 64-bit.
2104 (rs6000_builtin_vectorized_function): Add support to vectorize
2105 ISA 2.07 count leading zeros, population count builtins.
2106 (rs6000_expand_vector_init): On ISA 2.07 use xscvdpspn to form
2107 V4SF vectors instead of xscvdpsp to avoid IEEE related traps.
2108 (builtin_function_type): Add vgbbd builtin function which takes an
2110 (altivec_expand_vec_perm_const): Add support for new power8 merge
2113 * config/rs6000/vsx.md (VSX_L2): New iterator for 128-bit types,
2114 that does not include TImdoe for use with 32-bit.
2115 (UNSPEC_VSX_CVSPDPN): Support for power8 xscvdpspn and xscvspdpn
2117 (UNSPEC_VSX_CVDPSPN): Likewise.
2118 (vsx_xscvdpspn): Likewise.
2119 (vsx_xscvspdpn): Likewise.
2120 (vsx_xscvdpspn_scalar): Likewise.
2121 (vsx_xscvspdpn_directmove): Likewise.
2122 (vsx_and<mode>3): Split logical operations into 32-bit and
2123 64-bit. Add support to do logical operations on TImode as well as
2124 VSX vector types. Allow logical operations to be done in either
2125 VSX registers or in general purpose registers in 64-bit mode. Add
2126 splitters if GPRs were used. For AND, add clobber of CCmode to
2127 allow use of ANDI on GPRs. Rewrite nor to use the canonical RTL
2129 (vsx_and<mode>3_32bit): Likewise.
2130 (vsx_and<mode>3_64bit): Likewise.
2131 (vsx_ior<mode>3): Likewise.
2132 (vsx_ior<mode>3_32bit): Likewise.
2133 (vsx_ior<mode>3_64bit): Likewise.
2134 (vsx_xor<mode>3): Likewise.
2135 (vsx_xor<mode>3_32bit): Likewise.
2136 (vsx_xor<mode>3_64bit): Likewise.
2137 (vsx_one_cmpl<mode>2): Likewise.
2138 (vsx_one_cmpl<mode>2_32bit): Likewise.
2139 (vsx_one_cmpl<mode>2_64bit): Likewise.
2140 (vsx_nor<mode>3): Likewise.
2141 (vsx_nor<mode>3_32bit): Likewise.
2142 (vsx_nor<mode>3_64bit): Likewise.
2143 (vsx_andc<mode>3): Likewise.
2144 (vsx_andc<mode>3_32bit): Likewise.
2145 (vsx_andc<mode>3_64bit): Likewise.
2146 (vsx_eqv<mode>3_32bit): Add support for power8 xxleqv, xxlnand,
2147 and xxlorc instructions.
2148 (vsx_eqv<mode>3_64bit): Likewise.
2149 (vsx_nand<mode>3_32bit): Likewise.
2150 (vsx_nand<mode>3_64bit): Likewise.
2151 (vsx_orc<mode>3_32bit): Likewise.
2152 (vsx_orc<mode>3_64bit): Likewise.
2154 * config/rs6000/rs6000.h (VLOGICAL_REGNO_P): Update comment.
2156 * config/rs6000/altivec.md (UNSPEC_VGBBD): Add power8 vgbbd
2158 (p8_vmrgew): Add power8 vmrgew and vmrgow instructions.
2159 (p8_vmrgow): Likewise.
2160 (altivec_and<mode>3): Add clobber of CCmode to allow AND using
2161 GPRs to be split under VSX.
2162 (p8v_clz<mode>2): Add power8 count leading zero support.
2163 (p8v_popcount<mode>2): Add power8 population count support.
2164 (p8v_vgbbd): Add power8 gather bits by bytes by doubleword
2167 * config/rs6000/rs6000.md (eqv<mode>3): Add support for powerp eqv
2170 * config/rs6000/altivec.h (vec_eqv): Add defines to export power8
2172 (vec_nand): Likewise.
2173 (vec_vclz): Likewise.
2174 (vec_vclzb): Likewise.
2175 (vec_vclzd): Likewise.
2176 (vec_vclzh): Likewise.
2177 (vec_vclzw): Likewise.
2178 (vec_vgbbd): Likewise.
2179 (vec_vmrgew): Likewise.
2180 (vec_vmrgow): Likewise.
2181 (vec_vpopcnt): Likewise.
2182 (vec_vpopcntb): Likewise.
2183 (vec_vpopcntd): Likewise.
2184 (vec_vpopcnth): Likewise.
2185 (vec_vpopcntw): Likewise.
2187 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2189 PR rtl-optimization/57468
2190 * config/i386/i386.c (inline_secondary_memory_needed): Ignore
2193 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2195 PR rtl-optimization/57459
2196 * lra-constraints.c (update_ebb_live_info): Fix typo for operand
2197 type when setting live regs.
2199 2013-06-06 Vladimir Makarov <vmakarov@redhat.com>
2201 * config/s390/s390.opt (mlra): New option.
2202 * config/s390/s390.c (s390_decompose_address): Check displacement
2203 for all registers for LRA.
2204 (s390_secondary_reload): Don't used secondary reloads for LRA.
2205 (s390_lra_p): New function.
2206 (TARGET_LRA_P): Define.
2207 * config/s390/s390.md (*movmem_short, *clrmem_short): Change value
2208 of attribute cpu_facility to zarch for the last alternative.
2209 (*cmpmem_short): Ditto.
2211 2013-06-06 Eric Botcazou <ebotcazou@adacore.com>
2213 * config/arm/arm.c (arm_r3_live_at_start_p): New predicate.
2214 (arm_compute_static_chain_stack_bytes): Use it. Tidy up.
2215 (arm_expand_prologue): Likewise.
2217 2013-06-06 Teresa Johnson <tejohnson@google.com>
2220 * ifcvt.c (find_if_case_1): Replace BB_COPY_PARTITION with assert
2221 as this is now done by redirect_edge_and_branch_force.
2222 * function.c (thread_prologue_and_epilogue_insns): Insert new bb after
2223 barriers, and fix interaction with splitting.
2224 * emit-rtl.c (try_split): Copy REG_CROSSING_JUMP notes.
2225 * cfgcleanup.c (try_forward_edges): Fix early return value to properly
2226 reflect changes made in the routine.
2227 * bb-reorder.c (emit_barrier_after_bb): Move to cfgrtl.c.
2228 (fix_up_fall_thru_edges): Remove incorrect check for bb layout order
2229 since this is called in cfglayout mode, and replace partition fixup
2230 with assert as that is now done by force_nonfallthru_and_redirect.
2231 (add_reg_crossing_jump_notes): Handle the fact that some jumps may
2232 already be marked with region crossing note.
2233 (insert_section_boundary_note): Make non-static, gate on flag
2234 has_bb_partition, rewrite to also check for multiple partitions.
2235 (rest_of_handle_reorder_blocks): Remove call to
2236 insert_section_boundary_note, now done later during free_cfg.
2237 (duplicate_computed_gotos): Don't duplicate partition crossing edge.
2238 * bb-reorder.h (insert_section_boundary_note): Declare.
2239 * Makefile.in (cfgrtl.o): Depend on bb-reorder.h
2240 * cfgrtl.c (rest_of_pass_free_cfg): If partitions exist
2241 invoke insert_section_boundary_note.
2242 (try_redirect_by_replacing_jump): Remove unnecessary
2243 check for region crossing note.
2244 (fixup_partition_crossing): New function.
2245 (rtl_redirect_edge_and_branch): Fixup partition boundaries.
2246 (emit_barrier_after_bb): Move here from bb-reorder.c, handle insertion
2247 in non-cfglayout mode.
2248 (force_nonfallthru_and_redirect): Fixup partition boundaries,
2249 remove old code that tried to do this. Emit barrier correctly
2250 when we are in cfglayout mode.
2251 (last_bb_in_partition): New function.
2252 (rtl_split_edge): Correctly fixup partition boundaries.
2253 (commit_one_edge_insertion): Remove old code that tried to
2254 fixup region crossing edge since this is now handled in
2255 split_block, and set up insertion point correctly since
2256 block may now end in a jump.
2257 (verify_hot_cold_block_grouping): Guard against checking when not in
2258 linearized RTL mode.
2259 (rtl_verify_edges): Add checks for incorrect/missing REG_CROSSING_JUMP
2261 (rtl_verify_flow_info_1): Move verify_hot_cold_block_grouping to
2262 rtl_verify_flow_info, so not called in cfglayout mode.
2263 (rtl_verify_flow_info): Move verify_hot_cold_block_grouping here.
2264 (fixup_reorder_chain): Remove old code that attempted to fixup region
2265 crossing note as this is now handled in force_nonfallthru_and_redirect.
2266 (duplicate_insn_chain): Don't duplicate switch section notes.
2267 (rtl_can_remove_branch_p): Remove unnecessary check for region crossing
2269 * basic-block.h (emit_barrier_after_bb): Declare.
2271 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2273 * config/arm/arm-fixed.md (add<mode>3,usadd<mode>3,ssadd<mode>3,
2274 sub<mode>3, ussub<mode>3, sssub<mode>3, arm_ssatsihi_shift,
2275 arm_usatsihi): Adjust alternatives for arm_restrict_it.
2277 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2279 * config/arm/arm-ldmstm.ml: Set "predicable_short_it" to "no"
2281 * config/arm/ldmstm.md: Regenerate.
2283 2013-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2285 * config/arm/sync.md (atomic_loaddi_1):
2286 Disable predication for arm_restrict_it.
2287 (arm_load_exclusive<mode>): Likewise.
2288 (arm_load_exclusivesi): Likewise.
2289 (arm_load_exclusivedi): Likewise.
2290 (arm_load_acquire_exclusive<mode>): Likewise.
2291 (arm_load_acquire_exclusivesi): Likewise.
2292 (arm_load_acquire_exclusivedi): Likewise.
2293 (arm_store_exclusive<mode>): Likewise.
2294 (arm_store_exclusive<mode>): Likewise.
2295 (arm_store_release_exclusivedi): Likewise.
2296 (arm_store_release_exclusive<mode>): Likewise.
2298 2013-06-06 Richard Biener <rguenther@suse.de>
2300 * lto-streamer.h (enum LTO_tags): Move LTO_tree_pickle_reference
2302 (lto_tag_is_tree_code_p): Adjust.
2303 (lto_tag_is_gimple_code_p): Likewise.
2304 (lto_gimple_code_to_tag): Likewise.
2305 (lto_tag_to_gimple_code): Likewise.
2306 (lto_tree_code_to_tag): Likewise.
2307 (lto_tag_to_tree_code): Likewise.
2308 * data-streamer.h (streamer_write_hwi_in_range): Use
2309 uhwi streaming to stream the normalized range.
2310 (streamer_read_hwi_in_range): Likewise.
2312 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2314 * config/arm/arm.md (enabled_for_depr_it): New attribute.
2315 (predicable_short_it): Likewise.
2316 (predicated): Likewise.
2317 (enabled): Handle above.
2318 (define_cond_exec): Set predicated attribute to yes.
2320 2013-06-05 Mike Stump <mikestump@comcast.net>
2322 * gdbinit.in (__FUNCTION__): Add.
2324 2013-06-05 Uros Bizjak <ubizjak@gmail.com>
2326 * config/alpha/alpha.c (alpha_emit_conditional_move): Swap all
2327 GE, GT, GEU and GTU compares, modulo DImode compares with zero.
2329 2013-06-05 Jan Hubicka <jh@suse.cz>
2331 * varasm.c (mark_decl_referenced): Revert the removal until targets
2334 2013-06-05 David Edelsohn <dje.gcc@gmail.com>
2336 * config/rs6000/rs6000.c (print_operand, 'z'): Use DECL_PRESERVE_P
2337 instead of mark_decl_referenced.
2339 2013-06-05 Jan Hubicka <jh@suse.cz>
2341 * cgraph.c (cgraph_remove_node): Clear forced_by_abi.
2342 (cgraph_node_cannot_be_local_p_1): Honnor symbol.forced_by_abi
2343 and symtab_used_from_object_file_p.
2344 (cgraph_make_node_local_1): Clear forced_by_abi.
2345 (cgraph_can_remove_if_no_direct_calls_and): Use forced_by_abi
2346 * cgraph.h (symtab_node_base): Add forced_by_abi.
2347 (decide_is_variable_needed): Remove.
2348 (varpool_can_remove_if_no_refs): Honnor symbol.forced_by_abi.
2349 * cgraphunit.c (cgraph_decide_is_function_needed): Rename to ..
2350 (decide_is_symbol_needed): ... this one; handle symbols in general;
2351 always analyze virtuals; honnor forced_by_abi.
2352 (cgraph_finalize_function): Update.
2353 (varpool_finalize_decl): Update.
2354 (symbol_defined_and_needed): Remove.
2355 (analyze_functions): Update.
2356 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
2357 output_refs, input_overwrite_node): Handle forced_by_abi.
2358 * ipa.c (cgraph_address_taken_from_non_vtable_p): Rename to ...
2359 (address_taken_from_non_vtable_p): ... this one.
2360 (comdat_can_be_unshared_p_1): New function.
2361 (cgraph_comdat_can_be_unshared_p): Rename to ...
2362 (comdat_can_be_unshared_p): ... this one; handle symbols in general.
2363 (varpool_externally_visible_p): Use comdat_can_be_unshared_p.
2364 (function_and_variable_visibility): Clear forced_by_abi as needed.
2365 * trans-mem.c (ipa_tm_mark_forced_by_abi_node): New functoin.
2366 (ipa_tm_create_version_alias, ipa_tm_create_version): Update.
2367 * symtab.c (dump_symtab_base): Dump forced_by_abi.
2368 * varpool.c (decide_is_variable_needed): Remove.
2370 2013-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2372 * config/arm/arm.c (MAX_INSN_PER_IT_BLOCK): New macro.
2373 (arm_option_override): Override arm_restrict_it where appropriate.
2374 (thumb2_final_prescan_insn): Use MAX_INSN_PER_IT_BLOCK.
2375 * config/arm/arm.opt (mrestrict-it): New command-line option.
2376 * doc/invoke.texi: Document -mrestrict-it.
2378 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2380 * tsan.c (tsan_atomic_table): Make const.
2382 2013-06-05 Richard Biener <rguenther@suse.de>
2384 * tree-streamer.c (streamer_tree_cache_insert_1): Update the
2385 index associated with the tree we are supposed to replace.
2386 * tree-streamer-out.c (pack_ts_base_value_fields): Output
2387 TREE_ASM_WRITTEN as zero for everything but SSA names.
2389 2013-06-05 David Malcolm <dmalcolm@redhat.com>
2391 * tree-ssa-structalias.c (call_stmt_vars): Make static.
2393 2013-06-04 Jan Hubicka <jh@suse.cz>
2395 * lto-cgraph.c (get_alias_symbol): Remove weakref sanity check.
2396 (input_node, input_varpool_node): Handle correctly external same
2398 * ipa.c (symtab_remove_unreachable_nodes): Do not remove external
2399 nodes at ltrans stage.
2401 2013-06-04 Jan Hubicka <jh@suse.cz>
2403 * ipa-inline.c (update_caller_keys): Fix availability test.
2404 (update_callee_keys): Likewise.
2405 * symtab.c (symtab_alias_ultimate_target): Make availaiblity logic
2406 to follow ELF standard.
2408 2013-06-04 Jürgen Urban <JuergenUrban@gmx.de>
2410 * config.gcc (mipsr5900-*-elf*, mipsr5900el-*-elf*, mips64r5900-*-elf*)
2411 (mips64r5900el-*-elf*): New configurations.
2412 * config/mips/mips-cpus.def (r5900): New processor.
2413 * config/mips/mips-tables.opt: Regenerate.
2414 * config/mips/mips.c (mips_rtx_cost_data): Add an R5900 entry.
2415 (mips_issue_rate): Handle PROCESSOR_R5900.
2416 (mips_reorg_process_insns): Force reorder mode for the R5900.
2417 * config/mips/mips.h (TARGET_MIPS5900): Define.
2418 (ISA_HAS_CONDMOVE, ISA_HAS_PREFETCH, ISA_HAS_HILO_INTERLOCKS): Include
2420 (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY, ISA_HAS_FCMP_DELAY): Exclude
2422 * config/mips/mips.md (processor): Add r5900.
2423 (MOVECC): Disallow CCmode conditions for TARGET_MIPS5900.
2425 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2427 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Call
2428 into function to generate MOVI instruction.
2429 * config/aarch64/aarch64.c (aarch64_simd_container_mode): New function.
2430 (aarch64_preferred_simd_mode): Turn into wrapper.
2431 (aarch64_output_scalar_simd_mov_immediate): New function.
2432 * config/aarch64/aarch64-protos.h: Add prototype for above.
2434 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2436 * config/aarch64/aarch64.c (simd_immediate_info): Remove
2437 element_char member.
2438 (sizetochar): Return signed char.
2439 (aarch64_simd_valid_immediate): Remove elchar and other
2440 unnecessary variables.
2441 (aarch64_output_simd_mov_immediate): Take rtx instead of &rtx.
2442 Calculate element_char as required.
2443 * config/aarch64/aarch64-protos.h: Update and move prototype
2444 for aarch64_output_simd_mov_immediate.
2445 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
2448 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2450 * config/aarch64/aarch64.c (simd_immediate_info): Struct to hold
2451 information completed by aarch64_simd_valid_immediate.
2452 (aarch64_legitimate_constant_p): Update arguments.
2453 (aarch64_simd_valid_immediate): Work with struct rather than many
2455 (aarch64_simd_scalar_immediate_valid_for_move): Update arguments.
2456 (aarch64_simd_make_constant): Update arguments.
2457 (aarch64_output_simd_mov_immediate): Work with struct rather than
2458 many pointers. Output immediate directly rather than as operand.
2459 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2461 * config/aarch64/constraints.md (Dn): Update arguments.
2463 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2465 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): No
2467 (aarch64_simd_immediate_valid_for_move): Remove.
2468 (aarch64_simd_scalar_immediate_valid_for_move): Update call.
2469 (aarch64_simd_make_constant): Update call.
2470 (aarch64_output_simd_mov_immediate): Update call.
2471 * config/aarch64/aarch64-protos.h (aarch64_simd_valid_immediate):
2473 * config/aarch64/constraints.md (Dn): Update call.
2475 2013-06-04 Ian Bolton <ian.bolton@arm.com>
2477 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Change
2478 return type to bool for prototype.
2479 (aarch64_legitimate_constant_p): Check for true instead of not -1.
2480 (aarch64_simd_valid_immediate): Fix up each return to return a bool.
2481 (aarch64_simd_immediate_valid_for_move): Update retval for bool.
2483 2013-06-04 Catherine Moore <clm@codesourcery.com>
2485 * config/mips/mips.opt (meva): New.
2486 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_eva.
2487 (ASM_SPEC): Handle -meva.
2488 * doc/invoke.texi (meva): Document.
2490 2013-06-04 Alan Modra <amodra@gmail.com>
2492 * config/rs6000/rs6000.c (output_toc): Correct little-endian float
2495 2013-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2497 * rtl.def: Add extra fourth optional field to define_cond_exec.
2498 * gensupport.c (process_one_cond_exec): Process attributes from
2500 * doc/md.texi: Document fourth field in define_cond_exec.
2502 2013-06-04 Eric Botcazou <ebotcazou@adacore.com>
2504 * expmed.c (extract_bit_field_1): In the larger-than-a-word case, factor
2505 out the processing order as in store_bit_field_1.
2507 2013-06-04 Jan Hubicka <jh@suse.cz>
2510 * cgraphunit.c (cgraph_process_same_body_aliases): Create
2511 non-VAR_DECL node if it does not exist yet.
2513 2013-06-03 Richard Sandiford <rdsandiford@googlemail.com>
2515 * config.gcc (mipsisa64sr71k-*-elf*, mipsisa64sb1-*-elf*)
2516 (mipsisa64sb1el-*-elf*, mips64-*-elf*, mips64el-*-elf*)
2517 (mips64orion-*-elf*, mips64orionel-*-elf*): Remove
2518 target_cpu_default setting.
2520 2013-06-03 Teresa Johnson <tejohnson@google.com>
2522 * dumpfile.c (opt_info_switch_p): Change -fopt-info
2523 default to -fopt-info=optimized instead of all.
2524 * doc/invoke.texi: Ditto.
2525 * tree-vectorizer.c (vectorize_loops): Emit loop vectorization
2526 success under MSG_OPTIMIZED_LOCATIONS, and use dump_printf_loc.
2527 (execute_vect_slp): Emit BB vectorization success under
2528 MSG_OPTIMIZED_LOCATIONS.
2529 * tree-vect-slp.c (vect_slp_transform_bb): Change
2530 MSG_OPTIMIZED_LOCATIONS to MSG_NOTE.
2531 * tree-vect-loop.c (vect_transform_loop): Ditto.
2533 2013-06-03 Jason Merrill <jason@redhat.com>
2536 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2537 Use TARGET_EXPR for C++.
2539 2013-06-03 Jakub Jelinek <jakub@redhat.com>
2541 PR rtl-optimization/57268
2542 * sched-deps.c (sched_analyze_2): Don't flush_pending_lists
2543 if DEBUG_INSN_P (insn).
2546 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2548 PR rtl-optimization/57268
2549 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2550 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2552 2013-06-03 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2554 * config/i386/i386.c (ix86_lea_outperforms): Fix formatting.
2555 (ix86_avoid_lea_for_addr): Likewise.
2556 (exact_dependency_1): Likewise.
2557 (ix86_adjust_cost): Likewise.
2558 (swap_top_of_ready_list): Fix formatting and !reload_completed check
2560 (do_reorder_for_imul): Fix typo, formatting and
2561 !reload_completed check removed.
2562 (ix86_sched_reorder): Fix typo and formatting.
2563 (fold_builtin_cpu): Move M_INTEL_SLM at the end of processor types
2566 2013-06-03 Sofiane Naci <sofiane.naci@arm.com>
2568 * config/aarch64/aarch64.md (*movdi_aarch64): Define "simd" attribute.
2570 2013-06-03 Eric Botcazou <ebotcazou@adacore.com>
2572 * varasm.c (output_constant) <CONSTRUCTOR>: Minor formatting tweak.
2573 <STRING_CST>: Likewise.
2574 <VECTOR_CST>: Likewise.
2576 2013-06-01 Janus Weil <janus@gcc.gnu.org>
2577 Mikael Morin <mikael@gcc.gnu.org>
2579 * configure.ac: Add AC_HEADER_TIOCGWINSZ macro.
2580 * config.in: Regenerated.
2581 * configure: Regenerated.
2583 2013-06-01 Jan Hubicka <jh@suse.cz>
2586 * cgraphunit.c (compile): When weakref is not supported,
2587 set up transparent aliases before final output pass.
2588 * varasm.c (assemble_alias): Do not try to do it here.
2590 2013-06-01 Jan Hubicka <jh@suse.cz>
2593 * passes.c (for_per_function): Skip unanalyzed functions.
2595 2013-06-01 Jan Hubicka <jh@suse.cz>
2597 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Rename to ...
2598 (lto_symtab_merge_symbols_1): ... this one.
2599 (lto_symtab_merge_cgraph_nodes): Rename to ...
2600 (lto_symtab_merge_symbols): ... this one; simplify.
2601 * cgraph.c (same_body_aliases_done): Rename to ...
2602 (cpp_implicit_aliases_done): ... this one.
2603 (cgraph_create_function_alias): Update.
2604 (cgraph_same_body_alias): Update.
2605 (dump_cgraph_node): Remove alias dumping; simplify thunk dumping.
2606 (verify_edge_corresponds_to_fndecl): Simplify.
2607 * cgraph.h (symtab_node_base): Add cpp_implicit_alias, alias_target.
2608 (cgraph_node): Remove same_body_alias.
2609 (varpool_node): Remove alias_of and extra_name_alias.
2610 (same_body_aliases_done): Rename to ..
2611 (cpp_implicit_aliases_done): ... this one.
2612 (symtab_alias_ultimate_target): Add default parameter.
2613 (symtab_resolve_alias): New function.
2614 (fixup_same_cpp_alias_visibility): Declare.
2615 (cgraph_function_node): Add default parameter.
2616 (cgraph_node_asm_name): Likewise.
2617 (cgraph_function_or_thunk_node): Add default parameter; do
2618 not ICE when it is NULL.
2619 (varpool_variable_node): Likewise.
2620 * tree-emutls.c (create_emultls_var): Update.
2621 (ipa_lower_emutls): Update.
2622 * cgraphunit.c (cgraph_decide_is_function_needed): Update.
2623 (cgraph_reset_node): Reset alias info.
2624 (cgraph_finalize_function): Update.
2625 (fixup_same_cpp_alias_visibility): Move to symtab.c.
2626 (analyze_function): Simplify.
2627 (cgraph_process_same_body_aliases): Simplify.
2628 (analyze_functions): Fixup same body aliases.
2629 (handle_alias_pairs): Simplify.
2630 (assemble_thunk): Update.
2631 (assemble_thunks_and_aliases): Update.
2632 (output_weakrefs): Rewrite.
2633 * lto-cgraph.c (lto_output_node): Rewrite alias handling.
2634 (lto_output_varpool_node): Likewise.
2635 (compute_ltrans_boundary): Remve assert.
2636 (get_alias_symbol): New functoin.
2637 (input_node): Rewrite alias handling.
2638 (input_varpool_node): Likewise.
2639 * ipa-pure-const.c (propagate_pure_const): Fix formating.
2640 * ipa.c (process_references): Handle weakrefs correctly.
2641 (symtab_remove_unreachable_nodes): Likewise.
2642 * trans-mem.c (get_cg_data): Update.
2643 (ipa_tm_create_version_alias): Update.
2644 (ipa_tm_execute): Update.
2645 * symtab.c (dump_symtab_base): Dump aliases.
2646 (verify_symtab_base): Verify aliases.
2647 (symtab_node_availability): New function.
2648 (symtab_alias_ultimate_target): Simplify.
2649 (fixup_same_cpp_alias_visibility): Move here from cgraphunit.c;
2650 handle all the fixup cases.
2651 (symtab_resolve_alias): New function.
2652 * passes.c (ipa_write_summaries): Handle weakrefs.
2653 * varpool.c (varpool_analyze_node): Simplify.
2654 (assemble_aliases): Update.
2655 (varpool_create_variable_alias): Simplify.
2656 (varpool_extra_name_alias): Simplify.
2657 * lto-streamer.h (lto_symtab_merge_cgraph_nodes): Rename to...
2658 (lto_symtab_merge_symbols): ... this one.
2660 2013-06-01 Dinar Temirbulatov <dinar@kugelworks.com>
2663 PR rtl-optimization/57268
2664 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2665 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2667 2013-06-01 Tobias Burnus <burnus@net-b.de>
2670 2013-05-31 Tobias Burnus <burnus@net-b.de>
2673 * tree-ssa-math-opts.c (execute_cse_sincos): Move check
2676 2013-05-31 Dinar Temirbulatov <dinar@kugelworks.com>
2678 PR rtl-optimization/57268
2679 * sched-deps.c (sched_analyze_2): Flush dependence lists if
2680 the sum of the read and write lists exceeds MAX_PENDING_LIST_LENGTH.
2682 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2684 * config/rs6000/predicates.md (rs6000_cbranch_operator): Accept some
2685 unordered comparison operators when -fno-trapping-math is in effect
2687 * config/rs6000/rs6000.c (rs6000_generate_compare): Remove dead code
2688 and implement unordered comparison operators properly on the e500.
2690 2013-05-31 Eric Botcazou <ebotcazou@adacore.com>
2692 * simplify-rtx.c (simplify_byte_swapping_operation): Use proper macro
2693 for constant scalar integers.
2694 (simplify_relational_operation_1): Likewise.
2696 2013-05-31 Segher Boessenkool <segher@kernel.crashing.org>
2698 * config/rs6000/rs6000-opts.h (enum processor_type): Reorder.
2699 * config/rs6000/rs6000.md (cpu): Reorder. Split long line.
2702 2013-05-31 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2703 Igor Zamyatin <igor.zamyatin@intel.com>
2705 Silvermont (SLM) architecture performance tuning.
2706 * config/i386/i386.h (enum ix86_tune_indices): Add
2707 X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS.
2708 (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS): New define.
2710 * config/i386/i386.c (initial_ix86_tune_features)
2711 <X86_TUNE_SPLIT_MEM_OPND_FOR_FP_CONVERTS>: Initialize.
2712 (ix86_lea_outperforms): Handle Silvermont tuning.
2713 (ix86_avoid_lea_for_add): Add new argument to ix86_lea_outperforms
2715 (ix86_use_lea_for_mov): Likewise.
2716 (ix86_avoid_lea_for_addr): Likewise.
2717 (ix86_lea_for_add_ok): Likewise.
2718 (exact_dependency_1): New function.
2719 (exact_store_load_dependency): Likewise.
2720 (ix86_adjust_cost): Handle Silvermont tuning.
2721 (do_reoder_for_imul): Likewise.
2722 (swap_top_of_ready_list): New function.
2723 (ix86_sched_reorder): Changed to handle Silvermont tuning.
2725 * config/i386/i386.md (peepholes that split memory operand in fp
2728 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2730 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2731 Remove un-necessary braces.
2733 2013-05-31 Marcus Shawcroft <marcus.shawcroft@arm.com>
2735 * config/aarch64/aarch64.c (aarch64_classify_symbol):
2736 Use SYMBOL_TINY_ABSOLUTE for AARCH64_CMODEL_TINY_PIC.
2738 2013-05-31 Tobias Burnus <burnus@net-b.de>
2741 * tree-ssa-math-opts.c (execute_cse_sincos): Move check further up.
2743 2013-05-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2746 * config/arm/arm.c (const_ok_for_dimode_op): Handle IOR.
2747 * config/arm/arm.md (*iordi3_insn): Change to insn_and_split.
2748 * config/arm/neon.md (iordi3_neon): Remove.
2749 (neon_vorr<mode>): Generate iordi3 instead of iordi3_neon.
2750 * config/arm/predicates.md (imm_for_neon_logic_operand):
2751 Move to earlier in the file.
2752 (neon_logic_op2): Likewise.
2753 (arm_iordi_operand_neon): New predicate.
2755 2013-05-31 Richard Biener <rguenther@suse.de>
2757 PR tree-optimization/57478
2758 PR tree-optimization/57453
2759 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Uses in PHI nodes
2762 2013-05-31 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
2764 * config/rl78/rl78.md (mulqi3,mulhi3): New define_expands.
2765 (*mulqi3_rl78,*mulhi3_rl78,*mulhi3_g13): New define_insns.
2767 2013-05-30 Tobias Burnus <burnus@net-b.de>
2768 Thomas Koenig <tkoenig@gcc.gnu.org>
2771 * tree-ssa-math-opts.c (execute_cse_sincos): Optimize
2772 powi (-1.0, k) to (k & 1) ? -1.0 : 1.0.
2774 2013-05-30 Steven Bosscher <steven@gcc.gnu.org>
2776 * rtlanal.c (tablejump_p): Expect table and label to be adjacent.
2778 2013-05-30 Vladimir Makarov <vmakarov@redhat.com>
2780 * target.def (register_usage_leveling_p): New hook.
2781 * targhooks.c (default_register_usage_leveling_p): New.
2782 * targhooks.h (default_register_usage_leveling_p): New prototype.
2783 * lra-assigns.c (register_usage_leveling_p): Use the hook.
2784 * doc/tm.texi.in (TARGET_REGISTER_USAGE_LEVELING_P): New hook.
2785 * doc/tm.texi: Update.
2786 * config/i386/i386.c (TARGET_REGISTER_USAGE_LEVELING_P): Define.
2788 2013-05-30 Ian Bolton <ian.bolton@arm.com>
2790 * config/aarch64/aarch64.md (insv<mode>): New define_expand.
2791 (*insv_reg<mode>): New define_insn.
2793 2013-05-30 Joern Rennecke <joern.rennecke@embecosm.com>
2795 PR rtl-optimization/57439
2796 * postreload.c (move2add_valid_value_p): Check that we have
2797 a zero subreg_regno_offset when accessing the register in
2800 2013-05-30 Yuri Rumyantsev <yuri.s.rumyantsev@intel.com>
2801 Igor Zamyatin <igor.zamyatin@intel.com>
2803 Silvermont (SLM) architecture pipeline model, tuning and
2805 * config.gcc: Add slm config options and target.
2807 * config/i386/slm.md: New.
2809 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
2811 * gcc/config/i386/i386-c.c (ix86_target_macros_internal): New case
2813 (ix86_target_macros_internal): Likewise.
2815 * gcc/config/i386/i386.c (slm_cost): New cost.
2816 (m_SLM): New macro flag.
2817 (initial_ix86_tune_features): Set m_SLM.
2818 (x86_accumulate_outgoing_args): Likewise.
2819 (x86_arch_always_fancy_math_387): Likewise.
2820 (processor_target_table): Add slm cost.
2821 (cpu_names): Add slm cpu name.
2822 (x86_option_override_internal): Set SLM ISA.
2823 (ix86_issue_rate): New case PROCESSOR_SLM.
2824 (ia32_multipass_dfa_lookahead): Likewise.
2825 (fold_builtin_cpu): Add slm.
2827 * config/i386/i386.h (TARGET_SLM): New target macro.
2828 (target_cpu_default): Add TARGET_CPU_DEFAULT_slm.
2829 (processor_type): Add PROCESSOR_SLM.
2831 * config/i386/i386.md (cpu): Add new value "slm".
2832 (slm.md): Include slm.md.
2834 2013-05-30 Bernd Schmidt <bernds@codesourcery.com>
2835 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2837 * config/arm/arm-protos.h: Add and update function protos.
2838 * config/arm/arm.c (use_simple_return_p): New added.
2839 (thumb2_expand_return): Check simple_return flag.
2840 * config/arm/arm.md: Add simple_return and conditional simple_return.
2841 * config/arm/iterators.md: Add iterator for return and simple_return.
2843 2013-05-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
2845 * config/arm/arm.c (arm_add_cfa_adjust_cfa_note): New added.
2846 (arm_emit_multi_reg_pop): Add REG_CFA_ADJUST_CFA notes.
2847 (arm_emit_vfp_multi_reg_pop): Likewise.
2848 (thumb2_emit_ldrd_pop): Likewise.
2849 (arm_expand_epilogue): Add misc REG_CFA notes.
2850 (arm_unwind_emit): Skip REG_CFA_ADJUST_CFA and REG_CFA_RESTORE.
2852 2013-05-29 Lawrence Crowl <crowl@google.com>
2854 * config/arm/t-arm: Update for below.
2856 * config/arm/arm.c (arm_libcall_uses_aapcs_base::libcall_htab):
2857 Change type to hash_table. Update dependent calls and types.
2859 * config/i386/t-cygming: Update for below.
2861 * config/i386/t-interix: Update for below.
2863 * config/i386/winnt.c (i386_pe_section_type_flags::htab):
2864 Change type to hash_table. Update dependent calls and types.
2865 (i386_find_on_wrapper_list::wrappers): Likewise.
2867 * config/ia64/t-ia64: Update for below.
2869 * config/ia64/ia64.c (bundle_state_table):
2870 Change type to hash_table. Update dependent calls and types.
2872 * config/mips/mips.c (mips_reorg_process_insns::htab):
2873 Change type to hash_table. Update dependent calls and types.
2875 * config/sol2.c (solaris_comdat_htab):
2876 Change type to hash_table. Update dependent calls and types.
2878 * config/t-sol2: Update for above.
2880 2013-05-29 Teresa Johnson <tejohnson@google.com>
2882 * passes.c (dump_passes): Use FOR_EACH_FUNCTION since
2883 functions are not yet marked as defined.
2885 2013-05-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2886 Pat Haugen <pthaugen@us.ibm.com>
2887 Peter Bergner <bergner@vnet.ibm.com>
2889 * config/rs6000/vector.md (VEC_I): Add support for new power8 V2DI
2893 (vrotl<mode>3): Likewise.
2894 (vashl<mode>3): Likewise.
2895 (vlshr<mode>3): Likewise.
2896 (vashr<mode>3): Likewise.
2898 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2899 support for power8 V2DI builtins.
2901 * config/rs6000/rs6000-builtin.def (abs_v2di): Add support for
2902 power8 V2DI builtins.
2903 (vupkhsw): Likewise.
2904 (vupklsw): Likewise.
2905 (vaddudm): Likewise.
2910 (vpkudum): Likewise.
2911 (vpksdss): Likewise.
2912 (vpkudus): Likewise.
2913 (vpksdus): Likewise.
2918 (vsubudm): Likewise.
2919 (vcmpequd): Likewise.
2920 (vcmpgtsd): Likewise.
2921 (vcmpgtud): Likewise.
2922 (vcmpequd_p): Likewise.
2923 (vcmpgtsd_p): Likewise.
2924 (vcmpgtud_p): Likewise.
2925 (vupkhsw): Likewise.
2926 (vupklsw): Likewise.
2927 (vaddudm): Likewise.
2932 (vpksdss): Likewise.
2933 (vpksdus): Likewise.
2934 (vpkudum): Likewise.
2935 (vpkudus): Likewise.
2940 (vsubudm): Likewise.
2942 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2943 support for power8 V2DI instructions.
2945 * config/rs6000/altivec.md (UNSPEC_VPKUHUM): Add support for
2946 power8 V2DI instructions. Combine pack and unpack insns to use an
2947 iterator for each mode. Check whether a particular mode supports
2948 Altivec instructions instead of just checking TARGET_ALTIVEC.
2949 (UNSPEC_VPKUWUM): Likewise.
2950 (UNSPEC_VPKSHSS): Likewise.
2951 (UNSPEC_VPKSWSS): Likewise.
2952 (UNSPEC_VPKUHUS): Likewise.
2953 (UNSPEC_VPKSHUS): Likewise.
2954 (UNSPEC_VPKUWUS): Likewise.
2955 (UNSPEC_VPKSWUS): Likewise.
2956 (UNSPEC_VPACK_SIGN_SIGN_SAT): Likewise.
2957 (UNSPEC_VPACK_SIGN_UNS_SAT): Likewise.
2958 (UNSPEC_VPACK_UNS_UNS_SAT): Likewise.
2959 (UNSPEC_VPACK_UNS_UNS_MOD): Likewise.
2960 (UNSPEC_VUPKHSB): Likewise.
2961 (UNSPEC_VUNPACK_HI_SIGN): Likewise.
2962 (UNSPEC_VUNPACK_LO_SIGN): Likewise.
2963 (UNSPEC_VUPKHSH): Likewise.
2964 (UNSPEC_VUPKLSB): Likewise.
2965 (UNSPEC_VUPKLSH): Likewise.
2967 (VI_char): Likewise.
2968 (VI_scalar): Likewise.
2969 (VI_unit): Likewise.
2971 (VP_small): Likewise.
2972 (VP_small_lc): Likewise.
2973 (VU_char): Likewise.
2974 (add<mode>3): Likewise.
2975 (altivec_vaddcuw): Likewise.
2976 (altivec_vaddu<VI_char>s): Likewise.
2977 (altivec_vadds<VI_char>s): Likewise.
2978 (sub<mode>3): Likewise.
2979 (altivec_vsubcuw): Likewise.
2980 (altivec_vsubu<VI_char>s): Likewise.
2981 (altivec_vsubs<VI_char>s): Likewise.
2982 (altivec_vavgs<VI_char>): Likewise.
2983 (altivec_vcmpbfp): Likewise.
2984 (altivec_eq<mode>): Likewise.
2985 (altivec_gt<mode>): Likewise.
2986 (altivec_gtu<mode>): Likewise.
2987 (umax<mode>3): Likewise.
2988 (smax<mode>3): Likewise.
2989 (umin<mode>3): Likewise.
2990 (smin<mode>3): Likewise.
2991 (altivec_vpkuhum): Likewise.
2992 (altivec_vpkuwum): Likewise.
2993 (altivec_vpkshss): Likewise.
2994 (altivec_vpkswss): Likewise.
2995 (altivec_vpkuhus): Likewise.
2996 (altivec_vpkshus): Likewise.
2997 (altivec_vpkuwus): Likewise.
2998 (altivec_vpkswus): Likewise.
2999 (altivec_vpks<VI_char>ss): Likewise.
3000 (altivec_vpks<VI_char>us): Likewise.
3001 (altivec_vpku<VI_char>us): Likewise.
3002 (altivec_vpku<VI_char>um): Likewise.
3003 (altivec_vrl<VI_char>): Likewise.
3004 (altivec_vsl<VI_char>): Likewise.
3005 (altivec_vsr<VI_char>): Likewise.
3006 (altivec_vsra<VI_char>): Likewise.
3007 (altivec_vsldoi_<mode>): Likewise.
3008 (altivec_vupkhsb): Likewise.
3009 (altivec_vupkhs<VU_char>): Likewise.
3010 (altivec_vupkls<VU_char>): Likewise.
3011 (altivec_vupkhsh): Likewise.
3012 (altivec_vupklsb): Likewise.
3013 (altivec_vupklsh): Likewise.
3014 (altivec_vcmpequ<VI_char>_p): Likewise.
3015 (altivec_vcmpgts<VI_char>_p): Likewise.
3016 (altivec_vcmpgtu<VI_char>_p): Likewise.
3017 (abs<mode>2): Likewise.
3018 (vec_unpacks_hi_v16qi): Likewise.
3019 (vec_unpacks_hi_v8hi): Likewise.
3020 (vec_unpacks_lo_v16qi): Likewise.
3021 (vec_unpacks_hi_<VP_small_lc>): Likewise.
3022 (vec_unpacks_lo_v8hi): Likewise.
3023 (vec_unpacks_lo_<VP_small_lc>): Likewise.
3024 (vec_pack_trunc_v8h): Likewise.
3025 (vec_pack_trunc_v4si): Likewise.
3026 (vec_pack_trunc_<mode>): Likewise.
3028 * config/rs6000/altivec.h (vec_vaddudm): Add defines for power8
3030 (vec_vmaxsd): Likewise.
3031 (vec_vmaxud): Likewise.
3032 (vec_vminsd): Likewise.
3033 (vec_vminud): Likewise.
3034 (vec_vpksdss): Likewise.
3035 (vec_vpksdus): Likewise.
3036 (vec_vpkudum): Likewise.
3037 (vec_vpkudus): Likewise.
3038 (vec_vrld): Likewise.
3039 (vec_vsld): Likewise.
3040 (vec_vsrad): Likewise.
3041 (vec_vsrd): Likewise.
3042 (vec_vsubudm): Likewise.
3043 (vec_vupkhsw): Likewise.
3044 (vec_vupklsw): Likewise.
3046 2013-05-29 Jan Hubicka <jh@suse.cz>
3048 * cgraph.h (symtab_node_base): Add definition, alias and analyzed
3049 flags; reorder rest of fields in more consistent way.
3050 (varpool_node): Remove analyzed, finalized and alias.
3051 (cgraph_ndoe): Likewise.
3052 (symtab_alias_ultimate_target): New function.
3053 (cgraph_function_node): Move offline.
3054 (cgraph_reset_node): Declare.
3055 (cgraph_comdat_can_be_unshared_p): Remove.
3056 (varpool_remove_initializer): Declare.
3057 (varpool_first_defined_variable, varpool_next_defined_variable
3058 cgraph_first_defined_function, cgraph_next_defined_function): Update.
3059 (cgraph_function_with_gimple_body_p): Update.
3060 (varpool_all_refs_explicit_p): Update.
3061 (symtab_alias_target): New function.
3062 (cgraph_alias_aliased_node, varpool_alias_aliased_node): Rename to ...
3063 (cgraph_alias_target, varpool_alias_target): .. this one; simplify.
3064 (cgraph_function_or_thunk_node): Simplify using
3065 symtab_alias_ultimate_target.
3066 (varpool_variable_node): Likewise.
3067 * cgraph.c (cgraph_create_function_alias): Update.
3068 (cgraph_add_thunk): Update.
3069 (cgraph_remove_node): Update.
3070 (dump_cgraph_node): Do not dump removed flags.
3071 (cgraph_function_body_availability): Update.
3072 (cgraph_propagate_frequency): Update.
3073 (verify_cgraph_node): Check sanity of local flag.
3074 (cgraph_function_node): Move here from cgraph.h; revamp for
3075 cgraph_function_or_thunk_node.
3076 * lto-symtab.c (lto_varpool_replace_node): Update.
3077 (lto_symtab_resolve_can_prevail_p): Update.
3078 (lto_symtab_merge_cgraph_nodes): Update.
3079 * ipa-cp.c (determine_versionability, initialize_node_lattices,
3080 propagate_constants_accross_call, devirtualization_time_bonus,
3081 ipcp_propagate_stage): Update.
3082 * tree-emutls.c (create_emultls_var, ipa_lower_emutls): Update.
3083 * ipa-inline-transform.c (clone_inlined_nodes,
3084 preserve_function_body_p): Update.
3085 * ipa-reference.c (propagate): Update.
3086 (write_node_summary_p): Update.
3087 * toplev.c (wrapup_global_declaration_2): Update.
3088 * cgraphunit.c (cgraph_analyze_function): Rename to ...
3089 (analyze_function) ... this one.
3090 (cgraph_process_new_functions): Update.
3091 (cgraph_reset_node): Export.
3092 (cgraph_finalize_function): Update.
3093 (cgraph_add_new_function): Update.
3094 (process_function_and_variable_attributes): Update.
3095 (varpool_finalize_decl): Update.
3096 (symbol_finalized): Remove.
3097 (symbol_finalized_and_needed): Rename to ...
3098 (symbol_defined_and_needed): ... update.
3099 (cgraph_analyze_functions): Update.
3100 (handle_alias_pairs): Update.
3101 (mark_functions_to_output): Update.
3102 (assemble_thunk): Update.
3103 (output_in_order): Update.
3104 (output_weakrefs): Update.
3105 (finalize_compilation_unit): Update.
3106 * lto-cgraph.c (reachable_from_other_partition_p, lto_output_node,
3107 lto_output_varpool_node, compute_ltrans_boundary, input_overwrite_node,
3108 input_node, input_varpool_node): Update.
3109 * dbxout.c (dbxout_expand_expr): Update.
3110 * cgraphclones.c (cgraph_clone_node): Update.
3111 (cgraph_copy_node_for_versioning): Update.
3112 (cgraph_materialize_clone): Update.
3113 (cgraph_materialize_all_clones): Update.
3114 * ipa-pure-const.c (analyze_function, pure_const_write_summary,
3115 propagate_pure_const, propagate_nothrow): Update.
3116 * lto-streamer-out.c (lto_output, write_symbol): Update.
3117 * ipa-utils.c (ipa_reverse_postorder): Update.
3118 * ipa-inline.c (can_inline_edge_p): Update.
3119 (update_caller_keys, ipa_inline): Update.
3120 * dwarf2out.c (reference_to_unused,
3121 premark_types_used_by_global_vars_helper): Update.
3122 * tree-eh.c (tree_could_trap_p): Update.
3123 * ipa-split.c (consider_split, execute_split_functions): Update.
3124 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
3125 has_addr_references_p): Update; move ahead in file for better
3127 (process_references): Simplify.
3128 (symtab_remove_unreachable_nodes): Update; cleanup way function/var
3130 (cgraph_comdat_can_be_unshared_p): Make static.
3131 (cgraph_externally_visible_p): Update.
3132 (varpool_externally_visible_p): Update.
3133 (function_and_variable_visibility): Update.
3134 * trans-mem.c (get_cg_data, ipa_tm_mayenterirr_function,
3135 ipa_tm_mark_force_output_node): Update.
3136 * ipa-inline-analysis.c (dump_inline_summary, initialize_inline_failed,
3137 estimate_edge_devirt_benefit, inline_generate_summary,
3138 inline_write_summary): Update.
3139 * gimple-fold.c (can_refer_decl_in_current_unit_p): Update.
3140 * ipa-prop.c (ipa_compute_jump_functions): Update.
3141 (ipa_print_node_params, ipa_prop_read_section,
3142 ipa_update_after_lto_read, read_replacements_section): Update.
3143 * varasm.c (mark_decl_referenced): Update.
3144 (assemble_alias, dump_tm_clone_pairs): Update.
3145 * tree-inline.c (copy_bb): Update.
3146 (estimate_num_insns, optimize_inline_calls, tree_function_versioning):
3148 * symtab.c (dump_symtab_base): Print new flags.
3149 (verify_symtab_base): Verify new flags.
3150 (symtab_alias_ultimate_target): New function.
3151 * tree-ssa-structalias.c (get_constraint_for_ssa_var,
3152 create_variable_info_for, associate_varinfo_to_alias, ipa_pta_execute):
3154 * passes.c (ipa_write_summaries, ipa_write_optimization_summaries):
3156 * i386.c (ix86_get_function_versions_dispatcher,
3157 ix86_generate_version_dispatcher_body): Update.
3158 (fold_builtin_cpu): Use varpool_add_new_variable.
3159 * varpool.c (varpool_remove_initializer): Break out from ...
3160 (varpool_remove_node): ... this one.
3161 (dump_varpool_node, varpool_node_for_asm,
3162 cgraph_variable_initializer_availability, varpool_analyze_node,
3163 varpool_assemble_decl, varpool_remove_unreferenced_decls,
3164 varpool_finalize_named_section_flags, varpool_create_variable_alias):
3167 2013-05-29 Jan Hubicka <jh@suse.cz>
3169 * passes.c (init_optimization_passes): Move OMP expansion into lowering.
3171 2013-05-29 Easwaran Raman <eraman@google.com>
3173 PR tree-optimization/57442
3174 * tree-ssa-reassoc.c (appears_later_in_bb): Return correct value
3175 when control exits the main loop.
3177 2013-05-29 Sandeep Kumar Singh <Sandeep.Singh2@kpitcummins.com>
3179 * rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add macros for RX100, RX200,
3181 * rx/rx.opt: Add macro for rx100 with string rx100 and value RX100.
3182 * rx/rx-opts.h (rx_cpu_types): Add new cpu type rx100.
3183 * rx/t-rx: Add rx100 under multi library matches option for nofpu
3186 2013-05-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3188 PR tree-optimization/57441
3189 * gimple-ssa-strength-reduction.c (analyze_candidates_and_replace):
3190 Don't limit size of incr_vec to number of candidates.
3192 2013-05-29 Steve Ellcey <sellcey@imgtec.com>
3194 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Add micromips
3195 and mips16 directories.
3196 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Add micromips and mips16.
3197 (MULTILIB_DIRNAMES): Ditto.
3198 (MULTILIB_EXCEPTIONS): Add new exceptions.
3199 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Add micromips.
3200 (MULTILIB_DIRNAMES): Ditto.
3201 (MULTILIB_EXCEPTIONS): Add new exceptions.
3203 2012-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3204 Marcus Shawcroft <marcus.shawcroft@arm.com>
3206 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
3207 SYMBOL_TINY_ABSOLUTE.
3208 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Handle
3209 SYMBOL_TINY_ABSOLUTE.
3210 (aarch64_expand_mov_immediate): Likewise.
3211 (aarch64_classify_symbol): Likewise.
3212 (aarch64_mov_operand_p): Remove ATTRIBUTE_UNUSED.
3213 Permit SYMBOL_TINY_ABSOLUTE.
3214 * config/aarch64/predicates.md (aarch64_mov_operand): Permit CONST.
3216 2013-05-29 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3217 Marcus Shawcroft <marcus.shawcroft@arm.com>
3219 * config/aarch64/aarch64.c (aarch64_classify_symbol): Remove comment.
3220 Refactor if/switch. Replace gcc_assert with if.
3222 2013-05-29 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
3224 * config/i386/i386.c (initial_ix86_tune_features): Enable
3225 FP Reassociation for AMD bdver1 and bdver2.
3227 2013-05-29 Martin Jambor <mjambor@suse.cz>
3229 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REF, REALPART_EXPR
3230 and IMAGPART_EXPR do not occur within other handled_components.
3232 2013-05-29 Richard Biener <rguenther@suse.de>
3234 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Guard vinfo
3235 access on whether the use is in the BB we currently try to
3237 (vect_bb_vectorization_profitable_p): Pass the BB we currently
3238 vectorize to vect_bb_slp_scalar_cost.
3240 2013-05-29 Richard Biener <rguenther@suse.de>
3242 * tree-vect-slp.c (vect_bb_slp_scalar_cost): New function
3243 computing scalar cost offsetted by stmts that are kept live
3245 (vect_bb_vectorization_profitable_p): Use vect_bb_slp_scalar_cost
3246 for computation of scalar cost.
3248 2013-05-28 Steve Ellcey <sellcey@mips.com>
3250 * config/mips/mips-cpus.def (mips32r2): Change processor type.
3252 2013-05-28 Balaji V. Iyer <balaji.v.iyer@intel.com>
3254 * doc/extend.texi (C Extensions): Added documentation about Cilk Plus
3255 array notation built-in reduction functions.
3256 * doc/passes.texi (Passes): Added documentation about changes done
3258 * doc/invoke.texi (C Dialect Options): Added documentation about
3259 the -fcilkplus flag.
3260 * Makefile.in (C_COMMON_OBJS): Added c-family/array-notation-common.o.
3261 (BUILTINS_DEF): Depend on cilkplus.def.
3262 * builtins.def: Include cilkplus.def. Define DEF_CILKPLUS_BUILTIN.
3263 * builtin-types.def: Define BT_FN_INT_PTR_PTR_PTR.
3264 * cilkplus.def: New file.
3266 2013-05-28 Joern Rennecke <joern.rennecke@embecosm.com>
3268 PR rtl-optimization/57439
3269 * postreload.c (move2add_use_add2_insn): Use gen_lowpart_common.
3271 2013-05-28 Easwaran Raman <eraman@google.com>
3273 PR tree-optimization/57337
3274 * tree-ssa-reassoc.c (appears_later_in_bb): New function.
3275 (find_insert_point): Correctly identify the insertion point
3276 when two statements with the same UID is compared.
3278 2013-05-28 Richard Biener <rguenther@suse.de>
3280 PR tree-optimization/56787
3281 * tree-vect-data-refs.c (vect_analyze_data_refs): Drop clobbers
3282 from the list of data references.
3283 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
3285 (vect_analyze_loop_operations): Likewise.
3286 (vect_transform_loop): Remove clobbers.
3288 2013-05-28 Martin Jambor <mjambor@suse.cz>
3290 * tree-cfg.c (verify_expr): Verify that BIT_FIELD_REFs, IMAGPART_EXPRs
3291 and REALPART_EXPRs have scalar type.
3293 2013-05-28 Richard Biener <rguenther@suse.de>
3295 PR tree-optimization/57411
3296 * tree-ssa-copy.c (may_propagate_copy): Cannot propagate
3298 * tree-ssa-dom.c (eliminate_const_or_copy): Special-case
3299 virtual operand propagation.
3301 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3303 * config/sparc/sparc.c (sparc_expand_vec_perm_bmask): Use %g0 as
3304 destination register for bmasksi_vis.
3305 (vector_init_bshuffle): Likewise.
3306 * config/sparc/sparc.md (vec_perm_constv8qi): Likewise.
3308 2013-05-28 Eric Botcazou <ebotcazou@adacore.com>
3310 * doc/invoke.texi (SPARC Options): Document -mfix-ut699.
3311 * builtins.c (expand_builtin_mathfn) <BUILT_IN_SQRT>: Try to widen the
3312 mode if the instruction isn't available in the original mode.
3313 * config/sparc/sparc.opt (mfix-ut699): New option.
3314 * config/sparc/sparc.md (muldf3_extend): Disable if -mfix-ut699.
3315 (divdf3): Turn into expander.
3316 (divdf3_nofix): New insn.
3317 (divdf3_fix): Likewise.
3318 (divsf3): Disable if -mfix-ut699.
3319 (sqrtdf2): Turn into expander.
3320 (sqrtdf2_nofix): New insn.
3321 (sqrtdf2_fix): Likewise.
3322 (sqrtsf2): Disable if -mfix-ut699.
3324 2013-05-27 Richard Biener <rguenther@suse.de>
3327 * omp-low.c (expand_omp_atomic_pipeline): Use the correct latch
3328 block for the new loop.
3330 2013-05-27 Richard Biener <rguenther@suse.de>
3332 PR tree-optimization/57343
3333 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Do not
3334 use multiple_of_p if not TYPE_OVERFLOW_UNDEFINED.
3335 (number_of_iterations_cond): Do not build the folded tree.
3337 2013-05-27 Richard Biener <rguenther@suse.de>
3341 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3342 OEP_CONSTANT_ADDRESS_OF retained.
3344 PR tree-optimization/57417
3345 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Fix test
3347 (set_ssa_val_to): Compare addresses using
3348 get_addr_base_and_unit_offset.
3350 2013-05-27 Joern Rennecke <joern.rennecke@embecosm.com>
3352 PR rtl-optimization/56833
3353 * postreload.c (move2add_record_mode): New function.
3354 (move2add_record_sym_value, move2add_valid_value_p): Likewise.
3355 (move2add_use_add2_insn): Use move2add_record_sym_value.
3356 (move2add_use_add3_insn): Likewise.
3357 (reload_cse_move2add): Use move2add_valid_value_p and
3358 move2add_record_mode. Invalidate call-clobbered and REG_INC
3359 affected regs by setting reg_mode to VOIDmode.
3360 (move2add_note_store): Don't pretend the inside of a SUBREG is
3361 the actual destination. Invalidate single/leading registers by
3362 setting reg_mode to VOIDmode.
3363 Use move2add_record_sym_value, move2add_valid_value_p and
3364 move2add_record_mode.
3366 2013-05-27 Richard Biener <rguenther@suse.de>
3368 PR tree-optimization/57396
3369 * tree-affine.c (double_int_constant_multiple_p): Properly
3370 return false for val == 0 and div != 0.
3372 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3374 * config/mips/mips.h: Use #elif in preprocessor conditions.
3376 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3379 * config/mips/constraints.md (kl): New constraint.
3380 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Delete.
3381 (divmod<mode>4_internal): Rename to divmod<mode>4. Use "kl" as the
3382 constraint for operand 0. Split after CSE for MIPS16. Emit a move
3384 (udivmod<mode>4_internal): Likewise udivmod<mode>4.
3386 2013-05-25 Richard Sandiford <rdsandiford@googlemail.com>
3389 * config/mips/mips.c (mips_can_inline_p): New function.
3390 (TARGET_CAN_INLINE_P): Define.
3392 2013-05-25 Steven Bosscher <steven@gcc.gnu.org>
3394 * sched-int.h (ds_t, dw_t): Make unsigned int.
3395 Fix documentation that describes how all the ds_t bits are used.
3396 Reserve the last bit for delayed-branch scheduling.
3397 (BITS_PER_DEP_STATUS): Move to ds_t typedef.
3398 (BITS_PER_DEP_WEAK): Fix definition and documentation.
3399 (gen_dep_weak_1): Remove prototype.
3400 * sched-deps.c (get_dep_weak_1): Make static.
3401 * target.def (speculate_insn, needs_block_p, gen_spec_check,
3402 get_insn_spec_ds, get_insn_checked_ds): Adjust hook prototypes.
3403 * doc/tm.texi: Regenerate.
3404 * config/ia64/ia64.c (ia64_needs_block_p): Update prototype.
3406 2013-05-24 Steven Bosscher <steven@gcc.gnu.org>
3409 * haifa-sched.c (sched_extend_bb): Ignore DEBUG_INSNs.
3411 2013-05-24 Nathan Sidwell <nathan@codesourcery.com>
3412 Sandra Loosemore <sandra@codesourcery.com>
3414 * config.gcc (powerpc-*): Allow native for with-cpu.
3416 2013-05-24 Jeff Law <law@redhat.com>
3418 PR tree-optimization/57124
3419 * tree-vrp.c (simplify_cond_using_ranges): Only simplify a
3420 conversion feeding a condition if the range has an overflow
3421 if -fstrict-overflow. Add warnings for when we do make the
3424 2013-05-24 Dehao Chen <dehao@google.com>
3426 * tree-cfg.c (locus_discrim_map): Fix the typo.
3427 (locus_discrim_hasher): Likewise.
3428 (locus_discrim_hasher::hash): Likewise.
3429 (locus_discrim_hasher::equal): Likewise.
3431 2013-05-24 Martin Jambor <mjambor@suse.cz>
3433 PR tree-optimization/57294
3434 * cgraph.h (ipa_record_stmt_references): Declare.
3435 * cgraphbuild.c (ipa_record_stmt_references): New function.
3436 (build_cgraph_edges): Use ipa_record_stmt_references.
3437 (rebuild_cgraph_edges): Likewise.
3438 (cgraph_rebuild_references): Likewise.
3439 * ipa-prop.c (ipa_modify_call_arguments): Discard references
3440 associated with the old statement and build references from the
3441 newly built statements.
3442 * ipa-ref.c (ipa_remove_stmt_references): New function.
3443 * ipa-ref.h (ipa_remove_stmt_references): Declare.
3445 2013-05-24 Vladimir Makarov <vmakarov@redhat.com>
3447 * lra-constraints.c (emit_spill_move): Use smaller mode for
3449 (check_and_process_move): Consider mem-reg moves for secondary
3451 (curr_insn_transform): Don't lose insns emitted before for
3452 secondary memory moves.
3453 (inherit_in_ebb): Mark defined reg. Add usage only if it is not a
3454 reg set up in the current insn.
3456 2013-05-24 Dehao Chen <dehao@google.com>
3458 * tree-cfg.c (locus_descrim_hasher::hash): Change discriminator
3460 (locus_descrim_hasher::equal): Likewise.
3461 (build_gimple_cfg): New discriminator assignment algorithm.
3462 (make_edges): Likewise.
3463 (next_discriminator_for_locus): Likewise.
3464 (same_line_p): Likewise.
3465 (assign_discriminators): Likewise.
3466 (make_cond_expr_edges): Likewise.
3467 (make_gimple_switch_edges): Likewise.
3468 (make_goto_expr_edges): Likewise.
3469 (make_gimple_asm_edges): Likewise.
3471 2013-05-24 Ian Bolton <ian.bolton@arm.com>
3473 * config/aarch64/aarch64.c (aarch64_print_operand): Change the
3474 X format specifier to only display bottom 16 bits.
3475 * config/aarch64/aarch64.md (insv_imm<mode>): Allow any size of
3476 immediate to match for operand 2, since it will be masked.
3478 2013-05-24 Richard Biener <rguenther@suse.de>
3480 PR tree-optimization/57287
3481 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Disregard
3482 all SSA names that occur in abnormal PHIs.
3484 2013-05-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
3487 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Check
3488 that index is not negative.
3490 2013-05-24 Eric Botcazou <ebotcazou@adacore.com>
3492 PR rtl-optimization/55177
3493 * simplify-rtx.c (simplify_unary_operation_1) <NOT>: Deal with BSWAP.
3494 (simplify_byte_swapping_operation): New.
3495 (simplify_binary_operation_1): Call it for AND, IOR and XOR.
3496 (simplify_relational_operation_1): Deal with BSWAP.
3498 2013-05-23 Richard Henderson <rth@redhat.com>
3501 * config/i386/i386.c (ix86_seh_fixup_eh_fallthru): New.
3502 (ix86_reorg): Call it.
3504 2013-05-23 Uros Bizjak <ubizjak@gmail.com>
3507 * config/alpha/alpha.md (unspec): Add UNSPEC_XFLT_COMPARE.
3508 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Construct
3509 REG_EQUAL note as UNSPEC_XFLT_COMPARE unspec.
3511 2013-05-23 Christian Bruel <christian.bruel@st.com>
3514 * config/arm/arm.c (arm_dwarf_register_span): Do not use dbx number.
3516 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3517 Marcus Shawcroft <marcus.shawcroft@arm.com>
3519 * config/aarch64/aarch64.md (*movdi_aarch64): Replace Usa with S.
3520 * config/aarch64/constraints.md (Usa): Remove.
3521 * doc/md.texi (AArch64 Usa): Remove.
3523 2013-05-23 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
3524 Marcus Shawcroft <marcus.shawcroft@arm.com>
3526 * config/aarch64/aarch64-protos.h (aarch64_mov_operand_p): Define.
3527 * config/aarch64/aarch64.c (aarch64_mov_operand_p): Define.
3528 * config/aarch64/predicates.md (aarch64_const_address): Remove.
3529 (aarch64_mov_operand): Use aarch64_mov_operand_p.
3531 2013-05-23 Vidya Praveen <vidyapraveen@arm.com>
3533 * config/aarch64/aarch64-simd.md (clzv4si2): Support for CLZ
3534 instruction (AdvSIMD).
3535 * config/aarch64/aarch64-builtins.c
3536 (aarch64_builtin_vectorized_function): Handler for BUILT_IN_CLZ.
3537 * config/aarch64/aarch-simd-builtins.def: Entry for CLZ.
3539 2013-05-23 Martin Jambor <mjambor@suse.cz>
3542 * tree.h (contains_bitfld_component_ref_p): Declare.
3543 * tree-sra.c (contains_bitfld_comp_ref_p): Move...
3544 * tree.c (contains_bitfld_component_ref_p): ...here. Adjust its
3546 * ipa-prop.c (determine_known_aggregate_parts): Check that LHS does
3547 not access a bit-field. Assert all final offsets are byte-aligned.
3549 2013-05-23 Richard Biener <rguenther@suse.de>
3551 PR tree-optimization/57380
3552 * tree-ssa-phiprop.c (propagate_with_phi): Do not require at
3553 least one invariant or re-used load.
3554 * passes.c (init_optimization_passes): Move pass_phiprop before
3557 2013-05-23 James Greenhalgh <james.greenhalgh@arm.com>
3559 * config/aarch64/aarch64-simd.md
3560 (aarch64_cm<optab>di): Add clobber of CC_REGNUM to unsplit pattern.
3562 2013-05-23 Richard Biener <rguenther@suse.de>
3565 * fold-const.c (operand_equal_p): Compare FIELD_DECLs with
3566 OEP_CONSTANT_ADDRESS_OF retained.
3568 2013-05-23 Jakub Jelinek <jakub@redhat.com>
3571 * expmed.c (store_split_bit_field): If op0 is a REG or SUBREG of a REG,
3572 don't lower unit. Handle unit not being always BITS_PER_WORD.
3574 2013-05-23 Richard Biener <rguenther@suse.de>
3576 PR rtl-optimization/57341
3577 * ira.c (validate_equiv_mem_from_store): Use anti_dependence
3578 instead of true_dependence.
3580 2013-05-22 David Malcolm <dmalcolm@redhat.com>
3582 * bb-reorder.c (branch_threshold): Make const.
3583 (exec_threshold): Ditto.
3585 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3586 Pat Haugen <pthaugen@us.ibm.com>
3587 Peter Bergner <bergner@vnet.ibm.com>
3589 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions): Add
3590 documentation for the power8 crypto builtins.
3592 * config/rs6000/t-rs6000 (MD_INCLUDES): Add crypto.md.
3594 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_1): Add support
3595 macros for defining power8 builtin functions.
3596 (BU_P8V_AV_2): Likewise.
3597 (BU_P8V_AV_P): Likewise.
3598 (BU_P8V_VSX_1): Likewise.
3599 (BU_P8V_OVERLOAD_1): Likewise.
3600 (BU_P8V_OVERLOAD_2): Likewise.
3601 (BU_CRYPTO_1): Likewise.
3602 (BU_CRYPTO_2): Likewise.
3603 (BU_CRYPTO_3): Likewise.
3604 (BU_CRYPTO_OVERLOAD_1): Likewise.
3605 (BU_CRYPTO_OVERLOAD_2): Likewise.
3606 (XSCVSPDP): Fix typo, point to the correct instruction.
3607 (VCIPHER): Add power8 crypto builtins.
3608 (VCIPHERLAST): Likewise.
3609 (VNCIPHER): Likewise.
3610 (VNCIPHERLAST): Likewise.
3611 (VPMSUMB): Likewise.
3612 (VPMSUMH): Likewise.
3613 (VPMSUMW): Likewise.
3614 (VPERMXOR_V2DI): Likewise.
3615 (VPERMXOR_V4SI: Likewise.
3616 (VPERMXOR_V8HI: Likewise.
3617 (VPERMXOR_V16QI: Likewise.
3618 (VSHASIGMAW): Likewise.
3619 (VSHASIGMAD): Likewise.
3621 (VPERMXOR): Likewise.
3622 (VSHASIGMA): Likewise.
3624 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
3625 __CRYPTO__ if the crypto instructions are available.
3626 (altivec_overloaded_builtins): Add support for overloaded power8
3629 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
3630 support for power8 crypto builtins.
3631 (builtin_function_type): Likewise.
3632 (altivec_init_builtins): Add support for builtins that take vector
3633 long long (V2DI) arguments.
3635 * config/rs6000/crypto.md: New file, define power8 crypto
3638 2013-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
3639 Pat Haugen <pthaugen@us.ibm.com>
3640 Peter Bergner <bergner@vnet.ibm.com>
3642 * doc/invoke.texi (Option Summary): Add power8 options.
3643 (RS/6000 and PowerPC Options): Likewise.
3645 * doc/md.texi (PowerPC and IBM RS6000 constraints): Update to use
3646 constraints.md instead of rs6000.h. Reorder w* constraints. Add
3647 wm, wn, wr documentation.
3649 * gcc/config/rs6000/constraints.md (wm): New constraint for VSX
3650 registers if direct move instructions are enabled.
3651 (wn): New constraint for no registers.
3652 (wq): New constraint for quad word even GPR registers.
3653 (wr): New constraint if 64-bit instructions are enabled.
3654 (wv): New constraint if power8 vector instructions are enabled.
3655 (wQ): New constraint for quad word memory locations.
3657 * gcc/config/rs6000/predicates.md (const_0_to_15_operand): New
3658 constraint for 0..15 for crypto instructions.
3659 (gpc_reg_operand): If VSX allow registers in VSX registers as well
3660 as GPR and floating point registers.
3661 (int_reg_operand): New predicate to match only GPR registers.
3662 (base_reg_operand): New predicate to match base registers.
3663 (quad_int_reg_operand): New predicate to match even GPR registers
3664 for quad memory operations.
3665 (vsx_reg_or_cint_operand): New predicate to allow vector logical
3666 operations in both GPR and VSX registers.
3667 (quad_memory_operand): New predicate for quad memory operations.
3668 (reg_or_indexed_operand): New predicate for direct move support.
3670 * gcc/config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED):
3671 Inherit from ISA_2_4_MASKS, not ISA_2_2_MASKS.
3672 (ISA_2_7_MASKS_SERVER): New mask for ISA 2.07 (i.e. power8).
3673 (POWERPC_MASKS): Add power8 options.
3674 (power8 cpu): Use ISA_2_7_MASKS_SERVER instead of specifying the
3677 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
3678 Define _ARCH_PWR8 and __POWER8_VECTOR__ for power8.
3680 * gcc/config/rs6000/rs6000.opt (-mvsx-timode): Add documentation.
3681 (-mpower8-fusion): New power8 options.
3682 (-mpower8-fusion-sign): Likewise.
3683 (-mpower8-vector): Likewise.
3684 (-mcrypto): Likewise.
3685 (-mdirect-move): Likewise.
3686 (-mquad-memory): Likewise.
3688 * gcc/config/rs6000/rs6000.c (power8_cost): Initial definition for
3690 (rs6000_hard_regno_mode_ok): Make PTImode only match even GPR
3692 (rs6000_debug_reg_print): Print the base register class if -mdebug=reg.
3693 (rs6000_debug_vector_unit): Add p8_vector.
3694 (rs6000_debug_reg_global): If -mdebug=reg, print power8 constraint
3695 definitions. Also print fusion state.
3696 (rs6000_init_hard_regno_mode_ok): Set up power8 constraints.
3697 (rs6000_builtin_mask_calculate): Add power8 builtin support.
3698 (rs6000_option_override_internal): Add support for power8.
3699 (rs6000_common_init_builtins): Add debugging for skipped builtins
3701 (rs6000_adjust_cost): Add power8 support.
3702 (rs6000_issue_rate): Likewise.
3703 (insn_must_be_first_in_group): Likewise.
3704 (insn_must_be_last_in_group): Likewise.
3705 (force_new_group): Likewise.
3706 (rs6000_register_move_cost): Likewise.
3707 (rs6000_opt_masks): Likewise.
3709 * config/rs6000/rs6000.h (ASM_CPU_POWER8_SPEC): If we don't have a
3710 power8 capable assembler, default to power7 options.
3711 (TARGET_DIRECT_MOVE): Likewise.
3712 (TARGET_CRYPTO): Likewise.
3713 (TARGET_P8_VECTOR): Likewise.
3714 (VECTOR_UNIT_P8_VECTOR_P): Define power8 vector support.
3715 (VECTOR_UNIT_VSX_OR_P8_VECTOR_P): Likewise.
3716 (VECTOR_MEM_P8_VECTOR_P): Likewise.
3717 (VECTOR_MEM_VSX_OR_P8_VECTOR_P): Likewise.
3718 (VECTOR_MEM_ALTIVEC_OR_VSX_P): Likewise.
3719 (TARGET_XSCVDPSPN): Likewise.
3720 (TARGET_XSCVSPDPN): Likewsie.
3721 (TARGET_SYNC_HI_QI): Likewise.
3722 (TARGET_SYNC_TI): Likewise.
3723 (MASK_CRYPTO): Likewise.
3724 (MASK_DIRECT_MOVE): Likewise.
3725 (MASK_P8_FUSION): Likewise.
3726 (MASK_P8_VECTOR): Likewise.
3727 (REG_ALLOC_ORDER): Move fr13 to be lower in priority so that the TFmode
3728 temporary used by some of the direct move instructions to get two FP
3729 temporary registers does not force creation of a stack frame.
3730 (VLOGICAL_REGNO_P): Allow vector logical operations in GPRs.
3731 (MODES_TIEABLE_P): Move the VSX tests above the Altivec tests so
3732 that any VSX registers are tieable, even if they are also an
3733 Altivec vector mode.
3734 (r6000_reg_class_enum): Add wm, wr, wv constraints.
3735 (RS6000_BTM_P8_VECTOR): Power8 builtin support.
3736 (RS6000_BTM_CRYPTO): Likewise.
3737 (RS6000_BTM_COMMON): Likewise.
3739 * config/rs6000/rs6000.md (cpu attribute): Add power8.
3740 * config/rs6000/rs6000-opts.h (PROCESSOR_POWER8): Likewise.
3741 (enum rs6000_vector): Add power8 vector support.
3743 2013-05-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3747 * config/arm/arm.c (any_sibcall_uses_r3): Rename to ..
3748 (any_sibcall_could_use_r3): this and handle indirect calls.
3749 (arm_get_frame_offsets): Rename use of any_sibcall_uses_r3.
3751 2013-05-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3753 * config/rs6000/rs6000.h (MALLOC_ABI_ALIGNMENT): New #define.
3755 2013-05-22 Richard Biener <rguenther@suse.de>
3758 * profile.c (branch_prob): Do not split blocks that are
3759 abnormally receiving from ECF_RETURNS_TWICE functions.
3761 2013-05-22 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
3763 * recog.c (offsettable_address_addr_space_p): Fix calculation of
3764 address mode. Move pointer mode initialization to the same place.
3766 2013-05-22 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3768 * read-rtl.c (copy_rtx_for_iterators): Continue applying iterators
3769 while it has any effect.
3771 2013-05-21 Easwaran Raman <eraman@google.com>
3773 PR tree-optimization/57322
3774 * tree-ssa-reassoc.c (build_and_add_sum): If a BB is empty, set the
3775 UID of the statement added to the BB to be 1.
3777 2013-05-21 Jakub Jelinek <jakub@redhat.com>
3779 PR tree-optimization/57331
3780 * tree-vrp.c (simplify_cond_using_ranges): Don't optimize comparison
3781 of conversion from pointer type to integral type with integer.
3783 2013-05-21 Martin Jambor <mjambor@suse.cz>
3786 * ipa-prop.c (ipa_read_node_info): Process param_used and
3787 controlled_uses in the same order as when writing.
3789 2013-05-21 Magnus Granberg <baldrick@free.fr>
3792 * Makefile.in (PLUGIN_HEADERS): Add $(TARGET_H).
3794 2013-05-21 Richard Biener <rguenther@suse.de>
3796 PR tree-optimization/57318
3797 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Do not
3798 estimate stmts with side-effects as likely eliminated.
3800 2013-05-21 Richard Biener <rguenther@suse.de>
3802 PR tree-optimization/57330
3803 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Properly
3804 preserve the call stmts fntype.
3806 2013-05-21 Richard Biener <rguenther@suse.de>
3808 PR tree-optimization/57303
3809 * tree-ssa-sink.c (statement_sink_location): Improve killing
3810 stmt detection and properly handle self-assignments.
3812 2013-05-21 Christian Bruel <christian.bruel@st.com>
3814 * dwarf2out.c (multiple_reg_loc_descriptor): Use dbx_reg_number for
3815 spanning registers. LEAF_REG_REMAP is supported only for contiguous
3816 registers. Set register size out of the PARALLEL loop.
3818 2013-05-20 Oleg Endo <olegendo@gcc.gnu.org>
3821 * config/sh/sh.md (fmasf4): Remove empty constraints strings.
3822 (*fmasf4, *fmasf4_media): New insns.
3824 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3826 * config/mips/mips.h (BASE_INSN_LENGTH, NOP_INSN_LENGTH): New macros.
3827 * config/mips/mips.c (mips_symbol_insns, mips_address_insns)
3828 (mips_const_insns, mips_split_const_insns, mips_load_store_insns)
3829 (mips_idiv_insns): Update the comments to say that the returned
3830 instruction counts are in units of BASE_INSN_LENGTH.
3831 (mips_adjust_insn_length): Multiply the mips_load_label_num_insns
3832 by BASE_INSN_LENGTH rather than 4. Add the jump separately,
3833 using 2 rather than 4 as the length of indirect MIPS16 and
3834 microMIPS jumps. Use NOP_INSN_LENGTH rather than 4 as the
3835 length of a NOP. Don't divide MIPS16 lengths by 2.
3836 (mips16_split_long_branches): Assume a branch is long if the
3837 length is greater than 4 rather than 8.
3838 * config/mips/mips.md (length): Give MIPS16 lengths directly,
3839 rather than multiplying them by 2. Multiply instruction counts
3840 by BASE_INSN_LENGTH rather than 4.
3841 (*jump_mips16, tls_get_tp_mips16_<mode>)
3842 (*tls_get_tp_mips16_call_<mode>): Divide lengths by 2.
3844 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3846 * config/mips/mips.md (extended_mips16): Remove branch case.
3847 (length): Remove duplicated extended_mips16 test.
3849 2013-05-19 Richard Sandiford <rdsandiford@googlemail.com>
3851 * config/mips/t-sde: Don't build 64-bit microMIPS multilibs.
3853 2013-05-18 Richard Sandiford <rdsandiford@googlemail.com>
3855 * recog.h (Recog_data): Rename to...
3856 (recog_data_d): ...this.
3857 (recog_data): Update accordingly.
3858 * recog.c (recog_data): Likewise.
3859 * reload.c (save_recog_data): Likewise.
3860 * config/picochip/picochip.c (picochip_saved_recog_data): Likewise.
3861 (picochip_save_recog_data, picochip_restore_recog_data): Likewise.
3863 2013-05-17 Julian Brown <julian@codesourcery.com>
3865 * gcse.c (compute_ld_motion_mems): If a non-simple MEM is
3866 found in a REG_EQUAL note, invalidate it.
3868 2013-05-17 Easwaran Raman <eraman@google.com>
3870 * tree-ssa-reassoc.c (find_insert_point): New function.
3871 (insert_stmt_after): Likewise.
3872 (get_def_stmt): Likewise.
3873 (ensure_ops_are_available): Likewise.
3874 (not_dominated_by): Likewise.
3875 (rewrite_expr_tree): Do not move statements beyond what is
3876 necessary. Remove call to swap_ops_for_binary_stmt...
3877 (reassociate_bb): ... and move it here.
3878 (build_and_add_sum): Assign UIDs for new statements.
3879 (linearize_expr): Likewise.
3880 (do_reassoc): Renumber gimple statement UIDs.
3882 2013-05-17 Jan Hubicka <jh@suse.cz>
3884 * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module
3886 * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias.
3887 * cgraphunit.c (handle_alias_pairs): Store target of unresolved
3889 (output_weakrefs): Update.
3891 2013-05-17 Po-Chun Chang <pchang9@cs.wisc.edu>
3892 Martin Jambor <mjambor@suse.cz>
3895 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Break when a
3896 value that corresponds to the given aggval is found in values vector.
3898 2013-05-17 Uros Bizjak <ubizjak@gmail.com>
3900 * config/i386/driver-i386.c (host_detect_local_cpu): Pass mmx, 3dnow,
3901 sse, sse2, sse3, ssse3 and sse4a flags to options.
3903 2013-05-17 David Malcolm <dmalcolm@redhat.com>
3905 * gengtype-state.c: (s_expr_writer): New class, to handle
3906 prettifying of output layout of s-expressions.
3907 (state_writer): New class, to write out gtype.state.
3908 (state_written_type_count): Move this variable into member data of
3910 (s_expr_writer::s_expr_writer): New code: constructor for new class
3911 (state_writer::state_writer(): ditto
3912 (s_expr_writer::write_new_line): New function
3913 (s_expr_writer::write_any_indent): ditto
3914 (s_expr_writer::begin_s_expr): ditto
3915 (s_expr_writer::end_s_expr): ditto
3916 (write_state_fileloc): convert to method of state_writer...
3917 (state_writer:: write_state_fileloc): ...and use methods of
3918 s_expr_writer to write indentation into the gtype.state output file
3919 to visually represent the hierarchical structure of the list
3921 (write_state_fields): ditto, renaming to...
3922 (state_writer::write_state_fields)
3923 (write_state_a_string): ditto, renaming to...
3924 (state_writer::write_state_a_string)
3925 (write_state_string_option): ditto, renaming to...
3926 (state_writer::write_state_string_option)
3927 (write_state_type_option): ditto, renaming to...
3928 (state_writer::write_state_type_option)
3929 (write_state_nested_option): ditto, renaming to...
3930 (state_writer::write_state_nested_option)
3931 (write_state_option): ditto, renaming to...
3932 (state_writer::write_state_option)
3933 (write_state_options): ditto, renaming to...
3934 (state_writer::write_state_options)
3935 (write_state_lang_bitmap): ditto, renaming to...
3936 (state_writer::write_state_lang_bitmap)
3937 (write_state_version): ditto, renaming to...
3938 (state_writer::write_state_version)
3939 (write_state_scalar_type): ditto, renaming to...
3940 (state_writer::write_state_scalar_type)
3941 (write_state_string_type): ditto, renaming to...
3942 (state_writer::write_state_string_type)
3943 (write_state_undefined_type): ditto, renaming to...
3944 (state_writer::write_state_undefined_type)
3945 (write_state_struct_union_type): ditto, renaming to...
3946 (state_writer::write_state_struct_union_type)
3947 (write_state_struct_type): ditto, renaming to...
3948 (state_writer::write_state_struct_type)
3949 (write_state_user_struct_type): ditto, renaming to...
3950 (state_writer::write_state_user_struct_type)
3951 (write_state_lang_struct_type): ditto, renaming to...
3952 (state_writer::write_state_lang_struct_type)
3953 (write_state_param_struct_type): ditto, renaming to...
3954 (state_writer::write_state_param_struct_type)
3955 (write_state_pointer_type): ditto, renaming to...
3956 (state_writer::write_state_pointer_type)
3957 (write_state_array_type): ditto, renaming to...
3958 (state_writer::write_state_array_type)
3959 (write_state_gc_used): ditto, renaming to...
3960 (state_writer::write_state_gc_used)
3961 (write_state_common_type_content): ditto, renaming to...
3962 (state_writer::write_state_common_type_content)
3963 (write_state_type): ditto, renaming to...
3964 (state_writer::write_state_type)
3965 (write_state_pair_list): ditto, renaming to...
3966 (state_writer::write_state_pair_list)
3967 (write_state_pair): ditto, renaming to...
3968 (state_writer::write_state_pair)
3969 (write_state_typedefs): ditto, renaming to...
3970 (state_writer::write_state_typedefs)
3971 (write_state_structures): ditto, renaming to...
3972 (state_writer::write_state_structures)
3973 (write_state_param_structs): ditto, renaming to...
3974 (state_writer::write_state_param_structs)
3975 (write_state_variables): ditto, renaming to...
3976 (state_writer::write_state_variables)
3977 (write_state_srcdir): ditto, renaming to...
3978 (state_writer::write_state_srcdir)
3979 (write_state_files_list): ditto, renaming to...
3980 (state_writer::write_state_files_list)
3981 (write_state_languages): ditto, renaming to...
3982 (state_writer::write_state_languages)
3983 (write_state): create a state_writer instance and use it when
3984 writing out the state file
3986 2013-05-17 Mike Stump <mikestump@comcast.net>
3988 PR rtl-optimization/57304
3989 * web.c (union_match_dups): Ensure that DF_REF_LOC exists before
3990 accessing DF_REF_REAL_LOC.
3992 2013-05-17 Jakub Jelinek <jakub@redhat.com>
3994 PR rtl-optimization/57281
3995 PR rtl-optimization/57300
3996 * config/i386/i386.md (extendsidi2_1 dead reg splitter): Remove.
3997 (extendsidi2_1 peephole2s): Add instead 2 new peephole2s, that undo
3998 what the other splitter did if the registers are dead.
4000 2013-05-17 Richard Biener <rguenther@suse.de>
4002 * tree-ssa-alias.c (stmt_kills_ref_p_1): Properly compare
4005 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4007 * gcc.c (SANITIZER_SPEC): Reject -fsanitize=address -fsanitize=thread
4010 2013-05-17 Marek Polacek <polacek@redhat.com>
4012 * tree-ssa-strlen.c (handle_char_store): Don't invalidate cached
4013 length when doing non-zero store of storing '\0' to '\0'.
4015 2013-05-17 Jakub Jelinek <jakub@redhat.com>
4017 * tree-vect-patterns.c (vect_recog_rotate_pattern): For
4018 vect_external_def oprnd1 with loop_vinfo, try to emit
4019 optional cast, negation and and stmts on the loop preheader
4020 edge instead of into the pattern def seq.
4022 PR tree-optimization/57051
4023 * fold-const.c (const_binop) <case VEC_LSHIFT_EXPR,
4024 case VEC_RSHIFT_EXPR>: Fix BYTES_BIG_ENDIAN handling.
4026 2013-05-16 Nick Clifton <nickc@redhat.com>
4028 * config/rl78/rl78.c (rl78_attribute_table): Add naked.
4029 (rl78_is_naked_func): New function.
4030 (rl78_expand_prologue): Skip prologue generation for naked functions.
4031 (rl78_expand_epilogue): Skip epilogue generation for naked functions.
4032 * doc/extend.texi (naked): Add RL78 to the list of processors
4033 that supports this attribute.
4035 2013-05-16 Jeff Law <law@redhat.com>
4037 * Makefile.in (tree-switch-conversion.o): Depend on $(OPTABS_H).
4039 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4041 * config/i386/driver-i386.c (host_detect_local_cpu): Determine
4042 cache parameters using detect_caches_amd also for CYRIX,
4043 NSC and TM2 signatures.
4045 2013-05-16 Uros Bizjak <ubizjak@gmail.com>
4046 Dzianis Kahanovich <mahatma@eu.by>
4050 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
4051 VIA/Centaur processors and determine their cache parameters
4052 using detect_caches_amd.
4054 2013-05-16 Teresa Johnson <tejohnson@google.com>
4056 * cfgrtl.c (verify_hot_cold_block_grouping): Return err.
4057 (rtl_verify_edges): New function.
4058 (rtl_verify_bb_insns): Ditto.
4059 (rtl_verify_bb_pointers): Ditto.
4060 (rtl_verify_bb_insn_chain): Ditto.
4061 (rtl_verify_fallthru): Ditto.
4062 (rtl_verify_bb_layout): Ditto.
4063 (rtl_verify_flow_info_1): Outline checks into new functions.
4064 (rtl_verify_flow_info): Ditto.
4066 2013-05-16 Steve Ellcey <sellcey@imgtec.com>
4068 * cfghooks.c (copy_bbs): Add update_dominance argument.
4069 * cfghooks.h (copy_bbs): Update prototype.
4070 * tree-cfg.c (gimple_duplicate_sese_region):
4071 Add update_dominance argument.
4072 * tree-flow.h (gimple_duplicate_sese_region): Update prototype.
4073 * tree-ssa-loop-ch.c (copy_loop_headers): Update
4074 gimple_duplicate_sese_region call.
4075 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg):
4076 Update copy_bbs call.
4077 * cfgloopmanip.c (duplicate_loop_to_header_edge): Ditto.
4078 * trans-mem.c (ipa_uninstrument_transaction): Ditto.
4080 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4082 * tree-vectorizer.h (NUM_PATTERNS): Increment.
4083 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Add
4084 vect_recog_rotate_pattern.
4085 (vect_recog_rotate_pattern): New function.
4087 2013-05-16 Jason Merrill <jason@redhat.com>
4089 * Makefile.in (LLINKER): New variable.
4090 (mostlyclean): Remove link mutex.
4091 * configure.ac: Handle --enable-link-mutex.
4092 * lock-and-run.sh: New script.
4094 2013-05-16 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4097 * config/arm/arm.c (arm_function_ok_for_sibcall): Add check
4100 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4102 * reorg.c (link_cc0_insns): Wrap in #ifdef HAVE_cc0.
4104 2013-05-16 Greta Yorsh <Greta.Yorsh@arm.com>
4106 * config/arm/arm-protos.h (gen_movmem_ldrd_strd): New declaration.
4107 * config/arm/arm.c (next_consecutive_mem): New function.
4108 (gen_movmem_ldrd_strd): Likewise.
4109 * config/arm/arm.md (movmemqi): Update condition and code.
4110 (unaligned_loaddi, unaligned_storedi): New patterns.
4112 2013-05-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4114 * config.gcc: Obsolete *-*-solaris2.9*.
4115 * doc/install.texi (Specific, *-*-solaris2*): Document it.
4117 2013-05-16 Richard Biener <rguenther@suse.de>
4119 * passes.c (init_optimization_passes): Move pass_parallelize_loops
4120 earlier, after GRAPHITE transforms and IV canonicalization.
4122 2013-05-16 Jakub Jelinek <jakub@redhat.com>
4124 * omp-low.c (extract_omp_for_data): For collapsed loops,
4125 if at least one of the loops is known at compile time to
4126 iterate zero times, set count to 0.
4127 (expand_omp_regimplify_p): New function.
4128 (expand_omp_for_generic): For collapsed loops, if at least
4129 one of the loops isn't known to iterate at least once,
4130 add runtime check with setting count to 0.
4131 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4132 For unsigned types if it isn't known at compile time that
4133 the loop will iterate at least once, add runtime check to bypass
4134 the whole loop if initial condition isn't true.
4136 2013-05-16 Nathan Sidwell <nathan@codesourcery.com>
4138 * varasm.c (default_use_anchors_for_symbol_p): Use decl_replaceable_p.
4140 2013-05-16 Marc Glisse <marc.glisse@inria.fr>
4143 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Disable some
4144 transformations to avoid an infinite loop.
4146 2013-05-16 Marek Polacek <polacek@redhat.com>
4148 * tree-scalar-evolution.c (scev_const_prop): Add more dumps.
4150 2013-05-15 Leif Ekblad <leif@rdos.net>
4152 * config/i386/i386.c (ix86_decompose_address): Use
4153 DEFAULT_TLS_SEG_REG to access TLS segment register.
4154 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): New define.
4155 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Ditto.
4156 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Ditto.
4158 2013-05-15 Richard Sandiford <rdsandiford@googlemail.com>
4161 * config/mips/mips.c (mips_function_ok_for_sibcall): Don't allow
4162 sibling calls to functions that would normally be lazily bound,
4163 unless $gp is call-clobbered.
4165 2013-05-15 Uros Bizjak <ubizjak@gmail.com>
4167 * config/i386/i386.c (ix86_option_override_internal): Update
4168 processor_alias_table for missing PTA_PRFCHW and PTA_FXSR flags. Add
4169 PTA_POPCNT to corei7 entry. Do not enable SSE prefetch on
4170 non-SSE 3dNow! targets. Enable TARGET_PRFCHW for TARGET_3DNOW targets.
4171 * config/i386/i386.md (prefetch): Enable for TARGET_PRFCHW instead
4173 (*prefetch_3dnow): Enable for TARGET_PRFCHW only.
4175 2013-05-15 Andreas Schwab <schwab@suse.de>
4177 * config/m68k/m68k.md (*rotlhi3_lowpart, *rotlqi3_lowpart): Name
4178 for rotlhi3+1 and rotlqi3+1, resp. Fix reference to non-existing
4181 2013-05-15 Teresa Johnson <tejohnson@google.com>
4183 * loop-unroll.c (report_unroll_peel): Check decision before
4184 emitting unroll/peel message.
4186 2013-05-15 Teresa Johnson <tejohnson@google.com>
4188 * function.h (has_bb_partition): New rtl_data flag.
4189 (bb_reorder_complete): Ditto.
4190 * cfgcleanup.c (try_crossjump_to_edge): Check for has_bb_partition
4191 instead of flag_reorder_blocks_and_partition.
4192 * cfgrtl.c (verify_hot_cold_block_grouping): Moved from bb-reorder.c,
4193 with some enhancements.
4194 (rtl_verify_flow_info_1): Call verify_hot_cold_block_grouping.
4195 * bb-reorder.c (connect_traces): Check for has_bb_partition
4196 instead of flag_reorder_blocks_and_partition.
4197 (verify_hot_cold_block_grouping): Moved to cfgrtl.c.
4198 (reorder_basic_blocks): Set bb_reorder_complete flag, remove call to
4199 verify_hot_cold_block_grouping.
4200 (partition_hot_cold_basic_blocks): Set has_bb_partition.
4202 2013-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4205 * config/arm/predicates.md (call_insn_operand): New predicate.
4206 * config/arm/constraints.md ("Cs", "Ss"): New constraints.
4207 * config/arm/arm.md (*call_insn, *call_value_insn): Match only
4208 if insn is not a tail call.
4209 (*sibcall_insn, *sibcall_value_insn): Adjust for tailcalling through
4211 * config/arm/arm.h (enum reg_class): New caller save register class.
4212 (REG_CLASS_NAMES): Likewise.
4213 (REG_CLASS_CONTENTS): Likewise.
4214 * config/arm/arm.c (arm_function_ok_for_sibcall): Allow tailcalling
4217 2013-05-15 Richard Biener <rguenther@suse.de>
4219 * tree-vect-loop.c (vect_transform_loop): Use MSG_NOTE instead
4220 of MSG_OPTIMIZED_LOCATIONS.
4221 * tree-vect-slp.c (vect_make_slp_decision): Likewise.
4222 (vect_slp_transform_bb): Indicate location in MSG_OPTIMIZED_LOCATIONS
4224 * tree-vectorizer.c (vectorize_loops): Use MSG_NOTE instead
4225 of MSG_OPTIMIZED_LOCATIONS.
4226 (execute_vect_slp): Likewise.
4227 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
4228 (vect_create_cond_for_alias_checks): Likewise.
4229 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Likewise.
4230 (vect_recog_widen_mult_pattern): Likewise.
4231 (vect_recog_widen_sum_pattern): Likewise.
4232 (vect_recog_over_widening_pattern): Likewise.
4233 (vect_recog_widen_shift_pattern): Likewise.
4234 (vect_recog_vector_vector_shift_pattern): Likewise.
4235 (vect_recog_divmod_pattern): Likewise.
4236 (vect_recog_mixed_size_cond_pattern): Likewise.
4237 (vect_recog_bool_pattern): Likewise.
4238 (vect_pattern_recog_1): Likewise.
4240 2013-05-15 Martin Jambor <mjambor@suse.cz>
4242 * ipa-prop.c (ipa_make_edge_direct_to_target): Redirect calls to
4243 non-functions to builtin_unreachable.
4244 * ipa-inline-transform.c (inline_call): Do not assert estimates were
4245 correct when new direct edges were discovered.
4247 2013-05-15 Martin Jambor <mjambor@suse.cz>
4249 * ipa-prop.c (ipa_print_node_jump_functions): Print symbol order in
4250 header, print symbol order instead of node uid, print more information
4251 about indirect edge targets.
4252 (ipa_make_edge_direct_to_target): Print symbol order instead of node
4254 (ipa_make_edge_direct_to_target): Likewise.
4255 (remove_described_reference): Likewise.
4256 (propagate_controlled_uses): Likewise.
4257 (ipa_print_node_params): Also print symbol order.
4258 (ipcp_transform_function): Print symbol order instead of node uids.
4259 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Likewise.
4260 (cgraph_get_create_real_symbol_node): Likewise.
4261 * ipa-cp.c (print_lattice): Likewise.
4262 (print_all_lattices): Likewise.
4263 (determine_versionability): Likewise.
4264 (initialize_node_lattices): Likewise.
4265 (estimate_local_effects): Likewise.
4266 (update_profiling_info): Likewise.
4267 (create_specialized_node): Likewise.
4268 (perhaps_add_new_callers): Likewise.
4269 (decide_about_value): Likewise.
4270 (decide_whether_version_node): Likewise.
4271 (identify_dead_nodes): Likewise.
4272 * ipa-inline-analysis.c (dump_inline_edge_summary): Likewise.
4273 (dump_inline_summary): Likewise.
4274 (estimate_node_size_and_time): Likewise.
4275 (inline_analyze_function): Likewise.
4276 * ipa-inline.c (report_inline_failed_reason): Likewise.
4277 (want_early_inline_function_p): Likewise.
4278 (edge_badness): Likewise.
4279 (update_edge_key): Likewise.
4280 (inline_small_functions): Likewise. Add dumping of order to two other
4282 * ipa-pure-const.c (pure_const_read_summary): Print symbol order
4283 instead of node uids.
4284 (propagate_pure_const): Likewise.
4285 (propagate_pure_const): Likewise.
4286 * ipa-utils.c (dump_cgraph_node_set): Likewise.
4287 * lto-cgraph.c (input_node): Explicitly specify we dump uid.
4288 * lto-symtab.c (lto_cgraph_replace_node): Print symbol order instead
4290 * tree-pretty-print.c (dump_function_header): Likewise.
4291 * tree-sra.c (convert_callers_for_node): Dump in traditional format.
4292 Print symbol order instead of node uids.
4294 2013-05-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4296 * config/s390/s390.c (s390_register_move_cost): Don't impose the
4297 FPR<->GPR move cost penalty if ldgr/lgdr can be used.
4299 2013-05-15 Richard Biener <rguenther@suse.de>
4301 PR tree-optimization/57275
4302 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Fix
4303 return value for fail to do runtime alias checks for gather loads.
4305 2013-05-15 Jan Hubicka <jh@suse.cz>
4309 * lto-symtab.c (lto_symtab_symbol_p): Add external symbol;
4310 weakrefs are not external.
4311 (lto_symtab_merge_decls): Fix thinko when dealing with
4312 non-lto_symtab decls.
4313 (lto_symtab_merge_cgraph_nodes): Use lto_symtab_symbol_p.
4314 (lto_symtab_prevailing_decl): Get int sync with lto_symtab_symbol_p.
4315 * varpool.c (dump_varpool_node): Dump more flags.
4317 2013-05-15 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4319 * config/i386/i386.c (processor_alias_table): Add instruction
4320 FSGSBASE for AMD bdver3 architecture.
4322 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4324 * tree.c (warn_deprecated_use): Print file:line using locus color.
4325 * diagnostic.c (diagnostic_report_current_module): Print file:line
4326 and file:line:column using locus color.
4328 2013-05-14 Mike Stump <mikestump@comcast.net>
4330 * gdbinit.in: Add __null.
4332 2013-05-14 Mike Stump <mikestump@comcast.net>
4334 * recog.h: Rename struct recog_data to Recog_data.
4335 * recog.c: Likewise.
4336 * reload.c (can_reload_into): Likewise.
4337 * config/picochip/picochip.c: Likewise.
4339 2013-05-14 Mike Stump <mikestump@comcast.net>
4341 * web.c (union_match_dups): Also check DF_REF_REAL_LOC.
4343 2013-05-14 Steven Bosscher <steven@gcc.gnu.org>
4345 * resource.h (struct resources): Remove unch_memory member.
4346 (CLEAR_RESOURCE): Don't clear unch_memory.
4347 * resource.c (mark_referenced_resources): Don't set it.
4348 (mark_set_resources): Likewise.
4349 (mark_target_live_regs): Don't clear it.
4350 (init_resource_info): Likewise.
4351 * reorg.c (resource_conflicts_p): Don't compare it.
4352 (redundant_insn): Don't set it.
4354 * rtl.h (next_label, skip_consecutive_labels, link_cc0_insns):
4356 * emit-rtl.c (next_label): Remove unused function.
4357 (skip_consecutive_labels, link_cc0_insns): Move to ...
4358 * reorg.c (skip_consecutive_labels, link_cc0_insns): ... here, the
4359 only place where these functions are used, and make them static.
4361 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4363 * fold-const.c (fold_negate_expr): Handle vectors.
4364 (fold_truth_not_expr): Make it static.
4365 (fold_invert_truthvalue): New static function.
4366 (invert_truthvalue_loc): Handle vectors. Do not call
4367 fold_truth_not_expr directly.
4368 (fold_unary_loc) <BIT_NOT_EXPR>: Handle comparisons.
4369 <TRUTH_NOT_EXPR>: Do not cast to boolean.
4370 (fold_comparison): Handle vector constants.
4371 (fold_binary_loc) <TRUTH_XOR_EXPR>: Remove redundant code.
4372 (fold_ternary_loc) <VEC_COND_EXPR>: Adapt more COND_EXPR optimizations.
4373 * tree.h (fold_truth_not_expr): Remove declaration.
4375 2013-05-14 James Greenhalgh <james.greenhalgh@arm.com>
4377 * config/aarch64/aarch64-simd.md
4378 (aarch64_vcond_internal<mode>): Rename to...
4379 (aarch64_vcond_internal<mode><mode>): ...This, for integer modes.
4380 (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): ...This for
4381 float modes. Clarify all iterator modes.
4382 (vcond<mode><mode>): Use new name for vcond expanders.
4383 (vcond<v_cmp_result><mode>): Likewise.
4384 (vcondu<mode><mode>: Likewise.
4385 * config/aarch64/iterators.md (VDQF_COND): New.
4387 2013-05-14 Marc Glisse <marc.glisse@inria.fr>
4390 * fold-const.c (fold_binary_loc) <shift>: Use an unsigned
4391 variable for the shift amount. Check that we shift by non-negative
4394 2013-05-14 Chung-Lin Tang <cltang@codesourcery.com>
4397 * config/arm/arm.h (EPILOGUE_USES): Only return true
4398 for LR_REGNUM after epilogue_completed.
4400 2013-05-14 Joern Rennecke <joern.rennecke@embecosm.com>
4402 * config/avr/avr.c (avr_encode_section_info): Bail out if the type
4405 2013-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4408 * configure.ac (gcc_cv_ld_as_needed): Disable before Solaris 11
4409 and Solaris 11+/x86 with gld.
4410 * configure: Regenerate.
4412 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4414 * expmed.c (expand_shift_1): Canonicalize rotates by
4415 constant bitsize / 2 to bitsize - 1.
4416 * simplify-rtx.c (simplify_binary_operation_1) <case ROTATE,
4417 case ROTATERT>: Likewise.
4420 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4422 * config/i386/i386.md (rotateinv): New code attr.
4423 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4424 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4425 roll $31, %eax, etc.
4427 2013-05-14 Richard Biener <rguenther@suse.de>
4430 * tree-eh.c (sink_clobbers): Give up for successors with
4431 multiple predecessors and no virtual uses.
4433 2013-05-14 Eric Botcazou <ebotcazou@adacore.com>
4435 * config/sparc/sp64-elf.h (CPP_SUBTARGET_SPEC): Delete.
4436 * config/sparc/openbsd64.h (CPP_SUBTARGET_SPEC): Likewise.
4438 2013-05-14 Jakub Jelinek <jakub@redhat.com>
4441 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Handle
4442 the case when both op0 and op1 have VOIDmode.
4444 2013-05-14 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
4446 * config/rl78/rl78.md(mulsi3_g13): Add additional 'nop' required
4447 in multiply-accumulate mode.
4449 2013-05-13 Guozhi Wei <carrot@google.com>
4451 * dwarf2asm.c (dw2_output_indirect_constant_1): Mark new decl STATIC.
4453 2013-05-13 Kai Tietz <ktietz@redhat.com>
4456 * config/i386/cygming.h (TARGET_PECOFF): Define as true.
4457 * config/i386/i386.h (TARGET_PECOFF): Define by default as false.
4458 (PIC_OFFSET_TABLE_REGNUM): Use TARGET_PECOFF.
4459 * config/i386/i386.c (ix86_option_override_internal): Likewise.
4460 (ix86_expand_prologue): Likewise.
4461 (ix86_expand_split_stack_prologue): Likewise.
4462 (legitimate_pic_address_disp_p): Likewise.
4463 (legitimize_pic_address): Likewise.
4464 (legitimize_tls_address): Likewise.
4465 (legitimize_pe_coff_symbol): Likewise.
4466 (output_pic_addr_const): Likewise.
4467 (construct_plt_address): Likewise.
4468 (ix86_expand_call): Likewise.
4469 (x86_output_mi_thunk): Likewise.
4470 (x86_function_profiler): Likewise.
4472 2013-05-13 Sofiane Naci <sofiane.naci@arm.com>
4474 * config/aarch64/aarch64-simd.md (aarch64_simd_mov<mode>): Group
4475 similar switch cases.
4476 (aarch64_simd_mov): Rename to aarch64_split_simd_mov. Update.
4477 (aarch64_simd_mov_to_<mode>low): Delete.
4478 (aarch64_simd_mov_to_<mode>high): Delete.
4479 (move_lo_quad_<mode>): Add w<-r alternative.
4480 (aarch64_simd_move_hi_quad_<mode>): Likewise.
4481 (aarch64_simd_mov_from_*): Update type attribute.
4482 * config/aarch64/aarch64.c (aarch64_split_simd_move): Refacror switch
4485 2013-05-13 Jan Hubicka <jh@suse.cz>
4487 * mode-switching.c (optimize_mode_switching): Set correct RTL profile.
4488 * config/i386/i386.c (ix86_compute_frame_layout,
4489 ix86_expand_epilogue, emit_i387_cw_initialization,
4490 ix86_expand_vector_move_misalign, ix86_fp_comparison_strategy,
4491 ix86_local_alignment): Fix use of size/speed predicates.
4493 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4495 PR tree-optimization/45216
4496 PR tree-optimization/57157
4497 * tree-ssa-forwprop.c (simplify_rotate): Only recognize
4498 the (-Y) & (B - 1) variant if OP is |.
4499 * expmed.c (expand_shift_1): For rotations by const0_rtx just
4500 return shifted. Use (-op1) & (prec - 1) as other_amount
4501 instead of prec - op1.
4503 2013-05-13 Martin Jambor <mjambor@suse.cz>
4506 * ipa-prop.h (IPA_UNDESCRIBED_USE): New macro.
4507 (ipa_constant_data): New type.
4508 (ipa_jump_func): Use ipa_constant_data to hold information about
4509 constant jump functions.
4510 (ipa_get_jf_constant): Adjust to jump function type changes.
4511 (ipa_get_jf_constant_rdesc): New function.
4512 (ipa_param_descriptor): New field controlled_uses.
4513 (ipa_get_controlled_uses): New function.
4514 (ipa_set_controlled_uses): Likewise.
4515 * ipa-ref.h (ipa_find_reference): Declare.
4516 * ipa-prop.c (ipa_cst_ref_desc): New type.
4517 (ipa_print_node_jump_functions_for_edge): Adjust for jump function type
4519 (ipa_set_jf_constant): Likewise. Also create reference descriptions.
4520 New parameter cs. Adjust all callers.
4521 (ipa_analyze_params_uses): Detect uncontrolled and controlled uses.
4522 (remove_described_reference): New function.
4523 (jfunc_rdesc_usable): Likewise.
4524 (try_make_edge_direct_simple_call): Decrement controlled use count,
4525 attempt to remove reference if it hits zero.
4526 (combine_controlled_uses_counters): New function.
4527 (propagate_controlled_uses): Likewise.
4528 (ipa_propagate_indirect_call_infos): Call propagate_controlled_uses.
4529 (ipa_edge_duplication_hook): Duplicate reference descriptions.
4530 (ipa_print_node_params): Print described use counter.
4531 (ipa_write_jump_function): Adjust to jump function type changes.
4532 (ipa_read_jump_function): New parameter CS, pass it to
4533 ipa_set_jf_constant. Adjust caller.
4534 (ipa_write_node_info): Stream controlled use count
4535 (ipa_read_node_info): Likewise.
4536 * cgraph.c (cgraph_mark_address_taken_node): Bail out instead of
4538 * ipa-cp.c (ipcp_discover_new_direct_edges): Decrement controlled use
4539 count. Remove cloning-added reference if it reaches zero.
4540 * ipa-ref.c (ipa_find_reference): New function.
4542 2013-05-13 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
4544 * config/i386/i386.c (processor_target_table): Modified default
4545 alignment values for AMD BD and BT architectures.
4547 2013-05-13 Marc Glisse <marc.glisse@inria.fr>
4549 * tree-vect-generic.c (uniform_vector_p): Move ...
4550 * tree.c (uniform_vector_p): ... here.
4551 * tree.h (uniform_vector_p): Declare it.
4552 * fold-const.c (fold_binary_loc) <shift>: Turn the second argument
4555 2013-05-13 Jakub Jelinek <jakub@redhat.com>
4557 PR tree-optimization/57230
4558 * tree-ssa-strlen.c (handle_char_store): Record length for
4559 array store from STRING_CST.
4561 PR tree-optimization/57230
4562 * tree-ssa-strlen.c (handle_char_store): Add missing integer_zerop
4565 2013-05-12 Joern Rennecke <joern.rennecke@embecosm.com>
4567 * config/epiphany/epiphany.c (epiphany_init): Check size of
4568 NUM_MODES_FOR_MODE_SWITCHING.
4569 (epiphany_expand_prologue):
4570 Remove CONFIG_REGNUM initial value handling code.
4571 (epiphany_optimize_mode_switching): Handle EPIPHANY_MSW_ENTITY_CONFIG.
4572 (epiphany_mode_needed, epiphany_mode_entry_exit): Likewise.
4573 (emit_set_fp_mode, epiphany_mode_after): Likewise.
4574 (epiphany_mode_needed) <Handle EPIPHANY_MSW_ENTITY_AND>:
4575 Don't return 1 for FP_MODE_NONE.
4576 * config/epiphany/epiphany.h (NUM_MODES_FOR_MODE_SWITCHING):
4577 Add value for EPIPHANY_MSW_ENTITY_CONFIG.
4578 (EPIPHANY_MSW_ENTITY_CONFIG, EPIPHANY_MSW_ENTITY_NUM): Define.
4579 * config/epiphany/epiphany.md (save_config): New pattern.
4581 2013-05-12 Uros Bizjak <ubizjak@gmail.com>
4583 * config/i386/i386.md (*zero_extendsidi2): Add *x->?r alternative.
4585 2013-05-10 Uros Bizjak <ubizjak@gmail.com>
4587 * config/i386/i386.md (memory): Handle sseishft1.
4588 * config/i386/sse.md (*vec_extractv4si): Remove memory attribute.
4589 (*vec_extractv2di_1): Ditto.
4591 2013-05-10 Vladimir Makarov <vmakarov@redhat.com>
4593 * lra-assigns.c (find_hard_regno_for): Add 1 to the cost of call
4596 2013-05-10 Sebastian Huber <sebastian.huber@embedded-brains.de>
4598 * config/arm/t-rtems-eabi: Remove mthumb/march=armv7 multilib.
4599 Add mthumb/march=armv7-a multilib.
4600 Add mthumb/march=armv7-r multilib.
4601 Add mthumb/march=armv7-a/mfpu=neon/mfloat-abi=hard multilib.
4603 2013-05-10 Ralf Corsépius <ralf.corsepius@rtems.org>
4605 * config/v850/t-rtems: Add more multilibs.
4607 2013-05-10 Richard Biener <rguenther@suse.de>
4609 PR tree-optimization/57214
4610 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling): Do
4611 not propagate from SSA names that occur in abnormal PHI nodes.
4613 2013-05-10 Marc Glisse <marc.glisse@inria.fr>
4615 * stor-layout.c (element_precision): New function.
4616 * machmode.h (element_precision): Declare it.
4617 * tree.c (build_minus_one_cst): New function.
4618 (element_precision): Likewise.
4619 * tree.h (build_minus_one_cst): Declare new function.
4620 (element_precision): Likewise.
4621 * fold-const.c (operand_equal_p): Use element_precision.
4622 (fold_binary_loc): Handle vector types.
4623 * convert.c (convert_to_integer): Use element_precision.
4624 * gimple.c (iterative_hash_canonical_type): Handle complex and vectors
4627 2013-05-10 Richard Sandiford <rdsandiford@googlemail.com>
4629 * config/mips/mips-protos.h (m16_uimm3_b, m16_simm4_1, m16_nsimm4_1)
4630 (m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4, m16_simm8_1)
4631 (m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1, m16_uimm8_4)
4632 (m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4633 * config/mips/mips.c (m16_check_op, m16_uimm3_b, m16_simm4_1)
4634 (m16_nsimm4_1, m16_simm5_1, m16_nsimm5_1, m16_uimm5_4, m16_nuimm5_4)
4635 (m16_simm8_1, m16_nsimm8_1, m16_uimm8_1, m16_nuimm8_1, m16_uimm8_m1_1)
4636 (m16_uimm8_4, m16_nuimm8_4, m16_simm8_8, m16_nsimm8_8): Delete.
4637 * config/mips/constraints.md (Udb8, Usb5, Usb8, Usd8, Uub8, Uuw5)
4638 (Uuw8): New constraints.
4639 (Usb4): Move into alphabetical order.
4640 * config/mips/predicates.md (db8_operand, sb5_operand, sb8_operand)
4641 (sd8_operand, ub8_operand, uw8_operand): New predicates.
4642 * config/mips/mips.md (*xor<mode>3, *xor<mode>3_mips16): Name
4643 previously unnamed patterns.
4644 (*add<mode>3_mips16, *xor<mode>3_mips16, *<optab>si3_mips16)
4645 (*ashldi3_mips16, *ashrdi3_mips16, *lshrdi3_mips16)
4646 (*slt<u>_<GPR:mode><GPR2:mode>_mips16)
4647 (*sle<u>_<GPR:mode><GPR2:mode>_mips16): Use constraints instead
4648 of set_attr_alternative/if_then_else. Use extended_mips16 instead
4649 of specific lengths.
4651 2013-05-10 Jakub Jelinek <jakub@redhat.com>
4653 * config/i386/i386.md (rotateinv): New code attr.
4654 (*<rotate_insn><mode>3_1, *<rotate_insn>si3_1_zext,
4655 *<rotate_insn>qi3_1_slp): Emit rorl %eax instead of
4656 roll $31, %eax, etc.
4658 PR tree-optimization/45216
4659 PR tree-optimization/57157
4660 * tree-ssa-forwprop.c (simplify_rotate): New function.
4661 (ssa_forward_propagate_and_combine): Call it.
4663 2013-05-10 Richard Biener <rguenther@suse.de>
4665 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
4666 disable peeling when we version for aliasing.
4667 (vector_alignment_reachable_p): Honor explicit user alignment.
4668 (vect_supportable_dr_alignment): Likewise.
4669 * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Use
4670 STMT_VINFO_LOOP_PHI_EVOLUTION_PART instead of recomputing it.
4671 * tree-vect-loop.c (vect_transform_loop): First apply versioning,
4672 then peeling to arrange for the cost-model check to come first.
4674 2013-05-10 Alan Modra <amodra@gmail.com>
4676 * configure.ac (HAVE_AS_TLS): Swap powerpc64 and powerpc cases.
4677 (HAVE_LD_LARGE_TOC): Don't mention AIX in help text.
4678 * configure: Regenerate.
4680 2013-05-10 Alan Modra <amodra@gmail.com>
4683 * varasm.c (default_elf_select_section): Move !DECL_P check..
4684 (get_named_section): ..to here before calling get_section_name.
4686 (default_section_type_flags): Add DECL_P check.
4687 * config/i386/winnt.c (i386_pe_section_type_flags): Likewise.
4688 * config/rs6000/rs6000.c (rs6000_xcoff_section_type_flags): Likewise.
4690 2013-05-09 Joern Rennecke <joern.rennecke@embecosm.com>
4692 * config/epiphany/epiphany.c (epiphany_expand_prologue):
4693 When using gen_stack_adjust_str with a register offset, add a
4694 REG_FRAME_RELATED_EXPR note.
4696 2013-05-09 Uros Bizjak <ubizjak@gmail.com>
4698 * config/i386/sse.md (*vec_extractv4si_0_zext): New pattern.
4699 (*vec_extractv4si_zext_mem): Ditto.
4700 (*vec_extractv2di): Add 0->x and x->x alternatives.
4701 * config/i386/mmx.md (*vec_extractv2si_zext_mem): New pattern.
4702 * config/i386/i386.md (*zero_extendsidi2): Add *Yj->?r alternative.
4704 2013-05-09 Jason Merrill <jason@redhat.com>
4706 N3639 C++1y VLA support
4707 * gimplify.c (gimplify_vla_decl): Don't touch an existing
4710 * tree.c (build_constructor_va): New.
4711 * tree.h: Declare it.
4713 2013-05-09 Martin Jambor <mjambor@suse.cz>
4716 * gimple-fold.c (canonicalize_constructor_val): Call
4717 cgraph_get_create_real_symbol_node instead of cgraph_get_create_node.
4719 2013-05-09 Jan Hubicka <jh@suse.cz>
4720 Richard Biener <rguenther@suse.de>
4723 * symtab.c (symtab_make_decl_local): Do not add private names.
4725 2013-05-09 Jan Hubicka <jh@suse.cz>
4728 * symtab.c (insert_to_assembler_name_hash): Handle clones.
4729 (unlink_from_assembler_name_hash): Likewise.
4730 (symtab_prevail_in_asm_name_hash, symtab_register_node,
4731 symtab_unregister_node, symtab_initialize_asm_name_hash,
4732 change_decl_assembler_name): Update.
4734 2013-05-09 Sofiane Naci <sofiane.naci@arm.com>
4736 * config/aarch64/aarch64.md: New movtf split.
4737 (*movtf_aarch64): Update.
4738 (aarch64_movdi_tilow): Handle TF modes and rename to
4739 aarch64_movdi_<mode>low.
4740 (aarch64_movdi_tihigh): Handle TF modes and rename to
4741 aarch64_movdi_<mode>high
4742 (aarch64_movtihigh_di): Handle TF modes and rename to
4743 aarch64_mov<mode>high_di
4744 (aarch64_movtilow_di): Handle TF modes and rename to
4745 aarch64_mov<mode>low_di
4746 (aarch64_movtilow_tilow): Remove spurious whitespace.
4747 * config/aarch64/aarch64.c (aarch64_split_128bit_move): Handle TFmode
4749 (aarch64_print_operand): Update.
4751 2013-05-09 Alan Modra <amodra@gmail.com>
4753 * configure.ac (HAVE_AS_TLS): Enable tests for powerpcle and
4755 * configure: Regenerate.
4757 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4759 * config/i386/mmx.md (*vec_extract* splitters): Simplify post-reload
4760 splitter preparation statements.
4761 * config/i386/sse.md (*vec_extract* splitters): Ditto.
4762 (*avx_vperm_broadcast_<mode>): Use adjust_address instead of
4765 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4767 * gimple-ssa-strength-reduction.c (count_candidates): Change
4768 return value to int.
4769 (analyze_candidates_and_replace): Change type of length to int.
4771 2013-05-08 Uros Bizjak <ubizjak@gmail.com>
4773 * config/i386/sse.md (PEXTR_MODE, PEXTR_MODEx): Remove.
4774 (*vec_extract<mode>): Use VI12_128 mode iterator.
4775 (*vec_extract<mode>_mem): Ditto.
4776 (*vec_extract*_mem splitters): Merge splitters using VI_128 mode
4779 2013-05-08 Diego Novillo <dnovillo@google.com>
4784 2012-08-17 Diego Novillo <dnovillo@google.com>
4787 * configure.ac: Add libintl.h to AC_CHECK_HEADERS list.
4788 * config.in: Regenerate.
4789 * configure: Regenerate.
4790 * intl.h: Always include libintl.h if HAVE_LIBINTL_H is set.
4792 2013-05-08 Jan Hubicka <jh@suse.cz>
4795 * cgraph.c (cgraph_make_node_local_1): Se unique_name.
4796 * cgraph.h (symtab_node_base): Add unique_name.
4797 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
4798 input_overwrite_node, input_varpool_node): Stream unique_name.
4799 * cgraphclones.c (cgraph_create_virtual_clone,
4800 cgraph_function_versioning): Set unique_name.
4801 * ipa.c (function_and_variable_visibility): Set unique_name.
4803 2013-05-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4805 * gimple-ssa-strength-reduction.c (find_phi_def): Revert former "fix."
4806 (alloc_cand_and_find_basis): Restrict conditional candidate
4807 processing to CAND_MULTs.
4809 2013-05-08 Jan Hubicka <jh@suse.cz>
4812 lto-symtab.c (lto_symtab_symbol_p): New function.
4813 (lto_symtab_resolve_can_prevail_p, lto_symtab_resolve_symbols,
4814 lto_symtab_resolve_symbols, lto_symtab_merge_decls_2,
4815 lto_symtab_merge_decls_1, lto_symtab_merge_cgraph_nodes_1):
4816 Skip static symbols.
4818 2013-05-08 Paolo Carlini <paolo.carlini@oracle.com>
4820 PR tree-optimization/57200
4821 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4822 Only call inform if the preceding warning_at returns true.
4824 2013-05-07 Han Shen <shenhan@google.com>
4826 * cfgexpand.c (record_or_union_type_has_array_p): New function.
4827 (expand_used_vars): Add logic handling '-fstack-protector-strong'.
4828 * common.opt (fstack-protector-strong): New option.
4829 * doc/cpp.texi (__SSP_STRONG__): New builtin "__SSP_STRONG__".
4830 * doc/invoke.texi (Optimization Options): Document
4831 "-fstack-protector-strong".
4832 * gcc.c (LINK_SSP_SPEC): Add 'fstack-protector-strong'.
4834 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
4836 * config/mips/mips.c (mips_machine_reorg2): Return 0.
4838 2013-05-07 Vladimir Makarov <vmakarov@redhat.com>
4840 * ira.c (update_equiv_regs): Add insn having equiv memory even if
4841 it is not lhs of the insn.
4842 (setup_reg_equiv): Remove insn having equiv memory which it is not
4844 * lra-constraints.c (process_address): Try to improve generation
4845 code for address base + disp.
4846 (lra_constraints): Make correct the code for checking insn setting
4847 up backward equivalence. Remove insn only if it is in the init
4849 * lra-eliminations.c (update_reg_eliminate): Change return value.
4850 (lra_eliminate): Use the result.
4852 2013-05-07 Uros Bizjak <ubizjak@gmail.com>
4854 * config/i386/sse.md (ssescalarnummask): New mode attribute.
4855 (PEXTR_MODE, PEXTR_MODEx): New mode iterators.
4856 (*vec_extract<mode>): Merge from *sse4_1_pextrb_memory and
4857 *sse4_1_pextrw_memory using PEXTR_MODE mode iterator. Handle
4858 register target operands.
4859 (*vec_extractv8hi_sse2): New pattern.
4860 (*vec_extractv16qi_zext): Rename from *sse4_1_pextrb_<mode>.
4861 (*vec_extractv8hi_zext): Rename from *sse2_pextrw_<mode>.
4862 (*vec_extract<mode>_mem): New insn and split pattern.
4864 2013-05-07 Christophe Lyon <christophe.lyon@linaro.org>
4866 * config/arm/arm.c (arm_asan_shadow_offset): New function.
4867 (TARGET_ASAN_SHADOW_OFFSET): Define.
4868 * config/arm/linux-eabi.h (ASAN_CC1_SPEC): Define.
4869 (LINUX_OR_ANDROID_CC): Add ASAN_CC1_SPEC.
4871 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4873 * gimple-ssa-strength-reduction.c (MAX_INCR_VEC_LEN): New constant.
4874 (incr_vec_index): Return -1 if increment not found.
4875 (create_add_on_incoming_edge): Assert if increment not found.
4876 (record_increment): Limit number of increments recorded.
4877 (all_phi_incrs_profitable): Return false if an increment not found.
4878 (replace_profitable_candidates): Don't process increments that were
4880 (analyze_candidates_and_replace): Limit size of incr_vec.
4882 2013-05-07 Richard Biener <rguenther@suse.de>
4884 * calls.c (special_function_p): setjmp-like functions are leaf.
4885 * builtins.def (BUILT_IN_SETJMP): setjmp is leaf.
4886 * tree-inline.c (update_ssa_across_abnormal_edges): Remove assert.
4888 2013-05-07 Sofiane Naci <sofiane.naci@arm.com>
4890 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): call splitter.
4891 (aarch64_simd_mov<mode>): New expander.
4892 (aarch64_simd_mov_to_<mode>low): New instruction pattern.
4893 (aarch64_simd_mov_to_<mode>high): Likewise.
4894 (aarch64_simd_mov_from_<mode>low): Likewise.
4895 (aarch64_simd_mov_from_<mode>high): Likewise.
4896 (aarch64_dup_lane<mode>): Update.
4897 (aarch64_dup_lanedi): New instruction pattern.
4898 * config/aarch64/aarch64-protos.h (aarch64_split_simd_move): New prototype.
4899 * config/aarch64/aarch64.c (aarch64_split_simd_move): New function.
4901 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4903 * gimple-ssa-strength-reduction.c (lazy_create_slsr_reg): Remove.
4904 (replace_mult_candidate): Remove unnecessary argument; remove
4905 unnecessary parameter from call to introduce_cast_before_cand.
4906 (replace_unconditional_candidate): Remove unnecessary parameter
4907 from call to replace_mult_candidate.
4908 (replace_conditional_candidate): Likewise.
4909 (insert_initializers): Use make_temp_ssa_name.
4910 (introduce_cast_before_cand): Remove unnecessary argument; use
4912 (replace_one_candidate): Remove unnecessary argument; remove
4913 unnecessary parameter from calls to introduce_cast_before_cand.
4914 (replace_profitable_candidates): Remove unnecessary parameters
4915 from calls to replace_one_candidate.
4917 2013-05-07 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4919 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
4920 phi def as possibly hiding a basis for a CAND_ADD whose operands
4921 have been commuted in the analysis.
4922 (alloc_cand_and_find_basis): Add parms to call to find_phi_def.
4924 2013-05-07 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4926 * config/aarch64/aarch64.md
4927 (cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): Restrict the
4928 shift value between 0-4.
4930 2013-05-07 Richard Biener <rguenther@suse.de>
4932 * double-int.h (rshift): New overload.
4933 * double-int.c (rshift): New function.
4934 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Optimize.
4935 (create_reference_ops_from_ref): Remove.
4936 (vn_reference_insert): Use shared ops for constructing the
4937 reference and copy it.
4939 2013-05-07 Richard Biener <rguenther@suse.de>
4942 * tree-eh.c (sink_clobbers): Properly propagate
4943 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
4945 2013-05-07 Jakub Jelinek <jakub@redhat.com>
4947 PR tree-optimization/57149
4948 * tree-ssa-uninit.c (uninit_undefined_value_p): New inline.
4949 (can_skip_redundant_opnd, compute_uninit_opnds_pos,
4950 collect_phi_def_edges, execute_late_warn_uninitialized): Use
4951 uninit_undefined_value_p instead of ssa_undefined_value_p.
4954 * expr.c (expand_expr_addr_expr_1): Handle COMPOUND_LITERAL_EXPR
4955 for modifier == EXPAND_INITIALIZER.
4957 2013-05-07 Anton Blanchard <anton@samba.org>
4959 * configure.ac (HAVE_LD_LARGE_TOC): Use correct linker emulation
4960 for powerpc64 little endian.
4961 * configure: Regenerate.
4963 2013-05-06 Graham Stott <grahams@btinternet.com>
4965 * expmed.c (init_expmed_rtl): Remove unused fields reg_fld, plus_fld,
4966 mult_fld, sdiv_fld1, udiv_fld1, sdiv_32_fld1, smod_32_fld1,
4967 wide_mult_fld1, wide_lshr_fld1, shift_fld1, shift_mult_fld1,
4968 shift_add_fld1, shift_sub0_fld1, shift_sub1_fld1.
4970 2013-05-06 Graham Stott <grahams@btinternet.com>
4972 * gensupport.c (add_predicate_code): Also exclude SCRATCH from rtx
4973 codes which allow non-lvalues.
4975 2013-05-06 Marc Glisse <marc.glisse@inria.fr>
4977 * tree.c (integer_all_onesp) <COMPLEX_CST>: Test that both
4978 components are all 1s.
4979 (integer_minus_onep): New function.
4980 * tree.h (integer_minus_onep): Declare it.
4981 * fold-const.c (fold_binary_loc) <MULT_EXPR>: Test
4982 integer_minus_onep instead of integer_all_onesp.
4984 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
4987 * config/sh/sh.md (*cmp_div0s_0, *cmp_div0s_1, *movsicc_div0s): Add
4988 variations of these patterns.
4990 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
4992 * config/i386/i386.md (isa): Add x64_sse4 member.
4993 (enabled): Handle x64_sse4.
4994 (*movdi_internal): Add *x->?r alternative to emit pextrq $0,%xmm,%reg
4995 instruction for 64bit SSE4_1 targets. Update insn attributes.
4996 (*movsi_internal): Add *x->?r alternative to emit pextrd $0,%xmm,%reg
4997 instruction for SSE4_1 targets. Update insn attributes.
4998 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
4999 with *sse4_1_pextrd and *sse4_1_pextrq having const_0 selector.
5000 (*vec_extractv2di_1): Merge with *sse4_1_pextrq having
5002 (*vec_extractv4si): Rename from *sse4_1_pextrd.
5003 (*vec_extractv4si_zext): Rename from *sse4_1_pextrd_zext.
5004 (*vec_extract<ssevecmodelower>_0 splitters): Merge splitters together.
5006 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5009 * config/sh/sh.md (tstsi_t_zero_extract_eq): Use QIHISIDI mode iterator.
5011 2013-05-06 Maxim Kuznetsov <maks.kuznetsov@gmail.com>
5013 * final.c (do_assembler_dialects): Don't handle curly braces and
5014 vertical bar escaped by % as dialect delimiters.
5015 (output_asm_insn): Print curly braces and vertical bar if escaped
5016 by % and ASSEMBLER_DIALECT defined.
5017 * doc/tm.texi.in (ASSEMBLER_DIALECT): Document new standard escapes.
5018 * doc/tm.texi: Regenerated.
5020 2013-05-06 Steven Bosscher <steven@gcc.gnu.org>
5022 * config/mips/mips.c: Include tree-pass.h.
5023 (mips_reorg): Split in pre- and post-dbr_schedule parts.
5024 (mips_machine_reorg2): Move mips_reorg post-dbr_schedule parts here.
5025 (pass_mips_machine_reorg2): New machine specific pass.
5026 (insert_pass_mips_machine_reorg2): New pass plugin definition.
5027 (mips_option_override): Register the new pass.
5028 * rtl.h (cleanup_barriers): Remove prototype.
5029 (dbr_schedule): Likewise.
5030 * jump.c (cleanup_barriers): Make static.
5031 * reorg.c (dbr_schedule): Likewise.
5033 2013-05-06 Richard Biener <rguenther@suse.de>
5035 PR tree-optimization/57185
5036 * tree-parloops.c (add_field_for_reduction): Handle anonymous
5039 2013-05-06 Uros Bizjak <ubizjak@gmail.com>
5042 * config/i386/i386.c (add_parameter_dependencies): Add dependence
5043 between "first_arg" and "insn", not "last" and "insn".
5045 2013-05-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5047 * gimple-ssa-strength-reduction.c (slsr_process_phi): Re-enable.
5048 (find_candidates_in_block): Re-enable slsr_process_phi.
5049 (create_phi_basis): Fix double counting of candidate adjustment.
5051 2013-05-06 Richard Biener <rguenther@suse.de>
5054 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): If
5055 the edge is also fallthru, preserve it and just clear the
5057 * tree-cfgcleanup.c (remove_fallthru_edge): If the edge is
5058 also complex, preserve that and just clear the fallthru flag.
5059 * tree-inline.c (update_ssa_across_abnormal_edges): Also
5060 update virtual operands.
5062 2013-05-06 Alan Modra <amodra@gmail.com>
5064 * config/rs6000/linux.h (DEFAULT_ASM_ENDIAN): Define.
5065 (LINK_OS_LINUX_EMUL): Use ENDIAN_SELECT.
5066 * config/rs6000/linux64.h (DEFAULT_ASM_ENDIAN): Define.
5067 * config/rs6000/sysv4le.h (DEFAULT_ASM_ENDIAN): Define.
5068 (LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5069 * config/rs6000/sysv4.h (DEFAULT_ASM_ENDIAN): Define as -mbig.
5071 2013-05-06 Alan Modra <amodra@gmail.com>
5073 * config/rs6000/sysv4.h (ENDIAN_SELECT): Define, extracted from
5074 (ASM_SPEC): ..here. Emit DEFAULT_ASM_ENDIAN too.
5075 (DEFAULT_ASM_ENDIAN): Define.
5076 (CC1_SPEC, LINK_TARGET_SPEC): Use ENDIAN_SELECT.
5077 * config/rs6000/linux64.h (ASM_SPEC32): Remove endian options.
5078 Update -K PIC clause from sysv4.h.
5079 (ASM_SPEC_COMMON): Use ENDIAN_SELECT.
5080 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Likewise.
5082 2013-05-06 Alan Modra <amodra@gmail.com>
5084 * config/rs6000/rs6000.md (bswapdi 2nd splitter): Don't swap words
5085 twice for little-endian.
5086 (ashrdi3_no_power, ashrdi3): Support little-endian.
5088 2013-05-06 Oleg Endo <olegendo@gcc.gnu.org>
5091 * config/sh/sh.c (sh_rtx_costs): Handle SMIN and SMAX cases.
5092 * config/sh/sh.md (*clips, uminsi3, *clipu, clipu_one): New insns and
5094 * config/sh/iterators.md (SMIN_SMAX): New code iterator.
5095 * config/sh/predicates.md (arith_reg_or_0_or_1_operand,
5096 clips_min_const_int, clips_max_const_int, clipu_max_const_int):
5099 2013-05-05 Steven Bosscher <steven@gcc.gnu.org>
5100 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5102 * config.gcc (hppa*-*-*): Remove MASK_BIG_SWITCH from CPU default.
5103 * config/pa/pa.opt: Make mbig-switch a no-op.
5104 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_BIG_SWITCH.
5105 (CASE_VECTOR_MODE): Always return SImode.
5106 (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT): Remove code
5107 for the !TARGET_BIG_SWITCH case.
5108 * config/pa/pa-linux.h: Likewise.
5109 * config/pa/pa-openbsd.h: Likewise.
5110 * config/pa/pa-hpux.h: Define TARGET_DEFAULT to 0.
5111 * config/pa/pa.md (short_jump): Remove define_insn.
5112 (casesi): Remove code for the !TARGET_BIG_SWITCH case.
5113 (casesi0): Remove define_insn.
5114 (type): Remove btable_branch.
5115 (pa_combine_type): Likewise.
5116 (in_nullified_branch_delay): Likewise.
5117 (in_call_delay): Likewise.
5118 (define_delay): Likewise.
5119 (define_insn_reservation "Z3"): Likewise.
5120 (define_insn_reservation "Z4"): Likewise.
5121 * config/pa/pa.c (pa_reorg): Remove code for !TARGET_BIG_SWITCH.
5122 (pa_adjust_insn_length): Remove adjustment for btable branches.
5123 * doc/invoke.texi (HPPA Options): Delete documentation for mbig-switch
5126 2013-05-05 Uros Bizjak <ubizjak@gmail.com>
5128 * config/i386/sse.md (*vec_extract<ssevecmodelower>_0): Merge
5129 from sse2_stored and *sse2_storeq_rex64 using SWI48 mode iterator.
5130 Add m->r,x alternatives.
5131 (*vec_extract<ssevecmodelower>_0 splitters): Merge V2DI and V4SI
5132 splitters using SWI48x mode iterator.
5133 (*vec_extract_v2di_0_sse): Rename from *sse2_storeq. Disable for
5134 TARGET_64BIT. Add m->x alternative.
5135 (*vec_extractv4si_mem): Rename from *vec_ext_v4si_mem.
5136 Add o->x alternative. Enable for TARGET_SSE.
5137 (sse_storeq): Remove expander.
5138 (*vec_extractv2di_1): Enable for TARGET_SSE. Split alternatives
5139 with memory input operand.
5140 (*vec_extractv2di_1 splitter): New.
5141 (*vec_extractv4sf_mem): Rename from *vec_extract_v4sf_mem.
5142 * config/i386/i386.md (ssevecmodelower): New mode attribute.
5144 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5146 * config/rs6000/rs6000.c (INT_P): Reformat. Delete obsolete comment.
5147 (INT_LOWPART): Delete.
5148 (extract_MB): Adjust.
5149 (extract_ME): Adjust.
5150 (print_operand): Adjust.
5152 2013-05-04 Segher Boessenkool <segher@kernel.crashing.org>
5154 * config/rs6000/predicates.md (reg_or_add_cint_operand,
5155 reg_or_sub_cint_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5156 (reg_or_logical_cint_operand, easy_fp_constant,
5157 logical_const_operand): Delete "CONST_DOUBLE" case.
5158 * config/rs6000/rs6000.c (num_insns_constant_wide): Delete
5159 "HOST_BITS_PER_WIDE_INT == 64" test.
5160 (num_insns_constant): Ditto. Delete CONST_DOUBLE DImode/VOIDmode case.
5161 (build_mask64_2_operands): Delete "HOST_BITS_PER_WIDE_INT >= 64" test.
5162 (rs6000_emit_set_const): Delete CONST_DOUBLE case.
5163 (rs6000_emit_set_long_const): Delete "HOST_BITS_PER_WIDE_INT >= 64"
5165 (includes_rldic_lshift_p, includes_rldicr_lshift_p): Delete
5166 CONST_DOUBLE DImode/VOIDmode case.
5167 (INT_P, INT_LOWPART): Delete CONST_DOUBLE case.
5168 (print_operand): Delete "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5169 CONST_DOUBLE VOIDmode case.
5170 (output_toc): Delete "HOST_BITS_PER_WIDE_INT == 32" case.
5171 (rs6000_rtx_costs): Delete CONST_DOUBLE DImode/VOIDmode case.
5172 * config/rs6000/rs6000.md (iordi3, xordi3, splitter for these):
5173 Delete CONST_DOUBLE case.
5174 (splitters for mov FMOVE64 const_double): Delete
5175 "HOST_BITS_PER_WIDE_INT == 32" case. Delete
5176 "HOST_BITS_PER_WIDE_INT >= 64" test.
5177 (splitter for mov DI const_int): Delete "HOST_BITS_PER_WIDE_INT == 32"
5179 (mov DI const_double): Delete.
5181 2013-05-04 Jakub Jelinek <jakub@redhat.com>
5183 * combine.c (combine_simplify_rtx) <case SUBREG>: If nonzero_bits
5184 on op shows all bits zero in mode of a lowpart subreg, return zero.
5186 2013-05-03 Michael Meissner <meissner@linux.vnet.ibm.com>
5189 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Use DFmode
5190 to save TFmode registers and DImode to save TImode registers for
5191 caller save operations.
5192 (HARD_REGNO_CALL_PART_CLOBBERED): TFmode and TDmode do not need to
5193 mark being partially clobbered since they only use the first
5196 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): TFmode
5197 and TDmode only use the upper 64-bits of each VSX register.
5199 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5201 * gimple-ssa-strength-reduction.c (slsr_process_phi): Disable.
5202 (find_candidates_in_block): Disable slsr_process_phi.
5204 2013-05-03 Guozhi Wei <carrot@google.com>
5206 * coverage.c (coverage_obj_init): Move the construction of gcov
5208 (build_init_ctor): ... here.
5210 2013-05-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5212 * gimple-ssa-strength-reduction.c (cand_kind): Add CAND_PHI.
5213 (slsr_cand_d): Redefine def_phi.
5214 (stride_status, phi_adjust_status, count_phis_status): New enums.
5215 (find_phi_def): New.
5216 (find_basis_for_base_expr): New.
5217 (find_basis_for_candidate): Handle hidden bases.
5218 (alloc_cand_and_find_basis): Handle phi candidates.
5219 (slsr_process_phi): New.
5220 (create_mul_ssa_cand): Exclude phi base candidates; use integer_onep.
5221 (create_mul_imm_cand): Likewise.
5222 (create_add_ssa_cand): Exclude phi base candidates.
5223 (create_add_imm_cand): Likewise.
5224 (slsr_process_cast): Likewise.
5225 (slsr_process_copy): Likewise.
5226 (find_candidates_in_block): Handle phi candidates.
5227 (dump_candidate): Likewise.
5228 (unconditional_cands): Delete.
5229 (unconditional_cands_with_known_stride_p): Delete.
5230 (phi_dependent_cand_p): New.
5231 (cand_increment): Handle phi-dependent candidates.
5232 (replace_dependent): Delete.
5233 (replace_mult_candidate): New.
5234 (replace_unconditional_candidate): New.
5235 (incr_vec_index): Move to avoid forward reference.
5236 (create_add_on_incoming_edge): New.
5237 (create_phi_basis): New.
5238 (replace_dependents): Delete.
5239 (replace_conditional_candidate): New.
5240 (phi_add_costs): New.
5241 (replace_uncond_cands_and_profitable_phis): New.
5242 (record_increment): Handle phi adjustments.
5243 (record_phi_increments): New.
5244 (record_increments): Handle phi adjustments.
5245 (phi_incr_cost): New.
5246 (lowest_cost_path): Handle phis.
5247 (total_savings): Likewise.
5248 (analyze_increments): Likewise.
5249 (ncd_with_phi): New.
5250 (ncd_of_cand_and_phis): New.
5251 (nearest_common_dominator_for_cands): Handle phi increments.
5252 (all_phi_incrs_profitable): New.
5253 (replace_profitable_candidates): Handle phi-dependent candidates.
5254 (analyze_candidates_and_replace): Likewise.
5256 2013-05-03 Teresa Johnson <tejohnson@google.com>
5259 * sched-rgn.c (compute_dom_prob_ps): Ensure accumulated probabilities
5260 do not exceed REG_BR_PROB_BASE.
5262 2013-05-03 Jeff Law <law@redhat.com>
5264 PR tree-optimization/57144
5265 * tree-vrp.c (simplify_cond_using_ranges): Verify the constant
5266 operand of the condition will bit into the new type when eliminating
5267 a cast feeding a condition.
5269 2013-05-03 Jakub Jelinek <jakub@redhat.com>
5271 PR rtl-optimization/57130
5272 * combine.c (make_compound_operation) <case SUBREG>: Pass SET instead
5273 of COMPARE as in_code to the recursive call if needed.
5275 2013-05-03 Uros Bizjak <ubizjak@gmail.com>
5277 * config/i386/i386.md (isa): Add x64_sse4_noavx and x64_avx members.
5278 (enabled): Handle new members.
5279 * config/i386/sse.md (*vec_concatv2si): Merge from
5280 *vec_concatv2si_sse2 and vec_concatv2si_sse.
5281 (vec_concatv2di): Merge with *vec_concatv2di_rex64.
5283 2013-05-03 Joern Rennecke <joern.rennecke@embecosm.com>
5285 PR tree-optimization/57027
5286 * tree-ssa-math-opts.c (convert_mult_to_fma): When checking
5287 for fnms opportunity, check we got the prerequisite kind
5288 of tree / gimple before using accessor functions.
5290 2013-05-03 Richard Biener <rguenther@suse.de>
5292 * double-int.h (lshift): New overload without precision
5294 (operator *=, operator +=, operator -=): Move ...
5295 * double-int.c (operator *=, operator +=, operator -=): ... here
5296 and implement more efficiently.
5297 (mul_double_with_sign): Remove.
5298 (lshift_double): Adjust to take unsinged shift argument, push
5299 dispatching code to callers.
5300 (mul_double_wide_with_sign): Add early out for callers that
5301 are not interested in high parts or overflow.
5302 (lshift): New function.
5303 (lshift, rshift, alshift, arshift, llshift, lrshift): Add
5305 (lrotate, rrotate): Use logical shifts.
5306 * expr.c (get_inner_reference): Use lshift.
5307 * fixed-value.c (do_fixed_divide): Likewise.
5308 * tree-dfa.c (get_ref_base_and_extent): Likewise.
5309 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
5310 (indirect_refs_may_alias_p): Likewise.
5311 (stmt_kills_ref_p_1): Likewise.
5313 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5315 * config/aarch64/aarch64-simd.md (simd_fabd): Correct the description.
5317 2013-05-03 Vidya Praveen <vidyapraveen@arm.com>
5319 * config/aarch64/aarch64-simd.md (*fabd_scalar<mode>3): Support
5320 scalar form of FABD instruction.
5322 2013-05-02 Vladimir Makarov <vmakarov@redhat.com>
5324 * lra-constraints.c (process_alt_operands): Add checking alt
5325 number to choose the best alternative.
5327 2013-05-02 Richard Biener <rguenther@suse.de>
5329 * tree-eh.c (cleanup_empty_eh_merge_phis): Remove rename_virts
5330 bitmap and its handling.
5331 (pass_cleanup_eh): Set todo_flags_finish to TODO_verify_ssa.
5333 2013-05-02 Richard Biener <rguenther@suse.de>
5336 * tree-inline.c (copy_loops): Properly handle removed loops.
5337 (copy_cfg_body): Mark destination loops for fixup if source
5340 2013-05-02 Greta Yorsh <Greta.Yorsh@arm.com>
5343 * config/arm/arm.c (arm_expand_epilogue): Check really_return before
5344 generating simple_return for naked functions.
5346 2013-05-02 Martin Jambor <mjambor@suse.cz>
5349 * ipa-prop.h (ipa_agg_replacement_value): New flag by_ref.
5350 * ipa-cp.c (ipa_get_indirect_edge_target_1): Also check that by_ref
5352 (find_aggregate_values_for_callers_subset): Fill in the by_ref flag of
5353 ipa_agg_replacement_value structures.
5354 (known_aggs_to_agg_replacement_list): Likewise.
5355 * ipa-prop.c (write_agg_replacement_chain): Stream by_ref flag.
5356 (read_agg_replacement_chain): Likewise.
5357 (ipcp_transform_function): Also check that by_ref flags match.
5359 2013-05-02 Richard Biener <rguenther@suse.de>
5361 * graphds.h (struct graph): Add obstack member.
5362 * graphds.c (new_graph): Initialize obstack and allocate
5364 (add_edge): Allocate edge from the obstack.
5365 (free_graph): Free the obstack instead of all edges and vertices.
5367 2013-05-02 Teresa Johnson <tejohnson@google.com>
5369 * loop-unswitch.c (unswitch_loop): Use helper routines with rounding
5371 * cfg.c (update_bb_profile_for_threading): Ditto.
5372 * tree-inline.c (copy_bb): Ditto.
5373 (copy_edges_for_bb): Ditto.
5374 (initialize_cfun): Ditto.
5375 (copy_cfg_body): Ditto.
5376 (expand_call_inline): Ditto.
5377 * ipa-inline-analysis.c (estimate_edge_size_and_time): Ditto.
5378 (estimate_node_size_and_time): Ditto.
5379 (inline_merge_summary): Ditto.
5380 * cgraphclones.c (cgraph_clone_edge): Ditto.
5381 (cgraph_clone_node): Ditto.
5382 * sched-rgn.c (compute_dom_prob_ps): Ditto.
5383 (compute_trg_info): Ditto.
5385 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5387 * config/aarch64/aarch64.md (movsi_aarch64): Only allow to/from
5388 S reg when fp attribute set.
5389 (movdi_aarch64): Only allow to/from D reg when fp attribute set.
5391 2013-05-02 Ian Bolton <ian.bolton@arm.com>
5393 * config/aarch64/aarch64.md (*and_one_cmpl<mode>3_compare0):
5395 (*and_one_cmplsi3_compare0_uxtw): Likewise.
5396 (*and_one_cmpl_<SHIFT:optab><mode>3_compare0): Likewise.
5397 (*and_one_cmpl_<SHIFT:optab>si3_compare0_uxtw): Likewise.
5399 2013-05-02 Richard Biener <rguenther@suse.de>
5401 * tree-scalar-evolution.c (scev_info_hasher): Remove.
5402 (struct instantiate_cache_entry): New type.
5403 (struct instantiate_cache_entry_hasher): New hashtable descriptor.
5404 (struct instantiate_cache_type): New type.
5405 (set_instantiated_value, get_instantiated_value): Remove.
5406 (get_instantiated_value_entry): New function.
5407 (instantiate_scev_name): Use the new cache and adjust.
5408 (instantiate_scev_poly): Adjust.
5409 (instantiate_scev_binary): Likewise.
5410 (instantiate_array_ref): Likewise.
5411 (instantiate_scev_convert): Likewise.
5412 (instantiate_scev_not): Likewise.
5413 (instantiate_scev_3): Likewise.
5414 (instantiate_scev_2): Likewise.
5415 (instantiate_scev_r): Likewise.
5416 (instantiate_scev): Likewise.
5417 (resolve_mixers): Likewise.
5419 2013-05-01 Vladimir Makarov <vmakarov@redhat.com>
5422 * lra-constraints.c (best_small_class_operands_num): Remove.
5423 (process_alt_operands): Remove small_class_operands_num. Take
5424 small classes operands into losers and only if the operand is not
5425 matched. Modify debugging output.
5426 (curr_insn_transform): Remove best_small_class_operands_num.
5429 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5431 * config/aarch64/aarch64-builtins.c
5432 (aarch64_gimple_fold_builtin.c): Fold more modes for reduc_splus_.
5433 * config/aarch64/aarch64-simd-builtins.def
5434 (reduc_splus_): Add new modes.
5435 (reduc_uplus_): New.
5436 * config/aarch64/aarch64-simd.md (aarch64_addvv4sf): Remove.
5437 (reduc_uplus_v4sf): Likewise.
5438 (reduc_splus_v4sf): Likewise.
5439 (aarch64_addv<mode>): Likewise.
5440 (reduc_uplus_<mode>): Likewise.
5441 (reduc_splus_<mode>): Likewise.
5442 (aarch64_addvv2di): Likewise.
5443 (reduc_uplus_v2di): Likewise.
5444 (reduc_splus_v2di): Likewise.
5445 (aarch64_addvv2si): Likewise.
5446 (reduc_uplus_v2si): Likewise.
5447 (reduc_splus_v2si): Likewise.
5448 (reduc_<sur>plus_<mode>): New.
5449 (reduc_<sur>plus_v2di): Likewise.
5450 (reduc_<sur>plus_v2si): Likewise.
5451 (reduc_<sur>plus_v4sf): Likewise.
5452 (aarch64_addpv4sf): Likewise.
5453 * config/aarch64/arm_neon.h
5454 (vaddv<q>_<s,u,f><8, 16, 32, 64): Rewrite using builtins.
5455 * config/aarch64/iterators.md (unspec): Remove UNSPEC_ADDV,
5456 add UNSPEC_SADDV, UNSPEC_UADDV.
5458 (sur): Add UNSPEC_SADDV, UNSPEC_UADDV.
5460 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5462 * config/aarch64/arm_neon.h
5463 (v<max,min><nm><q><v>_<sfu><8, 16, 32, 64>): Rewrite using builtins.
5465 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5467 * config/aarch64/aarch64-builtins
5468 (aarch64_gimple_fold_builtin): Fold reduc_<su><maxmin>_ builtins.
5470 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5472 * config/aarch64/aarch64-simd-builtins.def
5474 (reduc_smin_): Likewise.
5475 (reduc_umax_): Likewise.
5476 (reduc_umin_): Likewise.
5477 (reduc_smax_nan_): Likewise.
5478 (reduc_smin_nan_): Likewise.
5481 (smax): Update for V2SF, V4SF and V2DF modes.
5484 (smin_nan): Likewise.
5485 * config/aarch64/aarch64-simd.md (<maxmin><mode>3): Rename to...
5486 (<su><maxmin><mode>3): ...This, refactor.
5487 (s<maxmin><mode>3): New.
5488 (<maxmin_uns><mode>3): Likewise.
5489 (reduc_<maxmin_uns>_<mode>): Refactor.
5490 (reduc_<maxmin_uns>_v4sf): Likewise.
5491 (reduc_<maxmin_uns>_v2si): Likewise.
5492 (aarch64_<fmaxmin><mode>: Remove.
5493 * config/aarch64/arm_neon.h (vmax<q>_f<32,64>): Rewrite to use
5495 (vmin<q>_f<32,64>): Likewise.
5496 * config/iterators.md (unspec): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5498 (su): Add mappings for smax, smin, umax, umin.
5500 (FMAXMINV): Add UNSPEC_FMAXNMV, UNSPEC_FMINNMV.
5501 (FMAXMIN): Rename as...
5502 (FMAXMIN_UNS): ...This.
5504 (fmaxminv): Likewise.
5505 (fmaxmin): Likewise.
5507 (maxmin_uns_op): Likewise.
5509 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5511 * config/aarch64/arm_neon.h
5512 (vac<ge, gt><sd>_f<32, 64>): Rename to...
5513 (vca<ge, gt><sd>_f<32, 64>): ...this, reimpliment in C.
5514 (vca<ge, gt, lt, le><q>_f<32, 64>): Reimpliment in C.
5516 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5518 * config/aarch64/aarch64-simd.md (*aarch64_fac<optab><mode>): New.
5519 * config/aarch64/iterators.md (FAC_COMPARISONS): New.
5521 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5523 * config/aarch64/aarch64-simd.md
5524 (vcond<mode>_internal): Handle special cases for constant masks.
5525 (vcond<mode><mode>): Allow nonmemory_operands for outcome vectors.
5526 (vcondu<mode><mode>): Likewise.
5527 (vcond<v_cmp_result><mode>): New.
5529 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5531 * config/aarch64/aarch64-builtins.c (BUILTIN_VALLDI): Define.
5532 (aarch64_fold_builtin): Add folding for cm<eq,ge,gt,tst>.
5533 * config/aarch64/aarch64-simd-builtins.def
5534 (cmeq): Update to BUILTIN_VALLDI.
5539 * config/aarch64/arm_neon.h
5540 (vc<eq, lt, le, gt, ge, tst><z><qsd>_<fpsu><8,16,32,64>): Remap
5541 to builtins or C as appropriate.
5543 2013-05-01 James Greenhalgh <james.greenhalgh@arm.com>
5545 * config/aarch64/aarch64-simd-builtins.def (cmhs): Rename to...
5547 (cmhi): Rename to...
5549 * config/aarch64/aarch64-simd.md
5550 (simd_mode): Add SF.
5551 (aarch64_vcond_internal): Use new names for unsigned comparison insns.
5552 (aarch64_cm<optab><mode>): Rewrite to not use UNSPECs.
5553 * config/aarch64/aarch64.md (*cstore<mode>_neg): Rename to...
5554 (cstore<mode>_neg): ...This.
5555 * config/aarch64/iterators.md
5557 (unspec): Remove UNSPEC_CM<EQ, LE, LT, GE, GT, HS, HI, TST>.
5559 (UCOMPARISONS): Likewise.
5560 (optab): Add missing comparisons.
5568 (V_cmp_result): Add DF, SF modes.
5569 (v_cmp_result): Likewise.
5572 * config/aarch64/predicates.md (aarch64_reg_or_fp_zero): New.
5574 2013-05-01 Greta Yorsh <Greta.Yorsh@arm.com>
5576 * config/arm/thumb2.md (thumb2_smaxsi3,thumb2_sminsi3): Convert
5577 define_insn to define_insn_and_split.
5578 (thumb32_umaxsi3,thumb2_uminsi3): Likewise.
5579 (thumb2_negdi2,thumb2_abssi2,thumb2_neg_abssi2): Likewise.
5580 (thumb2_mov_scc,thumb2_mov_negscc,thumb2_mov_notscc): Likewise.
5581 (thumb2_movsicc_insn,thumb2_and_scc,thumb2_ior_scc): Likewise.
5582 (thumb2_negscc): Likewise.
5584 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5586 * config/arm/thumb2.md (thumb2_incscc, thumb2_decscc): Delete.
5588 2013-04-30 Greta Yorsh <Greta.Yorsh@arm.com>
5590 * config/arm/thumb2.md: Remove trailing whitespaces.
5592 2013-04-30 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
5594 * explow.c (plus_constant): Pass "mode" to immed_double_int_const.
5595 Use gen_int_mode rather than GEN_INT.
5597 2013-04-30 H.J. Lu <hongjiu.lu@intel.com>
5599 * value-prof.c (stream_in_histogram_value): Remove the strayed
5602 2013-04-30 Richard Biener <rguenther@suse.de>
5605 * cfghooks.c (split_edge): Properly check for the loop latch edge.
5607 2013-04-30 Richard Biener <rguenther@suse.de>
5610 * tree-eh.c (sink_clobbers): Preserve virtual SSA form.
5612 2013-04-30 Andrey Belevantsev <abel@ispras.ru>
5614 PR rtl-optimization/56957
5615 PR rtl-optimization/57105
5616 * sel-sched.c (move_op_orig_expr_found): Remove insn_emitted
5617 variable. Use just INSN_UID for determining whether an insn
5618 should be only disconnected from the insn stream.
5619 * sel-sched-ir.h (EXPR_WAS_CHANGED): Remove.
5621 2013-04-30 Jakub Jelinek <jakub@redhat.com>
5623 PR tree-optimization/57104
5624 * tsan.c (instrument_expr): Don't instrument accesses to
5625 DECL_HARD_REGISTER VAR_DECLs.
5627 2013-04-30 Richard Biener <rguenther@suse.de>
5629 * function.h (loops_for_fn): New inline function.
5630 (set_loops_for_fn): Likewise.
5631 * cfgloop.h (place_new_loop): Add struct function parameter.
5632 (get_loop): Likewise.
5633 (get_loops): Likewise.
5634 (number_of_loops): Likewise.
5636 (fel_init): Likewise.
5637 * cfg.c (get_loop_copy): Adjust.
5638 * cfgloop.c (flow_loops_dump): Likewise.
5639 (record_loop_exits): Likewise.
5640 (verify_loop_structure): Likewise.
5641 * cfgloopanal.c (mark_irreducible_loops): Likewise.
5642 (estimate_reg_pressure_cost): Likewise.
5643 (mark_loop_exit_edges): Likewise.
5644 * cfgloopmanip.c (place_new_loop): Likewise.
5645 (add_loop): Likewise.
5646 (duplicate_loop): Likewise.
5647 * graph.c (draw_cfg_nodes): Likewise.
5648 * graphite-clast-to-gimple.c (translate_clast_user): Likewise.
5649 * graphite-sese-to-poly.c (build_scop_scattering): Likewise.
5650 (extract_affine_chrec): Likewise.
5651 (build_scop_iteration_domain): Likewise.
5652 * graphite.c (graphite_initialize): Likewise.
5653 * ira-build.c (create_loop_tree_nodes): Likewise.
5654 (more_one_region_p): Likewise.
5655 (rebuild_regno_allocno_maps): Likewise.
5656 (mark_loops_for_removal): Likewise.
5657 (mark_all_loops_for_removal): Likewise.
5658 (remove_unnecessary_regions): Likewise.
5659 (ira_build): Likewise.
5660 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
5661 * loop-init.c (fix_loop_structure): Likewise.
5662 (gate_rtl_move_loop_invariants): Likewise.
5663 (gate_rtl_unswitch): Likewise.
5664 (gate_rtl_unroll_and_peel_loops): Likewise.
5665 (rtl_doloop): Likewise.
5666 * lto-streamer-in.c (input_cfg): Likewise.
5667 * lto-streamer-out.c (output_cfg): Likewise.
5668 * modulo-sched.c (sms_schedule): Likewise.
5669 * predict.c (tree_estimate_probability): Likewise.
5670 (tree_estimate_probability_driver): Likewise.
5671 (estimate_loops): Likewise.
5672 * tree-cfg.c (fixup_loop_arrays_after_move): Likewise.
5673 (move_sese_region_to_fn): Likewise.
5674 (debug_loop_num): Likewise.
5675 * tree-chrec.c (chrec_evaluate): Likewise.
5676 (hide_evolution_in_other_loops_than_loop): Likewise.
5677 (chrec_component_in_loop_num): Likewise.
5678 (reset_evolution_in_loop): Likewise.
5679 (evolution_function_is_invariant_rec_p): Likewise.
5680 * tree-if-conv.c (main_tree_if_conversion): Likewise.
5681 * tree-inline.c (copy_loops): Likewise.
5682 (copy_cfg_body): Likewise.
5683 (tree_function_versioning): Likewise.
5684 * tree-loop-distribution.c (rdg_flag_loop_exits): Likewise.
5685 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5687 (add_to_evolution_1): Likewise.
5688 (scev_const_prop): Likewise.
5689 * tree-scalar-evolution.h (get_chrec_loop): Likewise.
5690 * tree-ssa-loop-ch.c (copy_loop_headers): Likewise.
5691 * tree-ssa-loop-im.c (analyze_memory_references): Likewise.
5692 (tree_ssa_lim_initialize): Likewise.
5693 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Likewise.
5694 (verify_loop_closed_ssa): Likewise.
5695 * tree-ssa-loop.c (tree_ssa_loop_init): Likewise.
5696 (tree_ssa_loop_im): Likewise.
5697 (tree_ssa_loop_unswitch): Likewise.
5698 (tree_vectorize): Likewise.
5699 (check_data_deps): Likewise.
5700 (tree_ssa_loop_ivcanon): Likewise.
5701 (tree_ssa_loop_bounds): Likewise.
5702 (tree_complete_unroll): Likewise.
5703 (tree_complete_unroll_inner): Likewise.
5704 (tree_parallelize_loops): Likewise.
5705 (tree_ssa_loop_prefetch): Likewise.
5706 (tree_ssa_loop_ivopts): Likewise.
5707 * tree-ssa.c (execute_update_addresses_taken): Liekwise.
5708 * tree-vectorizer.c (vectorize_loops): Likewise.
5710 2013-04-29 Mike Frysinger <vapier@gentoo.org>
5712 * config/arm/bpabi.h (EABI_LINK_SPEC): Define.
5713 (BPABI_LINK_SPEC): Use new EABI_LINK_SPEC.
5714 * config/arm/linux-eabi.h (LINK_SPEC): Replace BE8_LINK_SPEC
5715 with EABI_LINK_SPEC.
5717 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5720 * config/i386/i386.md (*zero_extendsidi2): Add "!" to m->?*y
5723 2013-04-29 Vladimir Makarov <vmakarov@redhat.com>
5726 * lra-constraints.c (process_alt_operands): Discourage a bit more
5727 using memory for pseudos. Print cost dump for alternatives.
5728 Modify cost values for conflicts with early clobbers.
5729 (curr_insn_transform): Spill pseudos reassigned to NO_REGS.
5731 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5734 * config/i386/i386.c (ix86_expand_vec_perm): Validize constant memory.
5736 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5738 * config/aarch64/aarch64.md (movsi_aarch64): Support LDR/STR
5740 (movdi_aarch64): Support LDR/STR from/to D register.
5742 2013-04-29 Ian Bolton <ian.bolton@arm.com>
5744 * common/config/aarch64/aarch64-common.c: Enable REE pass at O2
5745 or higher by default.
5747 2013-04-29 Richard Biener <rguenther@suse.de>
5750 * tree-inline.c (copy_edges_for_bb): Still split the bbs,
5751 even if not adding abnormal edges for calls that can make
5754 2013-04-29 Richard Biener <rguenther@suse.de>
5757 * tree-cfg.c (move_stmt_op): Fix condition under which to update
5759 (move_stmt_r): Remove redundant checking.
5761 2013-04-29 Teresa Johnson <tejohnson@google.com>
5764 * basic-block.h (apply_scale): New function.
5765 (apply_probability): Use apply_scale.
5766 * gimple-streamer-in.c (input_bb): Ditto.
5767 * lto-streamer-in.c (input_cfg): Ditto.
5768 * lto-cgraph.c (merge_profile_summaries): Ditto.
5769 * tree-optimize.c (execute_fixup_cfg): Ditto.
5770 * tree-inline.c (copy_bb): Update comment to use apply_scale.
5771 (copy_edges_for_bb): Ditto.
5772 (copy_cfg_body): Ditto.
5774 2013-04-29 Tom de Vries <tom@codesourcery.com>
5776 * tree-ssa-tail-merge.c (find_same_succ_bb): Skip loop latch bbs.
5777 (replace_block_by): Don't set LOOPS_NEED_FIXUP.
5778 (tail_merge_optimize): Handle current_loops == NULL.
5780 2013-04-26 Jeff Law <law@redhat.com>
5782 * tree-vrp.c (range_fits_type_p): Move to earlier point in file.
5783 (simplify_cond_using_ranges): Generalize code to simplify
5784 COND_EXPRs where one argument is a constant and the other
5785 is an SSA_NAME created by an integral type conversion.
5787 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5789 * config/arm/arm.md (store_minmaxsi): Use only when
5790 optimize_insn_for_size_p.
5792 2013-04-29 Christian Bruel <christian.bruel@st.com>
5795 * sh.md (tstsi_t_zero_extract_eq): Set mode for operand 0.
5797 2013-04-29 Richard Biener <rguenther@suse.de>
5800 * omp-low.c (expand_omp_taskreg): If the parent function had a broken
5801 loop tree make sure to schedule a fixup for the child as well.
5802 (expand_omp_for_generic): Properly add loops.
5803 (expand_omp_for_static_nochunk): Likewise.
5804 (expand_omp_for_static_chunk): Likewise.
5805 (expand_omp_for): For the degenerate case fixup loops.
5806 (expand_omp_sections): Fix default bb placement in loops.
5807 (expand_omp_atomic_pipeline): Properly add loops.
5809 2013-04-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5811 * predict.c: Fix typo in comment above #define PROB_VERY_UNLIKELY.
5813 2013-04-29 Tom de Vries <tom@codesourcery.com>
5815 * tree-ssa-tail-merge.c: Update header comment.
5817 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5819 * config/aarch64/arm_neon.h
5820 (vcvt<sd>_f<32,64>_s<32,64>): Rewrite in C.
5821 (vcvt<q>_f<32,64>_s<32,64>): Rewrite using builtins.
5822 (vcvt_<high_>_f<32,64>_f<32,64>): Likewise.
5823 (vcvt<qsd>_<su><32,64>_f<32,64>): Likewise.
5824 (vcvta<qsd>_<su><32,64>_f<32,64>): Likewise.
5825 (vcvtm<qsd>_<su><32,64>_f<32,64>): Likewise.
5826 (vcvtn<qsd>_<su><32,64>_f<32,64>): Likewise.
5827 (vcvtp<qsd>_<su><32,64>_f<32,64>): Likewise.
5829 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5831 * config/aarch64/aarch64-simd.md
5832 (<optab><VDQF:mode><fcvt_target>2): New, maps to fix, fixuns.
5833 (<fix_trunc_optab><VDQF:mode><fcvt_target>2): New, maps to
5834 fix_trunc, fixuns_trunc.
5835 (ftrunc<VDQF:mode>2): New.
5836 * config/aarch64/iterators.md (optab): Add fix, fixuns.
5837 (fix_trunc_optab): New.
5839 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5841 * config/aarch64/aarch64-builtins.c
5842 (aarch64_builtin_vectorized_function): Vectorize over ifloorf,
5843 iceilf, lround, iroundf.
5845 2013-04-29 Uros Bizjak <ubizjak@gmail.com>
5848 * config/i386/i386.h (enum ix86_tune_indices)
5849 <X86_TUNE_INTER_UNIT_MOVES_TO_VEC, X86_TUNE_INTER_UNIT_MOVES_FROM_VEC>:
5850 New, split from X86_TUNE_INTER_UNIT_MOVES.
5851 <X86_TUNE_INTER_UNIT_MOVES>: Remove.
5852 (TARGET_INTER_UNIT_MOVES_TO_VEC): New define.
5853 (TARGET_INTER_UNIT_MOVES_FROM_VEC): Ditto.
5854 (TARGET_INTER_UNIT_MOVES): Remove.
5855 * config/i386/i386.c (initial_ix86_tune_features): Update.
5856 Disable X86_TUNE_INTER_UNIT_MOVES_FROM_VEC for m_ATHLON_K8 only.
5857 (ix86_expand_convert_uns_didf_sse): Use
5858 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5859 (ix86_expand_vector_init_one_nonzero): Ditto.
5860 (ix86_expand_vector_init_interleave): Ditto.
5861 (inline_secondary_memory_needed): Return true for moves from SSE class
5862 registers for !TARGET_INTER_UNIT_MOVES_FROM_VEC targets and for moves
5863 to SSE class registers for !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
5864 * config/i386/constraints.md (Yi, Ym): Depend on
5865 TARGET_INTER_UNIT_MOVES_TO_VEC.
5866 (Yj, Yn): New constraints.
5867 * config/i386/i386.md (*movdi_internal): Change constraints of
5868 operand 1 from Yi to Yj and from Ym to Yn.
5869 (*movsi_internal): Ditto.
5870 (*movdf_internal): Ditto.
5871 (*movsf_internal): Ditto.
5872 (*float<SWI48x:mode><X87MODEF:mode>2_1): Use
5873 TARGET_INTER_UNIT_MOVES_TO_VEC instead of TARGET_INTER_UNIT_MOVES.
5874 (*float<SWI48x:mode><X87MODEF:mode>2_1 splitters): Ditto.
5875 (floatdi<X87MODEF:mode>2_i387_with_xmm): Ditto.
5876 (floatdi<X87MODEF:mode>2_i387_with_xmm splitters): Ditto.
5877 * config/i386/sse.md (movdi_to_sse): Ditto.
5878 (sse2_stored): Change constraint of operand 1 from Yi to Yj.
5879 Use TARGET_INTER_UNIT_MOVES_FROM_VEC instead of
5880 TARGET_INTER_UNIT_MOVES.
5881 (sse_storeq_rex64): Change constraint of operand 1 from Yi to Yj.
5882 (sse_storeq_rex64 splitter): Use TARGET_INTER_UNIT_MOVES_FROM_VEC
5883 instead of TARGET_INTER_UNIT_MOVES.
5884 * config/i386/mmx.md (*mov<mode>_internal): Change constraint of
5885 operand 1 from Yi to Yj and from Ym to Yn.
5887 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5889 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi_): New.
5890 (float_truncate_hi_): Likewise.
5891 (float_extend_lo_): Likewise.
5892 (float_truncate_lo_): Likewise.
5893 * config/aarch64/aarch64-simd.md (vec_unpacks_lo_v4sf): New.
5894 (aarch64_float_extend_lo_v2df): Likewise.
5895 (vec_unpacks_hi_v4sf): Likewise.
5896 (aarch64_float_truncate_lo_v2sf): Likewise.
5897 (aarch64_float_truncate_hi_v4sf): Likewise.
5898 (vec_pack_trunc_v2df): Likewise.
5899 (vec_pack_trunc_df): Likewise.
5901 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5903 * config/aarch64/aarch64-builtins.c
5904 (aarch64_fold_builtin): Fold float conversions.
5905 * config/aarch64/aarch64-simd-builtins.def
5906 (floatv2si, floatv4si, floatv2di): New.
5907 (floatunsv2si, floatunsv4si, floatunsv2di): Likewise.
5908 * config/aarch64/aarch64-simd.md
5909 (<optab><fcvt_target><VDQF:mode>2): New, expands to float and floatuns.
5910 * config/aarch64/iterators.md (FLOATUORS): New.
5911 (optab): Add float, floatuns.
5912 (su_optab): Likewise.
5914 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5916 * config/aarch64/aarch64-builtins.c
5917 (aarch64_builtin_vectorized_function): Use new names for
5919 * config/aarch64/aarch64-simd-builtins.def (fcvtzs): Split as...
5920 (lbtruncv2sf, lbtruncv4sf, lbtruncv2df): ...This.
5921 (fcvtzu): Split as...
5922 (lbtruncuv2sf, lbtruncuv4sf, lbtruncuv2df): ...This.
5923 (fcvtas): Split as...
5924 (lroundv2sf, lroundv4sf, lroundv2df, lroundsf, lrounddf): ...This.
5925 (fcvtau): Split as...
5926 (lrounduv2sf, lrounduv4sf, lrounduv2df, lroundusf, lroundudf): ...This.
5927 (fcvtps): Split as...
5928 (lceilv2sf, lceilv4sf, lceilv2df): ...This.
5929 (fcvtpu): Split as...
5930 (lceiluv2sf, lceiluv4sf, lceiluv2df, lceilusf, lceiludf): ...This.
5931 (fcvtms): Split as...
5932 (lfloorv2sf, lfloorv4sf, lfloorv2df): ...This.
5933 (fcvtmu): Split as...
5934 (lflooruv2sf, lflooruv4sf, lflooruv2df, lfloorusf, lfloorudf): ...This.
5935 (lfrintnv2sf, lfrintnv4sf, lfrintnv2df, lfrintnsf, lfrintndf): New.
5936 (lfrintnuv2sf, lfrintnuv4sf, lfrintnuv2df): Likewise.
5937 (lfrintnusf, lfrintnudf): Likewise.
5938 * config/aarch64/aarch64-simd.md
5939 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Convert to
5941 (aarch64_fcvt<frint_suffix><su><mode>): Remove.
5942 * config/aarch64/iterators.md (FCVT): Include UNSPEC_FRINTN.
5943 (fcvt_pattern): Likewise.
5945 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5947 * config/aarch64/aarch64-simd.md
5948 (l<fcvt_pattern><su_optab><fcvt_target><VDQF:mode>2): Rename to...
5949 (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): ... This.
5951 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5953 * config/aarch64/arm_neon.h (vrndq<a,m,n,p>_f<32, 64>): Rename to...
5954 (vrnd<a,m,n,p>q_f<32, 64>): ...This, implement using builtin.
5955 (vrnd<a,m,n,p>_f32): Implement using builtins.
5956 (vrnd<i,x><q>_f<32, 64>): New.
5958 2013-04-29 James Greenhalgh <james.greenhalgh@arm.com>
5960 * config/aarch64/aarch64-builtins.c
5961 (aarch64_builtin_vectorized_function): Fold to standard pattern names.
5962 * config/aarch64/aarch64-simd-builtins.def (frintn): New.
5963 (frintz): Rename to...
5965 (frintp): Rename to...
5967 (frintm): Rename to...
5969 (frinti): Rename to...
5970 (nearbyint): ...this.
5971 (frintx): Rename to...
5973 (frinta): Rename to...
5975 * config/aarch64/aarch64-simd.md
5976 (aarch64_frint<frint_suffix><mode>): Delete.
5977 (<frint_pattern><mode>2): Convert to insn.
5978 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRINTN.
5979 * config/aarch64/iterators.md (FRINT): Add UNSPEC_FRINTN.
5980 (frint_pattern): Likewise.
5981 (frint_suffix): Likewise.
5983 2013-04-29 Richard Biener <rguenther@suse.de>
5985 PR tree-optimization/57081
5986 * loop-init.c: Include tree-flow.h.
5987 (loop_optimizer_finalize): Free number of iteration estimates.
5988 * Makefile.in (loop-init.o): Add $(TREE_FLOW_H) dependency.
5990 2013-04-29 Jakub Jelinek <jakub@redhat.com>
5992 PR tree-optimization/57083
5993 * tree-vrp.c (extract_range_from_binary_expr_1): For LSHIFT_EXPR with
5994 non-singleton shift count range, zero extend low_bound for uns case.
5996 * config/i386/predicates.md (general_vector_operand): New predicate.
5997 * config/i386/i386.c (const_vector_equal_evenodd_p): New function.
5998 (ix86_expand_mul_widen_evenodd): Force op1 resp. op2 into register
5999 if they aren't nonimmediate operands. If their original values
6000 satisfy const_vector_equal_evenodd_p, don't shift them.
6001 * config/i386/sse.md (mul<mode>3): Use general_vector_operand
6002 predicates. For the SSE4.1 case force operands[{1,2}] into registers
6003 if not nonimmediate_operand.
6004 (vec_widen_smult_even_v4si): Use nonimmediate_operand predicates
6005 instead of register_operand.
6006 (vec_widen_<s>mult_odd_<mode>): Use general_vector_operand predicates.
6008 2013-04-28 Eric Botcazou <ebotcazou@adacore.com>
6010 * stor-layout.c (finalize_size_functions): Allocate a structure and
6011 reset cfun before dumping the functions.
6013 2013-04-27 Jakub Jelinek <jakub@redhat.com>
6015 * config/i386/i386.c (ix86_expand_call): Make cregs_size unsigned.
6018 * config/i386/i386.c (ix86_expand_mul_widen_evenodd): Don't
6019 use xop_pmacsdqh if uns_p.
6020 * config/i386/sse.md (xop_rotr<mode>3): Fix up computation of
6021 the immediate rotate count.
6023 2013-04-26 Vladimir Makarov <vmakarov@redhat.com>
6025 * rtl.h (struct rtx_def): Add comment for field jump.
6026 (LRA_SUBREG_P): New macro.
6027 * recog.c (register_operand): Check LRA_SUBREG_P.
6028 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6030 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6031 (lra_final_code_change): Skip subreg change for operators.
6032 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6033 if there are no operand changes.
6034 * lra-constraints.c (curr_insn_set): New.
6035 (match_reload): Set LRA_SUBREG_P.
6036 (emit_spill_move): Ditto.
6037 (check_and_process_move): Use curr_insn_set. Process only single
6038 set insns. Don't initialize sec_mem_p and change_p.
6039 (simplify_operand_subreg): Use LRA_SUBREG_P.
6040 (reg_in_class_p): New function.
6041 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6042 of #ifdef. Add code to remove cycling.
6043 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6044 non-null disp. Reload inner instead of disp when base and index
6045 are null. Try to put lo_sum into register.
6046 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6047 (check_and_process_move): Move code for move cost check to
6048 simple_move_p. Remove equiv_substitution.
6049 (simple_move_p): New function.
6050 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6051 curr_insn_set. Call check_and_process_move only for single set
6052 insns. Use the new function. Move call of check_and_process_move
6053 after operand equiv substitution and address process.
6055 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6058 * tree-ssa-uninit.c (compute_uninit_opnds_pos): In functions
6059 with nonlocal goto receivers or returns twice calls, ignore
6060 unininitialized values from abnormal edges to nl goto receiver
6061 or returns twice call.
6063 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6065 PR tree-optimization/57051
6066 * fold-const.c (const_binop): Handle VEC_LSHIFT_EXPR
6067 and VEC_RSHIFT_EXPR if shift count is a multiple of element
6070 2013-04-26 Richard Biener <rguenther@suse.de>
6072 * omp-low.c (finalize_task_copyfn): Do not drop PROP_loops.
6073 (expand_omp_taskreg): Likewise. Mark loops for fixup.
6074 * tree-cfg.c (move_block_to_fn): Remap loop fathers.
6075 (fixup_loop_arrays_after_move): New function.
6076 (move_sese_region_to_fn): Properly outline the loop tree parts
6079 2013-04-26 Uros Bizjak <ubizjak@gmail.com>
6081 * config/i386/i386.md (type, unit): Fix long lines.
6083 2013-04-26 Richard Biener <rguenther@suse.de>
6085 * Makefile.in (lto-streamer-in.o): Add $(CFGLOOP_H) dependency.
6086 (lto-streamer-out.o): Likewise.
6087 * cfgloop.c (init_loops_structure): Export, add struct function
6088 argument and adjust.
6089 (flow_loops_find): Adjust.
6090 * cfgloop.h (enum loop_estimation): Add EST_LAST.
6091 (init_loops_structure): Declare.
6092 * lto-streamer-in.c: Include cfgloop.h.
6093 (input_cfg): Input the loop tree.
6094 * lto-streamer-out.c: Include cfgloop.h.
6095 (output_cfg): Output the loop tree.
6096 (output_struct_function_base): Do not drop PROP_loops.
6098 2013-03-26 Richard Biener <rguenther@suse.de>
6100 * tree-cfg.c (execute_build_cfg): Build the loop tree.
6101 (pass_build_cfg): Provide PROP_loops.
6102 (move_sese_region_to_fn): Remove loops that are outlined into fn
6104 * tree-inline.c: Include cfgloop.h.
6105 (initialize_cfun): Do not drop PROP_loops.
6106 (copy_loops): New function.
6107 (copy_cfg_body): Copy loop structure.
6108 (tree_function_versioning): Initialize destination loop tree.
6109 * tree-ssa-loop.c (pass_tree_loop_init): Do not provide PROP_loops.
6110 (pass_parallelize_loops): Do IL verification.
6111 * loop-init.c (loop_optimizer_init): Fixup loops if required.
6112 * tree-optimize.c (execute_fixup_cfg): If we need to cleanup
6113 the CFG make sure we fixup loops as well.
6114 * tree-ssa-tail-merge.c: Include cfgloop.h.
6115 (replace_block_by): When merging loop latches mark loops for fixup.
6116 * lto-streamer-out.c (output_struct_function_base): Drop
6118 * tree-ssa-phiopt.c: Include tree-scalar-evolution.h.
6119 (tree_ssa_cs_elim): Initialize the loop optimizer and SCEV.
6120 * ipa-split.c: Include cfgloop.h.
6121 (split_function): Add the new return block to the loop tree root.
6122 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Return
6123 whether we have removed the forwarder block.
6124 (merge_phi_nodes): If we removed a forwarder mark loops for fixup.
6125 * cfgloop.h (place_new_loop): Declare.
6126 * cfgloopmanip.c (place_new_loop): Export.
6127 * Makefile.in (asan.o): Add $(CFGLOOP_H) dependency.
6128 (tree-switch-conversion.o): Likewise.
6129 (tree-complex.o): Likewise.
6130 (tree-inline.o): Likewise.
6131 (tree-ssa-tailmerge.o): Likewise.
6132 (ipa-split.o): Likewise.
6133 (tree-ssa-phiopt.o): Add $(SCEV_H) dependency.
6134 (tree-ssa-copy.o): Likewise.
6135 * tree-switch-conversion.c: Include cfgloop.h
6136 (process_switch): If we emit a bit-test cascade, schedule loops
6138 * tree-complex.c: Include cfgloop.h.
6139 (expand_complex_div_wide): Properly add new basic-blocks to loops.
6140 * asan.c: Include cfgloop.h.
6141 (create_cond_insert_point): Properly add new basic-blocks to
6142 loops, schedule loop fixup.
6143 * cfgloop.c (verify_loop_structure): Check that looks are not
6145 * omp-low.c (expand_parallel_call): Properly add new basic-blocks
6147 (expand_omp_for_generic): Likewise.
6148 (expand_omp_sections): Likewise.
6149 (expand_omp_atomic_pipeline): Schedule loops for fixup.
6150 * tree-ssa-copy.c: Include tree-scalar-evolution.h.
6151 (fini_copy_prop): Disable DCE in substitute_and_fold if SCEV
6152 is initialized, not when loops are present.
6153 * tree-parloops.c (parallelize_loops): Remove checking here.
6154 * passes.c (init_optimization_passes): Schedule a copy-propagation
6155 pass before complete unrolling of inner loops.
6157 2013-04-26 Jakub Jelinek <jakub@redhat.com>
6159 * Makefile.in (toplev.o): Depend on diagnostic-color.h.
6160 * diagnostic-color.c (should_colorize): Remove _WIN32 version.
6161 (colorize_init): Add argument to _WIN32 version.
6162 * toplev.c: Include diagnostic-color.h.
6163 (process_options): Default to -fdiagnostics-color=auto if
6164 GCC_COLORS env var is in the environment.
6165 * common.opt (fdiagnostics-color=): Add Var and Init.
6166 * doc/invoke.texi (-fdiagnostics-color=): Document that if GCC_COLORS
6167 env var is in the environment, the default is auto rather than never.
6169 * diagnostic.h (file_name_as_prefix): Add context argument.
6170 * diagnostic.c (file_name_as_prefix): Likewise. Colorize
6171 the string as locus.
6172 * langhooks.c (lhd_print_error_function): Adjust caller.
6174 2013-04-25 Lawrence Crowl <crowl@google.com>
6176 * var-tracking.c (shared_hash_def::htab):
6177 Change type to hash_table. Update dependent calls and types.
6179 2013-04-25 Lawrence Crowl <crowl@google.com>
6181 * Makefile.in: Update as needed below.
6183 * alloc-pool.c (static hash_table <alloc_pool_hasher> alloc_pool_hash):
6184 Move declaration to after the type's method definitons.
6186 * attribs.c (htab_t scoped_attributes::attribute_hash):
6187 Change type to hash_table. Update dependent calls and types.
6189 * bitmap.c (htab_t bitmap_desc_hash):
6190 Change type to hash_table. Update dependent calls and types.
6192 * cselib.c (htab_t cselib_hash_table):
6193 Change type to hash_table. Update dependent calls and types.
6195 * data-streamer.h (struct string_slot): Move to lto-streamer.h.
6196 (hash_string_slot_node): Move implementation into lto-streamer.h
6197 struct string_slot_hasher.
6198 (eq_string_slot_node): Likewise.
6200 * data-streamer-out.c: Update output_block::string_hash_table
6201 dependent calls and types.
6203 * dwarf2cfi.c (htab_t trace_index):
6204 Change type to hash_table. Update dependent calls and types.
6206 * dwarf2out.c (htab_t break_out_includes::cu_hash_table):
6207 Change type to hash_table. Update dependent calls and types.
6208 (htab_t copy_decls_for_unworthy_types::decl_table): Likewise.
6209 (htab_t optimize_external_refs::map): Likewise.
6210 (htab_t output_comp_unit::extern_map): Likewise.
6211 (htab_t output_comdat_type_unit::extern_map): Likewise.
6212 (htab_t output_macinfo::macinfo_htab): Likewise.
6213 (htab_t optimize_location_lists::htab): Likewise.
6214 (htab_t dwarf2out_finish::comdat_type_table): Likewise.
6216 * except.c (htab_t ehspec_hash_type):
6217 Change type to hash_table. Update dependent calls and types.
6218 (assign_filter_values::ttypes): Likewise.
6219 (assign_filter_values::ehspec): Likewise.
6220 (sjlj_assign_call_site_values::ar_hash): Likewise.
6221 (convert_to_eh_region_ranges::ar_hash): Likewise.
6223 * gcse.c (htab_t pre_ldst_table):
6224 Change type to hash_table. Update dependent calls and types.
6226 * ggc-common.c (htab_t saving_htab):
6227 Change type to hash_table. Update dependent calls and types.
6228 (htab_t loc_hash): Likewise.
6229 (htab_t ptr_hash): Likewise.
6230 (call_count): Rename ggc_call_count.
6231 (call_alloc): Rename ggc_call_alloc.
6232 (loc_descriptor): Rename make_loc_descriptor.
6233 (add_statistics): Rename ggc_add_statistics.
6235 * ggc-common.c (saving_htab):
6236 Change type to hash_table. Update dependent calls and types.
6238 * gimple.h (struct gimplify_ctx): Move to gimplify-ctx.h.
6239 (push_gimplify_context): Likewise.
6240 (pop_gimplify_context): Likewise.
6241 (struct gimple_temp_hash_elt): Added.
6242 (struct gimplify_hasher): Likewise.
6243 (struct gimplify_ctx.temp_htab):
6244 Change type to hash_table. Update dependent calls and types.
6246 * gimple-fold.c: Include gimplify-ctx.h.
6248 * gimple-ssa-strength-reduction.c (htab_t base_cand_map):
6249 Change type to hash_table. Update dependent calls and types.
6250 (base_cand_dump_callback): Rename to ssa_base_cand_dump_callback to
6251 avoid potential global name collision.
6253 * gimplify.c: Include gimplify-ctx.h.
6254 (struct gimple_temp_hash_elt): Move to gimplify-ctx.h.
6255 (htab_t gimplify_ctx::temp_htab):
6256 Update dependent calls and types for new type hash_table.
6257 (gimple_tree_hash): Move into gimplify_hasher in gimplify-ctx.h.
6258 (gimple_tree_eq): Move into gimplify_hasher in gimplify-ctx.h.
6260 * gimplify-ctx.h: New.
6261 (struct gimple_temp_hash_elt): Move from gimplify.c.
6262 (class gimplify_hasher): New.
6263 (struct gimplify_ctx): Move from gimple.h.
6264 (htab_t gimplify_ctx::temp_htab):
6265 Change type to hash_table. Update dependent calls and types.
6267 * graphite-clast-to-gimple.c: Include graphite-htab.h.
6268 (htab_t ivs_params::newivs_index):
6269 Change type to hash_table. Update dependent calls and types.
6270 (htab_t ivs_params::params_index): Likewise.
6271 (htab_t print_generated_program::params_index): Likewise.
6272 (htab_t gloog::newivs_index): Likewise.
6273 (htab_t gloog::params_index): Likewise.
6275 * graphite.c: Include graphite-htab.h.
6276 4htab_t graphite_transform_loops::bb_pbb_mapping):
6277 Change type to hash_table. Update dependent calls and types.
6279 * graphite-clast-to-gimple.h: (extern gloog) Move to graphite-htab.h.
6280 (bb_pbb_map_hash): Fold into bb_pbb_htab_type in graphite-htab.h.
6281 (eq_bb_pbb_map): Fold into bb_pbb_htab_type in graphite-htab.h.
6283 * graphite-dependences.c: Include graphite-htab.h.
6284 (loop_is_parallel_p): Change hash table type of parameter.
6286 * graphite-htab.h: New.
6287 (typedef hash_table <bb_pbb_hasher> bb_pbb_htab_type): New.
6288 (extern find_pbb_via_hash): Move from graphite-poly.h.
6289 (extern loop_is_parallel_p): Move from graphite-poly.h.
6290 (extern get_loop_body_pbbs): Move from graphite-poly.h.
6292 * graphite-poly.h (extern find_pbb_via_hash): Move to graphite-htab.h.
6293 (extern loop_is_parallel_p): Move to graphite-htab.h.
6294 (extern get_loop_body_pbbs): Move to graphite-htab.h.
6296 * haifa-sched.c (htab_t delay_htab):
6297 Change type to hash_table. Update dependent calls and types.
6298 (htab_t delay_htab_i2): Likewise.
6300 * ira-color.c (htab_t allocno_hard_regs_htab):
6301 Change type to hash_table. Update dependent calls and types.
6303 * ira-costs.c (htab_t cost_classes_htab):
6304 Change type to hash_table. Update dependent calls and types.
6306 * loop-invariant.c (htab_t merge_identical_invariants::eq):
6307 Change type to hash_table. Update dependent calls and types.
6309 * loop-iv.c (htab_t bivs):
6310 Change type to hash_table. Update dependent calls and types.
6312 * loop-unroll.c (htab_t opt_info::insns_to_split):
6313 Change type to hash_table. Update dependent calls and types.
6314 (htab_t opt_info::insns_with_var_to_expand): Likewise.
6316 * lto-streamer.h (struct string_slot): Move from data-streamer.h
6317 (struct string_slot_hasher): New.
6318 (htab_t output_block::string_hash_table):
6319 Change type to hash_table. Update dependent calls and types.
6321 * lto-streamer-in.c (freeing_string_slot_hasher): New.
6322 (htab_t file_name_hash_table):
6323 Change type to hash_table. Update dependent calls and types.
6325 * lto-streamer-out.c: Update output_block::string_hash_table dependent
6328 * lto-streamer.c (htab_t tree_htab):
6329 Change type to hash_table. Update dependent calls and types.
6331 * omp-low.c: Include gimplify-ctx.h.
6333 * passes.c (htab_t name_to_pass_map):
6334 Change type to hash_table. Update dependent calls and types.
6335 (pass_traverse): Rename to passes_pass_traverse.
6337 * plugin.c (htab_t event_tab):
6338 Change type to hash_table. Update dependent calls and types.
6340 * postreload-gcse.c (htab_t expr_table):
6341 Change type to hash_table. Update dependent calls and types.
6342 (dump_hash_table_entry): Rename dump_expr_hash_table_entry.
6344 * sese.c (debug_rename_map_1): Make extern.
6345 (htab_t copy_bb_and_scalar_dependences::rename_map):
6346 Change type to hash_table. Update dependent calls and types.
6348 * sese.h (extern debug_rename_map): Move to .c file.
6350 * store-motion.c (htab_t store_motion_mems_table):
6351 Change type to hash_table. Update dependent calls and types.
6353 * trans-mem.c (htab_t tm_new_mem_hash):
6354 Change type to hash_table. Update dependent calls and types.
6356 * tree-browser.c (htab_t TB_up_ht):
6357 Change type to hash_table. Update dependent calls and types.
6359 * tree-cfg.c (htab_t discriminator_per_locus):
6360 Change type to hash_table. Update dependent calls and types.
6362 * tree-complex.c: Include tree-hasher.h
6363 (htab_t complex_variable_components):
6364 Change type to hash_table. Update dependent calls and types.
6366 * tree-eh.c (htab_t finally_tree):
6367 Change type to hash_table. Update dependent calls and types.
6369 * tree-flow.h (extern int_tree_map_hash): Moved into tree-hasher
6370 struct int_tree_hasher.
6371 (extern int_tree_map_eq): Likewise.
6372 (uid_decl_map_hash): Removed.
6373 (extern decl_tree_map_eq): Likewise.
6375 * tree-hasher.h: New.
6376 (struct int_tree_hasher): New.
6377 (typedef int_tree_htab_type): New.
6379 * tree-inline.c: Include gimplify-ctx.h.
6381 * tree-mudflap.c: Include gimplify-ctx.h.
6383 * tree-parloops.c: Include tree-hasher.h.
6384 (htab_t eliminate_local_variables_stmt::decl_address):
6385 Change type to hash_table. Update dependent calls and types.
6386 (htab_t separate_decls_in_region::decl_copies): Likewise.
6388 * tree-scalar-evolution.c (htab_t resolve_mixers::cache):
6389 Change type to hash_table. Update dependent calls and types.
6391 * tree-sra.c (candidates):
6392 Change type to hash_table. Update dependent calls and types.
6394 * tree-ssa.c (int_tree_map_eq): Moved into struct int_tree_hasher
6396 (int_tree_map_hash): Likewise.
6398 * tree-ssa-dom.c (htab_t avail_exprs):
6399 Change type to hash_table. Update dependent calls and types.
6401 * tree-ssa-live.c (var_map_base_init::tree_to_index):
6402 Change type to hash_table. Update dependent calls and types.
6404 * tree-ssa-loop-ivopts.c (struct ivopts_data.inv_expr_tab):
6405 Change type to hash_table. Update dependent calls and types.
6407 * tree-ssa-phiopt.c (seen_ssa_names):
6408 Change type to hash_table. Update dependent calls and types.
6410 * tree-ssa-strlen.c (decl_to_stridxlist_htab):
6411 Change type to hash_table. Update dependent calls and types.
6413 * tree-ssa-uncprop.c (equiv):
6414 Change type to hash_table. Update dependent calls and types.
6416 2013-04-25 Jakub Jelinek <jakub@redhat.com>
6418 PR rtl-optimization/57003
6419 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
6420 call note_stores with kill_clobbered_value callback again after
6421 killing regs_invalidated_by_call.
6423 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6425 * config/aarch64/aarch64-simd.md
6426 (aarch64_simd_bsl<mode>_internal): Rewrite RTL to not use UNSPEC_BSL.
6427 (aarch64_simd_bsl<mode>): Likewise.
6428 * config/aarch64/iterators.md (unspec): Remove UNSPEC_BSL.
6430 2013-04-25 Marek Polacek <polacek@redhat.com>
6432 PR tree-optimization/57066
6433 * builtins.c (fold_builtin_logb): Return +Inf for -Inf.
6435 2013-04-25 James Greenhalgh <jame.greenhalgh@arm.com>
6437 * config/aarch64/aarch64-simd.md (neg<mode>2): Use VDQ iterator.
6439 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6441 * config/aarch64/aarch64-builtins.c
6442 (aarch64_fold_builtin): New.
6443 * config/aarch64/aarch64-protos.h (aarch64_fold_builtin): New.
6444 * config/aarch64/aarch64.c (TARGET_FOLD_BUILTIN): Define.
6445 * config/aarch64/aarch64-simd-builtins.def (abs): New.
6446 * config/aarch64/arm_neon.h
6447 (vabs<q>_<f32, 64>): Implement using __builtin_aarch64_fabs.
6449 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6450 Tejas Belagod <tejas.belagod@arm.com>
6452 * config/aarch64/aarch64-builtins.c
6453 (aarch64_gimple_fold_builtin): New.
6454 * config/aarch64/aarch64-protos.h (aarch64_gimple_fold_builtin): New.
6455 * config/aarch64/aarch64-simd-builtins.def (addv): New.
6456 * config/aarch64/aarch64-simd.md (addpv4sf): New.
6458 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Define.
6460 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6462 * config/aarch64/aarch64.md
6463 (*cmp_swp_<optab><ALLX:mode>_shft_<GPI:mode>): New pattern.
6465 2013-04-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6467 * config/aarch64/aarch64.md (*ngc<mode>): New pattern.
6468 (*ngcsi_uxtw): New pattern.
6470 2013-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6471 Julian Brown <julian@codesourcery.com>
6473 * config/arm/arm.c (neon_builtin_type_mode): Add T_V4HF.
6474 (TB_DREG): Add T_V4HF.
6475 (v4hf_UP): New macro.
6476 (neon_itype): Add NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6477 (arm_init_neon_builtins): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6478 Handle initialisation of V4HF. Adjust initialisation of reinterpret
6480 (arm_expand_neon_builtin): Handle NEON_FLOAT_WIDEN, NEON_FLOAT_NARROW.
6481 (arm_vector_mode_supported_p): Handle V4HF.
6482 (arm_mangle_map): Handle V4HFmode.
6483 * config/arm/arm.h (VALID_NEON_DREG_MODE): Add V4HF.
6484 * config/arm/arm_neon_builtins.def: Add entries for
6485 vcvtv4hfv4sf, vcvtv4sfv4hf.
6486 * config/arm/neon.md (neon_vcvtv4sfv4hf): New pattern.
6487 (neon_vcvtv4hfv4sf): Likewise.
6488 * config/arm/neon-gen.ml: Handle half-precision floating point
6490 * config/arm/neon-testgen.ml: Handle Requires_FP_bit feature.
6491 * config/arm/arm_neon.h: Regenerate.
6492 * config/arm/neon.ml (type elts): Add F16.
6493 (type vectype): Add T_float16x4, T_floatHF.
6494 (type vecmode): Add V4HF.
6495 (type features): Add Requires_FP_bit feature.
6496 (elt_width): Handle F16.
6497 (elt_class): Likewise.
6498 (elt_of_class_width): Likewise.
6499 (mode_of_elt): Refactor.
6500 (type_for_elt): Handle F16, fix error messages.
6501 (vectype_size): Handle T_float16x4.
6502 (vcvt_sh): New function.
6503 (ops): Add entries for vcvt_f16_f32, vcvt_f32_f16.
6504 (string_of_vectype): Handle T_floatHF, T_float16, T_float16x4.
6505 (string_of_mode): Handle V4HF.
6506 * doc/arm-neon-intrinsics.texi: Regenerate.
6508 2013-04-25 James Greenhalgh <james.greenhalgh@arm.com>
6510 * config/aarch64/aarch64.c (aarch64_print_operand): Fix asm_fprintf
6511 format specifier in 'X' case.
6513 2013-04-25 Alan Modra <amodra@gmail.com>
6516 * config/rs6000/rs6000.md (rotlsi3_internal7): Rename to
6517 rotlsi3_internal7le and condition on !BYTES_BIG_ENDIAN.
6518 (rotlsi3_internal8be): New BYTES_BIG_ENDIAN insn.
6519 Repeat for many other rotate/shift and mask patterns using subregs.
6520 Name lshiftrt insns.
6521 (ashrdisi3_noppc64): Rename to ashrdisi3_noppc64be and condition
6522 on WORDS_BIG_ENDIAN.
6524 2013-04-25 Alan Modra <amodra@gmail.com>
6526 * config.gcc: Support little-endian powerpc-linux targets.
6527 * config/rs6000/linux.h (LINK_OS_LINUX_EMUL): Define.
6528 (LINK_OS_LINUX_SPEC): Define.
6529 * config/rs6000/linuxspe.h (TARGET_DEFAULT):
6530 Preserve MASK_LITTLE_ENDIAN.
6531 * config/rs6000/default64.h (TARGET_DEFAULT): Likewise.
6532 * config/rs6000/linuxaltivec.h (TARGET_DEFAULT): Likewise.
6533 * config/rs6000/linux64.h (OPTION_LITTLE_ENDIAN): Don't zero.
6534 (LINK_OS_LINUX_EMUL32, LINK_OS_LINUX_EMUL64): Define.
6535 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Use above.
6536 * config/rs6000/rs6000.c (output_toc): Don't use .tc for TARGET_ELF.
6537 Correct fp word order for little-endian. Don't shift toc entries
6538 smaller than a word for little-endian.
6539 * config/rs6000/rs6000.md (bswaphi2, bswapsi2 split): Comment.
6540 (bswapdi2 splits): Correct low-part subreg for little-endian.
6541 Remove wrong BYTES_BIG_ENDIAN tests, and rename vars to remove
6542 low/high where such is correct only for be.
6543 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Allow
6544 little-endian for -mcall-aixdesc.
6546 2013-04-25 Alan Modra <amodra@gmail.com>
6548 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
6549 replace_equiv_address_nv.
6551 2013-04-25 Alan Modra <amodra@gmail.com>
6553 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
6555 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6558 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6559 * rtl.h (struct rtx_def): ...
6561 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6563 PR rtl-optimizations/57046
6564 * lra-constraints (split_reg): Set up lra_risky_transformations_p
6565 for multi-reg splits.
6567 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
6569 * config/i386/x86-64.h (ASM_SPEC): Support -mx32.
6571 2013-04-24 Sterling Augustine <saugustine@google.com>
6573 * dwarf2out.c (skeleton_debug_str_hash, add_skeleton_AT_string)
6574 (comp_dir_string, debug_str_dwo_section): New.
6575 (DEBUG_STR_DWO_SECTION): Rename to ...
6576 (DEBUG_DWO_STR_SECTION): ... this.
6577 (DEBUG_NORM_STR_SECTION): Delete.
6578 (DEBUG_STR_SECTION, DEBUG_STR_SECTION_FLAGS): Edit definitions.
6579 (DEBUG_STR_DWO_SECTION_FLAGS): New.
6580 (find_AT_string): Move most logic to ...
6581 (find_AT_string_in_table): ... here. New.
6582 (add_top_level_skeleton_die_attrs): Call comp_dir_string and
6583 add_skeleton_AT_string. Delete logic.
6584 (output_skeleton_debug_sections): Remove call to
6585 add_top_level_skeleton_die_attrs.
6586 (add_comp_dir_attribute): Move logic to comp_dir_string.
6587 (dwarf2out_init): Initialize debug_str_dwo_section.
6588 (output_indirect_string): Call find_string_form.
6589 (output_indirect_strings): Rewrite.
6590 (prune_unused_types): Empty skeleton_debug_str_hash.
6591 Call get_skeleton_type_unit and add_top_level_skeleton_die_attrs.
6592 (dwarf2out_finish): Call output_indirect_strings.
6594 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6596 * doc/cpp.texi: Remove __GXX_EXPERIMENTAL_CXX1Y__.
6598 2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
6600 * rtl.h (struct rtx_def): Add comment for field jump.
6601 (LRA_SUBREG_P): New macro.
6602 * recog.c (register_operand): Check LRA_SUBREG_P.
6603 * lra.c (lra): Add note at the end of RTL code. Align non-empty
6605 * lra-spills.c (lra_spill): Align stack after spilling pseudos.
6606 (lra_final_code_change): Skip subreg change for operators.
6607 * lra-eliminations.c (eliminate_regs_in_insn): Make return earlier
6608 if there are no operand changes.
6609 * lra-constraints.c (curr_insn_set): New.
6610 (match_reload): Set LRA_SUBREG_P.
6611 (emit_spill_move): Ditto.
6612 (check_and_process_move): Use curr_insn_set. Process only single
6613 set insns. Don't initialize sec_mem_p and change_p.
6614 (simplify_operand_subreg): Use LRA_SUBREG_P.
6615 (reg_in_class_p): New function.
6616 (process_alt_operands): Use it. Use #if HAVE_ATTR_enabled instead
6617 of #ifdef. Add code to remove cycling.
6618 (process_address): Check EXTRA_CONSTRAINT_STR. Process even if
6619 non-null disp. Reload inner instead of disp when base and index
6620 are null. Try to put lo_sum into register.
6621 (EBB_PROBABILITY_CUTOFF): Redefine probability in percents.
6622 (check_and_process_move): Move code for move cost check to
6623 simple_move_p. Remove equiv_substitution.
6624 (simple_move_p): New function.
6625 (curr_insn_transform): Initialize sec_mem_p and change_p. Set up
6626 curr_insn_set. Call check_and_process_move only for single set
6627 insns. Use the new function. Move call of check_and_process_move
6628 after operand equiv substitution and address process.
6630 2013-04-24 James Greenhalgh <james.greenhalgh@arm.com>
6632 * config/aarch64/arm_neon.h (vld1<q>_lane*): Fix constraints.
6633 (vld1<q>_dup_<sufp><8, 16, 32, 64>): Likewise.
6634 (vld1<q>_<sufp><8, 16, 32, 64>): Likewise.
6636 2013-04-24 Paolo Carlini <paolo.carlini@oracle.com>
6638 * doc/cpp.texi: Document __GXX_EXPERIMENTAL_CXX1Y__.
6640 2013-04-24 Marek Polacek <polacek@redhat.com>
6642 * tree-scalar-evolution.h (analyze_scalar_evolution): Remove.
6643 * tree-scalar-evolution.c (get_exit_conditions_rec): Likewise.
6644 (select_loops_exit_conditions): Likewise.
6645 (number_of_iterations_for_all_loops): Likewise.
6646 (analyze_scalar_evolution_for_all_loop_phi_nodes): Likewise.
6647 (scev_analysis): Likewise.
6649 2013-04-02 Catherine Moore <clm@codesourcery.com>
6650 Chao-ying Fu <fu@mips.com>
6652 * config/mips/micromips.md (jraddiusp): New pattern.
6653 * config/mips/mips.c (mips_expand_epilogue): Use the JRADDIUSP
6654 instruction if possible.
6656 2013-04-24 Alan Modra <amodra@gmail.com>
6658 * config/rs6000/driver-rs6000.c (elf_dcachebsize): Fix comment pasto.
6660 2013-04-24 Julian Brown <julian@codesourcery.com>
6661 Chung-Lin Tang <cltang@codesourcery.com>
6663 * dwarf2out.c (gen_enumeration_type_die): Fix HOST_BITS_PER_WIDE_INT
6664 dependency behavior in enumeration type DIE generation. Add TODO note
6665 to comments about future DW_FORM_sdata/udata re-work of related code.
6667 2013-04-23 Lawrence Crowl <crowl@google.com>
6669 * Makefile.in: Update as needed below.
6671 * hash-table.h (class hash_table):
6672 Correct many methods with parameter types compare_type to the correct
6673 value_type. (Correct code was unlikely to notice the change.)
6674 (hash_table::elements_with_deleted) New.
6675 (class hashtable::iterator): New.
6676 (hashtable::begin()): New.
6677 (hashtable::end()): New.
6678 (FOR_EACH_HASH_TABLE_ELEMENT): New.
6680 * statistics.c (statistics_hashes):
6681 Change type to hash_table. Update dependent calls and types.
6683 * tree-into-ssa.c (var_infos):
6684 Change type to hash_table. Update dependent calls and types.
6686 * tree-ssa-coalesce.c (struct coalesce_list_d.list):
6687 Change type to hash_table. Update dependent calls and types.
6689 * tree-ssa-loop-im.c (struct mem_ref.refs):
6690 Change type to hash_table. Update dependent calls and types.
6692 * tree-ssa-reassoc.c (undistribute_ops_list::ctable):
6693 Change type to hash_table. Update dependent calls and types.
6695 * tree-ssa-sccvn.c (vn_tables_s::nary):
6696 Change type to hash_table. Update dependent calls and types.
6697 (vn_tables_s::phis): Likewise.
6698 (vn_tables_s::references): Likewise.
6700 * tree-ssa-sccvn.h (vn_nary_op_eq): Update parameter and return types.
6701 (vn_reference_eq): Update parameter and return types.
6703 * tree-ssa-structalias.c (pointer_equiv_class_table):
6704 Change type to hash_table. Update dependent calls and types.
6705 (location_equiv_class_table): Likewise.
6707 * tree-vect-data-refs.c: Consequential changes for making
6708 peeling a hash_table.
6710 * tree-vect-loop.c (new_loop_vec_info): Dependent hash_table update.
6711 (destroy_loop_vec_info): Dependent hash_table update.
6713 * tree-vectorizer.h (peeling_htab):
6714 Change type to hash_table. Update dependent calls and types.
6716 2013-04-23 Shiva Chen <shiva0217@gmail.com>
6718 * lra-assigns.c (find_hard_regno_for): Use lra_reg_val_equal_p
6719 to check the register content is equal or not.
6720 * lra-constraints.c (match_reload): Use lra_assign_reg_val
6721 to assign register content record.
6722 * lra-eliminations.c (update_reg_eliminate): Use
6723 lra_update_reg_val_offset to update register content offset.
6724 * lra-int.h (struct lra_reg): Add offset member.
6725 (lra_reg_val_equal_p): New static inline function.
6726 (lra_update_reg_val_offset): New static inline function.
6727 (lra_assign_reg_val): New static inline function.
6728 * lra.c (lra_create_new_reg): Use lra_assign_reg_val
6729 to assign register content record.
6730 (initialize_lra_reg_info_element): Initial offset to zero.
6732 2013-04-23 Catherine Moore <clm@codesourcery.com>
6734 * config/mips/mips.md (*movhi_internal, *movqi_internal): New
6735 operands. Record compression.
6737 2013-04-23 Xinliang David Li <davidxl@google.com>
6739 * cfghhooks.c (dump_bb_for_graph): Support 'slim' graph dump.
6741 2013-04-23 Richard Biener <rguenther@suse.de>
6744 * tree-inline.c (copy_edges_for_bb): Add can_make_abnormal_goto
6745 parameter, only add abnormal goto edges from the copied body
6746 if the call could perform abnormal gotos.
6747 (copy_cfg_body): Adjust.
6749 2013-04-23 Sofiane Naci <sofiane.naci@arm.com>
6751 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add simd attribute.
6753 2013-04-23 Andreas Schwab <schwab@linux-m68k.org>
6755 * coretypes.h (gimple_stmt_iterator): Add struct to make
6758 2013-04-23 Richard Biener <rguenther@suse.de>
6760 PR tree-optimization/57026
6761 * tree-vrp.c (simplify_conversion_using_ranges): Do not propagate
6762 from SSA names occuring in abnormal PHI nodes.
6764 2013-04-22 Andi Kleen <ak@linux.intel.com>
6766 * lto/lto.c (print_lto_report_1): Fix LTO report names.
6768 2013-04-22 Andi Kleen <ak@linux.intel.com>
6770 * lto/lto.c (print_lto_report_1): Declare early.
6771 (read_cgraph_and_symbols): Call print_lto_report_1 early.
6773 2013-04-22 Andi Kleen <ak@linux.intel.com>
6775 * common.opt (-flto-report-wpa): Add.
6776 * doc/invoke.texi (-flto-report-wpa): Add.
6777 * lto/lto.c (do_whole_program_analysis): Check for lto-report-wpa.
6780 2013-04-22 Xinliang David Li <davidxl@google.com>
6782 * graph.c (draw_cfg_node_succ_edges): Add branch probility as label.
6783 * cfghhooks.c (dump_bb_for_graph): Dump profile count and frquency.
6784 * Makefile.in: New dependency
6786 David Daney <ddaney.cavm@gmail.com>
6788 * configure.ac (gcc_cv_as_micromips_support): Use the
6789 --fatal-warnings option.
6790 * configure: Regenerate.
6792 2013-04-22 Marek Polacek <polacek@redhat.com>
6795 * tsan.c (instrument_expr): Don't instrument expression
6796 in case its size is zero.
6798 2013-04-22 Uros Bizjak <ubizjak@gmail.com>
6802 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
6804 * config/alpha/alpha.c (TARGET_LRA_P): New define.
6806 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6808 * coretypes.h (gimple_stmt_iterator_d): Forward declare.
6809 (gimple_stmt_iterator): New typedef.
6810 * gimple.h (gimple_stmt_iterator): Rename to...
6811 (gimple_stmt_iterator_d): ... This.
6812 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Detail restriction that
6813 trees be valid for GIMPLE and GENERIC.
6814 (TARGET_GIMPLE_FOLD_BUILTIN): New.
6815 * gimple-fold.c (gimple_fold_call): Call target hook
6816 gimple_fold_builtin.
6817 * hooks.c (hook_bool_gsiptr_false): New.
6818 * hooks.h (hook_bool_gsiptr_false): New.
6819 * target.def (fold_stmt): New.
6820 * doc/tm.texi: Regenerate.
6822 2013-04-22 Vladimir Makarov <vmakarov@redhat.com>
6825 * lra-eliminations.c (mark_not_eliminable): Prevent elimination of
6826 a set sp if no stack realignment.
6828 2013-04-22 Nick Clifton <nickc@redhat.com>
6830 * config.gcc (tilegx-linux): Extend extra_objs rather than
6832 (tilepro-linux): Likewise.
6834 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6836 * config/aarch64/aarch64-builtins.c
6838 (CF0, CF1, CF2, CF3, CF4, CF10): New.
6839 (VAR<1-12>): Add MAP parameter.
6840 (BUILTIN_*): Likewise.
6841 * config/aarch64/aarch64-simd-builtins.def: Set MAP parameter.
6842 * config/aarch64/aarch64-simd.md (aarch64_sshl_n<mode>): Remove.
6843 (aarch64_ushl_n<mode>): Likewise.
6844 (aarch64_sshr_n<mode>): Likewise.
6845 (aarch64_ushr_n<mode>): Likewise.
6846 (aarch64_<maxmin><mode>): Likewise.
6847 (aarch64_sqrt<mode>): Likewise.
6848 * config/aarch64/arm_neon.h (vshl<q>_n_*): Use new builtin names.
6849 (vshr<q>_n_*): Likewise.
6851 2013-04-22 James Greenhalgh <james.greenhalgh@arm.com>
6853 * config/aarch64/aarch64-builtins.c
6854 (aarch64_simd_builtin_type_mode): Handle SF types.
6856 (BUILTIN_GPF): Define.
6857 (aarch64_init_simd_builtins): Handle SF types.
6858 * config/aarch64/aarch64-simd-builtins.def (frecpe): Add support.
6861 * config/aarch64/aarch64-simd.md
6862 (simd_types): Update simd_frcp<esx> to simd_frecp<esx>.
6863 (aarch64_frecpe<mode>): New.
6864 (aarch64_frecps<mode>): Likewise.
6865 * config/aarch64/aarch64.md (unspec): Add UNSPEC_FRECP<ESX>.
6866 (v8type): Add frecp<esx>.
6867 (aarch64_frecp<FRECP:frecp_suffix><mode>): New.
6868 (aarch64_frecps<mode>): Likewise.
6869 * config/aarch64/iterators.md (FRECP): New.
6870 (frecp_suffix): Likewise.
6871 * config/aarch64/arm_neon.h
6872 (vrecp<esx><qsd>_<fd><32, 64>): Convert to using builtins.
6874 2013-04-22 Christian Bruel <christian.bruel@st.com>
6877 * config/sh/sh.h (enum reg_class): Remove DF_HI_REGS.
6878 (REG_CLASS_NAMES): Idem.
6879 (REG_CLASS_CONTENTS): Idem.
6880 (REGCLASS_HAS_FP_REG): Idem.
6881 * config/sh/sh.c (sh_cannot_change_mode_class): Idem.
6882 (sh_conditional_register_usage): Idem.
6884 2013-04-21 Jeff Law <law@redhat.com>
6886 * tree-ssa-forwprop.c (simplify_conversion_from_bitmask): New function.
6887 (ssa_forward_propagate_and_combine): Use it.
6889 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6891 * lra.c: Update the flow chart diagram.
6893 2013-04-19 Vladimir Makarov <vmakarov@redhat.com>
6895 PR rtl-optimization/56847
6896 * lra-constraints.c (process_alt_operands): Discourage alternative
6897 with non-matche doffsettable memory constraint fro memory with
6900 2013-04-19 Richard Biener <rguenther@suse.de>
6902 PR tree-optimization/56982
6903 * builtins.def (BUILT_IN_LONGJMP): longjmp is not a leaf
6905 * gimplify.c (gimplify_call_expr): Notice special calls.
6906 (gimplify_modify_expr): Likewise.
6907 * tree-cfg.c (make_abnormal_goto_edges): Handle setjmp-like
6908 abnormal control flow receivers.
6909 (call_can_make_abnormal_goto): Handle cfun->calls_setjmp
6910 in the same way as cfun->has_nonlocal_labels.
6911 (gimple_purge_dead_abnormal_call_edges): Likewise.
6912 (stmt_starts_bb_p): Make setjmp-like abnormal control flow
6913 receivers start a basic-block.
6915 2013-04-19 Richard Biener <rguenther@suse.de>
6917 * tree-vectorizer.h (struct _slp_instance): Move load_permutation
6919 (struct _slp_tree): ... here. Make it a vector of unsigned ints.
6920 (SLP_INSTANCE_LOAD_PERMUTATION): Remove.
6921 (SLP_TREE_LOAD_PERMUTATION): Add.
6922 (vect_transform_slp_perm_load): Adjust prototype.
6923 * tree-vect-slp.c (vect_free_slp_tree): Adjust.
6924 (vect_free_slp_instance): Likewise.
6925 (vect_create_new_slp_node): Likewise.
6926 (vect_supported_slp_permutation_p): Remove.
6927 (vect_slp_rearrange_stmts): Adjust.
6928 (vect_supported_load_permutation_p): Likewise. Inline
6929 vect_supported_slp_permutation_p here.
6930 (vect_analyze_slp_instance): Compute load permutations per
6931 slp node instead of per instance.
6932 (vect_get_slp_defs): Adjust.
6933 (vect_transform_slp_perm_load): Likewise.
6934 (vect_schedule_slp_instance): Remove redundant code.
6935 (vect_schedule_slp): Remove hack for PR56270, add it ...
6936 * tree-vect-stmts.c (vectorizable_load): ... here, do not
6937 CSE loads for SLP. Adjust.
6939 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6941 * config/arm/arm.c (load_multiple_sequence, ldm_stm_operation_p): Fix
6942 spelling in two comments.
6944 2013-04-19 Greta Yorsh <Greta.Yorsh@arm.com>
6947 * config/arm/arm.c (load_multiple_sequence): Require SP
6948 as base register for loads if SP is in the register list.
6950 2013-04-19 Martin Jambor <mjambor@suse.cz>
6952 PR tree-optimization/56718
6953 * ipa-cp.c (ipa_value_from_known_type_jfunc): Moved...
6954 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): ...here, renamed
6955 and made public. Adjusted all callers.
6956 (ipa_intraprocedural_devirtualization): New function.
6957 * ipa-prop.h (ipa_binfo_from_known_type_jfunc): Declare.
6958 (ipa_intraprocedural_devirtualization): Likewise.
6959 * Makefile.in (tree-ssa-pre.o): Add ipa-prop.h to dependencies.
6961 2013-04-19 Richard Biener <rguenther@suse.de>
6963 PR tree-optimization/57000
6964 * tree-ssa-reassoc.c (pass_reassoc): Add TODO_update_ssa_only_virtuals.
6966 2013-04-19 Terry Guo <terry.guo@arm.com>
6968 * config/arm/cortex-m4-fpu.md (cortex_m4_v): Delete cpu unit.
6970 (cortex_m4_v_a, cortex_m4_v_b): ... new cpu units.
6971 (cortex_m4_v, cortex_m4_exa_va, cortex_m4_exb_vb): New reservations.
6972 (cortex_m4_fmacs): Use new reservations.
6973 (cortex_m4_f_load, cortex_m4_f_store): Likewise.
6975 2013-04-18 Vladimir Makarov <vmakarov@redhat.com>
6977 PR rtl-optimization/56999
6978 * lra-coalesce.c (coalescable_pseudo_p): Remove 2nd parameter and
6980 (lra_coalesce): Remove split_origin_bitmap and related code.
6981 * lra.c (lra): Coalesce after undoing inheritance. Recreate live
6982 ranges if necessary.
6984 2013-04-18 Uros Bizjak <ubizjak@gmail.com>
6986 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers):
6988 (ix86_expand_call): Remove clobbered_registers array and use
6989 x86_64_ms_sysv_extra_clobbered_registers instead.
6990 * config/i386/i386.h (x86_64_ms_sysv_extra_clobbered_registers):
6992 * config/i386/predicates.md (call_rex64_ms_sysv_operation): New
6994 * config/i386/i386.md (*call_rex64_ms_sysv): Use
6995 call_rex64_ms_sysv_operation predicate. Remove explicit clobbers.
6996 (*call_value_rex64_ms_sysv): Ditto.
6998 2013-04-18 Cary Coutant <ccoutant@google.com>
7000 * dwarf2out.c (output_pubnames): Check die_perennial_p of
7001 parent instead of die_mark.
7003 2013-04-18 Diego Novillo <dnovillo@google.com>
7005 * gimple.c (create_gimple_tmp): New.
7006 (get_expr_type): New.
7007 (build_assign): New.
7008 (build_type_cast): New.
7009 * gimple.h (enum ssa_mode): Define.
7010 (gimple_seq_set_location): New.
7011 * asan.c (build_check_stmt): Change some gimple_build_* calls
7012 to use build_assign and build_type_cast.
7014 2013-04-18 Richard Biener <rguenther@suse.de>
7016 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
7017 handle negative step. Remove redundant checks.
7018 (vect_create_data_ref_ptr): Avoid ICEs with non-constant steps.
7019 * tree-vect-stmts.c (vectorizable_load): Instead of asserting
7020 for negative step and grouped loads fail to vectorize.
7022 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7024 * emit-rtl.c (reset_insn_used_flags): New function.
7025 (reset_all_used_flags): Use it.
7026 (verify_insn_sharing): New function.
7027 (verify_rtl_sharing): Fix verification for SEQUENCEs.
7029 2013-04-18 Jakub Jelinek <jakub@redhat.com>
7031 PR tree-optimization/56984
7032 * tree-vrp.c (register_edge_assert_for_2): For (x >> M) < N
7033 and (x >> M) >= N don't register any assertion if N << M is the
7036 2013-04-18 Steven Bosscher <steven@gcc.gnu.org>
7038 * lower-subreg.c (resolve_simple_move): If called self-recursive,
7039 do not delete_insn insns that have not yet been emitted, only
7040 unlink them with remove_insn.
7041 * df-scan.c (df_insn_delete): Revert r197492.
7043 2013-04-17 Steven Bosscher <steven@gcc.gnu.org>
7045 * emit-rtl.c (link_insn_into_chain): Handle chaining of SEQUENCEs.
7046 * reorg.c (emit_delay_sequence): Simplify with emit-rtl API.
7048 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7050 * config/arm/arm.md (movsicc_insn): Convert define_insn into
7051 define_insn_and_split.
7052 (and_scc,ior_scc,negscc): Likewise.
7053 (cmpsi2_addneg, subsi3_compare): Convert to named patterns.
7055 2013-04-17 Greta Yorsh <Greta.Yorsh@arm.com>
7057 * config/arm/arm.c (use_return_insn): Return 0 for targets that
7058 can benefit from using a sequence of LDRD instructions in epilogue
7059 instead of a single LDM instruction.
7061 2013-04-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
7064 * doc/extend.texi: Fix typo.
7066 2013-04-17 Richard Biener <rguenther@suse.de>
7068 * tree-vect-slp.c (vect_build_slp_tree_1): Split out from ...
7069 (vect_build_slp_tree): ... here.
7070 (vect_build_slp_tree_1): Compute which stmts of the SLP group
7071 match. Remove special-casing of mismatched complex loads.
7072 (vect_build_slp_tree): Based on the result from vect_build_slp_tree_1
7073 re-try the match with swapped commutative operands.
7074 (vect_supported_load_permutation_p): Remove special-casing of
7075 mismatched complex loads.
7076 (vect_analyze_slp_instance): Adjust.
7078 2013-04-17 Richard Biener <rguenther@suse.de>
7080 PR rtl-optimization/56921
7081 * cfgloop.h (struct loop): Add simple_loop_desc member.
7082 (struct niter_desc): Mark with GTY(()).
7083 (simple_loop_desc): Do not use aux field but simple_loop_desc.
7084 * loop-iv.c (get_simple_loop_desc): Likewise.
7085 (free_simple_loop_desc): Likewise.
7088 2013-04-16 Richard Biener <rguenther@suse.de>
7090 PR rtl-optimization/56921
7091 * loop-init.c (pass_rtl_move_loop_invariants): Add
7092 TODO_do_not_ggc_collect to todo_flags_finish.
7093 (pass_rtl_unswitch): Same.
7094 (pass_rtl_unroll_and_peel_loops): Same.
7095 (pass_rtl_doloop): Same.
7097 2013-04-17 Eric Botcazou <ebotcazou@adacore.com>
7099 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): New.
7100 (decl_refs_may_alias_p): Add REF1 and REF2 parameters.
7101 Use nonoverlapping_component_refs_of_decl_p to disambiguate component
7103 (refs_may_alias_p_1): Adjust call to decl_refs_may_alias_p.
7104 * tree-streamer.c (record_common_node): Adjust reference in comment.
7106 2013-04-17 Terry Guo <terry.guo@arm.com>
7108 * config/arm/cortex-m4.md: Add a new bypass.
7110 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7112 * config/aarch64/aarch64.md (*adds_<optab><mode>_multp2):
7114 (*subs_<optab><mode>_multp2): New pattern.
7115 (*adds_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7116 (*subs_<optab><ALLX:mode>_<GPI:mode>): New pattern.
7118 2013-04-16 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7120 * config/aarch64/aarch64.md (*adds_mul_imm_<mode>): New pattern.
7121 (*subs_mul_imm_<mode>): New pattern.
7123 2013-04-16 David Edelsohn <dje.gcc@gmail.com>
7126 * config/rs6000/vsx.md (vsx_mov<mode>): Add j->r alternative.
7127 (vsx_movti_64bit): Change j->wa to O->wa. Add n->r alternative.
7128 (vsx_movti_32bit): Change j->wa to O->wa.
7130 2013-04-16 Richard Biener <rguenther@suse.de>
7132 PR rtl-optimization/56921
7133 * loop-init.c (pass_rtl_move_loop_invariants): Add
7134 TODO_do_not_ggc_collect to todo_flags_finish.
7135 (pass_rtl_unswitch): Same.
7136 (pass_rtl_unroll_and_peel_loops): Same.
7137 (pass_rtl_doloop): Same.
7139 2013-04-16 Greta Yorsh <Greta.Yorsh@arm.com>
7141 * config/arm/arm.c (emit_multi_reg_push): New declaration
7142 for an existing function.
7143 (arm_emit_strd_push): New function.
7144 (arm_expand_prologue): Used here.
7145 (arm_emit_ldrd_pop): New function.
7146 (arm_expand_epilogue): Used here.
7147 (arm_get_frame_offsets): Update condition.
7148 (arm_emit_multi_reg_pop): Add a special case for load of a single
7149 register with writeback.
7151 2013-04-16 Uros Bizjak <ubizjak@gmail.com>
7153 * doc/invoke.texi (i386 Option): Reword -mstack-protector-guard
7156 2013-04-16 Richard Biener <rguenther@suse.de>
7158 PR tree-optimization/56756
7159 * tree-ssa-loop-im.c (struct first_mem_ref_loc_1): New functor.
7160 (first_mem_ref_loc): New.
7161 (execute_sm): Place the load temporarily before a previous
7162 access instead of in the latch edge to ensure its SSA dependencies
7163 are defined at points dominating the load.
7165 2013-04-16 Steven Bosscher <steven@gcc.gnu.org>
7167 * cfgrtl.c (cfg_layout_merge_blocks): Revert r184005, implement
7168 correct fix by moving header and footer insn to the footer of
7169 the merged basic block. Clear BB_END of the merged-away block.
7172 * emit-rtl.c (make_note_raw): New function.
7173 (link_insn_into_chain): New static inline function.
7175 (add_insn_before, add_insn_after): Factor insn chain linking code...
7176 (add_insn_before_nobb, add_insn_after_nobb): ...here, new functions
7177 using link_insn_into_chain.
7178 (note_outside_basic_block_p): New helper function for emit_note_after
7179 and emit_note_before.
7180 (emit_note_after): Use nobb variant of add_insn_after if the note
7181 should not be contained in a basic block.
7182 (emit_note_before): Use nobb variant of add_insn_before if the note
7183 should not be contained in a basic block.
7184 (emit_note_copy): Use make_note_raw.
7185 (emit_note): Likewise.
7186 * bb-reorder.c (insert_section_boundary_note): Remove hack to set
7187 BLOCK_FOR_INSN to NULL manually for NOTE_INSN_SWITCH_TEXT_SECTIONS.
7188 * jump.c (cleanup_barriers): Use reorder_insns_nobb to avoid making
7189 the moved barrier the tail of the basic block it follows.
7190 * var-tracking.c (pass_variable_tracking): Add TODO_verify_flow.
7192 2013-04-15 Jakub Jelinek <jakub@redhat.com>
7194 PR tree-optimization/56962
7195 * gimple-ssa-strength-reduction.c (record_increment): Only set
7196 initializer if gimple_assign_rhs_code is {,POINTER_}PLUS_EXPR and
7197 either rhs1 or rhs2 is equal to c->base_expr.
7199 2013-04-15 Richard Biener <rguenther@suse.de>
7201 PR tree-optimization/56933
7202 * tree-vectorizer.h (struct _stmt_vec_info): Remove read_write_dep
7204 (GROUP_READ_WRITE_DEPENDENCE): Remove.
7205 (STMT_VINFO_GROUP_READ_WRITE_DEPENDENCE): Likewise.
7206 * tree-vect-data-refs.c (vect_analyze_group_access): Move
7207 dependence check ...
7208 vect_analyze_data_ref_dependence (vect_analyze_data_ref_dependence):
7210 * tree-vect-stmts.c (new_stmt_vec_info): Do not initialize
7211 GROUP_READ_WRITE_DEPENDENCE.
7213 2013-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7215 * emit-rtl.c (reset_all_used_flags): New function.
7216 (verify_rtl_sharing): Call reset_all_used_flags before and after
7217 performing the checks.
7219 2013-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7221 * config/arm/arm.c (const_ok_for_dimode_op): Handle AND case.
7222 * config/arm/arm.md (*anddi3_insn): Change to insn_and_split.
7223 * config/arm/constraints.md (De): New constraint.
7224 * config/arm/neon.md (anddi3_neon): Delete.
7225 (neon_vand<mode>): Expand to standard anddi3 pattern.
7226 * config/arm/predicates.md (imm_for_neon_inv_logic_operand):
7227 Move earlier in the file.
7228 (neon_inv_logic_op2): Likewise.
7229 (arm_anddi_operand_neon): New predicate.
7231 2013-04-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7233 * configure.ac (gcc_cv_ld_as_needed): Set
7234 gcc_cv_ld_as_needed_option, gcc_cv_no_as_needed_option.
7235 Use -z ignore, -z record on *-*-solaris2*.
7236 (HAVE_LD_AS_NEEDED): Update comment.
7237 (LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION): Define.
7238 * configure: Regenerate.
7239 * config.in: Regenerate.
7240 * gcc.c (init_gcc_specs) [USE_LD_AS_NEEDED]: Use
7241 LD_AS_NEEDED_OPTION, LD_NO_AS_NEEDED_OPTION.
7242 * config/sol2.h [HAVE_LD_AS_NEEDED] (USE_LD_AS_NEEDED): Define.
7243 * doc/tm.texi.in (USE_LD_AS_NEEDED): Allow for --as-needed
7244 equivalents. Fix markup.
7245 * doc/tm.texi: Regenerate.
7247 2013-04-15 Andrew Hsieh <andrewhsieh.google.com>
7249 * config/i386/i386.opt: New option mstack-protector-guard=.
7250 * config/i386/i386-opts.h: Add enum stack_protector_guard.
7251 * config/i386/i386.h: Define TARGET_SSP_GLOBAL_GUARD and
7252 TARGET_SSP_TLS_GUARD.
7253 * config/i386/i386.c (ix86_option_override_internal): Set
7254 ix86_stack_protector_guard.
7255 * config/i386/i386.md (stack_protect_set): Enable for
7256 TARGET_SSP_TLS_GUARD only.
7257 (stack_protect_set_<mode>): Ditto.
7258 (stack_protect_test): Ditto.
7259 (stack_protect_test_<mode>): Ditto.
7260 * doc/invoke.texi (i386 Option): Document.
7262 2013-04-15 Eric Botcazou <ebotcazou@adacore.com>
7265 * config/sparc/sparc.c (enum sparc_mode_class): Add H_MODE value.
7266 (S_MODES): Set H_MODE bit.
7267 (SF_MODES): Set only S_MODE and SF_MODE bits.
7268 (DF_MODES): Set SF_MODES and only D_MODE and DF_MODE bits.
7269 (sparc_init_modes) <MODE_INT>: Set H_MODE bit for sub-word modes.
7270 <MODE_VECTOR_INT>: Do not set SF_MODE for sub-word modes.
7271 <MODE_FLOAT>: Likewise.
7273 2013-04-15 Joey Ye <joey.ye@arm.com>
7275 * config/arm/arm.c (thumb_far_jump_used_p): Fix typo in comments.
7277 2013-04-15 Joey Ye <joey.ye@arm.com>
7279 * config/arm/arm.c (thumb1_final_prescan_insn): Assert lr save
7281 (thumb_far_jump_used_p): Count instruction size and set
7284 2013-04-14 Eric Botcazou <ebotcazou@adacore.com>
7286 * reorg.c (fill_simple_delay_slots): Reindent block of code.
7287 * resource.c (mark_target_live_regs): Reformat conditional block.
7289 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7291 * sched-deps.c (deps_analyze_insn): Do not check for EH_REGION insn
7292 notes, they are emitted only just before final.
7293 * sched-int.h: Include insn-attr.h before checking INSN_SCHEDULING.
7295 2013-04-13 Steven Bosscher <steven@gcc.gnu.org>
7297 * emit-rtl.c (remove_insn): Do not call df_insn_delete here.
7298 * cfgrtl.c (delete_insn): Call it here instead.
7299 * lra-spills.c (lra_final_code_change): Use delete_insn.
7300 * haifa-sched.c (sched_remove_insn): Likewise.
7301 * sel-sched-ir.c (return_nop_to_pool): Clear INSN_DELETED_P for nops
7302 returning to the nop pool.
7303 (sel_remove_insn): Simplify the only_disconnect case via remove_insn,
7304 use delete_insn for definitive removal. Clear BLOCK_FOR_INSN.
7306 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7308 * doc/tm.texi.in (LOOP_ALIGN): Remove loop note references.
7309 * doc/tm.texi: Regenerated.
7311 2013-04-12 Uros Bizjak <ubizjak@gmail.com>
7313 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use ANY_QI_REGNO_P in
7316 2013-04-12 Steven Bosscher <steven@gcc.gnu.org>
7318 * df-core.c (df_find_def): Compare register numbers.
7319 (df_find_use): Likewise.
7321 2013-04-12 Vladimir Makarov <vmakarov@redhat.com>
7324 * config/i386/i386.c (ix86_hard_regno_mode_ok): Add
7325 lra_in_progress for return.
7327 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7329 * config/arm/arm.md (mov_scc,mov_negscc,mov_notscc): Convert
7330 define_insn into define_insn_and_split and emit movsicc patterns.
7332 2013-04-12 Greta Yorsh <Greta.Yorsh@arm.com>
7334 * config/arm/arm.c (gen_operands_ldrd_strd): Initialize "base".
7336 2013-04-12 Richard Biener <rguenther@suse.de>
7338 * tree-pass.h (TODO_do_not_ggc_collect): New.
7339 * passes.c (execute_one_ipa_transform_pass): Honor
7340 TODO_do_not_ggc_collect.
7341 (execute_one_pass): Likewise.
7344 2013-04-10 Richard Biener <rguenther@suse.de>
7346 * passes.c (init_optimization_passes): Remove reload pass.
7347 * ira.c (do_reload): Merge into ...
7349 (rest_of_handle_reload): Remove.
7350 (pass_reload): Likewise.
7351 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7352 of reload for vzeroupper pass placement.
7354 2013-04-12 Jakub Jelinek <jakub@redhat.com>
7356 PR tree-optimization/56918
7357 PR tree-optimization/56920
7358 * fold-const.c (int_const_binop_1): Use op1.mul_with_sign (op2, ...)
7359 instead of op1 - op2. Pass 2 * TYPE_PRECISION (type) as second
7360 argument to rshift method. For 2 * HOST_BITS_PER_WIDE_INT precision
7361 use wide_mul_with_sign method.
7363 2013-04-12 Richard Biener <rguenther@suse.de>
7365 * gimple.c (is_gimple_constant): Vector CONSTRUCTORs should
7366 not be considered a gimple constant.
7368 2013-04-12 Marc Glisse <marc.glisse@inria.fr>
7370 * fold-const.c (const_binop): Handle vector shifts by a scalar.
7371 (fold_binary_loc): Call const_binop also for mixed vector-scalar
7374 2013-04-12 Manuel López-Ibáñez <manu@gcc.gnu.org>
7375 Jakub Jelinek <jakub@redhat.com>
7377 * opts.c: Include diagnostic-color.h.
7378 (common_handle_option): Handle OPT_fdiagnostics_color_.
7379 * Makefile.in (OBJS-libcommon): Add diagnostic-color.o.
7380 (diagnostic.o, opts.o, pretty-print.o): Depend on diagnostic-color.h.
7381 (diagnostic-color.o): New.
7382 * common.opt (fdiagnostics-color, fdiagnostics-color=): New options.
7383 (diagnostic_color_rule): New enum.
7384 * dwarf2out.c (gen_producer_string): Don't print -fdiagnostics-color*.
7385 * langhooks.c (lhd_print_error_function): Add %r "locus" and %R around
7386 the location string.
7387 * diagnostic.def: Add 3rd argument to DEFINE_DIAGNOSTIC_KIND macros,
7388 either NULL, or color kind.
7389 * diagnostic-color.c: New file.
7390 * diagnostic-color.h: New file.
7391 * diagnostic-core.h (DEFINE_DIAGNOSTIC_KIND): Adjust macro for 3
7393 * doc/invoke.texi (-fdiagnostics-color): Document.
7394 * pretty-print.h (pp_show_color): Define.
7395 (struct pretty_print_info): Add show_color field.
7396 * diagnostic.c: Include diagnostic-color.h.
7397 (diagnostic_build_prefix): Adjust for 3 argument DEFINE_DIAGNOSTIC_KIND
7398 macros. Colorize error:, warning: etc. strings and also the location
7400 (diagnostic_show_locus): Colorize the caret line.
7401 * pretty-print.c: Include diagnostic-color.h.
7402 (pp_base_format): Handle %r and %R format specifiers. Colorize strings
7403 inside of %< %> quotes or quoted through q format modifier.
7405 2013-04-12 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7407 * ifcvt.c (end_ifcvt_sequence): Mark a and b for unsharing as well.
7409 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7411 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Allow NEG
7413 * config/aarch64/aarch64.md (*neg_<shift><mode>3_compare0): New
7416 2013-04-11 Marek Polacek <polacek@redhat.com>
7418 PR tree-optimization/48184
7419 * params.def (PARAM_ALIGN_THRESHOLD): Increase the minimum value to 1.
7421 2013-04-11 Eric Botcazou <ebotcazou@adacore.com>
7423 * stor-layout.c (skip_simple_constant_arithmetic): Move to...
7424 * tree.c (skip_simple_constant_arithmetic): ...here and make public.
7425 (skip_simple_arithmetic): Tidy up.
7426 * tree.h (skip_simple_constant_arithmetic): Declare.
7428 2013-04-11 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7430 * config/aarch64/aarch64.h (REVERSIBLE_CC_MODE): Define.
7432 2013-04-11 Richard Biener <rguenther@suse.de>
7434 * tree-vect-loop.c (get_initial_def_for_induction): Properly
7435 generate vector constants.
7437 2013-04-11 Richard Biener <rguenther@suse.de>
7439 PR tree-optimization/56878
7440 * tree-flow.h (outermost_invariant_loop_for_expr): Declare.
7441 * tree-ssa-loop-ivopts.c (outermost_invariant_loop_for_expr):
7443 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7444 Prefer to align the DR with the most invariant base address.
7446 2013-04-11 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7448 * opts.c (common_handle_option): Fix formatting and add FALLTHRU
7451 2013-04-11 James Greenhalgh <james.greenhalgh@arm.com>
7453 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal): Fix
7454 floating-point vector comparisons against 0.
7456 2013-04-11 Jakub Jelinek <jakub@redhat.com>
7458 PR tree-optimization/56899
7459 * fold-const.c (extract_muldiv_1): Apply distributive law
7460 only if TYPE_OVERFLOW_WRAPS (ctype).
7462 2013-04-11 Bin Cheng <bin.cheng@arm.com>
7465 * ira-costs.c (scan_one_insn): Check whether the source rtx of
7466 loading has side effect.
7468 2013-04-10 Steven Bosscher <steven@gcc.gnu.org>
7470 * config/sparc/sparc.c: Include tree-pass.h.
7471 (TARGET_MACHINE_DEPENDENT_REORG): Do not redefine.
7472 (sparc_reorg): Rename to sparc_do_work_around_errata. Move to
7473 head of file. Change return type. Split off gate function.
7474 (sparc_gate_work_around_errata): New function.
7475 (pass_work_around_errata): New pass definition.
7476 (insert_pass_work_around_errata) New pass insert definition to
7477 insert pass_work_around_errata just after delayed-branch scheduling.
7478 (sparc_option_override): Insert the pass.
7479 * config/sparc/t-sparc (sparc.o): Add TREE_PASS_H dependence.
7481 2013-04-10 David S. Miller <davem@davemloft.net>
7483 * config/sparc/sparc.h (ASM_CPU_SPEC): Pass -Av8 if -mcpu=supersparc
7484 or -mcpu=hypersparc.
7486 * target.def (cstore_mode): New hook.
7487 * target.h: Include insn-codes.h
7488 * targhooks.c: Likewise.
7489 (default_cstore_mode): New function.
7490 * targhooks.h: Declare it.
7491 * doc/tm.texi.in: New hook slot for TARGET_CSTORE_MODE.
7492 * doc/tm.texi: Rebuild.
7493 * expmed.c (emit_cstore): Obtain cstore boolean result mode using
7494 target hook, rather than inspecting the insn_data.
7495 * config/sparc/sparc.c (sparc_cstore_mode): New function.
7496 (TARGET_CSTORE_MODE): Redefine.
7497 (emit_scc_insn): When TARGET_ARCH64, emit new 64-bit boolean
7499 * config/sparc/predicates.md (cstore_result_operand): New special
7501 * config/sparc/sparc.md (cstoresi4, cstoredi4, cstore<F:mode>4):
7502 Use it for operand 0.
7503 (*seqsi_special): Rewrite using 'P' mode iterator on operand 0.
7504 (*snesi_special): Likewise.
7505 (*snesi_zero): Likewise.
7506 (*seqsi_zero): Likewise.
7507 (*sltu_insn): Likewise.
7508 (*sgeu_insn): Likewise.
7509 (*seqdi_special): Make operand 0 and comparison operation be of
7511 (*snedi_special): Likewise.
7512 (*snedi_special_vis3): Likewise.
7513 (*neg_snesi_zero): Rename to *neg_snesisi_zero.
7514 (*neg_snesi_sign_extend): Rename to *neg_snesidi_zero.
7515 (*snesi_zero_extend): Delete, covered by 'P' mode iterator.
7516 (*neg_seqsi_zero): Rename to *neg_seqsisi_zero.
7517 (*neg_seqsi_sign_extend): Rename to *neg_seqsidi_zero.
7518 (*seqsi_zero_extend): Delete, covered by 'P' mode iterator.
7519 (*sltu_extend_sp64): Likewise.
7520 (*neg_sltu_insn): Rename to *neg_sltusi_insn.
7521 (*neg_sltu_extend_sp64): Rename to *neg_sltudi_insn.
7522 (*sgeu_extend_sp64): Delete, covered by 'P' mode iterator.
7523 (*neg_sgeu_insn): Rename to *neg_sgeusi_insn.
7524 (*neg_sgeu_extend_sp64): Rename to *neg_sgeudi_insn.
7526 2013-04-10 Yufeng Zhang <yufeng.zhang@arm.com>
7528 * config/aarch64/aarch64.c (aarch64_print_extension): New function.
7529 (aarch64_start_file): Use the new function.
7531 2013-04-10 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7532 Jason Merrill <jason@redhat.com>
7534 * common.opt: Add -gdwarf.
7535 * opts.c (common_handle_option): Handle it.
7536 * gcc.c (ASM_DEBUG_SPEC): Don't expect "-2" for DWARF.
7538 2013-04-10 Richard Biener <rguenther@suse.de>
7540 * passes.c (execute_todo): Do not call ggc_collect conditional here.
7541 (execute_one_ipa_transform_pass): But unconditionally here.
7542 (execute_one_pass): And here.
7543 (init_optimization_passes): Remove reload pass.
7544 * tree-pass.h (TODO_ggc_collect): Remove.
7545 (pass_reload): Likewise.
7546 * ira.c (do_reload): Merge into ...
7548 (rest_of_handle_reload): Remove.
7549 (pass_reload): Likewise.
7550 * config/i386/i386.c (ix86_option_override): Refer to ira instead
7551 of reload for vzeroupper pass placement.
7552 * <everywhere>: Remove TODO_ggc_collect from todo_flags_start
7553 and todo_flags_finish of all passes.
7555 2013-04-10 Richard Biener <rguenther@suse.de>
7557 * tree-vectorizer.h (struct _slp_oprnd_info): Remove
7558 first_const_oprnd field, rename first_def_type to first_op_type.
7559 * tree-vect-slp.c (vect_create_oprnd_info): Adjust.
7560 (vect_get_and_check_slp_defs): Always use the type of the
7561 operand. Allow mixed vect_external_def, vect_constant_def types.
7562 (vect_get_constant_vectors): Handle mixed vect_external_def,
7563 vect_constant_def types.
7565 2013-04-10 Joern Rennecke <joern.rennecke@embecosm.com>
7567 PR tree-optimization/55524
7568 * tree-ssa-math-opts.c
7569 (convert_mult_to_fma): Don't use an fms construct
7570 when we don't have an fms operation, but fnma, and it looks
7571 likely that we'll be able to use the latter.
7573 2013-04-10 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7575 * cif-code.def (OVERWRITABLE): Correct the comment for overwritable
7577 * ipa-inline.c (can_inline_edge_p): Let dump mechanism report the
7578 inline fail caused by overwritable functions.
7580 2013-04-10 Chung-Ju Wu <jasonwucj@gmail.com>
7582 * combine.c (simplify_compare_const): Use GET_MODE_MASK to filter out
7583 unnecessary bits in the constant power of two case.
7585 2013-04-10 Richard Biener <rguenther@suse.de>
7587 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove
7588 broken code swapping operands.
7589 (vect_build_slp_tree): Do not compute load permutations here.
7590 (vect_analyze_slp_instance): Compute load permutations here,
7591 after building the SLP tree.
7593 2013-04-09 Christian Bruel <christian.bruel@st.com>
7595 * config/sh/sh.md (barrier_align): Use next/prev_active_insn instead
7596 of next/prev_real_insn.
7598 2013-04-09 Jan Hubicka <jh@suse.cz>
7600 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
7601 Drop aliased parameter.
7602 (function_and_variable_visibility): Do not handle alias pairs.
7603 * cgraph.c (varpool_externally_visible_p): Update prototype.
7604 * varpool.c (varpool_add_new_variable): Update.
7606 2013-04-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7608 * config/arm/arm.md (minmax_arithsi_non_canon): New pattern.
7610 2013-04-09 Steven Bosscher <steven@gcc.gnu.org>
7612 * sched-vis.c (print_pattern): Print SEQUENCE of insns as insns.
7614 * config/sparc/sparc.md: Use define_c_enum for "unspec" and "unspecv".
7616 2013-04-09 Marek Polacek <polacek@redhat.com>
7618 PR tree-optimization/48762
7619 * params.def (PARAM_MAX_CSE_INSNS): Increase the minimum value to 1.
7621 2013-04-09 Richard Biener <rguenther@suse.de>
7623 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove code
7625 (vect_build_slp_tree): Likewise.
7626 (vect_analyze_slp_cost_1, vect_analyze_slp_cost): New functions
7627 calculating the cost of a SLP instance.
7628 (vect_analyze_slp_instance): Use it from here, after building
7631 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7634 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
7635 expand_omp_for_static_chunk): Use simple_p = true in
7636 force_gimple_operand_gsi calls when assigning to addressable decls.
7638 2013-04-09 Jeff Law <law@redhat.com>
7640 * tree-vrp.c (simplify_cond_using_ranges): Simplify test of boolean
7641 when the boolean was created by converting a wider object which
7642 had a boolean range.
7644 2013-04-09 Richard Biener <rguenther@suse.de>
7646 * tree-vectorizer.h (slp_void_p): Remove.
7647 (slp_tree): Typedef before _slp_tree declaration.
7648 (struct _slp_tree): Use a vector of slp_tree as children.
7649 (vect_get_place_in_interleaving_chain): Remove.
7650 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain):
7652 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): ... here
7654 (vect_free_slp_tree, vect_print_slp_tree, vect_mark_slp_stmts,
7655 vect_mark_slp_stmts_relevant, vect_slp_rearrange_stmts,
7656 vect_detect_hybrid_slp_stmts, vect_slp_analyze_node_operations,
7657 vect_schedule_slp_instance, vect_remove_slp_scalar_calls):
7658 Use slp_node instead of slp_void_p and adjust.
7660 2013-04-09 Richard Biener <rguenther@suse.de>
7662 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa): Avoid
7663 work that is not necessary.
7665 2013-04-09 Jakub Jelinek <jakub@redhat.com>
7667 PR tree-optimization/56854
7668 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't
7669 forward into clobber stmts if it would change MEM_REF lhs into
7672 2013-04-09 Maxim Kuvyrkov <maxim@kugelworks.com>
7674 * tree.c (type_hash_lookup, type_hash_add): Make static.
7675 * tree.h (type_hash_lookup, type_hash_add): Remove global declarations.
7677 2013-04-09 Richard Biener <rguenther@suse.de>
7679 * tree.h (unsave_expr_now): Remove.
7680 * tree-inline.c (mark_local_for_remap_r): Remove.
7681 (unsave_expr_1): Likewise.
7682 (unsave_r): Likewise.
7683 (unsave_expr_now): Likewise.
7684 * tree-ssa-copy.c (replace_exp_1): Use unshare_expr.
7685 (propagate_tree_value): Likewise.
7687 2013-04-08 Steven Bosscher <steven@gcc.gnu.org>
7689 * doc/rtl.texi (sequence): Rewrite documentation to match the
7690 current use of SEQUENCE rtl objects.
7691 * rtl.def (SEQUENCE): Likewise.
7693 * doc/rtl.texi (NOTE_INSN_EH_REGION_BEG, NOTE_INSN_EH_REGION_END):
7694 Update documentation.
7695 (NOTE_INSN_LOOP_BEG, NOTE_INSN_LOOP_END, NOTE_INSN_LOOP_CONT,
7696 NOTE_INSN_LOOP_VTOP): Remove documentation for non-existing notes.
7698 * reg-notes.def (REG_EH_CONTEXT): Remove unused note.
7700 2013-04-08 Teresa Johnson <tejohnson@google.com>
7702 * basic-block.h (GCOV_COMPUTE_SCALE): Define.
7703 * ipa-inline-analysis.c (param_change_prob): Use helper rounding divide
7705 (estimate_edge_size_and_time): Add comment to suggest using rounding
7707 (estimate_node_size_and_time): Ditto.
7708 (remap_edge_change_prob): Use helper rounding divide methods.
7709 * value-prof.c (gimple_divmod_fixed_value_transform): Ditto.
7710 (gimple_mod_pow2_value_transform): Ditto.
7711 (gimple_mod_subtract_transform): Ditto.
7712 (gimple_ic_transform): Ditto.
7713 (gimple_stringops_transform): Ditto.
7714 * stmt.c (conditional_probability): Ditto.
7715 (emit_case_dispatch_table): Ditto.
7716 * lto-cgraph.c (merge_profile_summaries): Ditto.
7717 * tree-optimize.c (execute_fixup_cfg): Ditto.
7718 * cfgcleanup.c (try_forward_edges): Ditto.
7719 * cfgloopmanip.c (scale_loop_profile): Ditto.
7721 (duplicate_loop_to_header_edge): Ditto.
7722 (lv_adjust_loop_entry_edge): Ditto.
7723 * tree-vect-loop.c (vect_transform_loop): Ditto.
7724 * profile.c (compute_branch_probabilities): Ditto.
7725 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
7726 * lto-streamer-in.c (input_cfg): Ditto.
7727 * gimple-streamer-in.c (input_bb): Ditto.
7728 * ipa-cp.c (update_profiling_info): Ditto.
7729 (update_specialized_profile): Ditto.
7730 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Ditto.
7731 * cfg.c (update_bb_profile_for_threading): Add comment to suggest using
7733 * sched-rgn.c (compute_dom_prob_ps): Ditto.
7734 (compute_trg_info): Ditto.
7735 * cfgrtl.c (force_nonfallthru_and_redirect): Ditto.
7736 (purge_dead_edges): Ditto.
7737 * loop-unswitch.c (unswitch_loop): Ditto.
7738 * cgraphclones.c (cgraph_clone_edge): Ditto.
7739 (cgraph_clone_node): Ditto.
7740 * tree-inline.c (copy_bb): Ditto.
7741 (copy_edges_for_bb): Ditto.
7742 (initialize_cfun): Ditto.
7743 (copy_cfg_body): Ditto.
7744 (expand_call_inline): Ditto.
7746 2013-04-08 Kai Tietz <ktietz@redhat.com>
7748 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Replaced
7749 TARGET_CYGWIN64 by TARGET_64BIT.
7751 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7753 * config/epiphany/epiphany.md (GPR_1): New constant.
7754 (define_expand "mov<mode>cc): FAIL if gen_compare_reg returned 0.
7755 * config/epiphany/epiphany.c (gen_compare_reg):
7756 For flag_finite_math_only, avoid swapping operands when r0 and/or r1
7757 is already in place.
7758 Use GPR_0 / GPR_1 instead of 0/1 for r0/r1 register numbers.
7759 Don't require being called during rtl expansion; If y operlaps r0,
7761 (epiphany_compute_frame_size, epiphany_expand_prologue): Use GPR_1.
7762 (epiphany_expand_epilogue): Likewise.
7764 * config/epiphany/epiphany.c (epiphany_select_cc_mode):
7765 Don't use CC_FPmode for ORDERED / UNORDERED.
7766 * config/epiphany/epiphany.md (cmpsf_ord): Make pattern unconditional.
7768 * config/epiphany/constraints.md (CnL): New constraint.
7769 * config/epiphany/epiphany.md (addsi3_i): Add r/r/CnL alternative.
7770 * config/epiphany/predicates.md (add_operand): Allow 1024.
7772 * config/epiphany/epiphany.md (logical_op): New code iterator.
7773 (op_mnc): New code attribute.
7774 (<op_mnc>_f, mov_f, cstoresi4): New patterns.
7775 (mov_f+1, mov_f+2): New peephole2 patterns.
7777 * config/epiphany/epiphany.md (mov_f+2): New peephole2 pattern.
7778 (cstoresi4): Also allow re-use of zero result when doing a NE
7779 comparison to a non-zero operand.
7780 Use (clobber (scratch)) for first insn if the gpr output is not needed.
7782 * config/epiphany/epiphany.md (<insn_opname>v2si3):
7783 Use gen_addsi3_i / gen_subsi3_i.
7785 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7789 * tree-eh.c (optimize_clobbers): Only remove clobbers if bb doesn't
7790 contain anything but clobbers, at most one __builtin_stack_restore,
7791 optionally debug stmts and final resx, and if it has at least one
7792 incoming EH edge. Don't check for SSA_NAME on LHS of a clobber.
7793 (sink_clobbers): Don't check for SSA_NAME on LHS of a clobber.
7794 Instead of moving clobbers with MEM_REF LHS with SSA_NAME address
7795 which isn't defaut definition, remove them.
7796 (unsplit_eh, cleanup_empty_eh): Use single_{pred,succ}_{p,edge}
7797 instead of EDGE_COUNT comparisons or EDGE_{PRED,SUCC}.
7798 * tree-ssa-ccp.c (execute_fold_all_builtins): Remove clobbers
7799 with MEM_REF LHS with SSA_NAME address.
7801 2013-04-08 Jeff Law <law@redhat.com>
7803 * gimple.c (canonicalize_cond_expr_cond): Rewrite x ^ y into x != y.
7805 2013-04-08 Richard Biener <rguenther@suse.de>
7807 * gimple-pretty-print.c (debug_gimple_stmt): Do not print
7809 * tree-vect-loop.c (vect_determine_vectorization_factor): Dump
7810 determined vector type.
7811 (vect_analyze_data_refs): Likewise.
7812 (vect_get_new_vect_var): Adjust.
7813 (vect_create_destination_var): Preserve SSA name versions.
7814 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Do
7815 not dump anything here.
7817 2013-04-08 Joern Rennecke <joern.rennecke@embecosm.com>
7819 * config/epiphany/epiphany.h (struct GTY (()) machine_function):
7820 Add member lr_slot_known.
7821 * config/epiphany/epiphany.md (reload_insi_ra): Compute lr_slot_offs
7823 * config/epiphany/epiphany.c (epiphany_compute_frame_size):
7824 Remove code that sets lr_slot_offset according to what a previous
7825 version of epiphany_emit_save_restore used to do.
7826 (epiphany_emit_save_restore): When doing an lr save or restore,
7827 set/verify lr_slot_known and lr_slot_offset.
7829 2013-04-08 Xinyu Qi <xyqi@marvell.com>
7832 * config/arm/arm.h (REG_CLASS_CONTENTS): Include IWMMXT_GR_REGS
7835 2013-04-08 Richard Biener <rguenther@suse.de>
7837 * alias.c (find_base_term): Fix thinko in previous change.
7839 2013-04-08 Jakub Jelinek <jakub@redhat.com>
7841 * tree-loop-distribution.c (const_with_all_bytes_same): New function.
7842 (generate_memset_builtin): Only handle integer_all_onesp as -1 val if
7843 TYPE_PRECISION is equal to mode bitsize. Use const_with_all_bytes_same
7844 if possible to compute val.
7845 (classify_partition): Verify CONSTRUCTOR doesn't have any elts.
7846 For QImode integers don't require anything about precision. Use
7847 const_with_all_bytes_same to find out if the constant doesn't have
7848 repeated bytes in it.
7850 2013-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7852 * config/s390/s390.c (s390_expand_insv): Only accept insertions
7855 2013-04-08 Marek Polacek <polacek@redhat.com>
7857 PR rtl-optimization/48182
7858 * params.def (PARAM_MIN_CROSSJUMP_INSNS): Increase the minimum
7861 2013-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7864 * config/pa/pa.c (legitimize_pic_address): Before incrementing label
7865 nuses, make sure we have a label.
7867 2013-04-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7870 * config/rs6000/rs6000.c (rs6000_emit_swdiv_high_precision): Remove.
7871 (rs6000_emit_swdiv_low_precision): Remove.
7872 (rs6000_emit_swdiv): Rewrite to handle between one and four
7873 iterations of Newton-Raphson generally; modify required number of
7874 iterations for some cases.
7875 * config/rs6000/rs6000.h (RS6000_RECIP_HIGH_PRECISION_P): Remove.
7877 2013-04-05 Steven Bosscher <steven@gcc.gnu.org>
7879 * bb-reorder.c (fix_crossing_unconditional_branches): Remove a
7880 set-but-unused variable.
7882 * cgraph.c (cgraph_release_function_body): Clear cfun->cfg to make
7883 basic blocks of released function bodies garbage-collectable.
7885 * ree.c (find_and_remove_re): Do not call df_finish_pass here.
7886 (struct rtl_opt_pass): Add TODO_df_finish.
7888 * rtl.def (DEFINE_SUBST, DEFINE_SUBST_ATTR): Add documentation.
7890 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7892 * config/arm/constraints.md (q): New constraint.
7893 * config/arm/ldrdstrd.md: New file.
7894 * config/arm/arm.md (ldrdstrd.md) New include.
7895 (arm_movdi): Use "q" instead of "r" constraint
7896 for double-word memory access.
7897 (movdf_soft_insn): Likewise.
7898 * config/arm/vfp.md (movdi_vfp): Likewise.
7899 * config/arm/t-arm (MD_INCLUDES): Add ldrdstrd.md.
7900 * config/arm/arm-protos.h (gen_operands_ldrd_strd): New declaration.
7901 * config/arm/arm.c (gen_operands_ldrd_strd): New function.
7902 (mem_ok_for_ldrd_strd): Likewise.
7903 (output_move_double): Update assertion.
7905 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7907 * config/arm/arm.md: Comment on splitting Thumb1 patterns.
7909 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7911 * config/arm/arm.md (arm_smax_insn): Convert define_insn into
7912 define_insn_and_split.
7913 (arm_smin_insn,arm_umaxsi3,arm_uminsi3): Likewise.
7915 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7917 * config/arm/arm.md (arm_ashldi3_1bit): Convert define_insn into
7918 define_insn_and_split.
7919 (arm_ashrdi3_1bit,arm_lshrdi3_1bit): Likewise.
7920 (shiftsi3_compare): New pattern.
7922 * config/arm/unspecs.md (UNSPEC_RRX): New.
7924 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7926 * config/arm/arm.md (negdi_extendsidi): New pattern.
7927 (negdi_zero_extendsidi): Likewise.
7929 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7931 * config/arm/arm.md (andsi_iorsi3_notsi): Convert define_insn into
7932 define_insn_and_split.
7933 (arm_negdi2,arm_abssi2,arm_neg_abssi2): Likewise.
7934 (arm_cmpdi_insn,arm_cmpdi_unsigned): Likewise.
7936 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7938 * config/arm/arm.md (arm_subdi3): Convert define_insn into
7939 define_insn_and_split.
7940 (subdi_di_zesidi,subdi_di_sesidi): Likewise.
7941 (subdi_zesidi_di,subdi_sesidi_di,subdi_zesidi_zesidi): Likewise.
7943 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7945 * config/arm/arm.md (subsi3_carryin): New pattern.
7946 (subsi3_carryin_const): Likewise.
7947 (subsi3_carryin_compare,subsi3_carryin_compare_const): Likewise.
7948 (subsi3_carryin_shift,rsbsi3_carryin_shift): Likewise.
7950 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7952 * config/arm/arm.md (incscc,arm_incscc,decscc,arm_decscc): Delete.
7954 2013-04-05 Greta Yorsh <Greta.Yorsh@arm.com>
7956 * config/arm/arm.md (addsi3_carryin_<optab>): Set attribute predicable.
7957 (addsi3_carryin_alt2_<optab>,addsi3_carryin_shift_<optab>): Likewise.
7959 2013-04-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7961 * config/arm/arm.c (arm_expand_builtin): Change fcode
7962 type to unsigned int.
7964 2013-04-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7966 * doc/invoke.texi (ARM Options): Document cortex-a53 support.
7968 2013-04-04 Ian Lance Taylor <iant@google.com>
7970 * doc/standards.texi (Standards): The Go frontend supports the Go 1
7973 2013-04-04 Steven Bosscher <steven@gcc.gnu.org>
7976 * df-scan.c (df_insn_delete): Disable failing assert.
7978 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7980 * config/arm/arm-protos.h (arm_builtin_vectorized_function):
7981 New function prototype.
7982 * config/arm/arm.c (TARGET_VECTORIZE_BUILTINS): Define.
7983 (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Likewise.
7984 (arm_builtin_vectorized_function): New function.
7986 2013-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7988 * config/arm/arm_neon_builtins.def: New file.
7989 * config/arm/arm.c (neon_builtin_data): Move contents to
7990 arm_neon_builtins.def.
7991 (enum arm_builtins): Include neon builtin definitions.
7992 (ARM_BUILTIN_NEON_BASE): Move from enum to macro.
7993 * config/arm/t-arm (arm.o): Add dependency on arm_neon_builtins.def.
7995 2013-04-04 Marek Polacek <polacek@redhat.com>
7997 PR tree-optimization/48186
7998 * predict.c (maybe_hot_frequency_p): Return false if
7999 HOT_BB_FREQUENCY_FRACTION is 0.
8000 (cgraph_maybe_hot_edge_p): Likewise.
8002 2013-04-04 Richard Biener <rguenther@suse.de>
8004 PR tree-optimization/56826
8005 * tree-vect-slp.c (vect_build_slp_tree): Compute ncopies
8008 2013-04-04 Richard Biener <rguenther@suse.de>
8010 PR tree-optimization/56213
8011 * tree-vect-data-refs.c (vect_check_strided_load): Remove.
8012 (vect_analyze_data_refs): Allow all non-nested loads as strided loads.
8014 2013-04-04 Richard Biener <rguenther@suse.de>
8016 PR tree-optimization/56837
8017 * tree-loop-distribution.c (classify_partition): For non-zero
8018 values require that the value has the same precision as its
8019 mode to be useful as memset value.
8021 2013-04-03 Nick Clifton <nickc@redhat.com>
8023 * config/v850/v850e3v5.md (fmasf4): Use fmaf.s on E3V5 architectures.
8024 (fmssf4): Use fmsf.s on E3V5 architectures.
8025 (fnmasf4): Use fnmaf.s on E3V5 architectures.
8026 (fnmssf4): Use fnmsf.s on E3V5 architectures.
8028 2013-04-03 Jeff Law <law@redhat.com>
8030 * Makefile.in (lra-constraints.o): Depend on $(OPTABS_H).
8031 (lra-eliminations.o): Likewise.
8033 2013-04-03 Teresa Johnson <tejohnson@google.com>
8035 * gcov-io.c (compute_working_sets): Moved most of body of old
8036 compute_working_sets here from profile.c.
8037 * gcov-io.h (NUM_GCOV_WORKING_SETS): Moved here from profile.c.
8038 (gcov_working_set_t): Moved typedef here from basic-block.h
8039 (compute_working_set): Declare.
8040 * profile.c (NUM_GCOV_WORKING_SETS): Moved to gcov-io.h.
8041 (get_working_sets): Renamed from compute_working_set,
8042 replace most of body with call to new compute_working_sets.
8043 (get_exec_counts): Replace call to compute_working_sets
8044 to get_working_sets.
8045 * profile.h (get_working_sets): Renamed from compute_working_set.
8046 * lto-cgraph.c (input_symtab): Replace call to compute_working_sets
8047 to get_working_sets.
8048 * basic-block.h (gcov_working_set_t): Moved to gcov-io.h.
8049 * gcov-dump.c (dump_working_sets): New function.
8051 2013-04-03 Kenneth Zadeck <zadeck@naturalbridge.com>
8053 * hwint.c (sext_hwi, zext_hwi): New functions.
8054 * hwint.h (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT,
8055 HOST_HALF_WIDE_INT_PRINT, HOST_HALF_WIDE_INT_PRINT_C,
8056 HOST_HALF_WIDE_INT_PRINT_DEC, HOST_HALF_WIDE_INT_PRINT_DEC_C,
8057 HOST_HALF_WIDE_INT_PRINT_UNSIGNED, HOST_HALF_WIDE_INT_PRINT_HEX,
8058 HOST_HALF_WIDE_INT_PRINT_HEX_PURE): New symbols.
8059 (sext_hwi, zext_hwi): New functions.
8061 2013-04-03 Jeff Law <law@redhat.com>
8063 PR tree-optimization/56799
8064 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Bring
8065 back test for widening conversion erroneously dropped in prior change.
8067 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8070 * config/aarch64/aarch64.c (is_jump_table): Use next_active_insn
8071 instead of next_real_insn.
8073 2013-04-03 Marek Polacek <polacek@redhat.com>
8076 * tsan.c (instrument_func_exit): Allow BUILT_IN_RETURN functions.
8078 2013-04-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8081 * config/arm/arm.c (is_jump_table): Use next_active_insn instead of
8083 (thumb1_output_casesi): Likewise.
8084 (thumb2_output_casesi): Likewise.
8086 2013-04-03 Richard Biener <rguenther@suse.de>
8088 PR tree-optimization/56817
8089 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely):
8091 (tree_unroll_loops_completely_1): ... new function to manually
8092 walk the loop tree, properly defering outer loops of unrolled
8093 loops to later iterations.
8095 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8097 * tree-vect-stmts.c (vectorizable_store): Accept BIT_FIELD_REF.
8098 (vectorizable_load): Likewise.
8099 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8100 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Handle VECTOR_TYPE.
8102 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8104 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): Handle
8107 2013-04-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8109 * config/spu/spu.c (emit_nop_for_insn): Handle JUMP_TABLE_DATA.
8111 2013-04-03 Bin Cheng <bin.cheng@arm.com>
8113 * rtl.h (AUTO_INC_DEC): Fix typo of HAVE_POST_MODIFY_DISP.
8115 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8117 PR tree-optimization/56790
8118 * fold-const.c (fold_ternary_loc) <VEC_COND_EXPR>: Add constant
8121 2013-04-03 Marc Glisse <marc.glisse@inria.fr>
8123 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
8125 (simplify_ternary_operation) <VEC_MERGE>: Use unsigned HOST_WIDE_INT
8126 for masks. Test for side effects. Handle nested VEC_MERGE. Handle
8129 2013-04-03 Jakub Jelinek <jakub@redhat.com>
8132 * tree.h (force_folding_builtin_constant_p): New decl.
8133 * builtins.c (force_folding_builtin_constant_p): New variable.
8134 (fold_builtin_constant_p): Fold immediately also if
8135 force_folding_builtin_constant_p.
8137 2013-04-03 Richard Biener <rguenther@suse.de>
8139 PR tree-optimization/56812
8140 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
8141 DRs of the same interleaving chain are independent.
8143 2013-04-02 Jason Merrill <jason@redhat.com>
8145 * gdbinit.in (pbb): Use debug fn.
8147 2013-04-02 Lawrence Crowl <crowl@google.com>
8149 * sese.h (struct ivtype_map_elt_s): Remove unused.
8150 (extern debug_ivtype_map): Remove unused.
8151 (extern eq_ivtype_map_elts): Remove unused.
8152 * sese.c (debug_ivtype_map): Removed unused.
8153 (debug_ivtype_map_1): Removed unused.
8154 (debug_ivtype_elt): Remove unused.
8155 (eq_ivtype_map_elts): Remove unused.
8158 2013-04-02 Kai Tietz <ktietz@redhat.com>
8161 * config/i386/cygming.h (SUB_TARGET_RECORD_STUB): New sub-target macro.
8162 * config/i386/i386-protos.h (i386_pe_record_stub): Add new prototype.
8163 * config/i386/i386.c (legitimize_pe_coff_extern_decl): New static
8165 (legitimize_pe_coff_symbol): Likewise.
8166 (is_imported_p): New helper-function.
8167 (ix86_option_override_internal): Make MEDIUM_PIC the default code-model
8168 for Windows x64 targets.
8169 (ix86_expand_prologue): Optimize for pe-coff targets.
8170 (ix86_expand_split_stack_prologue): Adjust for pe-coff targets.
8171 (legitimate_pic_address_disp_p): Adjust for x64 pe-coff to support
8172 medium/large code-model.
8173 (legitimize_pic_address): Likewise.
8174 (legitimize_tls_address): Likewise.
8175 (ix86_expand_call): Likewise.
8176 (x86_output_mi_thunk): Likewise.
8177 (get_dllimport_decl): Add new beimport argument.
8178 (construct_plt_address): Don't assert for x64 pe-coff targets.
8179 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Adjust for x64 pe-coff
8181 (SYMBOL_FLAG_STUBVAR): New macro.
8182 (SYMBOL_REF_STUBVAR_P): Likewise.
8183 * config/i386/winnt.c (stub_list): New structure.
8184 (stub_head): New local variable.
8185 (i386_pe_record_stub): New function.
8186 (i386_pe_file_end): Emit refptr-stubs.
8188 2013-04-02 Jakub Jelinek <jakub@redhat.com>
8190 PR rtl-optimization/56745
8191 * ifcvt.c (cond_exec_find_if_block): Don't try to optimize
8192 if then_bb has no successors and else_bb is EXIT_BLOCK_PTR.
8195 * tree-ssa-alias.c (stmt_kills_ref_p_1): If base != ref->base
8196 and both of them are MEM_REFs, just compare first argument for
8197 equality and attempt to deal even with differing offsets.
8200 * tree-cfg.c (verify_gimple_assign_single): Allow lhs
8201 of gimple_clobber_p to be MEM_REF.
8202 * gimplify.c (gimplify_modify_expr): Gimplify *to_p of
8203 an assignment from TREE_CLOBBER_P. Allow it to be MEM_REF
8204 after gimplification.
8205 * asan.c (get_mem_ref_of_assignment): Don't instrument
8206 gimple_clobber_p stmts.
8207 * tree-ssa-dse.c (dse_optimize_stmt): Allow DSE of
8208 gimple_clobber_p stmt if they have MEM_REF lhs and
8209 are dead because of another gimple_clobber_p stmt.
8210 * tree-ssa-live.c (clear_unused_block_pointer): Treat
8211 gimple_clobber_p stmts like debug stmts.
8212 (remove_unused_locals): Remove clobbers with MEM_REF lhs
8213 that refer to unused VAR_DECLs or uninitialized values.
8214 * tree-sra.c (sra_ipa_reset_debug_stmts): Also remove
8215 gimple_clobber_p stmts if they refer to removed parameters.
8216 (get_repl_default_def_ssa_name, sra_ipa_modify_expr): Fix up
8219 2013-04-02 Uros Bizjak <ubizjak@gmail.com>
8221 * config/i386/i386.md (*testqi_ext_3): Merge with *testqi_ext_3_rex64
8222 using SWI48 mode attribute.
8224 2013-04-02 Wei Mi <wmi@google.com>
8226 * config/i386/i386.c (ix86_rtx_costs): Set proper rtx cost for
8227 ashl<mode>3_mask, *<shift_insn><mode>3_mask and
8228 *<rotate_insn><mode>3_mask in i386.md.
8230 2013-04-02 Alexander Ivchenko <alexander.ivchenko@intel.com>
8232 * config.gcc (arm*-*-linux-*): Remove duplicate t-linux-android.
8234 2013-04-02 Richard Biener <rguenther@suse.de>
8236 PR tree-optimization/56778
8237 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
8238 Runtime alias tests are not supported for gather loads.
8239 * tree-vect-loop-manip.c (vect_loop_versioning): Insert
8240 stmts referenced from SSA operands before updating SSA form.
8242 2013-04-02 Ian Caulfield <ian.caulfield@arm.com>
8243 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8245 * config/arm/arm-arches.def (armv8-a): Default to cortex-a53.
8246 * config/arm/t-arm (MD_INCLUDES): Depend on cortex-a53.md.
8247 * config/arm/cortex-a53.md: New file.
8248 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle cortex-a53.
8249 * config/arm/arm.md (generic_sched, generic_vfp): Handle cortex-a53.
8250 * config/arm/arm.c (arm_issue_rate): Likewise.
8251 * config/arm/arm-tune.md: Regenerate
8252 * config/arm/arm-tables.opt: Regenerate.
8253 * config/arm/arm-cores.def: Add cortex-a53.
8255 2013-04-02 Zhenqiang Chen <zhenqiang.chen@arm.com>
8257 * config/arm/uclinux-elf.h: Add %L to LINK_GCC_C_SEQUENCE_SPEC for
8260 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8262 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add variants for
8263 scalar load/store operations using B/H registers.
8264 (*zero_extend<SHORT:mode><GPI:mode>2_aarch64): Likewise.
8266 2013-04-02 Sofiane Naci <sofiane.naci@arm.com>
8268 * config/aarch64/aarch64.md (*mov<mode>_aarch64): Add alternatives for
8270 * config/aarch64/aarch64.c
8271 (aarch64_simd_scalar_immediate_valid_for_move): New.
8272 * config/aarch64/aarch64-protos.h
8273 (aarch64_simd_scalar_immediate_valid_for_move): New.
8274 * config/aarch64/constraints.md (Dh, Dq): New.
8275 * config/aarch64/iterators.md (hq): New.
8277 2013-04-02 Eric Botcazou <ebotcazou@adacore.com>
8279 * reorg.c (get_branch_condition): Deal with conditional returns.
8280 (fill_simple_delay_slots): Remove dead code dealing with jumps.
8282 2013-04-01 Wei Mi <wmi@google.com>
8284 * config/i386/i386.md (*ashl<mode>3_mask): Rewrite as define_insn.
8285 Truncate operand 2 using %b asm operand modifier.
8286 (*<shift_insn><mode>3_mask): Ditto.
8287 (*<rotate_insn><mode>3_mask): Ditto.
8289 2013-04-01 Steven Bosscher <steven@gcc.gnu.org>
8292 * cfgbuild.c (inside_basic_block_p): Restore check broken at r197234.
8294 2013-03-31 Kaz Kojima <kkojima@gcc.gnu.org>
8296 * config/sh/sh.md (casesi_worker_1): Use next_active_insn instead
8298 (casesi_worker_2, casesi_shift_media, casesi_load_media): Likewise.
8300 2013-03-30 Lawrence Crowl <crowl@google.com>
8302 * dse.c (clear_alias_sets): Remove never set.
8303 (disqualified_clear_alias_sets): Remove never set.
8304 (clear_alias_mode_pool): Remove never set.
8305 (dse_step0): Remove condition that is never true.
8306 (canon_address): Remove condition that is never true.
8307 (dse_step7): Remove condition that is never true.
8308 (rest_of_handle_dse): Remove condition that is never true.
8309 (rest_of_handle_dse::did_global): Remove never read from above.
8310 (dse_step2_spill): Remove never called from above.
8311 (dse_step5_spill): Remove never called from above.
8313 2013-03-30 Steven Bosscher <steven@gcc.gnu.org>
8315 * doc/md.texi (Standard Names) <casesi>: Update documentation for
8316 JUMP_TABLE_DATA changes.
8317 * doc/tm.texi.in (Dispatch Tables) <ASM_OUTPUT_CASE_LABEL>: Likewise.
8318 * doc/rtl.texi (Flags) <INSN_DELETED_P, SCHED_GROUP_P>: Likewise.
8319 (Insns) <jump_table_data>: New entry.
8320 * doc/tm.texi: Regenerate.
8322 * cfgrtl.c (fixup_reorder_chain): Do not emit barriers to BB_FOOTER.
8324 * postreload-gcse.c (bb_has_well_behaved_predecessors): Correct test
8325 for table jump at the end of a basic block using tablejump_p.
8326 * targhooks.c (default_invalid_within_doloop): Likewise.
8327 * config/rs6000/rs6000.c (TARGET_INVALID_WITHIN_DOLOOP): Remove
8328 target hook implementation that is identical to the default hook.
8329 (rs6000_invalid_within_doloop): Remove.
8331 * bb-reorder.c (fix_crossing_unconditional_branches): Remove set but
8332 unused variable from tablejump_p call.
8334 * rtl.def (JUMP_TABLE_DATA): New RTX_INSN object.
8335 * rtl.h (RTX_PREV, RTX_NEXT): Adjust for new JUMP_TABLE_DATA.
8336 (INSN_DELETED_P): Likewise.
8337 (emit_jump_table_data): New prototype.
8338 * gengtype.c (adjust_field_rtx_def): Handle JUMP_TABLE_DATA fields
8339 after 4th as unused.
8340 * print-rtl.c (print_rtl): Handle JUMP_TABLE_DATA.
8341 * sched-vis.c (print_insn): Likewise.
8342 * emit-rtl.c (active_insn_p): Consider JUMP_TABLE_DATA an active
8343 insn for compatibility with back ends that use next_active_insn to
8344 identify jump table data.
8345 (set_insn_deleted): Remove no longer useful JUMP_TABLE_DATA_P check.
8346 (remove_insn): Likewise.
8347 (emit_insn): Do not accept JUMP_TABLE_DATA objects in insn chains
8349 (emit_debug_insn, emit_jump_insn, emit_call_insn, emit_label): Idem.
8350 (emit_jump_table_data): New function.
8352 * cfgbuild.c (inside_basic_block_p): A JUMP_INSN is always inside a
8353 basic block, a JUMP_TABLE_DATA never is.
8354 (control_flow_insn_p): JUMP_TABLE_DATA is not a control flow insn.
8355 * cfgrtl.c (duplicate_insn_chain): Split handling of JUMP_TABLE_DATA
8356 off from code handling real insns.
8357 * final.c (get_attr_length_1): Simplify for JUMP_INSNs.
8358 * function.c (instantiate_virtual_regs): Remove JUMP_TABLE_DATA_P
8359 test, now redundant because JUMP_TABLE_DATA is not an INSN_P insn.
8360 * gcse.c (insert_insn_end_basic_block): Likewise, JUMP_TABLE_DATA_P
8361 is not a NONDEBUG_INSN_P.
8362 * ira-costs.c (scan_one_insn): Likewise.
8363 * jump.c (mark_all_labels): Likewise.
8364 (mark_jump_label_1): Likewise.
8365 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8366 * lra.c (get_insn_freq): Expect all insns reaching here to be in
8368 (check_rtl): Remove JUMP_TABLE_DATA_P test, not a NONDEBUG_INSN_P insn.
8369 * predict.c (expensive_function_p): Use FOR_BB_INSNS.
8370 * reload1.c (calculate_needs_all_insns): Call set_label_offsets for
8371 JUMP_TABLE_DATA_P insns.
8372 (calculate_elim_costs_all_insns): Likewise.
8373 (set_label_offsets): Recurse on the PATTERN of JUMP_TABLE_DATA insns.
8374 (elimination_costs_in_insn): Remove redundant JUMP_TABLE_DATA_P test.
8375 (delete_output_reload): Code style fixups.
8376 * reorg.c (dbr_schedule): Move JUMP_TABLE_DATA_P up to avoid setting
8377 insn flags on this non-insn.
8378 * sched-rgn.c (add_branch_dependences): Treat JUMP_TABLE_DATA insns
8379 as scheduling barriers, for pre-change compatibility.
8380 * stmt.c (emit_case_dispatch_table): Emit jump table data not as
8381 JUMP_INSN objects but instead as JUMP_TABLE_DATA objects.
8383 * config/alpha/alpha.c (alpha_does_function_need_gp): Remove
8384 redundant JUMP_TABLE_DATA_P test.
8385 * config/arm/arm.c (thumb_far_jump_used_p): Likewise.
8386 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8387 (frv_for_each_packet): Likewise.
8388 * config/i386/i386.c (min_insn_size): Likewise.
8389 (ix86_avoid_jump_mispredicts): Likewise.
8390 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8391 * config/mep/mep.c (mep_reorg_erepeat): Likewise.
8392 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8393 (mips16_insn_length): Robustify.
8394 (mips_has_long_branch_p): Remove redundant JUMP_TABLE_DATA_P test.
8395 (mips16_split_long_branches): Likewise.
8396 * config/pa/pa.c (pa_combine_instructions): Likewise.
8397 * config/rs6000/rs6000.c (get_next_active_insn): Treat
8398 JUMP_TABLE_DATA objects as active insns, like in active_insn_p.
8399 * config/s390/s390.c (s390_chunkify_start): Treat JUMP_TABLE_DATA
8400 as contributing to pool range lengths.
8401 * config/sh/sh.c (find_barrier): Restore check for ADDR_DIFF_VEC.
8402 Remove redundant JUMP_TABLE_DATA_P test.
8403 (sh_loop_align): Likewise.
8404 (split_branches): Likewise.
8405 (sh_insn_length_adjustment): Likewise.
8406 * config/spu/spu.c (get_branch_target): Likewise.
8408 2013-03-29 Jan Hubicka <jh@suse.cz>
8410 * lto-cgraph.c (output_profile_summary, input_profile_summary): Use
8411 gcov streaming; stream hot bb threshold to ltrans.
8412 * predict.c (get_hot_bb_threshold): Break out from ....
8413 (maybe_hot_count_p): ... here.
8414 (set_hot_bb_threshold): New function.
8415 * lto-section-in.c (lto_section_name): Add profile.
8416 * profile.h (get_hot_bb_threshold, set_hot_bb_threshold): Declare.
8417 * ipa.c: Include hash-table.h, tree-inline.h, profile.h, lto-streamer.h
8419 (histogram_entry): New structure.
8420 (histogram, histogram_pool): New global vars.
8421 (histogram_hash): New structure.
8422 (histogram_hash::hash): New method.
8423 (histogram_hash::equal): Likewise.
8424 (account_time_size): New function.
8425 (cmp_counts): New function.
8426 (dump_histogram): New function.
8427 (ipa_profile_generate_summary): New function.
8428 (ipa_profile_write_summary): New function.
8429 (ipa_profile_read_summary): New function.
8430 (ipa_profile): Decide on threshold.
8431 (pass_ipa_profile): Add ipa_profile_write_summary and
8432 ipa_profile_read_summary.
8433 * Makefile.in (ipa.o): Update dependencies.
8434 * lto-streamer.h (LTO_section_ipa_profile): New section.
8436 2013-03-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
8438 * tree.h (VAR_P): New.
8440 2013-03-29 Paolo Carlini <paolo.carlini@oracle.com>
8443 * doc/invoke.texi ([-fwhole-program]): Fix typo.
8445 2013-03-29 Steven Bosscher <steven@gcc.gnu.org>
8447 * cfgbuild.c (inside_basic_block_p): Use JUMP_TABLE_DATA_P in lieu
8448 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8449 (control_flow_insn_p): Likewise.
8450 * cfgrtl.c (duplicate_insn_chain): Likewise.
8451 * final.c (get_attr_length_1): Likewise.
8452 (shorten_branches): Likewise.
8453 (final_scan_insn): Likewise.
8454 * function.c (instantiate_virtual_regs): Likewise.
8455 * gcse.c (insert_insn_end_basic_block): Likewise.
8456 * ira-costs.c (scan_one_insn): Likewise.
8457 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8458 * lra.c (check_rtl): Likewise.
8459 * reload1.c (elimination_costs_in_insn): Likewise.
8460 * reorg.c (follow_jumps): Likewise.
8462 * config/arm/arm.c (is_jump_table): Use JUMP_TABLE_DATA_P in lieu
8463 of tests for JUMP_P and a ADDR_DIFF_VEC or ADDR_VEC pattern.
8464 (thumb_far_jump_used_p): Likewise.
8465 * config/bfin/bfin.c (workaround_rts_anomaly): Likewise.
8466 (workaround_speculation): Likewise.
8467 (add_sched_insns_for_speculation): Likewise.
8468 * config/c6x/c6x.c (reorg_emit_nops): Likewise.
8469 * config/frv/frv.c (frv_function_contains_far_jump): Likewise.
8470 (frv_for_each_packet): Likewise.
8471 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Likewise.
8472 * config/ia64/ia64.c (emit_all_insn_group_barriers): Likewise.
8473 (final_emit_insn_group_barriers): Likewise.
8474 * config/m32r/m32r.c (m32r_is_insn): Likewise.
8475 * config/mips/mips.c (USEFUL_INSN_P): Likewise.
8476 (mips16_insn_length): Likewise.
8477 * config/pa/pa.c (pa_reorg): Likewise.
8478 (pa_combine_instructions): Likewise.
8479 * config/rs6000/rs6000.c (rs6000_invalid_within_doloop): Likewise.
8480 * config/sh/sh.c (fixup_addr_diff_vecs): Likewise.
8481 (sh_reorg): Likewise.
8482 (split_branches): Likewise.
8483 * config/spu/spu.c (get_branch_target): Likewise.
8485 * config/s390/s390.c (s390_chunkify_start): Simplify logic using
8488 2013-03-29 Kirill Yukhin <kirill.yukhin@intel.com>
8490 * config/i386/avx2intrin.h (_mm256_broadcastsi128_si256):
8491 Fix declaration name.
8493 2013-03-28 Lawrence Crowl <crowl@google.com>
8495 * graphds.h (struct graph.indicies): Remove unused.
8496 * graphite-poly.h (struct graph.original_pddrs): Remove unused.
8497 (SCOP_ORIGINAL_PDDRS): Remove unused.
8498 * sese.h (extern insert_loop_close_phis): Removed unused.
8499 (extern insert_guard_phis): Removed unused.
8500 (extern ivtype_map_elt_info): Removed unused.
8501 (new_ivtype_map_elt): Removed unused.
8502 * sese.c (ivtype_map_elt_info): Removed unused.
8504 2013-03-28 Lawrence Crowl <crowl@google.com>
8506 * Makefile.in: Add several missing include dependences.
8508 (test-dump.o): New. This object is not added to any executable,
8509 but is present for ad-hoc testing.
8511 (debug (const bitmap_head_def &)): New.
8512 (debug (const bitmap_head_def *)): New.
8514 (extern debug (const bitmap_head_def &)): New.
8515 (extern debug (const bitmap_head_def *)): New.
8517 (debug (edge_def &)): New.
8518 (debug (edge_def *)): New.
8520 (debug (basic_block_def &)): New.
8521 (debug (basic_block_def *)): New.
8523 (dump_node (const_tree, int, FILE *)): Correct source file.
8525 (debug (die_struct &)): New.
8526 (debug (die_struct *)): New.
8528 (extern debug (die_struct &)): New.
8529 (extern debug (die_struct *)): New.
8530 * gimple-pretty-print.c
8531 (debug (gimple_statement_d &)): New.
8532 (debug (gimple_statement_d *)): New.
8533 * gimple-pretty-print.h
8534 (extern debug (gimple_statement_d &)): New.
8535 (extern debug (gimple_statement_d *)): New.
8537 (debug (ira_allocno_copy &)): New.
8538 (debug (ira_allocno_copy *)): New.
8539 (debug (ira_allocno &)): New.
8540 (debug (ira_allocno *)): New.
8542 (extern debug (ira_allocno_copy &)): New.
8543 (extern debug (ira_allocno_copy *)): New.
8544 (extern debug (ira_allocno &)): New.
8545 (extern debug (ira_allocno *)): New.
8547 (debug (live_range &)): New.
8548 (debug (live_range *)): New.
8550 (debug (lra_live_range &)): New.
8551 (debug (lra_live_range *)): New.
8553 (debug (lra_live_range &)): New.
8554 (debug (lra_live_range *)): New.
8556 (debug (omega_pb_d &)): New.
8557 (debug (omega_pb_d *)): New.
8559 (extern debug (omega_pb_d &)): New.
8560 (extern debug (omega_pb_d *)): New.
8562 (debug (const rtx_def &)): New.
8563 (debug (const rtx_def *)): New.
8565 (debug_tree (tree): Move within file.
8566 (debug_raw (const tree_node &)): New.
8567 (debug_raw (const tree_node *)): New.
8568 (dump_tree_via_hooks (const tree_node *, int)): New.
8569 (debug (const tree_node &)): New.
8570 (debug (const tree_node *)): New.
8571 (debug_verbose (const tree_node &)): New.
8572 (debug_verbose (const tree_node *)): New.
8573 (debug_head (const tree_node &)): New.
8574 (debug_head (const tree_node *)): New.
8575 (debug_body (const tree_node &)): New.
8576 (debug_body (const tree_node *)): New.
8577 (debug_vec_tree (tree): Move and reimplement in terms of dump.
8578 (debug (vec<tree, va_gc> &)): New.
8579 (debug (vec<tree, va_gc> *)): New.
8581 (extern debug (const rtx_def &)): New.
8582 (extern debug (const rtx_def *)): New.
8584 (debug_raw (simple_bitmap_def &)): New.
8585 (debug_raw (simple_bitmap_def *)): New.
8586 (debug (simple_bitmap_def &)): New.
8587 (debug (simple_bitmap_def *)): New.
8589 (extern debug (simple_bitmap_def &)): New.
8590 (extern debug (simple_bitmap_def *)): New.
8591 (extern debug_raw (simple_bitmap_def &)): New.
8592 (extern debug_raw (simple_bitmap_def *)): New.
8594 (debug (vinsn_def &)): New.
8595 (debug (vinsn_def *)): New.
8596 (debug_verbose (vinsn_def &)): New.
8597 (debug_verbose (vinsn_def *)): New.
8598 (debug (expr_def &)): New.
8599 (debug (expr_def *)): New.
8600 (debug_verbose (expr_def &)): New.
8601 (debug_verbose (expr_def *)): New.
8602 (debug (vec<rtx> &)): New.
8603 (debug (vec<rtx> *)): New.
8605 (extern debug (vinsn_def &)): New.
8606 (extern debug (vinsn_def *)): New.
8607 (extern debug_verbose (vinsn_def &)): New.
8608 (extern debug_verbose (vinsn_def *)): New.
8609 (extern debug (expr_def &)): New.
8610 (extern debug (expr_def *)): New.
8611 (extern debug_verbose (expr_def &)): New.
8612 (extern debug_verbose (expr_def *)): New.
8613 (extern debug (vec<rtx> &)): New.
8614 (extern debug (vec<rtx> *)): New.
8616 (_list_iter_cond_expr): Make inline instead of static.
8618 (debug (sreal &)): New.
8619 (debug (sreal *)): New.
8621 (extern debug (sreal &)): New.
8622 (extern debug (sreal *)): New.
8624 (extern debug_raw (const tree_node &)): New.
8625 (extern debug_raw (const tree_node *)): New.
8626 (extern debug (const tree_node &)): New.
8627 (extern debug (const tree_node *)): New.
8628 (extern debug_verbose (const tree_node &)): New.
8629 (extern debug_verbose (const tree_node *)): New.
8630 (extern debug_head (const tree_node &)): New.
8631 (extern debug_head (const tree_node *)): New.
8632 (extern debug_body (const tree_node &)): New.
8633 (extern debug_body (const tree_node *)): New.
8634 (extern debug (vec<tree, va_gc> &)): New.
8635 (extern debug (vec<tree, va_gc> *)): New.
8637 (debug (struct loop &)): New.
8638 (debug (struct loop *)): New.
8639 (debug_verbose (struct loop &)): New.
8640 (debug_verbose (struct loop *)): New.
8641 * tree-dump.c: Add header dependence.
8643 (extern debug (struct loop &)): New.
8644 (extern debug (struct loop *)): New.
8645 (extern debug_verbose (struct loop &)): New.
8646 (extern debug_verbose (struct loop *)): New.
8648 (debug (data_reference &)): New.
8649 (debug (data_reference *)): New.
8650 (debug (vec<data_reference_p> &)): New.
8651 (debug (vec<data_reference_p> *)): New.
8652 (debug (vec<ddr_p> &)): New.
8653 (debug (vec<ddr_p> *)): New.
8655 (extern debug (data_reference &)): New.
8656 (extern debug (data_reference *)): New.
8657 (extern debug (vec<data_reference_p> &)): New.
8658 (extern debug (vec<data_reference_p> *)): New.
8659 (extern debug (vec<ddr_p> &)): New.
8660 (extern debug (vec<ddr_p> *)): New.
8662 (debug (pt_solution &)): New.
8663 (debug (pt_solution *)): New.
8665 (extern debug (pt_solution &)): New.
8666 (extern debug (pt_solution *)): New.
8668 (debug (_var_map &)): New.
8669 (debug (_var_map *)): New.
8670 (debug (tree_live_info_d &)): New.
8671 (debug (tree_live_info_d *)): New.
8673 (extern debug (_var_map &)): New.
8674 (extern debug (_var_map *)): New.
8675 (extern debug (tree_live_info_d &)): New.
8676 (extern debug (tree_live_info_d *)): New.
8678 2013-03-28 Jan Hubicka <jh@suse.cz>
8680 * lto-cgraph.c (merge_profile_summaries): Fix overflows.
8682 2013-03-28 Ian Bolton <ian.bolton@arm.com>
8684 * config/aarch64/aarch64.md (aarch64_can_eliminate): Keep frame
8685 record only when desired or required.
8687 2013-03-28 Uros Bizjak <ubizjak@gmail.com>
8689 * config/i386/i386.md (*vec_extract2vdi_1): Merge with
8690 *vec_extractv2di_1_rex64. Use x64 isa attribute.
8692 2013-03-28 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8694 * config/aarch64/aarch64.md (*and<mode>3_compare0): New pattern.
8695 (*andsi3_compare0_uxtw): New pattern.
8696 (*and_<SHIFT:optab><mode>3_compare0): New pattern.
8697 (*and_<SHIFT:optab>si3_compare0_uxtw): New pattern.
8699 2013-03-28 Jan Hubicka <jh@suse.cz>
8701 * data-streamer-in.c (streamer_read_gcov_count): New function.
8702 * gimple-streamer-out.c: Include value-prof.h.
8703 (output_gimple_stmt): Output histogram.
8704 (output_bb): Use streamer_write_gcov_count.
8705 * value-prof.c: Include data-streamer.h
8706 (dump_histogram_value): Add HIST_TYPE_MAX.
8707 (stream_out_histogram_value): New function.
8708 (stream_in_histogram_value): New function.
8709 * value-prof.h (enum hist_type): Add HIST_TYPE_MAX.
8710 (stream_out_histogram_value, stream_in_histogram_value): Declare.
8711 * data-streamer-out.c (streamer_write_gcov_count): New function.
8712 (streamer_write_gcov_count_stream): New function.
8713 * lto-cgraph.c (lto_output_edge): Update counter streaming.
8714 (lto_output_node): Likewise.
8715 (input_node, input_edge): Likewise.
8716 * lto-streamer-out.c (output_cfg): Update streaming.
8717 * lto-streamer-in.c (input_cfg): Likewise.
8718 * data-streamer.h (streamer_write_gcov_count,
8719 streamer_write_gcov_count_stream, streamer_read_gcov_count): Declare.
8720 * gimple-streamer-in.c: Include value-prof.h
8721 (input_gimple_stmt): Input histograms.
8722 (input_bb): Update profile streaming.
8724 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8726 * genmodes.c (emit_max_int): New function.
8727 (emit_insn_modes_h): Added call to emit_max_function.
8728 * doc/rtl.texi (MAX_BITSIZE_MODE_ANY_INT, MAX_BITSIZE_MODE_ANY_MODE):
8730 * machmode.def: Fixed comment.
8732 2013-03-28 Kenneth Zadeck <zadeck@naturalbridge.com>
8734 * combine.c (try_combine): Removed useless assert.
8735 * cselib.c (rtx_equal_for_cselib_1): Removed unnecessary parens.
8737 2013-03-28 Marek Polacek <polacek@redhat.com>
8738 Richard Biener <rguenther@suse.de>
8740 PR tree-optimization/56695
8741 * tree-vect-stmts.c (vectorizable_condition): Unconditionally
8742 build signed result of a vector comparison.
8743 * tree-cfg.c (verify_gimple_comparison): Check that a result
8744 of a vector comparison has signed type.
8746 2013-03-28 Richard Biener <rguenther@suse.de>
8748 PR tree-optimization/37021
8749 * tree-vect-slp.c (vect_build_slp_tree): When not unrolling
8750 do not restrict gaps between groups.
8751 * tree-vect-stmts.c (vectorizable_load): Properly account for
8752 a gap between groups.
8754 2013-03-28 Eric Botcazou <ebotcazou@adacore.com>
8756 * toplev.c (process_options): Do not disable -fomit-frame-pointer on a
8757 general basis if unwind info is requested and ACCUMULATE_OUTGOING_ARGS
8760 2013-03-27 Gerald Pfeifer <gerald@pfeifer.com>
8762 * doc/invoke.texi (AVR Options): Tweak link for AVR-LibC user manual.
8763 * doc/extend.texi (Named Address Spaces): Ditto.
8764 (Variable Attributes): Ditto.
8766 2013-03-27 Kai Tietz <ktietz@redhat.com>
8768 * config.build: Add support for cygwin x64 target.
8769 * config.gcc: Likewise.
8770 * config.host: Likewise.
8771 * configure.ac: Likewise
8772 * configure: Regenerated.
8774 2013-03-27 Kai Tietz <ktietz@redhat.com>
8776 * config/i386/cygwin-stdint.h: Add support for cygwin x64 target.
8777 * config/i386/t-cygwin-w64: New file.
8778 * config/i386/cygwin-w64.h: New file.
8779 * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): Extend
8780 and add support for x64-cygwin target.
8781 (CPP_SPEC): Likewise.
8782 (CXX_WRAP_SPEC_LIST): Undefine before define.
8783 (LIBGCJ_SONAME): Use 15 as version.
8785 2013-03-27 Richard Biener <rguenther@suse.de>
8787 PR tree-optimization/56716
8788 * tree-ssa-structalias.c (perform_var_substitution): Adjust
8789 dumping for ref nodes.
8791 2013-03-27 Martin Jambor <mjambor@suse.cz>
8793 PR tree-optimization/55334
8794 * ipa-cp.c (initialize_node_lattices): Allow IPA-CP through and to
8795 restricted pointers to arrays.
8797 2013-03-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
8799 * Makefile.in (.SUFFIXES): Add .cc.
8800 (.c.o): Apply same recipe for implicit rule .cc.o.
8802 2013-03-27 Richard Biener <rguenther@suse.de>
8804 PR tree-optimization/37021
8805 * tree-vect-data-refs.c (vect_check_strided_load): Allow
8806 REALPART/IMAGPART_EXPRs around the supported refs.
8807 * tree-ssa-structalias.c (find_func_aliases): Assume that
8808 floating-point values are not used to transfer pointers.
8810 2013-03-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
8812 * target.def (TARGET_HAS_IFUNC_P): New target hook.
8813 * doc/tm.texi.in (TARGET_HAS_IFUNC_P): New.
8814 * doc/tm.texi: Regenerate.
8815 * targhooks.h (default_has_ifunc_p): New.
8816 * targhooks.c (default_has_ifunc_p): Ditto.
8817 * config/linux-protos.h: New file.
8818 * config/linux-android.h (TARGET_HAS_IFUNC_P): Using version of
8819 this hook for linux which disables support of indirect functions in
8821 * config/linux-android.c: New file.
8822 * config/t-linux-android.c: Ditto.
8823 * config.gcc: Added new object file linux-android.o.
8824 * config/i386/i386.c (ix86_get_function_versions_dispatcher):
8825 Using TARGET_HAS_IFUNC hook instead of HAVE_GNU_INDIRECT_FUNCTION.
8826 * varasm.c (do_assemble_alias): Likewise.
8827 * configure.ac: Define HAVE_GNU_INDIRECT_FUNCTION as zero if the target
8828 doesn't support indirect functions.
8829 * configure: Regenerate.
8831 2013-03-27 Bin Cheng <bin.cheng@arm.com>
8834 * config/arm/arm.c (thumb1_rtx_costs, thumb1_size_rtx_costs): Fix
8835 rtx costs for SET/ASHIFT/ASHIFTRT/LSHIFTRT/ROTATERT patterns with
8838 2013-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8840 * config/s390/s390.h (TARGET_FLT_EVAL_METHOD): Define.
8842 2013-03-27 Terry Guo <terry.guo@arm.com>
8844 * config/arm/arm-cores.def: Added core cortex-r7.
8845 * config/arm/arm-tune.md: Regenerated.
8846 * config/arm/arm-tables.opt: Regenerated.
8847 * doc/invoke.texi: Added entry for core cortex-r7.
8849 2013-03-27 Walter Lee <walt@tilera.com>
8851 * config/tilegx/tilegx.c (tilegx_expand_prologue): Avoid
8852 double-decrement of next_scratch_regno.
8854 2013-03-27 Walter Lee <walt@tilera.com>
8856 * config/tilegx/tilegx.md (insn_v1mulu): Fix predicates on
8858 (insn_v1mulus): Ditto.
8859 (insn_v2muls): Ditto.
8861 2013-03-27 Walter Lee <walt@tilera.com>
8863 * config/tilegx/tilegx.h (ASM_OUTPUT_ADDR_VEC_ELT): Delete extra tab.
8864 (ASM_OUTPUT_ADDR_DIFF_ELT): Ditto.
8866 2013-03-27 Walter Lee <walt@tilera.com>
8868 * config/tilegx/tilegx.md (*sibcall_insn): Fix type atribute for jr.
8869 (*sibcall_value): Ditto.
8871 2013-03-27 Walter Lee <walt@tilera.com>
8873 * config/tilegx/tilegx.md (insn_mnz_<mode>): Replaced by ...
8874 (insn_mnz_v8qi): ... this ...
8875 (insn_mnz_v4hi): ... and this. Replace (const_int 0) with the
8877 (insn_v<n>mnz): Replaced by ...
8878 (insn_v1mnz): ... this ...
8879 (insn_v2mnz): ... and this. Replace (const_int 0) with the vector
8881 (insn_mz_<mode>): Replaced by ...
8882 (insn_mz_v8qi): ... this ...
8883 (insn_mz_v4hi): ... and this. Replace (const_int 0) with the
8885 (insn_v<n>mz): Replaced by ...
8886 (insn_v1mz): ... this ...
8887 (insn_v2mz): ... and this. Replace (const_int 0) with the vector
8890 2013-03-26 Eric Botcazou <ebotcazou@adacore.com>
8892 * doc/invoke.texi (SPARC options): Remove -mlittle-endian.
8894 2013-03-26 Roland McGrath <mcgrathr@google.com>
8896 * config/arm/arm.c (arm_print_operand: case 'w'): Use fputs rather
8897 than fprintf with a non-constant, non-format string.
8899 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8901 * config/i386/i386.md (*cmpqi_ext_1): Merge with *cmpqi_ext_1_rex64
8902 using nox64 isa attribute. Use nonimmediate_x86nomem_operand as
8903 operand 0 predicate.
8904 (*cmpqi_ext_3): Merge with *cmpqi_ext_3_rex64 using nox64 isa
8905 attribute. Use general_x64nomem_operand as operand 1 predicate.
8906 (*movqi_extv_1): Merge with *movqi_extv_1_rex64 using nox64 isa
8907 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8908 (*movqi_extzv_2): Merge with *movqi_extzv_2_rex64 using nox64 isa
8909 attribute. Use nonimmediate_x64nomem_operand as operand 0 predicate.
8910 (mov<mode>_insv_1): Remove expander. Merge insn with
8911 movsi_insv_1 using SWI48 mode iterator and nox64 isa attribute.
8912 Use general_x64nomem_operand as operand 1 predicate.
8913 (addqi_ext_1): Merge with *addqi_ext_1_rex64 using nox64 isa attribute.
8914 (*testqi_ext_1): Merge with *testqi_ext_1_rex64 using nox64 isa
8915 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8916 (*andqi_ext_1): Merge with *andqi_ext_1_rex64 using nox64 isa
8917 attribute. Use nonimmediate_x64nomem_operand as operand 2 predicate.
8918 (*<code>qi_ext_1): Merge with *<code>qi_ext_1_rex64 using nox64 isa
8919 attribute. Use nonimmediate_x64nomem_operand as operand 1 predicate.
8920 (*xorqi_cc_ext_1): Merge with *xorqi_cc_ext_1_rex64 using nox64
8921 isa attribute. Use general_x64nomem_operand as operand 2 predicate.
8922 * config/i386/predicates.md (nonimmediate_x64nomem_operand): New.
8923 (general_x64nomem_operand): Ditto.
8925 2013-03-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
8927 * config/rtems.opt: Add -pthread option.
8929 2013-03-26 Richard Biener <rguenther@suse.de>
8931 * alias.c (find_base_term): Avoid redundant and not used recursion.
8932 (base_alias_check): Get the initial base term from the caller.
8933 (true_dependence_1): Compute and pass base terms to base_alias_check.
8934 (write_dependence_p): Likewise.
8935 (may_alias_p): Likewise.
8937 2013-03-26 Sofiane Naci <sofiane.naci@arm.com>
8939 * config/aarch64/aarch64.c (aarch64_classify_address): Support
8940 PC-relative load in SI modes and above only.
8942 2013-03-26 Xinyu Qi <xyqi@marvell.com>
8944 * config/arm/arm.h (FIRST_IWMMXT_GR_REGNUM): Add comment.
8945 * config/arm/iwmmxt.md (WCGR0): Update.
8946 (WCGR1, WCGR2, WCGR3): Likewise.
8948 2013-03-26 Uros Bizjak <ubizjak@gmail.com>
8950 * config/i386/i386.md (*movdfcc_1): Merge with *movdfcc_1_rex64.
8951 Use x64 and nox64 isa attributes.
8953 2013-03-26 Richard Biener <rguenther@suse.de>
8955 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
8956 alignment computations and rely on get_object_alignment_1
8957 for the !TYPE_P case.
8958 Commonize DECL/COMPONENT_REF handling in the ARRAY_REF path.
8960 2013-03-26 Walter Lee <walt@tilera.com>
8962 * config/tilegx/tilegx.h (PROFILE_BEFORE_PROLOGUE): Define.
8963 * config/tilegx/tilepro.h (PROFILE_BEFORE_PROLOGUE): Define.
8965 2013-03-25 Jeff Law <law@redhat.com>
8967 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Add missing
8968 check for INTEGRAL_TYPE_P that was missing due to checking in
8969 wrong version of prior patch.
8971 2013-03-25 Walter Lee <walt@tilera.com>
8973 * config/tilegx/tilegx-builtins.h (enum tilegx_builtin): Add
8974 TILEGX_INSN_SHUFFLEBYTES1.
8975 * config/tilegx/tilegx.c (tilegx_builtin_info): Add entry for
8977 (tilegx_builtins): Ditto.
8978 * config/tilegx/tilegx.md (insn_shufflebytes1): New pattern.
8980 2013-03-25 Walter Lee <walt@tilera.com>
8982 * config/tilegx/tilegx.md (floatsisf2): New pattern.
8983 (floatunssisf2): New pattern.
8984 (floatsidf2): New pattern.
8985 (floatunssidf2): New pattern.
8987 2013-03-25 Walter Lee <walt@tilera.com>
8989 * config/tilegx/tilegx.c (expand_set_cint64_one_inst): Inline
8990 tests for constraint J, K, N, P.
8992 2013-03-25 Walter Lee <walt@tilera.com>
8994 * config/tilegx/tilegx.c (tilegx_asm_preferred_eh_data_format):
8995 Use indirect/pcrel encoding.
8996 * config/tilepro/tilepro.c (tilepro_asm_preferred_eh_data_format):
8999 2013-03-25 Steve Ellcey <sellcey@mips.com>
9001 * config/mips/mmips-cpus.def (74kc, 74kf2_1, 74kf, 74kf, 74kf1_1,
9002 74kfx, 74kx, 74kf3_2): Add PTF_AVOID_IMADD.
9003 * config/mips/mips.c (mips_option_override): Set IMADD default.
9004 * config/mips/mips.h (PTF_AVOID_IMADD): New.
9005 (ISA_HAS_MADD_MSUB): Remove MIPS16 check.
9006 (GENERATE_MADD_MSUB): Remove TUNE_74K check, add MIPS16 check.
9007 * config/mips/mips.md (mimadd): New flag for integer madd/msub.
9008 * doc/invoke.texi (-mimadd/-mno-imadd): New.
9010 2013-03-25 Jeff Law <law@redhat.com>
9012 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Rework
9013 slightly to avoid creating and folding useless trees. Simplify
9014 slightly by restricting to INTEGER_CSTs and using int_fits_type_p.
9016 2013-03-25 Uros Bizjak <ubizjak@gmail.com>
9018 * config/i386/i386.md (*zero_extendsidi2): Merge with
9019 *zero_extendsidi2_rex64. Use x64 and nox64 isa attributes.
9020 * config/i386/predicates.md (x86_64_zext_operand): Rename from
9021 x86_64_zext_general_operand. Use nonimmediate_operand on 32bit
9022 targets. Clarify comment.
9024 2013-03-25 Martin Jambor <mjambor@suse.cz>
9026 * ipa-prop.c (ipa_write_jump_function): Stream simple and aritmetic
9027 pass-through jump functions differently.
9028 (ipa_read_jump_function): Likewise. Also use setter functions to set
9031 2013-03-25 Martin Jambor <mjambor@suse.cz>
9033 * ipa-cp.c (ipa_get_indirect_edge_target): Renamed to
9034 ipa_get_indirect_edge_target_1, added parameter agg_reps and ability to
9036 (ipa_get_indirect_edge_target): New function.
9037 (devirtualization_time_bonus): New parameter known_aggs, pass it to
9038 ipa_get_indirect_edge_target. Update all callers.
9039 (ipcp_discover_new_direct_edges): New parameter aggvals. Pass it to
9040 ipa_get_indirect_edge_target_1 instead of calling
9041 ipa_get_indirect_edge_target.
9042 (create_specialized_node): Pass aggvlas to
9043 ipcp_discover_new_direct_edges.
9045 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9047 * config/arm/arm.md (f_sels, f_seld): New types.
9048 (*cmov<mode>): New pattern.
9049 * config/arm/predicates.md (arm_vsel_comparison_operator): New
9052 2013-03-25 Kai Tietz <ktietz@redhat.com>
9054 * config/i386/xm-mingw32.h (__USE_MINGW_ANSI_STDIO): Enable
9055 POSIX-printf for mingw-hosted builds.
9057 2013-03-25 Richard Biener <rguenther@suse.de>
9060 * tree-eh.c (lower_eh_must_not_throw): Strip BLOCKs from the
9061 must-not-throw stmt location.
9063 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9065 * config/arm/arm.c (arm_emit_load_exclusive): Add acq parameter.
9066 Emit load-acquire versions when acq is true.
9067 (arm_emit_store_exclusive): Add rel parameter.
9068 Emit store-release versions when rel is true.
9069 (arm_split_compare_and_swap): Use acquire-release instructions
9071 of barriers when appropriate.
9072 (arm_split_atomic_op): Likewise.
9073 * config/arm/arm.h (TARGET_HAVE_LDACQ): New macro.
9074 * config/arm/unspecs.md (VUNSPEC_LAX): New unspec.
9075 (VUNSPEC_SLX): Likewise.
9076 (VUNSPEC_LDA): Likewise.
9077 (VUNSPEC_STL): Likewise.
9078 * config/arm/sync.md (atomic_load<mode>): New pattern.
9079 (atomic_store<mode>): Likewise.
9080 (arm_load_acquire_exclusive<mode>): Likewise.
9081 (arm_load_acquire_exclusivesi): Likewise.
9082 (arm_load_acquire_exclusivedi): Likewise.
9083 (arm_store_release_exclusive<mode>): Likewise.
9085 2013-03-25 Catherine Moore <clm@codesourcery.com>
9087 * config/mips/constraints.md (u, Udb7 Uead, Uean, Uesp, Uib3,
9088 Uuw6, Usb4, ZS, ZT, ZU, ZV, ZW): New constraints.
9089 * config/mip/predicates.md (lwsp_swsp_operand,
9090 lw16_sw16_operand, lhu16_sh16_operand, lbu16_operand,
9091 sb16_operand, db4_operand, db7_operand, ib3_operand,
9092 sb4_operand, ub4_operand, uh4_operand, uw4_operand,
9093 uw5_operand, uw6_operand, addiur2_operand, addiusp_operand,
9094 andi16_operand): New predicates.
9095 * config/mips/mips.md (compression): New attribute.
9096 (enabled): New attribute.
9097 (length): Consider compression in computing length.
9098 (shift_compression): New code attribute.
9099 (*add<mode>3): New operands. Record compression.
9100 (sub<mode>3): Likewise.
9101 (one_cmpl<mode>2): Likewise.
9102 (*and<mode>3): Likewise.
9103 (*ior<mode>3): Likewise.
9104 (unnamed pattern for xor): Likewise.
9105 (*zero_extend<SHORT:mode><GPR:mode>2): Likewise.
9106 (*<optab><mode>3): Likewise.
9107 (*mov<mode>_internal: Likewise.
9108 * config/mips/mips-protos.h (mips_signed_immediate_p): New.
9109 (mips_unsigned_immediate_p): New.
9110 (umips_lwsp_swsp_address_p): New.
9111 (m16_based_address_p): New.
9112 * config/mips/mips-protos.h (mips_signed_immediate_p): New prototype.
9113 (mips_unsigned_immediate_p): New prototype.
9114 (lwsp_swsp_address_p): New prototype.
9115 (m16_based_address_p): New prototype.
9116 * config/mips/mips.c (mips_unsigned_immediate_p): New function.
9117 (mips_signed_immediate_p): New function.
9118 (m16_based_address_p): New function.
9119 (lwsp_swsp_address_p): New function.
9120 (mips_print_operand_punctuation): Recognize short delay slot insns
9121 for microMIPS.add<mode>3"
9123 2013-03-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9126 * config/arm/iterators.md (v_cmp_result): New mode attribute.
9127 * config/arm/neon.md (vcond<mode><mode>): Handle unordered cases.
9129 2013-03-25 Richard Biener <rguenther@suse.de>
9131 PR tree-optimization/56689
9132 * tree-vrp.c (execute_vrp): Mark loops for fixup if we removed
9135 2013-03-25 Richard Biener <rguenther@suse.de>
9137 * tree-ssa-loop-im.c (struct mem_ref): Use bitmap_head instead
9139 (memory_references): Likewise.
9140 (outermost_indep_loop, mem_ref_alloc, mark_ref_stored,
9141 gather_mem_refs_stmt, record_dep_loop, ref_indep_loop_p_1,
9142 ref_indep_loop_p_2, find_refs_for_sm): Adjust.
9143 (gather_mem_refs_in_loops): Fold into ...
9144 (analyze_memory_references): ... this. Move initialization
9145 to tree_ssa_lim_initialize.
9146 (fill_always_executed_in): Rename to ...
9147 (fill_always_executed_in_1): ... this.
9148 (fill_always_executed_in): Move contains_call computation to
9149 this new function from ...
9150 (tree_ssa_lim_initialize): ... here.
9151 (tree_ssa_lim): Call fill_always_executed_in.
9153 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9155 * postreload.c (reload_combine): Fix code detecting returns.
9157 2013-03-25 Eric Botcazou <ebotcazou@adacore.com>
9159 * function.c (emit_use_return_register_into_block): On cc0 targets,
9160 do not emit the sequence between cc0 setter and user.
9162 2013-03-25 Kai Tietz <ktietz@redhat.com>
9164 * config/i386/predicates.md (local_symbolic_operand): Interpret
9165 dll-imported symbols as none-local.
9167 2013-03-25 Richard Biener <rguenther@suse.de>
9169 * tree-ssa-loop-im.c (struct depend): Remove.
9170 (struct lim_aux_data): Make depends a vec of gimples.
9171 (free_lim_aux_data): Adjust.
9172 (add_dependency): Likewise.
9173 (set_level): Likewise.
9175 2013-03-25 Richard Biener <rguenther@suse.de>
9178 * calls.c (expand_call): Use MALLOC_ABI_ALIGNMENT to annotate
9179 the pointer returned by calls with ECF_MALLOC set.
9181 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9183 * config/i386/mmx.md (mov<mode>): Add ?!Ym,r and r,?!Ym alternatives.
9185 2013-03-24 Uros Bizjak <ubizjak@gmail.com>
9187 * config/i386/mmx.md (mov<mode>): Merge with movv2sf expander
9188 using MMXMODE mode iterator.
9189 (*move<mode>_internal): Merge with *movv2sf_internal and
9190 *movv2sf_internal_rex64 using MMXMODE mode iterator.
9192 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9194 * gcse.c (oprs_unchanged_p): Respect flag_gcse_lm.
9195 (record_last_mem_set_info): Likewise.
9197 * df-core.c (rest_of_handle_df_initialize): Use XCNEWVEC instead
9198 of XNEWVEC followed by memset.
9199 (df_worklist_dataflow): Use XNEWVEC instead of xmalloc with a cast.
9201 2013-03-23 Steven Bosscher <steven@gcc.gnu.org>
9203 * config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
9204 config/epiphany/epiphany.c, config/frv/frv.c, config/ia64/ia64.c,
9205 config/iq2000/iq2000.c, config/mcore/mcore.c, config/mep/mep.c,
9206 config/mmix/mmix.c, config/pa/pa.c, config/rs6000/rs6000.c,
9207 config/s390/s390.c, config/sparc/sparc.c, config/spu/spu.c,
9208 config/stormy16/stormy16.c, config/v850/v850.c, config/xtensa/xtensa.c,
9209 dwarf2out.c, hw-doloop.c, resource.c, rtl.h : Where applicable, use
9210 the predicates NOTE_P, NONJUMP_INSN_P, JUMP_P, CALL_P, LABEL_P, and
9211 BARRIER_P instead of GET_CODE.
9213 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9215 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Fix small
9216 inaccuracy in the probing code.
9218 * config/sparc/sparc.md (ctrapsi4): Add predicate for operand #3.
9219 (ctrapdi4): Likewise.
9221 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9223 * calls.c (expand_call): Add missing guard to code handling return
9224 of non-BLKmode structures in MSB.
9225 * function.c (expand_function_end): Likewise.
9227 2013-03-23 Eric Botcazou <ebotcazou@adacore.com>
9229 * combine.c (try_combine): Adjust comment. Do not add the set of
9230 insn #0 if the destination indirectly is set or dies in insn #2.
9231 Tidy up code to distribute a new note.
9233 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9235 * config/i386/i386.md (*movdi_internal): Set prefix_rex attribute
9236 also for alternatives 16 and 17.
9238 2013-03-22 Uros Bizjak <ubizjak@gmail.com>
9240 * config/i386/sse.md (*mov<mode>_internal): Merge with
9241 *mov<mode>_internal_rex64. Use x64 and nox64 isa attributes.
9242 Emit insn template depending on type attribute. Use
9243 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9244 movd instead of movq mnemonic for interunit moves. Rewrite mode
9245 attribute calculation. Remove unit attribute calculation.
9246 Set prefix attribute to maybe_vex for sselog1 and ssemov types.
9247 Set prefix_data16 attribute for DImode ssemov types.
9248 Use Ym instead of y for SSE-MMX conversion alternatives.
9249 Reorder operand constraints.
9251 2013-03-22 Steven Bosscher <steven@gcc.gnu.org>
9253 * df.h (df_insn_delete): Adjust prototype.
9254 * emit-rtl.c (remove_insn): Pass a basic block to df_insn_delete
9255 and let it decide whether mark the basic block dirty.
9256 (set_insn_deleted): Only pass INSN_P insns to df_insn_delete.
9257 * df-scan.c (df_insn_info_delete): New helper function, split
9258 off from df_insn_delete.
9259 (df_scan_free_bb_info): Use it.
9260 (df_insn_rescan, df_insn_rescan_all, df_process_deferred_rescans):
9262 (df_insn_delete): Likewise. Take insn rtx as argument. Verify
9263 that the insn is actually an insn and it has a non-NULL basic block.
9264 Do not mark basic block dirty if only deleting a DEBUG_INSN.
9266 2013-03-22 Richard Biener <rguenther@suse.de>
9268 * tree-ssa-loop-im.c (struct mem_ref): Remove indep_ref and
9270 (mem_ref_alloc): Do not allocate them.
9271 (refs_independent_p): Do not query or maintain a cache.
9273 2013-03-22 Richard Biener <rguenther@suse.de>
9275 * tree-ssa-loop-im.c (memory_references): Drop all_refs_in_loop.
9276 (gather_mem_refs_in_loops): Do not compute it.
9277 (analyze_memory_references): Do not allocate it.
9278 (tree_ssa_lim_finalize): Do not free it.
9279 (for_all_locs_in_loop): Do not query all_refs_in_loop.
9281 2013-03-22 Richard Biener <rguenther@suse.de>
9283 * is-a.h (as_a): Use gcc_checking_assert.
9285 2013-03-22 Ian Bolton <ian.bolton@arm.com>
9287 * config/aarch64/aarch64.c (aarch64_print_operand): New
9288 format specifier for printing a constant in hex.
9289 * config/aarch64/aarch64.md (insv_imm<mode>): Use the X
9290 format specifier for printing second operand.
9292 2013-03-22 Richard Biener <rguenther@suse.de>
9294 * tree-ssa-loop-im.c (memory_references): Add refs_stored_in_loop
9296 (gather_mem_refs_in_loops): Perform store accumulation here.
9297 (create_vop_ref_mapping_loop): Remove.
9298 (create_vop_ref_mapping): Likewise.
9299 (analyze_memory_references): Initialize refs_stored_in_loop.
9300 (LOOP_DEP_BIT): New define to map to bits in (in)dep_loop bitmaps.
9301 (record_indep_loop): Remove.
9302 (record_dep_loop): New function.
9303 (ref_indep_loop_p_1): Adjust to only walk over references
9304 in the loop, not its subloops.
9305 (ref_indep_loop_p): Rename to ...
9306 (ref_indep_loop_p_2): ... this and recurse over the loop tree,
9307 maintaining a more fine-grained cache.
9308 (ref_indep_loop_p): Wrap ref_indep_loop_p_2.
9309 (tree_ssa_lim_finalize): Free refs_stored_in_loop.
9311 2013-03-22 Richard Biener <rguenther@suse.de>
9313 * tree-ssa-loop-im.c (struct mem_ref_locs): Remove.
9314 (struct mem_ref): Make accesses_in_loop a vec of a vec of
9315 aggregate mem_ref_loc.
9316 (free_mem_ref_locs): Inline into ...
9317 (memref_free): ... this and adjust.
9318 (mem_ref_alloc): Adjust.
9319 (mem_ref_locs_alloc): Remove.
9320 (record_mem_ref_loc): Adjust.
9321 (get_all_locs_in_loop): Rewrite into ...
9322 (for_all_locs_in_loop): ... this iterator.
9323 (rewrite_mem_ref_loc): New functor.
9324 (rewrite_mem_refs): Use for_all_locs_in_loop.
9325 (sm_set_flag_if_changed): New functor.
9326 (execute_sm_if_changed_flag_set): Use for_all_locs_in_loop.
9327 (ref_always_accessed): New functor.
9328 (ref_always_accessed_p): Use for_all_locs_in_loop.
9330 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9332 * tree-pass.h (PROP_gimple_lvec): New.
9333 * passes.c (dump_properties): Handle PROP_gimple_lvec.
9334 (init_optimization_passes): Move pass_lower_vector.
9335 * tree-vect-generic.c (gate_expand_vector_operations_ssa): Test
9337 (pass_lower_vector): Provide PROP_gimple_lvec.
9338 (pass_lower_vector_ssa): Likewise.
9339 * cfgexpand.c (pass_expand): Require PROP_gimple_lvec.
9341 2013-03-21 Mark Wielaard <mjw@redhat.com>
9343 * dwarf2out.c (size_of_aranges): Skip DECL_IGNORED_P functions.
9345 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9347 * config/i386/i386.md (*movdi_internal): Disparage slightly
9348 all MMX moves to/from memory. Use Yi instead of x for SSE-MMX
9349 conversion alternatives.
9351 2013-03-21 Jakub Jelinek <jakub@redhat.com>
9354 * diagnostic.def (DK_WERROR): New kind.
9355 * diagnostic.h (werrorcount): Define.
9356 * diagnostic.c (diagnostic_report_diagnostic): For DK_WARNING
9357 promoted to DK_ERROR, increment DK_WERROR counter instead of
9359 * toplev.c (toplev_main): Call print_ignored_options even if
9360 just werrorcount is non-zero. Exit with FATAL_EXIT_CODE
9361 even if just werrorcount is non-zero.
9364 * dwarf2out.c (tree_add_const_value_attribute): Call ggc_free (array)
9366 (resolve_one_addr): Fail if referenced STRING_CST hasn't been written.
9367 (string_cst_pool_decl): New function.
9368 (optimize_one_addr_into_implicit_ptr): New function.
9369 (resolve_addr_in_expr): Optimize DWARF location expression
9370 DW_OP_addr DW_OP_stack_value where DW_OP_addr refers to some variable
9371 which doesn't live in memory, but has DW_AT_location or
9372 DW_AT_const_value, or refers to a string literal, into
9373 DW_OP_GNU_implicit_pointer.
9374 (optimize_location_into_implicit_ptr): New function.
9375 (resolve_addr): If removing DW_AT_location of a variable because
9376 it was DW_OP_addr of address of the variable, but the variable doesn't
9377 live in memory, try to emit const value attribute for the initializer.
9379 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9381 * tree.h (VECTOR_TYPE_P): New macro.
9382 (VECTOR_INTEGER_TYPE_P, VECTOR_FLOAT_TYPE_P, FLOAT_TYPE_P,
9384 * fold-const.c (fold_cond_expr_with_comparison): Use build_zero_cst.
9385 VEC_COND_EXPR cannot be lvalues.
9386 (fold_ternary_loc) <VEC_COND_EXPR>: Merge with the COND_EXPR case.
9388 2013-03-21 Marc Glisse <marc.glisse@inria.fr>
9390 * simplify-rtx.c (simplify_binary_operation_1) <VEC_CONCAT>:
9391 Restrict the transformation to equal modes.
9393 2013-03-21 Richard Biener <rguenther@suse.de>
9395 PR tree-optimization/39326
9396 * tree-ssa-loop-im.c (UNANALYZABLE_MEM_ID): New define.
9397 (MEM_ANALYZABLE): Adjust.
9398 (record_mem_ref_loc): Move bitmap ops ...
9399 (gather_mem_refs_stmt): ... here. Use the shared mem-ref for
9400 unanalyzable refs, do not record locations for it.
9401 (analyze_memory_references): Allocate ref zero as shared
9403 (refs_independent_p): Do not test for unanalyzed mems here.
9404 (ref_indep_loop_p_1): Special-case disambiguation against
9406 (ref_indep_loop_p): Assert we are not queried for the unanalyzed mem.
9408 2013-03-21 Christophe Lyon <christophe.lyon@linaro.org>
9410 * config/arm/arm-protos.h (tune_params): Add
9411 prefer_neon_for_64bits field.
9412 * config/arm/arm.c (prefer_neon_for_64bits): New variable.
9413 (arm_slowmul_tune): Default prefer_neon_for_64bits to false.
9414 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
9415 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
9416 (arm_cortex_a15_tune, arm_cortex_a5_tune): Ditto.
9417 (arm_cortex_a9_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
9418 (arm_option_override): Handle -mneon-for-64bits new option.
9419 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): New macro.
9420 (prefer_neon_for_64bits): Declare new variable.
9421 * config/arm/arm.md (arch): Rename neon_onlya8 and neon_nota8 to
9422 avoid_neon_for_64bits and neon_for_64bits. Remove onlya8 and nota8.
9423 (arch_enabled): Handle new arch types. Remove support for onlya8
9425 (one_cmpldi2): Use new arch names.
9426 (zero_extend<mode>di2, extend<mode>di2): Ditto.
9427 * config/arm/arm.opt (mneon-for-64bits): Add option.
9428 * config/arm/neon.md (adddi3_neon, subdi3_neon, iordi3_neon)
9429 (anddi3_neon, xordi3_neon, ashldi3_neon, <shift>di3_neon): Use
9430 neon_for_64bits instead of nota8 and avoid_neon_for_64bits instead
9432 * doc/invoke.texi (-mneon-for-64bits): Document.
9434 2013-03-21 Richard Biener <rguenther@suse.de>
9436 PR tree-optimization/39326
9437 * tree-ssa-loop-im.c (bb_loop_postorder): New global static.
9438 (sort_bbs_in_loop_postorder_cmp): New function.
9439 (gather_mem_refs_in_loops): Assign mem-ref IDs in loop postorder.
9441 2013-03-21 Richard Biener <rguenther@suse.de>
9443 * tree-vect-data-refs.c (vect_update_interleaving_chain): Remove.
9444 (vect_insert_into_interleaving_chain): Likewise.
9445 (vect_drs_dependent_in_basic_block): Inline ...
9446 (vect_slp_analyze_data_ref_dependence): ... here. New function,
9448 (vect_analyze_data_ref_dependence): ... here. Simplify.
9449 (vect_check_interleaving): Simplify.
9450 (vect_analyze_data_ref_dependences): Likewise. Split out ...
9451 (vect_slp_analyze_data_ref_dependences): ... this new function.
9452 (dr_group_sort_cmp): New function.
9453 (vect_analyze_data_ref_accesses): Compute data-reference groups
9454 here instead of in vect_analyze_data_ref_dependence. Use
9455 a more efficient algorithm.
9456 * tree-vect-slp.c (vect_slp_analyze_bb_1): Use
9457 vect_slp_analyze_data_ref_dependences. Call
9458 vect_analyze_data_ref_accesses earlier.
9459 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
9460 * tree-vectorizer.h (vect_analyze_data_ref_dependences): Adjust.
9461 (vect_slp_analyze_data_ref_dependences): New prototype.
9463 2013-03-21 Richard Biener <rguenther@suse.de>
9465 * tree-ssa-loop-im.c (can_sm_ref_p): Do not test whether
9466 ref is stored in the loop.
9467 (find_refs_for_sm): Walk only over all stores.
9468 (store_motion_loop): Allocate from lim_bitmap_obstack.
9469 (store_motion): Likewise.
9471 2013-03-21 Richard Biener <rguenther@suse.de>
9473 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge):
9474 Update virtual SSA form.
9476 2013-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9478 * configure.ac (gcc_cv_ld_eh_frame_ciev3): New test.
9479 * configure: Regenerate.
9480 * config.in: Regenerate.
9481 * config/sol2.c (solaris_override_options): Only enforce DWARF 2
9482 if !HAVE_LD_EH_FRAME_CIEV3.
9484 2013-03-21 Richard Biener <rguenther@suse.de>
9486 * tree-cfg.c (verify_expr_no_block): New function.
9487 (verify_expr_location_1): Verify that neither DECL_DEBUG_EXPR
9488 nor DECL_VALUE_EXPR have locations with associated blocks.
9489 * tree-ssa-live.c (clear_unused_block_pointer_1): Remove.
9490 (clear_unused_block_pointer): Remove code dealing with
9491 blocks in DECL_DEBUG_EXPR locations.
9493 2013-03-21 Richard Biener <rguenther@suse.de>
9495 * tree.h (DECL_DEBUG_EXPR_IS_FROM): Rename to ...
9496 (DECL_HAS_DEBUG_EXPR_P): ... this. Guard properly.
9497 * tree.c (copy_node_stat): Do not copy DECL_HAS_DEBUG_EXPR_P.
9498 * dwarf2out.c (add_var_loc_to_decl): Use DECL_HAS_DEBUG_EXPR_P
9499 instead of DECL_DEBUG_EXPR_IS_FROM.
9500 * gimplify.c (gimplify_modify_expr): Likewise.
9501 * tree-cfg.c (verify_expr_location_1): Likewise.
9502 * tree-complex.c (create_one_component_var): Likewise.
9503 * tree-sra.c (create_access_replacement): Likewise.
9504 * tree-ssa-live.c (clear_unused_block_pointer_1): Likewise.
9505 (clear_unused_block_pointer): Likewise.
9506 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Likewise.
9507 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
9508 * var-tracking.c (var_debug_decl): Likewise.
9509 (track_expr_p): Likewise.
9510 * tree-inline.c (add_local_variables): Likewise. Set
9511 DECL_HAS_DEBUG_EXPR_P after copying it.
9512 * tree-diagnostic.c (default_tree_printer): Use DECL_HAS_DEBUG_EXPR_P
9513 instead of DECL_DEBUG_EXPR_IS_FROM. Guard properly.
9515 2013-03-21 Uros Bizjak <ubizjak@gmail.com>
9518 * configure.ac (HAVE_AS_IX86_INTERUNIT_MOVQ): New test.
9519 * configure: Regenerate.
9520 * config.in: Regenerate.
9521 * config/i386/i386.md (*movdf_internal): Use
9522 HAVE_AS_IX86_INTERUNIT_MOVQ to handle broken assemblers that require
9523 movd instead of movq mnemonic for interunit moves.
9524 (*movdi_internal): Ditto.
9526 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9528 * config/aarch64/aarch64-simd.md (simd_fabd): New Attribute.
9529 (abd<mode>_3): New pattern.
9530 (aba<mode>_3): New pattern.
9531 (fabd<mode>_3): New pattern.
9533 2013-03-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9535 * config/aarch64/aarch64-elf.h (REGISTER_PREFIX): Remove.
9536 * config/aarch64/aarch64.c (aarch64_print_operand): Remove all
9537 occurrence of REGISTER_PREFIX as its empty string.
9539 2013-03-20 Jeff Law <law@redhat.com>
9541 * tree-ssa-dom.c (record_equivalences_from_incoming_edge): Record
9542 addititional equivalences for equality comparisons between an SSA_NAME
9543 and a constant where the SSA_NAME was set from a widening conversion.
9545 2013-03-20 Walter Lee <walt@tilera.com>
9547 * config/tilegx/sync.md (atomic_test_and_set): New pattern.
9549 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9551 * config/i386/i386.md (*movoi_internal_avx): Emit insn template
9552 depending on type attribute.
9553 (*movti_internal): Ditto.
9554 (*movtf_internal): Ditto.
9555 (*movxf_internal): Ditto.
9556 (*movdf_internal): Ditto.
9557 (*movsf_internal): Ditto.
9559 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
9561 * config/i386/i386.md (*movti_internal): Set prefix attribute to
9562 maybe_vex for sselog1 and ssemov types.
9563 (*movdi_internal): Reorder operand constraints.
9564 (*movsi_internal): Ditto. Set prefix attribute to
9565 maybe_vex for sselog1 and ssemov types.
9566 (*movtf_internal): Set prefix attribute to maybe_vex
9567 for sselog1 and ssemov types.
9568 (*movdf_internal): Ditto. Set prefix_data16 attribute for
9569 DImode ssemov types. Reorder operand constraints.
9570 (*movsf_internal): Set type of alternatives 3,4 to imov. Set prefix
9571 attribute to maybe_vex for sselog1 and ssemov types. Set prefix_data16
9572 attribute for SImode ssemov types. Reorder operand constraints.
9574 2013-03-20 Martin Jambor <mjambor@suse.cz>
9576 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): New parameter.
9577 * ipa-cp.c (hint_time_bonus): Add abonus for known array indices.
9579 2013-03-20 Pat Haugen <pthaugen@us.ibm.com>
9581 * config/rs6000/predicates.md (indexed_address, update_address_mem
9582 update_indexed_address_mem): New predicates.
9583 * config/rs6000/vsx.md (vsx_extract_<mode>_zero): Set correct "type"
9584 attribute for load/store instructions.
9585 * config/rs6000/dfp.md (movsd_store): Likewise.
9586 (movsd_load): Likewise.
9587 * config/rs6000/rs6000.md (zero_extend<mode>di2_internal1): Likewise.
9588 (unnamed HI->DI extend define_insn): Likewise.
9589 (unnamed SI->DI extend define_insn): Likewise.
9590 (unnamed QI->SI extend define_insn): Likewise.
9591 (unnamed QI->HI extend define_insn): Likewise.
9592 (unnamed HI->SI extend define_insn): Likewise.
9593 (unnamed HI->SI extend define_insn): Likewise.
9594 (extendsfdf2_fpr): Likewise.
9595 (movsi_internal1): Likewise.
9596 (movsi_internal1_single): Likewise.
9597 (movhi_internal): Likewise.
9598 (movqi_internal): Likewise.
9599 (movcc_internal1): Correct mnemonic for stw insn. Set correct "type"
9600 attribute for load/store instructions.
9601 (mov<mode>_hardfloat): Set correct "type" attribute for load/store
9603 (mov<mode>_softfloat): Likewise.
9604 (mov<mode>_hardfloat32): Likewise.
9605 (mov<mode>_hardfloat64): Likewise.
9606 (mov<mode>_softfloat64): Likewise.
9607 (movdi_internal32): Likewise.
9608 (movdi_internal64): Likewise.
9609 (probe_stack_<mode>): Likewise.
9611 2013-03-20 Michael Meissner <meissner@linux.vnet.ibm.com>
9613 * config/rs6000/vector.md (VEC_R): Add 32-bit integer, binary
9614 floating point, and decimal floating point to reload iterator.
9616 * config/rs6000/constraints.md (wl constraint): New constraints to
9617 return FLOAT_REGS if certain options are used to reduce the number
9618 of separate patterns that exist in the file.
9619 (wx constraint): Likewise.
9620 (wz constraint): Likewise.
9622 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9623 -mdebug=reg, print wg, wl, wx, and wz constraints.
9624 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9625 Initialize the reload functions for 64-bit binary/decimal floating
9627 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9628 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9629 create the buffer on the stack to overcome not having a 32-bit
9631 (rs6000_emit_move): Likewise.
9632 (rs6000_secondary_memory_needed_rtx): Likewise.
9633 (rs6000_alloc_sdmode_stack_slot): Likewise.
9634 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9635 via xxlxor, just like DFmode 0.0.
9637 * config/rs6000/rs6000.h (TARGET_NO_SDMODE_STACK): New macro,
9638 define as 1 if we are running on a power7 or newer.
9639 (enum r6000_reg_class_enum): Add new constraints.
9641 * config/rs6000/dfp.md (movsd): Delete, combine with binary
9642 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9643 with other moves by using conditional constraits (wg). Use LFIWZX
9644 and STFIWX for loading SDmode on power7. Use xxlxor to create 0.0f.
9645 (movsd splitter): Likewise.
9646 (movsd_hardfloat): Likewise.
9647 (movsd_softfloat): Likewise.
9649 * config/rs6000/rs6000.md (FMOVE32): New iterators to combine
9650 binary and decimal floating point moves.
9651 (fmove_ok): New attributes to combine binary and decimal floating
9652 point moves, and to combine power6x (mfpgpr) moves along normal
9654 (real_value_to_target): Likewise.
9661 (movsf): Combine binary and decimal floating point moves. Combine
9662 power6x (mfpgpr) moves with other moves by using conditional
9663 constraits (wg). Use LFIWZX and STFIWX for loading SDmode on power7.
9664 (mov<mode> for SFmode/SDmode); Likewise.
9665 (SFmode/SDmode splitters): Likewise.
9666 (movsf_hardfloat): Likewise.
9667 (mov<mode>_hardfloat for SFmode/SDmode): Likewise.
9668 (movsf_softfloat): Likewise.
9669 (mov<mode>_softfloat for SFmode/SDmode): Likewise.
9671 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wl,
9672 wx and wz constraints.
9674 * config/rs6000/constraints.md (wg constraint): New constraint to
9675 return FLOAT_REGS if -mmfpgpr (power6x) was used.
9677 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wg
9680 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
9681 -mdebug=reg, print wg, wl, wx, and wz constraints.
9682 (rs6000_init_hard_regno_mode_ok): Initialize new constraints.
9683 Initialize the reload functions for 64-bit binary/decimal floating
9685 (reg_offset_addressing_ok_p): If we are on a power7 or later, use
9686 LFIWZX and STFIWX to load/store 32-bit decimal types, and don't
9687 create the buffer on the stack to overcome not having a 32-bit
9689 (rs6000_emit_move): Likewise.
9690 (rs6000_secondary_memory_needed_rtx): Likewise.
9691 (rs6000_alloc_sdmode_stack_slot): Likewise.
9692 (rs6000_preferred_reload_class): On VSX, we can create SFmode 0.0f
9693 via xxlxor, just like DFmode 0.0.
9695 * config/rs6000/dfp.md (movdd): Delete, combine with binary
9696 floating point moves in rs6000.md. Combine power6x (mfpgpr) moves
9697 with other moves by using conditional constraits (wg). Use LFIWZX
9698 and STFIWX for loading SDmode on power7.
9699 (movdd splitters): Likewise.
9700 (movdd_hardfloat32): Likewise.
9701 (movdd_softfloat32): Likewise.
9702 (movdd_hardfloat64_mfpgpr): Likewise.
9703 (movdd_hardfloat64): Likewise.
9704 (movdd_softfloat64): Likewise.
9706 * config/rs6000/rs6000.md (FMOVE64): New iterators to combine
9707 64-bit binary and decimal floating point moves.
9708 (FMOVE64X): Likewise.
9709 (movdf): Combine 64-bit binary and decimal floating point moves.
9710 Combine power6x (mfpgpr) moves with other moves by using
9711 conditional constraits (wg).
9712 (mov<mode> for DFmode/DDmode): Likewise.
9713 (DFmode/DDmode splitters): Likewise.
9714 (movdf_hardfloat32): Likewise.
9715 (mov<mode>_hardfloat32 for DFmode/DDmode): Likewise.
9716 (movdf_softfloat32): Likewise.
9717 (movdf_hardfloat64_mfpgpr): Likewise.
9718 (movdf_hardfloat64): Likewise.
9719 (mov<mode>_hardfloat64 for DFmode/DDmode): Likewise.
9720 (movdf_softfloat64): Likewise.
9721 (mov<mode>_softfloat64 for DFmode/DDmode): Likewise.
9722 (reload_<mode>_load): Move to later in the file so they aren't in
9723 the middle of the floating point move insns.
9724 (reload_<mode>_store): Likewise.
9726 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wg
9729 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print out wg
9730 constraint if -mdebug=reg.
9731 (rs6000_initi_hard_regno_mode_ok): Enable wg constraint if -mfpgpr.
9732 Enable using dd reload support if needed.
9734 * config/rs6000/dfp.md (movtd): Delete, combine with 128-bit
9735 binary and decimal floating point moves in rs6000.md.
9736 (movtd_internal): Likewise.
9738 * config/rs6000/rs6000.md (FMOVE128): Combine 128-bit binary and
9739 decimal floating point moves.
9741 (movtf_internal): Likewise.
9742 (mov<mode>_internal, TDmode/TFmode): Likewise.
9743 (movtf_softfloat): Likewise.
9744 (mov<mode>_softfloat, TDmode/TFmode): Likewise.
9746 * config/rs6000/rs6000.md (movdi_mfpgpr): Delete, combine with
9747 movdi_internal64, using wg constraint for move direct operations.
9748 (movdi_internal64): Likewise.
9750 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print
9751 MODES_TIEABLE_P for selected modes. Print the numerical value of
9752 the various virtual registers. Use GPR/FPR first/last values,
9753 instead of hard coding the register numbers. Print which modes
9754 have reload functions registered.
9755 (rs6000_option_override_internal): If -mdebug=reg, trace the options
9756 settings before/after setting cpu, target and subtarget settings.
9757 (rs6000_secondary_reload_trace): Improve the RTL dump for -mdebug=addr
9758 and for secondary reload failures in rs6000_secondary_reload_inner.
9759 (rs6000_secondary_reload_fail): Likewise.
9760 (rs6000_secondary_reload_inner): Likewise.
9762 * config/rs6000/rs6000.md (FIRST_GPR_REGNO): Add convenience
9763 macros for first/last GPR and FPR registers.
9764 (LAST_GPR_REGNO): Likewise.
9765 (FIRST_FPR_REGNO): Likewise.
9766 (LAST_FPR_REGNO): Likewise.
9768 * config/rs6000/vector.md (mul<mode>3): Use the combined macro
9769 VECTOR_UNIT_ALTIVEC_OR_VSX_P instead of separate calls to
9770 VECTOR_UNIT_ALTIVEC_P and VECTOR_UNIT_VSX_P.
9771 (vcond<mode><mode>): Likewise.
9772 (vcondu<mode><mode>): Likewise.
9773 (vector_gtu<mode>): Likewise.
9774 (vector_gte<mode>): Likewise.
9775 (xor<mode>3): Don't allow logical operations on TImode in 32-bit
9776 to prevent the compiler from converting DImode operations to TImode.
9777 (ior<mode>3): Likewise.
9778 (and<mode>3): Likewise.
9779 (one_cmpl<mode>2): Likewise.
9780 (nor<mode>3): Likewise.
9781 (andc<mode>3): Likewise.
9783 * config/rs6000/constraints.md (wt constraint): New constraint
9784 that returns VSX_REGS if TImode is allowed in VSX registers.
9786 * config/rs6000/predicates.md (easy_fp_constant): 0.0f is an easy
9789 * config/rs6000/rs6000-modes.def (PTImode): Define, PTImode is
9790 similar to TImode, but it is restricted to being in the GPRs.
9792 * config/rs6000/rs6000.opt (-mvsx-timode): New switch to allow
9793 TImode to occupy a single VSX register.
9795 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Default to
9796 -mvsx-timode for power7/power8.
9797 (power7 cpu): Likewise.
9798 (power8 cpu): Likewise.
9800 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Make
9801 sure that TFmode/TDmode take up two registers if they are ever
9802 allowed in the upper VSX registers.
9803 (rs6000_hard_regno_mode_ok): If -mvsx-timode, allow TImode in VSX
9805 (rs6000_init_hard_regno_mode_ok): Likewise.
9806 (rs6000_debug_reg_global): Add debugging for PTImode and wt
9807 constraint. Print if LRA is turned on.
9808 (rs6000_option_override_internal): Give an error if -mvsx-timode
9809 and VSX is not enabled.
9810 (invalid_e500_subreg): Handle PTImode, restricting it to GPRs. If
9811 -mvsx-timode, restrict TImode to reg+reg addressing, and PTImode
9812 to reg+offset addressing. Use PTImode when checking offset
9813 addresses for validity.
9814 (reg_offset_addressing_ok_p): Likewise.
9815 (rs6000_legitimate_offset_address_p): Likewise.
9816 (rs6000_legitimize_address): Likewise.
9817 (rs6000_legitimize_reload_address): Likewise.
9818 (rs6000_legitimate_address_p): Likewise.
9819 (rs6000_eliminate_indexed_memrefs): Likewise.
9820 (rs6000_emit_move): Likewise.
9821 (rs6000_secondary_reload): Likewise.
9822 (rs6000_secondary_reload_inner): Handle PTImode. Allow 64-bit
9823 reloads to fpr registers to continue to use reg+offset addressing,
9824 but 64-bit reloads to altivec registers need reg+reg addressing.
9825 Drop test for PRE_MODIFY, since VSX loads/stores no longer support
9826 it. Treat LO_SUM like a PLUS operation.
9827 (rs6000_secondary_reload_class): If type is 64-bit, prefer to use
9828 FLOAT_REGS instead of VSX_RGS to allow use of reg+offset addressing.
9829 (rs6000_cannot_change_mode_class): Do not allow TImode in VSX
9830 registers to share a register with a smaller sized type, since VSX
9831 puts scalars in the upper 64-bits.
9832 (print_operand): Add support for PTImode.
9833 (rs6000_register_move_cost): Use VECTOR_MEM_VSX_P instead of
9834 VECTOR_UNIT_VSX_P to catch types that can be loaded in VSX
9835 registers, but don't have arithmetic support.
9836 (rs6000_memory_move_cost): Add test for VSX.
9837 (rs6000_opt_masks): Add -mvsx-timode.
9839 * config/rs6000/vsx.md (VSm): Change to use 64-bit aligned moves
9842 (VSr): Use wt constraint for TImode.
9843 (VSv): Drop TImode support.
9844 (vsx_movti): Delete, replace with versions for 32-bit and 64-bit.
9845 (vsx_movti_64bit): Likewise.
9846 (vsx_movti_32bit): Likewise.
9847 (vec_store_<mode>): Use VSX iterator instead of vector iterator.
9848 (vsx_and<mode>3): Delete use of '?' constraint on inputs, just put
9849 one '?' on the appropriate output constraint. Do not allow TImode
9850 logical operations on 32-bit systems.
9851 (vsx_ior<mode>3): Likewise.
9852 (vsx_xor<mode>3): Likewise.
9853 (vsx_one_cmpl<mode>2): Likewise.
9854 (vsx_nor<mode>3): Likewise.
9855 (vsx_andc<mode>3): Likewise.
9856 (vsx_concat_<mode>): Likewise.
9857 (vsx_xxpermdi_<mode>): Fix thinko for non V2DF/V2DI modes.
9859 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Map from
9860 OPTION_MASK_VSX_TIMODE.
9861 (enum rs6000_reg_class_enum): Add RS6000_CONSTRAINT_wt.
9862 (STACK_SAVEAREA_MODE): Use PTImode instead of TImode.
9864 * config/rs6000/rs6000.md (INT mode attribute): Add PTImode.
9865 (TI2 iterator): New iterator for TImode, PTImode.
9866 (wd mode attribute): Add values for vector types.
9867 (movti_string): Replace TI move operations with operations for TImode
9868 and PTImode. Add support for TImode being allowed in VSX registers.
9869 (mov<mode>_string, TImode/PTImode): Likewise.
9870 (movti_ppc64): Likewise.
9871 (mov<mode>_ppc64, TImode/PTImode): Likewise.
9872 (TI mode splitters): Likewise.
9874 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wt
9877 2013-03-20 Marc Glisse <marc.glisse@inria.fr>
9879 PR tree-optimization/56355
9880 * fold-const.c (tree_binary_nonnegative_warnv_p) <MULT_EXPR>:
9881 Also handle integers with undefined overflow.
9883 2013-03-20 Catherine Moore <clm@codesourcery.com>
9884 Maciej W. Rozycki <macro@codesourcery.com>
9885 Tom de Vries <tom@codesourcery.com>
9886 Nathan Sidwell <nathan@codesourcery.com>
9887 Iain Sandoe <iain@codesourcery.com>
9888 Nathan Froyd <froydnj@codesourcery.com>
9889 Chao-ying Fu <fu@mips.com>
9891 * doc/extend.texi: (micromips, nomicromips, nocompression):
9892 Document new function attributes.
9893 * doc/invoke.texi (minterlink-compressed, mmicromips,
9894 m14k, m14ke, m14kec): Document new options.
9895 (minterlink-mips16): Update documentation.
9896 * doc/md.texi (ZC, ZD): Document new constraints.
9897 * configure.ac (gcc_cv_as_micromips): Check if linker
9898 supports the .set micromips directive.
9899 * configure: Regenerate.
9900 * config.in: Regenerate.
9901 * config/mips/mips-tables.opt: Regenerate.
9902 * config/mips/micromips.md: New file.
9903 * constraints.md (ZC, ZD): New constraints.
9904 * config/mips/predicates.md (movep_src_register): New predicate.
9905 (movep_src_operand): New predicate.
9906 (non_volatile_mem_operand): New predicate.
9907 * config/mips/mips.md (multimem): New type.
9908 (length): Differentiate between 17-bit and 18-bit branch offsets.
9909 (MOVEP1, MOVEP2): New mode iterator.
9910 (mov_<load>l): Use ZC constraint.
9911 (mov_<load>r): Likewise.
9912 (mov_<store>l): Likewise.
9913 (mov_<store>r): Likewise.
9914 (*branch_equality<mode>_inverted): Add microMIPS support.
9915 (*branch_equality<mode>): Likewise.
9916 (*jump_absolute): Likewise.
9917 (indirect_jump_<mode>): Likewise.
9918 (tablejump_<mode>): Likewise.
9919 (<optab>_internal): Likewise.
9920 (sibcall_internal): Likewise.
9921 (sibcall_value_internal): Likewise.
9922 (prefetch): Use constraint ZD.
9923 * config/mips/mips.opt (minterlink-compressed): New option.
9924 (minterlink-mips16): Now an alias for minterlink-compressed.
9925 (mmicromips): New option.
9926 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
9927 (compare_and_swap_12): Likewise.
9928 (sync_add<mode>): Likewise.
9929 (sync_<optab>_12): Likewise.
9930 (sync_old_<optab>_12): Likewise.
9931 (sync_new_<optab>_12): Likewise.
9932 (sync_nand_12): Likewise.
9933 (sync_old_nand_12): Likewise.
9934 (sync_new_nand_12): Likewise.
9935 (sync_sub<mode>): Likewise.
9936 (sync_old_add<mode>): Likewise.
9937 (sync_old_sub<mode>): Likewise.
9938 (sync_new_add<mode>): Likewise.
9939 (sync_new_sub<mode>): Likewise.
9940 (sync_<optab><mode>): Likewise.
9941 (sync_old_<optab><mode>): Likewise.
9942 (sync_new_<optab><mode>): Likewise.
9943 (sync_nand<mode>): Likewise.
9944 (sync_old_nand<mode>): Likewise.
9945 (sync_new_nand<mode>): Likewise.
9946 (sync_lock_test_and_set<mode>): Likewise.
9947 (test_and_set_12): Likewise.
9948 (atomic_compare_and_swap<mode>): Likewise.
9949 (atomic_exchange<mode>_llsc): Likewise.
9950 (atomic_fetch_add<mode>_llsc): Likewise.
9951 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
9952 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
9953 (umips_save_restore_pattern_p): Likewise.
9954 (umips_load_store_pair_p): Likewise.
9955 (umips_output_load_store_pair): Likewise.
9956 (umips_movep_target_p): Likewise.
9957 (umips_12bit_offset_address_p): Likewise.
9958 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
9959 (mips_base_mips16): Rename this...
9960 (mips_base_compression_flags): ...to this. Update all uses.
9961 (mips_attribute_table): Add micromips, nomicromips and nocompression.
9962 (mips_mips16_decl_p): Delete.
9963 (mips_nomips16_decl_p): Delete.
9964 (mips_get_compress_on_flags): New function.
9965 (mips_get_compress_off_flags): New function.
9966 (mips_get_compress_mode): New function.
9967 (mips_get_compress_on_name): New function.
9968 (mips_get_compress_off_name): New function.
9969 (mips_insert_attributes): Support multiple compression types.
9970 (mips_merge_decl_attributes): Likewise.
9971 (umips_12bit_offset_address_p): New function.
9972 (mips_start_function_definition): Emit .set micromips directive.
9973 (mips_call_may_need_jalx_p): New function.
9974 (mips_function_ok_for_sibcall): Add microMIPS support.
9975 (mips_print_operand_punctuation): Support short delay slots and
9977 (umips_swm_mask, umips_swm_encoding): New.
9978 (umips_build_save_restore): New function.
9979 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
9980 (was_mips16_p): Remove.
9981 (old_compression_mode): New.
9982 (mips_set_compression_mode): New function.
9983 (mips_set_current_function): Add microMIPS support.
9984 (mips_option_override): Likewise.
9985 (umips_save_restore_pattern_p): New function.
9986 (umips_output_save_restore): New function.
9987 (umips_load_store_pair_p_1): New function.
9988 (umips_load_store_pair_p): New function.
9989 (umips_output_load_store_pair_1): New function.
9990 (umips_output_load_store_pair): New function.
9991 (umips_movep_target_p) New function.
9992 (mips_prepare_pch_save): Add microMIPS support.
9993 * config/mips/mips.h (TARGET_COMPRESSION): New.
9994 (TARGET_CPU_CPP_BUILTINS): Update macro
9995 to use new compression flags and to support microMIPS.
9996 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
9997 (MIPS_ARCH_FLOAT_SPEC): Likewise.
9998 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
9999 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
10000 (ASM_SPEC): Support mmicromips and mno-micromips.
10001 (M16STORE_REG_P): New macro.
10002 (MIPS_CALL): Support TARGET_MICROMIPS.
10003 (MICROMIPS_J): New macro.
10004 (mips_base_mips16): Rename this...
10005 (mips_base_compression_flags): ...to this.
10006 (UMIPS_12BIT_OFFSET_P): New macro.
10007 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
10008 (MULTILIB_DIRNAMES): Likewise.
10009 2013-03-20 Richard Biener <rguenther@suse.de>
10011 PR tree-optimization/56661
10012 * tree-ssa-sccvn.c (visit_use): Only value-number calls if
10013 the result does not have to be distinct.
10015 2013-03-20 Richard Biener <rguenther@suse.de>
10017 * tree-inline.c (copy_tree_body_r): Sync MEM_REF code with
10020 2013-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10021 Steven Bosscher <steven@gcc.gnu.org>
10023 PR rtl-optimization/56605
10024 * loop-iv.c (implies_p): Handle equal RTXs and subregs.
10026 2013-03-20 Uros Bizjak <ubizjak@gmail.com>
10029 * config/i386/i386.md (*movdi_internal): Handle broken assemblers
10030 that require movd instead of movq.
10032 2013-03-20 Richard Biener <rguenther@suse.de>
10034 * tree-ssa-structalias.c (struct variable_info): Add pointer
10035 to the first field of an aggregate with sub-vars. Make
10036 this and the pointer to the next subfield its ID.
10037 (vi_next): New function.
10038 (nothing_id, anything_id, readonly_id, escaped_id, nonlocal_id,
10039 storedanything_id, integer_id): Increment by one.
10040 (new_var_info, get_call_vi, lookup_call_clobber_vi,
10041 get_call_clobber_vi): Adjust.
10042 (solution_set_expand): Simplify and speedup.
10043 (solution_set_add): Inline into ...
10044 (set_union_with_increment): ... this. Adjust accordingly.
10045 (do_sd_constraint): Likewise.
10046 (do_ds_constraint): Likewise.
10047 (do_complex_constraint): Simplify.
10048 (build_pred_graph): Adjust.
10049 (solve_graph): Likewise. Simplify and speedup.
10050 (get_constraint_for_ssa_var, get_constraint_for_ptr_offset,
10051 get_constraint_for_component_ref, get_constraint_for_1,
10052 first_vi_for_offset, first_or_preceding_vi_for_offset,
10053 create_function_info_for, create_variable_info_for_1,
10054 create_variable_info_for, intra_create_variable_infos): Adjust.
10055 (init_base_vars): Push NULL for ID zero.
10056 (compute_points_to_sets): Adjust.
10058 2013-03-20 Richard Biener <rguenther@suse.de>
10060 * cfgloop.c (verify_loop_structure): Streamline and avoid
10061 ICEing on corrupt loop tree.
10062 * graph.c (draw_cfg_nodes_for_loop): Avoid ICEing on corrupt
10065 2013-03-20 Richard Biener <rguenther@suse.de>
10067 * tree-vect-loop-manip.c (slpeel_can_duplicate_loop_p): Do not
10068 check whether an SSA update is needed.
10070 2013-03-20 Richard Sandiford <rdsandiford@googlemail.com>
10072 * config/mips/constraints.md (T): Rename to...
10076 * config/mips/mips.md (*movdi_64bit, *movdi_64bit_mips16)
10077 (*mov<mode>_internal, *mov<mode>_mips16): Update accordingly.
10079 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10081 * config/aarch64/aarch64.md (*sub<mode>3_carryin): New pattern.
10082 (*subsi3_carryin_uxtw): Likewise.
10084 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10086 * config/aarch64/aarch64.md (*ror<mode>3_insn): New pattern.
10087 (*rorsi3_insn_uxtw): Likewise.
10089 2013-03-19 Ian Bolton <ian.bolton@arm.com>
10091 * config/aarch64/aarch64.md (*extr<mode>5_insn): New pattern.
10092 (*extrsi5_insn_uxtw): Likewise.
10094 2013-03-19 Richard Biener <rguenther@suse.de>
10096 PR tree-optimization/56273
10097 * passes.c (init_optimization_passes): Move second VRP after DOM.
10099 2013-03-19 Uros Bizjak <ubizjak@gmail.com>
10101 * config/i386/i386.md (*movti_internal): Merge from
10102 *movti_internal_rex64 and *movti_internal_sse. Use x64 isa attribute.
10103 (*movdi_internal): Merge with *movdi_internal_rex64. Use x64 and
10104 nox64 isa attributes.
10106 2013-03-18 Richard Biener <rguenther@suse.de>
10108 * tree-ssa-structalias.c (find): Use gcc_checking_assert.
10110 (merge_node_constraints): Likewise.
10111 (build_succ_graph): Likewise.
10112 (valid_graph_edge): Inline into single caller.
10113 (unify_nodes): Likewise. Use bitmap_set_bit return value
10115 (scc_visit): Fix formatting and variable use.
10116 (do_sd_constraint): Use gcc_checking_assert.
10117 (do_ds_constraint): Likewise.
10118 (do_complex_constraint): Likewise.
10119 (condense_visit): Likewise. Cleanup.
10120 (dump_pred_graph): New function.
10121 (perform_var_substitution): Dump the pred-graph before
10122 variable substitution.
10123 (find_equivalent_node): Use gcc_checking_assert.
10124 (rewrite_constraints): Guard checking loop with ENABLE_CHECKING.
10126 2013-03-18 Richard Biener <rguenther@suse.de>
10128 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
10129 Remove cond_expr_stmt_list argument and do not gimplify the
10131 (vect_loop_versioning): Adjust.
10132 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
10133 Cleanup to use less temporaries.
10134 (vect_create_data_ref_ptr): Cleanup.
10136 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10138 PR tree-optimization/56635
10139 * fold-const.c (operand_equal_p): For MEM_REF and TARGET_MEM_REF,
10140 require types_compatible_p types.
10142 2013-03-18 Nick Clifton <nickc@redhat.com>
10144 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Remove
10145 spurious backslash.
10147 * config/mn10300/mn10300.c (mn10300_get_live_callee_saved_regs):
10148 Add missing line to comment describing function.
10150 2013-03-18 Richard Biener <rguenther@suse.de>
10152 PR tree-optimization/56210
10153 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
10154 Handle string / character search functions.
10155 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
10157 2013-03-18 Richard Biener <rguenther@suse.de>
10159 PR middle-end/56483
10160 * cfgexpand.c (expand_gimple_cond): Inline gimple_cond_single_var_p
10161 and implement properly.
10162 * gimple.h (gimple_cond_single_var_p): Remove.
10164 2013-03-18 Richard Biener <rguenther@suse.de>
10166 * tree-data-ref.h (find_data_references_in_loop): Declare.
10167 * tree-data-ref.c (get_references_in_stmt): Use a stack
10168 vector pre-allocated in the callers.
10169 (find_data_references_in_stmt): Adjust.
10170 (graphite_find_data_references_in_stmt): Likewise.
10171 (create_rdg_vertices): Likewise.
10172 (find_data_references_in_loop): Export.
10173 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
10174 Compute dependences here...
10175 (vect_analyze_data_refs): ...not here. When we encounter
10176 a non-vectorizable data reference in basic-block vectorization
10177 truncate the data reference vector. Do not bother to
10178 fixup data-dependence information for gather loads.
10179 * tree-vect-slp.c (vect_slp_analyze_bb_1): Check the number
10180 of data references, as reported.
10182 2013-03-18 Richard Biener <rguenther@suse.de>
10184 PR tree-optimization/3713
10185 * tree-ssa-sccvn.c (visit_copy): Simplify. Always propagate
10186 has_constants and expr.
10187 (stmt_has_constants): Properly valueize SSA names when deciding
10188 whether the stmt has constants.
10190 2013-03-18 Richard Biener <rguenther@suse.de>
10192 * tree-ssa-loop-manip.c (find_uses_to_rename): Do not scan the
10193 whole function when there is nothing to do.
10194 * tree-ssa-loop.c (pass_vectorize): Remove TODO_update_ssa.
10195 * tree-vectorizer.c (vectorize_loops): Update virtual and
10196 loop-closed SSA once.
10197 * tree-vect-loop.c (vect_transform_loop): Do not update SSA here.
10199 2013-03-18 Richard Biener <rguenther@suse.de>
10201 PR middle-end/56113
10202 * domwalk.c (bb_postorder): New global static.
10203 (cmp_bb_postorder): New function.
10204 (walk_dominator_tree): Replace scheme imposing an order for
10205 visiting dominator sons by one sorting them at the time they
10206 are pushed on the stack.
10208 2013-03-18 Richard Biener <rguenther@suse.de>
10210 PR tree-optimization/39326
10211 * tree-ssa-loop-im.c (refs_independent_p): Exploit symmetry.
10212 (struct mem_ref): Replace mem member with ao_ref typed member.
10213 (MEM_ANALYZABLE): Adjust.
10214 (memref_eq): Likewise.
10215 (mem_ref_alloc): Likewise.
10216 (gather_mem_refs_stmt): Likewise.
10217 (mem_refs_may_alias_p): Use the ao_ref to query the alias oracle.
10218 (execute_sm_if_changed_flag_set): Adjust.
10219 (execute_sm): Likewise.
10220 (ref_always_accessed_p): Likewise.
10221 (refs_independent_p): Likewise.
10222 (can_sm_ref_p): Likewise.
10224 2013-03-18 Jakub Jelinek <jakub@redhat.com>
10227 * tree.c (tree_int_cst_min_precision): For integer_zerop (value)
10228 return 1 even for !unsignedp.
10230 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10232 * config/i386/i386.md (isa): Add x64 and nox64.
10233 (enabled): Define x64 for TARGET_64BIT and nox64 for !TARGET_64BIT.
10234 (*pushtf): Enable *roF alternative for x64 isa only.
10235 (*pushxf): Merge with *pushxf_nointeger. Use Yx*r constraint. Set
10236 mode attribute of integer alternatives to DImode for TARGET_64BIT.
10237 (*pushdf): Merge with *pushdf_rex64. Use x64 and nox64 isa attributes.
10238 (*movtf_internal): Merge from *movtf_internal_rex64 and
10239 *movtf_internal_sse. Use x64 and nox64 isa attributes.
10240 (*movxf_internal): Merge with *movxf_internal_rex64. Use x64 and
10241 nox64 isa attributes.
10242 (*movdf_internal): Merge with *movdf_internal_rex64. Use x64 and
10243 nox64 isa attributes.
10244 * config/i386/constraints.md (Yd): Do not set for TARGET_64BIT.
10246 2013-03-17 Uros Bizjak <ubizjak@gmail.com>
10248 * config/alpha/alpha.c (TARGET_LRA_P): New define.
10250 2013-03-17 Jakub Jelinek <jakub@redhat.com>
10253 * config/arm/arm.h (REG_CLASS_NAMES): Add "SFP_REG" and "AFP_REG"
10254 class names. Remove trailing comma after "ALL_REGS".
10256 2013-03-16 Jan Hubicka <jh@suse.cz>
10258 * cgraph.h (cgraph_get_create_real_symbol_node): Declare.
10259 * cgraph.c (cgraph_get_create_real_symbol_node): New function.
10260 * cgrpahbuild.c: Use cgraph_get_create_real_symbol_node instead
10261 of cgraph_get_create_node.
10262 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
10264 2013-03-16 Jason Merrill <jason@redhat.com>
10267 * dwarf2out.c (gen_generic_params_dies): Indicate default arguments
10268 with DW_AT_default_value.
10270 2013-03-16 Jakub Jelinek <jakub@redhat.com>
10272 * BASE-VER: Set to 4.9.0.
10274 2013-03-14 Andi Kleen <ak@linux.intel.com>
10277 * doc/extend.texi: Document __ATOMIC_HLE_ACQUIRE,
10278 __ATOMIC_HLE_RELEASE. Document __builtin_ia32 TSX intrincs.
10279 Document _x* TSX intrinsics.
10281 2013-03-14 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
10282 David Holsgrove <david.holsgrove@xilinx.com>
10284 * configure.ac: Add MicroBlaze TLS support detection.
10285 * configure: Regenerate.
10286 * config/microblaze/microblaze-protos.h
10287 (microblaze_cannot_force_const_mem, microblaze_tls_referenced_p,
10288 symbol_mentioned_p, label_mentioned_p): Add prototypes.
10289 * config/microblaze/microblaze.c (microblaze_address_type): Add
10290 ADDRESS_TLS and tls_reloc address types.
10291 (microblaze_address_info): Add tls_reloc.
10292 (TARGET_HAVE_TLS): Define.
10293 (get_tls_get_addr, microblaze_tls_symbol_p, microblaze_tls_operand_p_1,
10294 microblaze_tls_referenced_p, microblaze_cannot_force_const_mem,
10295 symbol_mentioned_p, label_mentioned_p, tls_mentioned_p,
10296 load_tls_operand, microblaze_call_tls_get_addr,
10297 microblaze_legitimize_tls_address): New functions.
10298 (microblaze_classify_unspec): Handle UNSPEC_TLS.
10299 (get_base_reg): Use microblaze_tls_symbol_p.
10300 (microblaze_classify_address): Handle TLS.
10301 (microblaze_legitimate_pic_operand): Use symbol_mentioned_p,
10302 label_mentioned_p and microblaze_tls_referenced_p.
10303 (microblaze_legitimize_address): Handle TLS.
10304 (microblaze_address_insns): Handle ADDRESS_TLS.
10305 (pic_address_needs_scratch): Handle TLS.
10306 (print_operand_address): Handle TLS.
10307 (microblaze_expand_prologue): Check TLS_NEEDS_GOT.
10308 (microblaze_expand_move): Handle TLS.
10309 (microblaze_legitimate_constant_p): Check
10310 microblaze_cannot_force_const_mem and microblaze_tls_symbol_p.
10311 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
10312 * config/microblaze/microblaze.h (TLS_NEEDS_GOT): Define
10313 (PIC_OFFSET_TABLE_REGNUM): Set.
10314 * config/microblaze/linux.h (TLS_NEEDS_GOT): Define.
10315 * config/microblaze/microblaze.md (UNSPEC_TLS): Define.
10316 (addsi3, movsi_internal2, movdf_internal): Update constraints
10317 * config/microblaze/predicates.md (arith_plus_operand): Define
10318 (move_operand): Redefine as move_src_operand,
10319 check microblaze_tls_referenced_p.
10321 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10323 * config/aarch64/aarch64.md: (*and<mode>3nr_compare0): Use CC_NZ.
10324 (*and_<SHIFT:optab><mode>3nr_compare0): Likewise.
10326 2013-03-14 Ian Bolton <ian.bolton@arm.com>
10328 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return correct
10331 2013-03-14 Jakub Jelinek <jakub@redhat.com>
10333 PR tree-optimization/53265
10334 * common.opt (Waggressive-loop-optimizations): New option.
10335 * tree-ssa-loop-niter.c: Include tree-pass.h.
10336 (do_warn_aggressive_loop_optimizations): New function.
10337 (record_estimate): Call it. Don't add !is_exit bounds to loop->bounds
10338 if number_of_latch_executions returned constant.
10339 (estimate_numbers_of_iterations_loop): Call number_of_latch_executions
10340 early. If number_of_latch_executions returned constant, set
10341 nb_iterations_upper_bound back to it.
10342 * cfgloop.h (struct loop): Add warned_aggressive_loop_optimizations
10344 * Makefile.in (tree-ssa-loop-niter.o): Depend on $(TREE_PASS_H).
10345 * doc/invoke.texi (-Wno-aggressive-loop-optimizations): Document.
10347 * config/aarch64/t-aarch64-linux (MULTARCH_DIRNAME): Remove.
10348 (MULTILIB_OSDIRNAMES): Set.
10349 * genmultilib: If defaultosdirname doesn't start with :: , set
10350 defaultosdirname2 instead, clear it and emit two . multilib_raw
10351 entries instead of just one.
10353 2013-03-14 Kaz Kojima <kkojima@gcc.gnu.org>
10355 * config/sh/linux.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10356 (SUBTARGET_OVERRIDE_OPTIONS): Set TARGET_USERMODE as default.
10357 * config/sh/netbsd-elf.h (TARGET_DEFAULT): Remove MASK_USERMODE.
10358 (SUBTARGET_OVERRIDE_OPTIONS): New.
10360 2013-03-13 Oleg Endo <olegendo@gcc.gnu.org>
10363 * config/sh/sh.opt (FPU_SINGLE_ONLY): New mask.
10364 (musermode): Convert to Var(TARGET_USERMODE).
10365 * config/sh/sh.h (SELECT_SH2A_SINGLE_ONLY, SELECT_SH4_SINGLE_ONLY,
10366 MASK_ARCH): Add MASK_FPU_SINGLE_ONLY.
10367 * config/sh/sh.c (sh_option_override): Use
10368 TARGET_FPU_DOUBLE || TARGET_FPU_SINGLE_ONLY for call-fp case.
10369 * config/sh/sh.md (udivsi3_i1, divsi3_i1): Remove ! TARGET_SH4
10371 (udivsi3_i4, divsi3_i4): Use TARGET_FPU_DOUBLE condition instead of
10373 (udivsi3_i4_single, divsi3_i4_single): Use
10374 TARGET_FPU_SINGLE_ONLY || TARGET_FPU_DOUBLE instead of TARGET_HARD_SH4.
10376 2013-03-13 Dave Korn <dave.korn.cygwin@....>
10378 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): Make shared libgcc the
10381 2013-03-13 Richard Biener <rguenther@suse.de>
10383 PR tree-optimization/56608
10384 * tree-vect-slp.c (vect_schedule_slp): Do not remove scalar
10385 calls when vectorizing basic-blocks.
10387 2013-03-13 Jakub Jelinek <jakub@redhat.com>
10390 * config.gcc: On arm, mips, sh and sparc add vxworks-dummy.h to
10393 2013-03-12 Jakub Jelinek <jakub@redhat.com>
10395 * doc/invoke.texi (-Waddr-space-convert): Move into the table earlier.
10397 2013-03-11 Jan Hubicka <jh@suse.cz>
10400 * lto-streamer-out.c (output_symbol_p): Skip references from
10401 constructors of external variables.
10403 2013-03-11 Jan Hubicka <jh@suse.cz>
10405 PR middle-end/56571
10406 * valtrack.c (cleanup_auto_inc_dec): Unshare clobbers originating
10408 * emit-rtl.c (verify_rtx_sharing): Likewise.
10409 (copy_insn_1): Likewise.
10410 * rtl.c (copy_rtx): Likewise.
10412 2013-03-11 Georg-Johann Lay <avr@gjlay.de>
10415 * config/avr/avr.c (avr_print_operand): Add space after '%c' in
10416 output_operand_lossage message.
10418 2013-03-11 Richard Earnshaw <rearnsha@arm.com>
10421 * arm.c (shift_op): Validate RTL pattern on the fly.
10422 (arm_print_operand, case 'S'): Don't use shift_operator to validate
10425 2013-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10428 * config/pa/pa.md (call_value): Check for calls to powf and direct to
10429 new call patterns that clobber %fr12.
10430 (call_val_powf, call_val_powf_pic, call_val_powf_64bit): New insn,
10431 split and postreload patterns.
10432 * config/pa/pa.c (pa_conditional_register_usage): Revert marking
10433 registers %fr12 and %fr12R as call used.
10435 2013-03-09 Steven Bosscher <steven@gcc.gnu.org>
10437 * dse.c (delete_dead_store_insn): Respect TDF_DETAILS.
10438 (canon_address, record_store, replace_read, check_mem_read_rtx,
10439 scan_insn, dse_step1, dse_step2_init, dse_step2_spill,
10440 dse_step4, dse_step5_nospill, dse_step5_spill, dse_step6,
10441 rest_of_handle_dse): Likewise.
10443 2013-03-09 Richard Sandiford <rdsandiford@googlemail.com>
10445 PR middle-end/56524
10446 * tree.h (tree_optimization_option): Rename target_optabs to optabs.
10448 (TREE_OPTIMIZATION_OPTABS): Update after previous field change.
10449 (TREE_OPTIMIZATION_BASE_OPTABS): New macro.
10450 (save_optabs_if_changed): Replace with...
10451 (init_tree_optimization_optabs): ...this.
10452 * optabs.c (save_optabs_if_changed): Rename to...
10453 (init_tree_optimization_optabs): ...this. Take the optimization node
10454 as argument. Do nothing if the base optabs are already correct.
10455 Reuse the existing TREE_OPTIMIZATION_OPTABS memory if we need
10456 to recompute optabs.
10457 * function.h (function): Remove optabs field.
10458 * function.c (invoke_set_current_function_hook): Call
10459 init_tree_optimization_optabs. Use the result to initialize
10462 2013-02-27 Aldy Hernandez <aldyh@redhat.com>
10464 * trans-mem.c (expand_transaction): Do not set PR_INSTRUMENTEDCODE
10465 if GTMA_HAS_NO_INSTRUMENTATION.
10466 (generate_tm_state): Keep GTMA_HAS_NO_INSTRUMENTATION bit.
10467 (ipa_tm_transform_transaction): Set GTMA_HAS_NO_INSTRUMENTATION.
10468 * gimple.h (GTMA_HAS_NO_INSTRUMENTATION): Define.
10469 * gimple-pretty-print.c (dump_gimple_transaction): Handle
10470 GTMA_HAS_NO_INSTRUMENTATION.
10472 2013-03-08 Jakub Jelinek <jakub@redhat.com>
10474 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Don't link against
10477 2013-03-08 Marek Polacek <polacek@redhat.com>
10478 Jakub Jelinek <jakub@redhat.com>
10480 PR tree-optimization/56478
10481 * predict.c (is_comparison_with_loop_invariant_p): Change the
10482 type of loop_step to tree.
10483 (predict_loops): Adjust.
10484 (predict_iv_comparison): Perform the computations on double_ints.
10486 2013-03-08 Richard Biener <rguenther@suse.de>
10488 PR tree-optimization/56570
10489 * tree-cfg.c (verify_expr_location_1): Verify locations for
10491 * tree-sra.c (create_access_replacement): Strip locations
10492 from DECL_DEBUG_EXPRs.
10494 2013-03-08 Richard Biener <rguenther@suse.de>
10496 * tree-inline.c (expand_call_inline): Do not associate
10497 a BLOCK with the location in BLOCK_SOURCE_LOCATION.
10498 * tree-cfg.c (verify_location): Verify BLOCK_SOURCE_LOCATION.
10500 2013-03-08 Richard Biener <rguenther@suse.de>
10502 * tree-ssa-ter.c (is_replaceable_p): Do not TER across location
10503 or block changes with -Og. Fix for location / block encoding
10504 changes and PHI arguments with locations.
10506 2013-03-07 Steven Bosscher <steven@gcc.gnu.org>
10508 * bitmap.c (struct bitmap_descriptor_d): Use unsigned HOST_WIDEST_INT
10510 (struct output_info): Likewise.
10511 (register_overhead): Remove bad gcc_assert.
10512 (bitmap_find_bit): If there is only a single bitmap element, do not
10513 count a miss as a search.
10514 (print_statistics): Update for counter type changes.
10515 (dump_bitmap_statistics): Likewise. Print headers such that they
10516 are properly lined up with the printed counters.
10518 2013-03-07 Jakub Jelinek <jakub@redhat.com>
10520 PR tree-optimization/56559
10521 * tree-ssa-reassoc.c (zero_one_operation): When looking at rhs2,
10522 check that it has only a single use.
10524 2013-03-07 Richard Biener <rguenther@suse.de>
10526 * doc/invoke.texi (fwhole-program): Discourage use in combination
10529 2013-03-06 Jakub Jelinek <jakub@redhat.com>
10531 * config/arm/t-arm (TM_H, OPTIONS_H_EXTRA): Add arm-cores.def.
10533 PR tree-optimization/56539
10534 * tree-tailcall.c (adjust_return_value_with_ops): Use GSI_SAME_STMT
10535 instead of GSI_CONTINUE_LINKING as last argument to
10536 force_gimple_operand_gsi. Adjust function comment.
10538 * config/aarch64/t-aarch64 (TM_H, OPTIONS_H_EXTRA): Add
10541 PR middle-end/56548
10542 * expr.c (expand_cond_expr_using_cmove): When expanding cmove in
10543 promoted mode, convert the result back to the original mode.
10545 2013-03-06 Richard Biener <rguenther@suse.de>
10547 PR middle-end/56294
10548 * tree-into-ssa.c (insert_phi_nodes_for): Add dumping.
10549 (insert_updated_phi_nodes_compare_uids): New function.
10550 (update_ssa): Sort symbols_to_rename after UID before
10551 traversing it to insert PHI nodes.
10553 2013-03-06 Richard Biener <rguenther@suse.de>
10555 PR middle-end/50494
10556 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p):
10557 Do not adjust alignment of DECL_IN_CONSTANT_POOL decls.
10560 2013-02-13 Richard Biener <rguenther@suse.de>
10563 * varasm.c (output_constant_def_1): Get the decl representing
10564 the constant as argument.
10565 (output_constant_def): Wrap output_constant_def_1.
10566 (make_decl_rtl): Use output_constant_def_1 with the decl
10567 representing the constant.
10568 (build_constant_desc): Optionally re-use a decl already
10569 representing the constant.
10570 (tree_output_constant_def): Adjust.
10572 2013-03-06 Joey Ye <joey.ye@arm.com>
10575 * gcc.c (convert_white_space): New function.
10576 (main): Handles white space in function name.
10578 2013-03-06 Oleg Endo <olegendo@gcc.gnu.org>
10581 * config/sh/sh.c (sh_option_override): Check for TARGET_DYNSHIFT
10582 instead of TARGET_SH2 for call-table case. Do not set sh_div_strategy
10583 to SH_DIV_CALL_TABLE for TARGET_SH2.
10584 * config.gcc (sh_multilibs): Add m2 and m2a to sh*-*-linux* multilib
10586 * doc/invoke.texi (SH options): Document mdiv= call-div1, call-fp,
10587 call-table options.
10589 2013-03-05 Sterling Augustine <saugustine@google.com>
10590 Cary Coutant <ccoutant@google.com>
10593 * dwarf2out.c (resolve_addr): Don't call
10594 remove_loc_list_addr_table_entries a second time for the same
10597 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10600 * cfgexpand.c (expand_debug_parm_decl): Call copy_rtx on incoming.
10601 (avoid_complex_debug_insns): New function.
10602 (expand_debug_locations): Call it.
10604 PR rtl-optimization/56484
10605 * ifcvt.c (noce_process_if_block): If else_bb is NULL, avoid extending
10606 lifetimes of hard registers on small register class machines.
10608 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10610 * config/microblaze/microblaze-protos.h: Rename
10611 microblaze_is_interrupt_handler to microblaze_is_interrupt_variant.
10612 * config/microblaze/microblaze.c (microblaze_attribute_table): Add
10614 (microblaze_fast_interrupt_function_p): New function.
10615 (microblaze_is_interrupt_handler): Rename to
10616 microblaze_is_interrupt_variant and add fast_interrupt check.
10617 (microblaze_must_save_register): Use microblaze_is_interrupt_variant.
10618 (save_restore_insns): Likewise.
10619 (compute_frame_size): Likewise.
10620 (microblaze_function_prologue): Add FAST_INTERRUPT_NAME.
10621 (microblaze_globalize_label): Likewise.
10622 * config/microblaze/microblaze.h: Define FAST_INTERRUPT_NAME.
10623 * config/microblaze/microblaze.md: Use wrapper
10624 microblaze_is_interrupt_variant.
10626 2013-03-05 Kai Tietz <ktietz@redhat.com>
10628 * sdbout.c (sdbout_one_type): Switch to current function's section
10629 supporting cold/hot.
10631 2013-03-05 David Holsgrove <david.holsgrove@xilinx.com>
10633 * doc/invoke.texi (MicroBlaze): Add -mbig-endian, -mlittle-endian,
10636 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10638 PR middle-end/56461
10639 * ggc-common.c (gt_pch_save): For ENABLE_VALGRIND_CHECKING,
10640 if VALGRIND_GET_VBITS is defined, temporarily make object
10641 memory all defined, and restore previous valgrind addressability
10642 and definability afterwards. Free this_object at the end.
10644 PR middle-end/56461
10645 * lra.c (lra): Call lra_clear_live_ranges if live_p,
10646 right before calling lra_create_live_ranges, also call it
10647 when clearing live_p. Only call lra_clear_live_ranges
10648 at the end if live_p.
10650 PR middle-end/56461
10651 * sched-deps.c (delete_dep_node): Free DEP_REPLACE.
10653 2013-03-05 Richard Biener <rguenther@suse.de>
10655 PR tree-optimization/56521
10656 * tree-ssa-sccvn.c (set_value_id_for_result): Always initialize
10659 2013-03-05 Steven Bosscher <steven@gcc.gnu.org>
10662 * except.h (remove_unreachable_eh_regions): New prototype.
10663 * except.c (remove_eh_handler_splicer): New function, split out
10664 of remove_eh_handler.
10665 (remove_eh_handler): Use remove_eh_handler_splicer. Add comment
10666 warning about running it on many EH regions one at a time.
10667 (remove_unreachable_eh_regions_worker): New function, walk the
10668 EH tree in depth-first order and remove non-marked regions.
10669 (remove_unreachable_eh_regions): New function.
10670 * tree-eh.c (mark_reachable_handlers): New function, split out
10671 from remove_unreachable_handlers.
10672 (remove_unreachable_handlers): Use mark_reachable_handlers and
10673 remove_unreachable_eh_regions.
10674 (remove_unreachable_handlers_no_lp): Use mark_reachable_handlers
10675 and remove_unreachable_eh_regions.
10677 2013-03-05 Richard Biener <rguenther@suse.de>
10679 PR middle-end/56525
10680 * loop-init.c (fix_loop_structure): Remove loops in two stages,
10681 not freeing them until the end.
10683 2013-03-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10685 * config/s390/s390.h: Define DWARF2_ASM_LINE_DEBUG_INFO.
10687 2013-03-05 Richard Biener <rguenther@suse.de>
10689 PR tree-optimization/56270
10690 * tree-vect-slp.c (vect_schedule_slp): Clear vectorized stmts
10691 of loads after scheduling an SLP instance.
10693 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10695 * Makefile.in (dg_target_exps): Add aarch64.exp, epiphany.exp and
10697 (check_gcc_parallelize): Run guality.exp as a separate job from
10698 vect.exp with unsorted.exp and $(dg_target_exps) separately from
10699 struct-layout-1.exp with stackalign.exp.
10701 * alias.c (init_alias_analysis): Clear reg_known_equiv_p bitmap.
10703 PR middle-end/56461
10704 * tree-vect-slp.c (vect_supported_load_permutation_p): Free
10705 load_index sbitmap even if some bit in it isn't set.
10707 PR middle-end/56461
10708 * tree-ssa-loop-niter.c (bb_queue): Remove typedef.
10709 (discover_iteration_bound_by_body_walk): Change queues to
10710 vec<vec<basic_block> > and queue to vec<basic_block>. Fix up
10711 spelling in comment. Call safe_push on queues[bound_index] directly.
10712 Release queues[queue_index] in every iteration unconditionally.
10713 Release bounds vector.
10715 PR middle-end/56461
10716 * tree-vect-stmts.c (free_stmt_vec_info_vec): Call
10717 free_stmt_vec_info on any left-over stmt_vec_info in the vector.
10718 * tree-vect-loop.c (vect_create_epilog_for_reduction): Release
10721 2013-03-05 Richard Biener <rguenther@suse.de>
10724 * tree-inline.c (remap_blocks_to_null): New function.
10725 (expand_call_inline): When expanding a call stmt without
10726 an associated block inline remap all callee blocks to NULL.
10728 2013-03-05 Jakub Jelinek <jakub@redhat.com>
10730 PR rtl-optimization/56494
10731 * simplify-rtx.c (simplify_truncation): If C is narrower than A,
10732 optimize (truncate:A (subreg:B (truncate:C X) 0)) into
10733 (subreg:A (truncate:C X) 0) instead of (truncate:A X).
10735 PR middle-end/56461
10736 * sel-sched-ir.c (free_sched_pools): Release
10737 succs_info_pool.stack[succs_info_pool.max_top] vectors too
10738 if succs_info_pool.max_top isn't -1.
10741 * opts.c (opts_obstack, opts_concat): Moved to...
10742 * opts-common.c (opts_obstack, opts_concat): ... here.
10744 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10746 PR middle-end/56461
10747 * diagnostic.c (diagnostic_append_note): Save and restore old prefix.
10749 2013-03-04 Martin Jambor <mjambor@suse.cz>
10751 * tree-dfa.c (get_or_create_ssa_default_def): Use parameter fn in
10752 all appropriate places.
10754 2013-01-04 Eric Botcazou <ebotcazou@adacore.com>
10756 PR tree-optimization/56424
10757 * ipa-split.c (split_function): Do not set the RSO flag if result is
10758 not by reference and its type is a register type.
10760 2013-03-04 David Holsgrove <david.holsgrove@xilinx.com>
10762 * config/microblaze/microblaze.c (microblaze_valid_pic_const): New
10763 (microblaze_legitimate_pic_operand): Likewise
10764 * config/microblaze/microblaze.h (LEGITIMATE_PIC_OPERAND_P): calls
10765 new function microblaze_legitimate_pic_operand
10766 * config/microblaze/microblaze-protos.h
10767 (microblaze_legitimate_pic_operand): Declare.
10769 2013-03-04 Edgar E. Iglesias <edgar.iglesias@gmail.com>
10771 * config/microblaze/predicates.md (call_insn_simple_operand):
10772 New predicate for supported rtx code types.
10773 * config/microblaze/microblaze.md (call_internal1): Use
10774 call_insn_simple_operand predicate.
10776 2013-03-04 Jakub Jelinek <jakub@redhat.com>
10778 PR middle-end/56461
10779 * tree-loop-distribution.c (ldist_gen): Call partition_free after each
10780 partitions.ordered_remove.
10782 PR middle-end/56461
10783 * tree-vect-stmts.c (vectorizable_conversion): Don't call
10784 vec_oprnds0.create (1) for modifier == NONE.
10786 PR middle-end/56461
10787 * tree-vect-stmts.c (vectorizable_shift): Don't call create methods
10788 on vec_oprnds0 or vec_oprnds1 before loop, only call it on
10789 vec_oprnds1 right before pushing anything to it for
10792 PR middle-end/56461
10793 * tree-vect-loop.c (destroy_loop_vec_info): For !clean_stmts, just
10794 set nbbs to 0 instead of having separate code path.
10795 (vect_analyze_loop_form): Call destroy_loop_vec_info with true
10796 instead of false as last argument if returning NULL.
10798 2013-03-03 Sandra Loosemore <sandra@codesourcery.com>
10800 * target.def (TARGET_OPTION_VALID_ATTRIBUTE_P): Update comments;
10801 the attribute is now called "target" instead of "option".
10802 (TARGET_OPTION_PRAGMA_PARSE): Likewise, for the pragma.
10803 * doc/tm.texi.in (Target Attributes): Likewise document the correct
10804 attribute/pragma name for TARGET_OPTION_VALID_P and
10805 TARGET_OPTION_PRAGMA_PARSE. Also copy-edit and correct markup.
10806 * doc/tm.texi: Regenerated.
10808 2013-03-02 David Holsgrove <david.holsgrove@xilinx.com>
10810 * config/microblaze/microblaze.c:
10811 Check mcpu, pcmp requirement and set TARGET_REORDER to 0 if not met.
10812 * config/microblaze/microblaze.h: Add -mxl-reorder to
10814 * config/microblaze/microblaze.md: New bswapsi2 and bswaphi2.
10815 instructions emitted if TARGET_REORDER.
10816 * config/microblaze/microblaze.opt: New option -mxl-reorder set to 1
10817 or 0 for -m/-mno case, but initialises as 2 to detect default use case
10820 2013-03-01 Xinliang David Li <davidxl@google.com>
10822 * tree-ssa-uninit.c (compute_control_dep_chain): Limit post-dom
10825 2013-03-01 Jakub Jelinek <jakub@redhat.com>
10827 PR middle-end/56461
10828 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Release path
10829 vector even when returning true. Fix up function comment formatting.
10831 PR middle-end/56461
10832 * ira-build.c (ira_loop_nodes_count): New variable.
10833 (create_loop_tree_nodes): Initialize it.
10834 (finish_loop_tree_nodes): Use it instead of looking at current_loops.
10836 PR middle-end/56461
10837 * tree-vect-data-refs.c (vect_permute_store_chain): Avoid using copy
10838 method on dr_chain and result_chain.
10839 * tree-vect-stmts.c (vectorizable_store): Only call
10840 result_chain.create if j == 0.
10842 PR middle-end/56461
10843 * tree-vect-stmts.c (vect_create_vectorized_promotion_stmts): Call
10844 vec_oprnds0->release (); rather than vec_oprnds0->truncate (0)
10845 before overwriting it.
10847 2013-03-01 Tobias Burnus <burnus@net-b.de>
10849 * doc/extended.texi (C Extensions): Change order in @menu
10851 (Other MIPS Built-in Functions): Move last MIPS entry before
10852 "picoChip Built-in Functions".
10853 (SH Built-in Functions): Move after RX Built-in Functions.
10854 * doc/gcc.texi (Introduction): Change order in @menu
10856 * doc/md.texi (Constraints): Ditto.
10857 * gty.texi (Type Information): Ditto.
10858 (User-provided marking routines for template types): Make
10860 * doc/invoke.texi (AArch64 Options): Move before
10861 "Adapteva Epiphany Options".
10863 2013-02-28 Konstantin Serebryany <konstantin.s.serebryany@gmail.com>
10864 Jakub Jelinek <jakub@redhat.com>
10867 * asan.c (gate_asan): Lookup no_sanitize_address instead of
10868 no_address_safety_analysis attribute.
10869 * doc/extend.texi (no_address_safety_attribute): Rename to
10870 no_sanitize_address attribute, mention no_address_safety_analysis
10871 attribute as deprecated alias.
10873 2013-02-28 Jakub Jelinek <jakub@redhat.com>
10875 PR middle-end/56461
10876 * tree-vectorizer.h (vect_get_slp_defs): Change 3rd argument
10877 type to vec<vec<tree> > *.
10878 * tree-vect-slp.c (vect_get_slp_defs): Likewise. Change vec_defs
10879 to be vec<tree> instead of vec<tree> *, set vec_defs
10880 to vNULL and call vec_defs.create (number_of_vects), adjust other
10882 * tree-vect-stmts.c (vect_get_vec_defs, vectorizable_call,
10883 vectorizable_condition): Adjust vect_get_slp_defs callers.
10885 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10887 * config/aarch64/aarch64.c
10888 (aarch64_float_const_representable): Remove unused variable.
10890 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10892 * config/aarch64/aarch64.c (aarch64_mangle_type): Make static.
10894 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10896 * config/aarch64/aarch64-builtins.c
10897 (aarch64_init_simd_builtins): Make static.
10899 2013-02-28 James Greenhalgh <james.greenhalgh@arm.com>
10901 * config/aarch64/aarch64.c
10902 (aarch64_simd_make_constant): Make static.
10904 2013-02-28 Martin Jambor <mjambor@suse.cz>
10906 * tree-sra.c (load_assign_lhs_subreplacements): Do not put replacements
10907 with no initialization to the RHS of debug statements.
10909 2013-02-28 Martin Jambor <mjambor@suse.cz>
10911 PR tree-optimization/56294
10912 * tree-sra.c (analyze_access_subtree): Create replacement declarations.
10914 (get_access_replacement): Do not call create_access_replacement.
10915 Assert a replacement exists.
10916 (get_repl_default_def_ssa_name): Create the replacement declaration
10919 2013-02-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10921 * config/arm/arm.c (arm_output_mi_thunk): Call final_start_function and
10922 final_end_function.
10924 2013-02-28 Marek Polacek <polacek@redhat.com>
10926 PR rtl-optimization/56466
10927 * loop-unroll.c (unroll_and_peel_loops): Call fix_loop_structure
10928 if we're changing a loop.
10929 (peel_loops_completely): Likewise.
10931 2013-02-28 Paolo Carlini <paolo.carlini@oracle.com>
10934 * doc/invoke.texi ([-Wctor-dtor-privacy]): Complete.
10936 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10939 * config/avr/avr.c (avr_init_builtins): Use 'n' instead of empty
10940 macro parameters with: FX_FTYPE_FX, FX_FTYPE_FX_INT, INT_FTYPE_FX,
10941 INTX_FTYPE_FX, FX_FTYPE_INTX.
10942 * config/avr/builtins.def: Adjust respective DEF_BUILTIN.
10944 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10946 * avr/avr-mcus.def (ata5272, ata5505, attiny1634, ata6285)
10947 (ata6286, atmega8a, atmega48pa, ata5790, ata5790n, ata5795)
10948 (atmega164pa, atmega165pa, atmega168pa, atmega16hva, atmega16hvb)
10949 (atmega16hvbrevb, atmega16m1, atmega16u4, atmega26hvg, atmega32a)
10950 (atmega32a, atmega3250pa, atmega3290pa, atmega32c1, atmega32m1)
10951 (atmega32u4, atmega32u6, atmega64a, atmega6490a, atmega6490p)
10952 (atmega64c1, atmega64m1, atmega64rfa2, atmega64rfr2, atmega32hvb)
10953 (atmega32hvbrevb, atmega16hva2, atmega48hvf, at90pwm161)
10954 (atmega128a, atmega1284, atmxt112sl, atmxt224, atmxt224e)
10955 (atmxt336s, atxmega16a4u, atxmega16c4, atxmega32a4u, atxmega32c4)
10956 (atxmega32e5, atxmega64a3u, atxmega64a4u, atxmega64b1, atxmega64b3)
10957 (atxmega64c3, atxmega64d4, atxmega128a3u, atxmega128b1)
10958 (atxmega128b3, atxmega128c3, atxmega128d4, atmxt540s, atmxt540sreva)
10959 (atxmega192a3u, atxmega192c3, atxmega256a3u, atxmega256c3)
10960 (atxmega384c3, atxmega384d3, atxmega128a4u): New AVR_MCU.
10961 (avrxmega6): Increase max flash segments from 5 to 6.
10962 * config/avr/t-multilib: Regenerate.
10963 * config/avr/avr-tables.opt: Regenerate.
10964 * doc/avr-mmcu.texi: Regenerate.
10966 2013-02-28 Georg-Johann Lay <avr@gjlay.de>
10968 * config/avr/avr.h (device_to_arch): Rename to device_to_ld.
10969 (avr_device_to_arch): Rename to avr_device_to_ld.
10970 (avr_device_to_as): New prototype.
10971 (EXTRA_SPEC_FUNCTIONS): Add device_to_as.
10972 (ASM_SPEC): Use device_to_as to get -mmcu= and -mno-skip-bug=.
10973 * config/avr/driver-avr.c (avr_device_to_as): New.
10974 (avr_device_to_arch): Rename to avr_device_to_ld.
10976 2013-02-27 Jakub Jelinek <jakub@redhat.com>
10978 PR middle-end/56461
10979 * tree-vect-data-refs.c (vect_permute_load_chain): Avoid using copy
10980 method on dr_chain and result_chain.
10982 PR middle-end/56461
10983 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Call
10984 pointer_set_destroy on not_executed_last_iteration.
10986 PR middle-end/56461
10987 * tree-vect-loop.c (vectorizable_reduction): Release vect_defs vector.
10989 PR middle-end/56461
10990 * ipa-pure-const.c (propagate): Use FOR_EACH_FUNCTION instead of
10991 FOR_EACH_DEFINED_FUNCTION when freeing state.
10993 PR middle-end/56461
10994 * df-scan.c (df_insn_delete): Use df_scan_free_mws_vec before
10996 (df_insn_rescan_debug_internal): Use df_scan_free_mws_vec before
10999 PR middle-end/56461
11000 * ipa-cp.c (decide_whether_version_node): Call vec_free on
11001 known_aggs[i].items and release known_aggs vector.
11003 PR middle-end/56461
11004 * ipa-reference.c (propagate): Free node_info even for alias nodes.
11006 2013-02-27 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11008 * config/microblaze/microblaze.c (microblaze_emit_compare):
11009 Use xor for EQ/NE comparisions.
11010 * config/microblaze/microblaze.md (cstoresf4): Add constraints
11011 (cbranchsf4): Adjust operator to comparison_operator.
11013 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11015 PR middle-end/56461
11016 * tree-flow.h (edge_var_map_vector): Change into va_heap, vl_embed
11018 * tree-ssa.c (redirect_edge_var_map_add): Use vec_safe_reserve and
11019 vec_safe_push, always update *slot.
11020 (redirect_edge_var_map_clear): Use vec_free.
11021 (redirect_edge_var_map_dup): Use vec_safe_copy and vec_safe_reserve.
11022 (free_var_map_entry): Use vec_free.
11023 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Use
11024 FOR_EACH_VEC_SAFE_ELT instead of FOR_EACH_VEC_ELT.
11026 2013-02-27 Andrey Belevantsev <abel@ispras.ru>
11028 PR middle-end/45472
11029 * sel-sched-ir.c (merge_expr): Also change vinsn of merged expr
11030 when the may_trap_p bit of the exprs being merged differs.
11031 Reorder tests for speculativeness in the logical and operator.
11033 2013-02-27 Jakub Jelinek <jakub@redhat.com>
11035 * incpath.c (add_standard_paths): Use reconcat instead of concat
11036 where appropriate and avoid leaking memory.
11038 * opts.h: Include obstack.h.
11039 (opts_concat): New prototype.
11040 (opts_obstack): New declaration.
11041 * opts.c (opts_concat): New function.
11042 (opts_obstack): New variable.
11043 (init_options_struct): Call gcc_init_obstack on opts_obstack.
11044 (finish_options): Use opts_concat instead of concat
11045 and XOBNEWVEC instead of XNEWVEC.
11046 * opts-common.c (generate_canonical_option, decode_cmdline_option,
11047 generate_option): Likewise.
11048 * Makefile.in (OPTS_H): Depend on $(OBSTACK_H).
11049 * lto-wrapper.c (main): Call gcc_init_obstack on opts_obstack.
11052 * stmt.c (expand_switch_as_decision_tree_p): If flag_pic
11053 and ASM_OUTPUT_ADDR_DIFF_ELT isn't defined, return true.
11055 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11057 PR middle-end/56461
11058 * lra-spills.c (lra_spill): Free spill_hard_reg at the end.
11060 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11062 * config/arm/arm.c (const_ok_for_dimode_op): Back out last change.
11063 (arm_block_move_unaligned_straight): Likewise.
11064 (arm_adjust_block_mem): Likewise.
11066 2013-02-26 Joern Rennecke <joern.rennecke@embecosm.com>
11069 * config/lm32/lm32.c (gen_int_relational): Remove unused variables
11070 temp, cond and label.
11071 * config/lm32/lm32.md (ashlsi3): Remove unused variable one.
11074 * config/c6x/c6x.c (dbx_register_map): Change to unsigned.
11075 * config/c6x/c6x.h (dbx_register_map): Update declaration.
11078 * config/cr16/cr16-protos.h: Move end of RTX_CODE guard below end
11079 of prologue/epilogue functions.
11082 * config/tilegx/tilegx.c (tilegx_expand_prologue):
11083 Remove unused variable cfa_offset.
11084 * config/tilepro/tilepro.c (tilepro_expand_prologue): Likewise.
11087 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Avoid offset
11088 type promotion to unsigned.
11091 * config/arm/arm.c (const_ok_for_dimode_op): Make code consistent
11092 for HOST_WIDE_INT of 32 bit / same size as int.
11093 (arm_block_move_unaligned_straight): Likewise.
11094 (arm_adjust_block_mem): Likewise.
11097 * config/mep/t-mep (mep-pragma.o): Use ALL_COMPILERFLAGS instead of
11100 2013-02-26 Marek Polacek <polacek@redhat.com>
11102 PR tree-optimization/56426
11103 * tree-ssa-loop.c (tree_ssa_loop_init): Always call scev_initialize.
11105 2013-02-26 Richard Biener <rguenther@suse.de>
11108 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc): Remove
11109 unused variable loops.
11111 2013-02-26 Jakub Jelinek <jakub@redhat.com>
11113 PR tree-optimization/56448
11114 * fold-const.c (operand_equal_p) <case tcc_reference>: Don't look at
11115 TREE_SIDE_EFFECTS if flags contain OEP_CONSTANT_ADDRESS_OF.
11116 Clear OEP_CONSTANT_ADDRESS_OF from flags before recursing on second or
11117 later operands of the references, or even first operand for
11118 INDIRECT_REF, TARGET_MEM_REF or MEM_REF.
11120 PR tree-optimization/56443
11121 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): For
11122 overaligned types, pass TYPE_UNSIGNED (scalar_type) as second argument
11123 to type_for_mode langhook.
11125 2013-02-25 Matt Turner <mattst88@gmail.com>
11127 * doc/invoke.texi: Document r4700.
11129 2013-02-25 Richard Biener <rguenther@suse.de>
11131 PR tree-optimization/56175
11132 * tree-ssa-forwprop.c (hoist_conversion_for_bitop_p): New predicate,
11134 (simplify_bitwise_binary): ... here. Also guard the conversion
11135 of (type) X op CST to (type) (X op ((type-x) CST)) with it.
11137 2013-02-25 Catherine Moore <clm@codesourcery.com>
11140 2013-02-24 Catherine Moore <clm@codesourcery.com>
11141 Maciej W. Rozycki <macro@codesourcery.com>
11142 Tom de Vries <tom@codesourcery.com>
11143 Nathan Sidwell <nathan@codesourcery.com>
11144 Iain Sandoe <iain@codesourcery.com>
11145 Nathan Froyd <froydnj@codesourcery.com>
11146 Chao-ying Fu <fu@mips.com>
11148 * doc/extend.texi: (micromips, nomicromips, nocompression):
11149 Document new function attributes.
11150 * doc/invoke.texi (minterlink-compressed, mmicromips,
11151 m14k, m14ke, m14kec): Document new options.
11152 (minterlink-mips16): Update documentation.
11153 * doc/md.texi (ZC, ZD): Document new constraints.
11154 * configure.ac (gcc_cv_as_micromips): Check if linker
11155 supports the .set micromips directive.
11156 * configure: Regenerate.
11157 * config.in: Regenerate.
11158 * config/mips/mips-tables.opt: Regenerate.
11159 * config/mips/micromips.md: New file.
11160 * constraints.md (ZC, AD): New constraints.
11161 * config/mips/predicates.md (movep_src_register): New predicate.
11162 (movep_src_operand): New predicate.
11163 (non_volatile_mem_operand): New predicate.
11164 * config/mips/mips.md (multimem): New type.
11165 (length): Differentiate between 17-bit and 18-bit branch offsets.
11166 (MOVEP1, MOVEP2): New mode iterator.
11167 (mov_<load>l): Use ZC constraint.
11168 (mov_<load>r): Likewise.
11169 (mov_<store>l): Likewise.
11170 (mov_<store>r): Likewise.
11171 (*branch_equality<mode>_inverted): Add microMIPS support.
11172 (*branch_equality<mode>): Likewise.
11173 (*jump_absolute): Likewise.
11174 (indirect_jump_<mode>): Likewise.
11175 (tablejump_<mode>): Likewise.
11176 (<optab>_internal): Likewise.
11177 (sibcall_internal): Likewise.
11178 (sibcall_value_internal): Likewise.
11179 (prefetch): Use constraint ZD.
11180 * config/mips/mips.opt (minterlink-compressed): New option.
11181 (minterlink-mips16): Now an alias for minterlink-compressed.
11182 (mmicromips): New option.
11183 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11184 (compare_and_swap_12): Likewise.
11185 (sync_add<mode>): Likewise.
11186 (sync_<optab>_12): Likewise.
11187 (sync_old_<optab>_12): Likewise.
11188 (sync_new_<optab>_12): Likewise.
11189 (sync_nand_12): Likewise.
11190 (sync_old_nand_12): Likewise.
11191 (sync_new_nand_12): Likewise.
11192 (sync_sub<mode>): Likewise.
11193 (sync_old_add<mode>): Likewise.
11194 (sync_old_sub<mode>): Likewise.
11195 (sync_new_add<mode>): Likewise.
11196 (sync_new_sub<mode>): Likewise.
11197 (sync_<optab><mode>): Likewise.
11198 (sync_old_<optab><mode>): Likewise.
11199 (sync_new_<optab><mode>): Likewise.
11200 (sync_nand<mode>): Likewise.
11201 (sync_old_nand<mode>): Likewise.
11202 (sync_new_nand<mode>): Likewise.
11203 (sync_lock_test_and_set<mode>): Likewise.
11204 (test_and_set_12): Likewise.
11205 (atomic_compare_and_swap<mode>): Likewise.
11206 (atomic_exchange<mode>_llsc): Likewise.
11207 (atomic_fetch_add<mode>_llsc): Likewise.
11208 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11209 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11210 (umips_save_restore_pattern_p): Likewise.
11211 (umips_load_store_pair_p): Likewise.
11212 (umips_output_load_store_pair): Likewise.
11213 (umips_movep_target_p): Likewise.
11214 (umips_12bit_offset_address_p): Likewise.
11215 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11216 (mips_base_mips16): Rename this...
11217 (mips_base_compression_flags): ...to this. Update all uses.
11218 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11219 (mips_mips16_decl_p): Delete.
11220 (mips_nomips16_decl_p): Delete.
11221 (mips_get_compress_on_flags): New function.
11222 (mips_get_compress_off_flags): New function.
11223 (mips_get_compress_mode): New function.
11224 (mips_get_compress_on_name): New function.
11225 (mips_get_compress_off_name): New function.
11226 (mips_insert_attributes): Support multiple compression types.
11227 (mips_merge_decl_attributes): Likewise.
11228 (umips_12bit_offset_address_p): New function.
11229 (mips_start_function_definition): Emit .set micromips directive.
11230 (mips_call_may_need_jalx_p): New function.
11231 (mips_function_ok_for_sibcall): Add microMIPS support.
11232 (mips_print_operand_punctuation): Support short delay slots and
11234 (umips_swm_mask, umips_swm_encoding): New.
11235 (umips_build_save_restore): New function.
11236 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11237 (was_mips16_p): Remove.
11238 (old_compression_mode): New.
11239 (mips_set_compression_mode): New function.
11240 (mips_set_current_function): Add microMIPS support.
11241 (mips_option_override): Likewise.
11242 (umips_save_restore_pattern_p): New function.
11243 (umips_output_save_restore): New function.
11244 (umips_load_store_pair_p_1): New function.
11245 (umips_load_store_pair_p): New function.
11246 (umips_output_load_store_pair_1): New function.
11247 (umips_output_load_store_pair): New function.
11248 (umips_movep_target_p) New function.
11249 (mips_prepare_pch_save): Add microMIPS support.
11250 * config/mips/mips.h (TARGET_COMPRESSION): New.
11251 (TARGET_CPU_CPP_BUILTINS): Update macro
11252 to use new compression flags and to support microMIPS.
11253 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11254 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11255 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11256 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11257 (ASM_SPEC): Support mmicromips and mno-micromips.
11258 (M16STORE_REG_P): New macro.
11259 (MIPS_CALL): Support TARGET_MICROMIPS.
11260 (MICROMIPS_J): New macro.
11261 (mips_base_mips16): Rename this...
11262 (mips_base_compression_flags): ...to this.
11263 (UMIPS_12BIT_OFFSET_P): New macro.
11264 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11265 (MULTILIB_DIRNAMES): Likewise.
11267 2013-02-25 Tom de Vries <tom@codesourcery.com>
11269 PR rtl-optimization/56131
11270 * insn-notes.def (INSN_NOTE_BASIC_BLOCK): Update comment.
11271 * cfgrtl.c (delete_insn): Don't reorder NOTE_INSN_DELETED_LABEL and
11272 NOTE_INSN_BASIC_BLOCK if BLOCK_FOR_INSN == NULL.
11274 2013-02-25 Tobias Burnus <burnus@net-b.de>
11276 * doc/invoke.texi (-fsanitize=): Move from optimization
11277 to debugging options.
11279 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11281 * sched-deps.c (sched_analyze_insn): Fix typo in comment.
11283 2013-02-25 Andrey Belevantsev <abel@ispras.ru>
11284 Alexander Monakov <amonakov@ispras.ru>
11286 PR middle-end/56077
11287 * sched-deps.c (sched_analyze_insn): When reg_pending_barrier,
11288 flush pending lists also on non-jumps. Adjust comment.
11290 2013-02-24 Catherine Moore <clm@codesourcery.com>
11291 Maciej W. Rozycki <macro@codesourcery.com>
11292 Tom de Vries <tom@codesourcery.com>
11293 Nathan Sidwell <nathan@codesourcery.com>
11294 Iain Sandoe <iain@codesourcery.com>
11295 Nathan Froyd <froydnj@codesourcery.com>
11296 Chao-ying Fu <fu@mips.com>
11298 * doc/extend.texi: (micromips, nomicromips, nocompression):
11299 Document new function attributes.
11300 * doc/invoke.texi (minterlink-compressed, mmicromips,
11301 m14k, m14ke, m14kec): Document new options.
11302 (minterlink-mips16): Update documentation.
11303 * doc/md.texi (ZC, ZD): Document new constraints.
11304 * configure.ac (gcc_cv_as_micromips): Check if linker
11305 supports the .set micromips directive.
11306 * configure: Regenerate.
11307 * config.in: Regenerate.
11308 * config/mips/mips-tables.opt: Regenerate.
11309 * config/mips/micromips.md: New file.
11310 * constraints.md (ZC, AD): New constraints.
11311 * config/mips/predicates.md (movep_src_register): New predicate.
11312 (movep_src_operand): New predicate.
11313 (non_volatile_mem_operand): New predicate.
11314 * config/mips/mips.md (multimem): New type.
11315 (length): Differentiate between 17-bit and 18-bit branch offsets.
11316 (MOVEP1, MOVEP2): New mode iterator.
11317 (mov_<load>l): Use ZC constraint.
11318 (mov_<load>r): Likewise.
11319 (mov_<store>l): Likewise.
11320 (mov_<store>r): Likewise.
11321 (*branch_equality<mode>_inverted): Add microMIPS support.
11322 (*branch_equality<mode>): Likewise.
11323 (*jump_absolute): Likewise.
11324 (indirect_jump_<mode>): Likewise.
11325 (tablejump_<mode>): Likewise.
11326 (<optab>_internal): Likewise.
11327 (sibcall_internal): Likewise.
11328 (sibcall_value_internal): Likewise.
11329 (prefetch): Use constraint ZD.
11330 * config/mips/mips.opt (minterlink-compressed): New option.
11331 (minterlink-mips16): Now an alias for minterlink-compressed.
11332 (mmicromips): New option.
11333 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZR constraint.
11334 (compare_and_swap_12): Likewise.
11335 (sync_add<mode>): Likewise.
11336 (sync_<optab>_12): Likewise.
11337 (sync_old_<optab>_12): Likewise.
11338 (sync_new_<optab>_12): Likewise.
11339 (sync_nand_12): Likewise.
11340 (sync_old_nand_12): Likewise.
11341 (sync_new_nand_12): Likewise.
11342 (sync_sub<mode>): Likewise.
11343 (sync_old_add<mode>): Likewise.
11344 (sync_old_sub<mode>): Likewise.
11345 (sync_new_add<mode>): Likewise.
11346 (sync_new_sub<mode>): Likewise.
11347 (sync_<optab><mode>): Likewise.
11348 (sync_old_<optab><mode>): Likewise.
11349 (sync_new_<optab><mode>): Likewise.
11350 (sync_nand<mode>): Likewise.
11351 (sync_old_nand<mode>): Likewise.
11352 (sync_new_nand<mode>): Likewise.
11353 (sync_lock_test_and_set<mode>): Likewise.
11354 (test_and_set_12): Likewise.
11355 (atomic_compare_and_swap<mode>): Likewise.
11356 (atomic_exchange<mode>_llsc): Likewise.
11357 (atomic_fetch_add<mode>_llsc): Likewise.
11358 * config/mips/mips-cpus.def (m14kc, m14k): New processors.
11359 * config/mips/mips-protos.h (umips_output_save_restore): New prototype.
11360 (umips_save_restore_pattern_p): Likewise.
11361 (umips_load_store_pair_p): Likewise.
11362 (umips_output_load_store_pair): Likewise.
11363 (umips_movep_target_p): Likewise.
11364 (umips_12bit_offset_address_p): Likewise.
11365 * config/mips/mips.c (MIPS_MAX_FIRST_STEP): Update for microMIPS.
11366 (mips_base_mips16): Rename this...
11367 (mips_base_compression_flags): ...to this. Update all uses.
11368 (mips_attribute_table): Add micromips, nomicromips and nocompression.
11369 (mips_mips16_decl_p): Delete.
11370 (mips_nomips16_decl_p): Delete.
11371 (mips_get_compress_on_flags): New function.
11372 (mips_get_compress_off_flags): New function.
11373 (mips_get_compress_mode): New function.
11374 (mips_get_compress_on_name): New function.
11375 (mips_get_compress_off_name): New function.
11376 (mips_insert_attributes): Support multiple compression types.
11377 (mips_merge_decl_attributes): Likewise.
11378 (umips_12bit_offset_address_p): New function.
11379 (mips_start_function_definition): Emit .set micromips directive.
11380 (mips_call_may_need_jalx_p): New function.
11381 (mips_function_ok_for_sibcall): Add microMIPS support.
11382 (mips_print_operand_punctuation): Support short delay slots and
11384 (umips_swm_mask, umips_swm_encoding): New.
11385 (umips_build_save_restore): New function.
11386 (mips_for_each_saved_gpr_and_fpr): Add microMIPS support.
11387 (was_mips16_p): Remove.
11388 (old_compression_mode): New.
11389 (mips_set_compression_mode): New function.
11390 (mips_set_current_function): Add microMIPS support.
11391 (mips_option_override): Likewise.
11392 (umips_save_restore_pattern_p): New function.
11393 (umips_output_save_restore): New function.
11394 (umips_load_store_pair_p_1): New function.
11395 (umips_load_store_pair_p): New function.
11396 (umips_output_load_store_pair_1): New function.
11397 (umips_output_load_store_pair): New function.
11398 (umips_movep_target_p) New function.
11399 (mips_prepare_pch_save): Add microMIPS support.
11400 * config/mips/mips.h (TARGET_COMPRESSION): New.
11401 (TARGET_CPU_CPP_BUILTINS): Update macro
11402 to use new compression flags and to support microMIPS.
11403 (MIPS_ISA_LEVEL_SPEC): Add m14k processors.
11404 (MIPS_ARCH_FLOAT_SPEC): Likewise.
11405 (ISA_HAS_LWXS): Include TARGET_MICROMIPS.
11406 (ISA_HAS_LOAD_DELAY): Exclude TARGET_MICROMIPS.
11407 (ASM_SPEC): Support mmicromips and mno-micromips.
11408 (M16STORE_REG_P): New macro.
11409 (MIPS_CALL): Support TARGET_MICROMIPS.
11410 (MICROMIPS_J): New macro.
11411 (mips_base_mips16): Rename this...
11412 (mips_base_compression_flags): ...to this.
11413 (UMIPS_12BIT_OFFSET_P): New macro.
11414 * config/mips/t-sde: (MULTILIB_OPTIONS): Add microMIPS.
11415 (MULTILIB_DIRNAMES): Likewise.
11417 2013-02-24 Jakub Jelinek <jakub@redhat.com>
11420 * target-globals.c (save_target_globals): For init_reg_sets and
11421 target_reinit remporarily set this_fn_optabs to this_target_optabs.
11423 2013-02-22 James Grennahlgh <james.greenhalgh@arm.com>
11425 * config/aarch64/aarch64-simd-builtins.def: Add copyright header.
11426 * config/aarch64/t-aarch64
11427 (aarch64-builtins.o): Depend on aarch64-simd-builtins.def.
11429 2013-02-22 Vladimir Makarov <vmakarov@redhat.com>
11431 PR inline-asm/56148
11432 * lra-constraints.c (process_alt_operands): Reload operand
11433 conflicting with earlier clobber only if no more other conflicting
11436 2013-02-22 Jakub Jelinek <jakub@redhat.com>
11439 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Link in libasan_preinit.o
11440 if not linking a shared library.
11442 2013-02-22 Seth LaForge <sethml@google.com>
11444 * config.gcc (arm*-*-eabi*): Treat arm*eb as big-endian.
11446 2013-02-22 Greta Yorsh <Greta.Yorsh@arm.com>
11448 * config/arm/arm.md (split for extendsidi): Update condition.
11449 (zero_extend<mode>di2,extend<mode>di2): Add an alternative.
11450 * config/arm/iterators.md (qhs_extenddi_cstr): Likewise.
11451 (qhs_zextenddi_cstr): Likewise.
11453 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11455 PR middle-end/56420
11456 * expmed.c (EXACT_POWER_OF_2_OR_ZERO_P): Do subtraction in uhwi, to
11457 avoid signed wrapping.
11458 (expand_mult): Handle properly multiplication by
11459 ((dword_type) -1) << (BITS_PER_WORD - 1). Improve multiplication by
11460 ((dword_type) 1) << (BITS_PER_WORD - 1). Avoid undefined behavior
11461 in the compiler if coeff is HOST_WIDE_INT_MIN.
11462 (expand_divmod): Don't make ext_op1 static, change it's type to
11463 uhwi. Avoid undefined behavior in -INTVAL (op1).
11465 PR rtl-optimization/50339
11466 * lower-subreg.h (struct lower_subreg_choices): Add splitting_ashiftrt
11468 * lower-subreg.c (compute_splitting_shift): Handle ASHIFTRT.
11469 (compute_costs): Call compute_splitting_shift also for ASHIFTRT
11470 into splitting_ashiftrt field.
11471 (find_decomposable_shift_zext, resolve_shift_zext): Handle also
11473 (dump_choices): Fix up printing LSHIFTRT choices, print ASHIFTRT
11476 2013-02-20 Aldy Hernandez <aldyh@redhat.com>
11478 PR middle-end/56108
11479 * trans-mem.c (execute_tm_mark): Do not expand transactions that
11480 are sure to go irrevocable.
11482 2013-02-21 Hans-Peter Nilsson <hp@axis.com>
11484 * doc/rtl.texi (vec_concat, vec_duplicate): Mention that
11485 scalars are valid operands.
11487 2013-02-21 Martin Jambor <mjambor@suse.cz>
11489 PR tree-optimization/56310
11490 * ipa-cp.c (agg_replacements_to_vector): New parameter index, copy
11491 only matching indices and non-negative final offsets.
11492 (intersect_aggregates_with_edge): Pass src_idx to
11493 agg_replacements_to_vector. Pass src_idx insstead of index to
11494 intersect_with_agg_replacements.
11496 2013-02-21 Martin Jambor <mjambor@suse.cz>
11498 * ipa-cp.c (good_cloning_opportunity_p): Dump the real threshold
11499 instead of hard-wired defaults.
11501 2013-02-21 Maciej W. Rozycki <macro@codesourcery.com>
11503 * doc/invoke.texi (MIPS Options): Update documentation of the
11504 floating-point multiply-accumulate instruction restrictions.
11506 2013-02-21 Kostya Serebryany <kcc@google.com>
11508 * config/i386/i386.c (ix86_asan_shadow_offset): Use 0x7fff8000 as
11509 asan_shadow_offset on x86_64 linux.
11511 2013-02-21 Richard Biener <rguenther@suse.de>
11513 PR tree-optimization/56415
11515 2013-02-11 Richard Biener <rguenther@suse.de>
11517 PR tree-optimization/56273
11518 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11521 2013-02-21 Jakub Jelinek <jakub@redhat.com>
11524 * doc/invoke.texi (-fdump-rtl-pro_and_epilogue): Use @item
11527 PR inline-asm/56405
11528 * expr.c (expand_expr_real_1) <case TARGET_MEM_REF, MEM_REF>: Don't
11529 use movmisalign or extract_bit_field for EXPAND_MEMORY modifier.
11531 2013-02-20 Jan Hubicka <jh@suse.cz>
11533 PR tree-optimization/56265
11534 * ipa-prop.c (ipa_make_edge_direct_to_target): Fixup callgraph
11535 when target is referenced for first time.
11537 2013-02-20 Richard Biener <rguenther@suse.de>
11539 * tree-call-cdce.c (tree_call_cdce): Do not remove unused locals.
11540 * tree-ssa-forwprop.c (ssa_forward_propagate_and_combine): Likewise.
11541 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
11542 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Do
11543 not return anything.
11544 (rename_ssa_copies): Do not remove unused locals.
11545 * tree-ssa-ccp.c (do_ssa_ccp): Likewise.
11546 * tree-ssanames.c (pass_release_ssa_names): Remove unused locals first.
11547 * passes.c (execute_function_todo): Do not schedule unused locals
11548 removal if cleanup_tree_cfg did something.
11549 * tree-ssa-live.c (remove_unused_locals): Dump statistics
11550 about the number of removed locals.
11552 2013-02-20 Richard Biener <rguenther@suse.de>
11554 PR tree-optimization/56398
11555 * tree-vect-loop-manip.c (adjust_debug_stmts): Skip SSA default defs.
11557 2013-02-20 Martin Jambor <mjambor@suse.cz>
11559 PR tree-optimization/55334
11560 * ipa-cp.c (initialize_node_lattices): Disable IPA-CP through and to
11561 restricted pointers to arrays.
11563 2013-02-20 Richard Biener <rguenther@suse.de>
11564 Jakub Jelinek <jakub@redhat.com>
11566 PR tree-optimization/56396
11567 * tree-ssa-ccp.c (n_const_val): New static variable.
11568 (get_value): Return NULL for SSA names we don't have a lattice
11570 (ccp_initialize): Initialize n_const_val.
11571 * tree-ssa-copy.c (n_copy_of): New static variable.
11572 (init_copy_prop): Initialize n_copy_of.
11573 (get_value): Return NULL_TREE for SSA names we don't have a
11576 2013-02-20 Martin Jambor <mjambor@suse.cz>
11578 * ipa-cp.c (initialize_node_lattices): Fix dumping condition.
11580 2013-02-20 Richard Biener <rguenther@suse.de>
11582 * genpreds.c (write_lookup_constraint): Do not compare first
11583 letter of the constraint again.
11585 2013-02-20 Richard Biener <rguenther@suse.de>
11587 * tree-ssa-loop-ivopts.c (alloc_use_cost_map): Use bitmap_count_bits
11589 (get_use_iv_cost): Terminate hashtable walk when coming across
11592 2013-02-20 Igor Zamyatin <igor.zamyatin@intel.com>
11594 * config/i386/i386.c (initial_ix86_tune_features): Turn on fp
11595 reassociation for avx2 targets.
11597 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11599 * config/microblaze/microblaze.c: microblaze_has_clz = 0
11600 Add version check for v8.10.a to enable microblaze_has_clz
11601 * config/microblaze/microblaze.h: Add TARGET_HAS_CLZ as combined
11602 version and TARGET_PATTERN_COMPARE check
11603 * config/microblaze/microblaze.md: New clzsi2 instruction
11605 2012-02-19 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11607 * config/microblaze/microblaze.md (call_value_intern): Check symbol is
11608 function before branching.
11610 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11612 * sel-sched-dump.c (dump_insn_rtx_flags): Explicitly set
11614 (dump_insn_rtx_1): Pass PATTERN (insn) to str_pattern_slim.
11616 2012-02-19 Andrey Belevantsev <abel@ispras.ru>
11618 PR middle-end/55889
11619 * sel-sched.c: Include ira.h.
11620 (implicit_clobber_conflict_p): New function.
11621 (moveup_expr): Use it.
11622 * Makefile.in (sel-sched.o): Depend on ira.h.
11624 2013-02-19 Richard Biener <rguenther@suse.de>
11626 PR tree-optimization/56384
11627 * tree-ssa-sccvn.h (struct vn_phi_s): Add type member.
11628 (vn_hash_type): Split out from ...
11629 (vn_hash_constant_with_type): ... here.
11630 * tree-ssa-sccvn.c (vn_phi_compute_hash): Use vn_hash_type.
11631 (vn_phi_eq): Compare types from vn_phi_s structure.
11632 (vn_phi_lookup): Populate vn_phi_s type.
11633 (vn_phi_insert): Likewise.
11635 2013-02-19 Jakub Jelinek <jakub@redhat.com>
11637 PR tree-optimization/56350
11638 * tree-vect-loop.c (vectorizable_reduction): If orig_stmt, return false
11639 if haven't found reduction or nested cycle operand, rather than
11640 asserting we must find it.
11642 PR tree-optimization/56381
11643 * tree-ssa-pre.c (create_expression_by_pieces): Fix up last argument
11646 2013-02-18 Aldy Hernandez <aldyh@redhat.com>
11647 Jakub Jelinek <jakub@redhat.com>
11650 * genopinit.c (raw_optab_handler): Use this_fn_optabs.
11651 (swap_optab_enable): Same.
11652 (init_all_optabs): Use argument instead of global.
11653 * tree.h (struct tree_optimization_option): New field target_optabs.
11654 * expr.h (init_all_optabs): Add argument to prototype.
11655 (TREE_OPTIMIZATION_OPTABS): New.
11656 (save_optabs_if_changed): Protoize.
11657 * optabs.h: Declare this_fn_optabs.
11658 * optabs.c (save_optabs_if_changed): New.
11659 Declare this_fn_optabs.
11660 (init_optabs): Add argument to init_all_optabs() call.
11661 * function.c (invoke_set_current_function_hook): Handle per
11663 * function.h (struct function): New field optabs.
11664 * config/mips/mips.c (mips_set_mips16_mode): Handle when
11665 optimization_current_node has changed.
11666 * target-globals.h (save_target_globals_default_opts): Protoize.
11667 * target-globals.c (save_target_globals_default_opts): New.
11669 2013-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11672 * config/pa/pa.c (pa_conditional_register_usage): On HP-UX, mark
11673 registers %fr12 and %fr12R as call used.
11676 * config/pa/predicates.md (base14_operand): Except for BLKmode, QImode
11677 and HImode, require all displacements to be an integer multiple of
11679 * config/pa/pa.c (pa_legitimate_address_p): For REG+BASE addresses,
11680 only allow QImode and HImode when reload is in progress and strict is
11681 true. Likewise for symbolic addresses. Use base14_operand to check
11682 displacements in REG+BASE addresses.
11684 2013-02-18 Richard Biener <rguenther@suse.de>
11686 PR tree-optimization/56366
11687 * tree-vect-loop.c (get_initial_def_for_induction): Properly
11688 handle sign-conversion of outer-loop initial induction value.
11690 2013-02-18 Richard Biener <rguenther@suse.de>
11692 PR middle-end/56349
11693 * cfghooks.c (merge_blocks): If we merge a latch into another
11694 block adjust references to it.
11695 * cfgloop.c (flow_loops_find): Reset latch before recomputing it.
11696 (verify_loop_structure): Verify that a recorded latch is in fact
11699 2013-02-18 Richard Biener <rguenther@suse.de>
11701 PR tree-optimization/56321
11702 * tree-ssa-reassoc.c (propagate_op_to_single_use): Properly
11703 order SSA name release and virtual operand unlinking.
11705 2013-02-17 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11707 * config/microblaze/microblaze.md (save_stack_block): Define.
11708 (restore_stack_block): Likewise.
11710 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11712 * config/microblaze/linux.h (TARGET_SUPPORTS_PIC): Define as 1.
11713 * config/microblaze/microblaze.h (TARGET_SUPPORTS_PIC): Define as 1.
11714 * config/microblaze/microblaze.c (microblaze_option_override):
11715 Bail out early for PIC modes when target does not support PIC.
11717 2013-02-16 Edgar E. Iglesias <edgar.iglesias@gmail.com>
11719 * config/microblaze/microblaze.c (microblaze_asm_trampoline_template):
11720 Replace with a microblaze version.
11721 (microblaze_trampoline_init): Adapt for microblaze.
11722 * config/microblaze/microblaze.h (TRAMPOLINE_SIZE): Adapt for
11725 2013-02-16 Jakub Jelinek <jakub@redhat.com>
11726 Dodji Seketeli <dodji@redhat.com>
11729 * asan.c (get_mem_refs_of_builtin_call): White space and style cleanup.
11730 (instrument_mem_region_access): Do not forget to always put
11731 instrumentation of the of 'base' and 'base + len' in a "if (len !=
11732 0) statement, even for cases where either 'base' or 'base + len'
11733 are not instrumented -- because they have been previously
11734 instrumented. Simplify the logic by putting all the statements
11735 instrument 'base + len' inside a sequence, and then insert that
11736 sequence right before the current insertion point. Then, to
11737 instrument 'base + len', just get an iterator on that statement.
11738 And do not forget to update the pointer to iterator the function
11739 received as argument.
11741 2013-02-15 Vladimir Makarov <vmakarov@redhat.com>
11743 PR rtl-optimization/56348
11744 * lra-assigns.c (reload_pseudo_compare_func): Prefer bigger pseudos.
11746 2013-02-15 Steven Bosscher <steven@gcc.gnu.org>
11748 * graph.c (start_graph_dump): Print dumpfile base as digraph label.
11749 (clean_graph_dump_file): Pass base to start_graph_dump.
11751 2013-02-14 Richard Henderson <rth@redhat.com>
11754 * lower-subreg.c (simple_move): Check dest mode instead of src mode.
11756 2013-02-14 Steven Bosscher <steven@gcc.gnu.org>
11758 * collect2-aix.h: Define F_LOADONLY.
11760 2013-02-14 Richard Biener <rguenther@suse.de>
11763 * varasm.c (output_constant_def_1): Get the decl representing
11764 the constant as argument.
11765 (output_constant_def): Wrap output_constant_def_1.
11766 (make_decl_rtl): Use output_constant_def_1 with the decl
11767 representing the constant.
11768 (build_constant_desc): Optionally re-use a decl already
11769 representing the constant.
11770 (tree_output_constant_def): Adjust.
11772 2013-02-14 Dodji Seketeli <dodji@redhat.com>
11775 * asan.c (instrument_builtin_call): Really put the length of the
11776 second source argument into src1_len.
11778 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11780 * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
11781 argument. If it is false, don't create edge from then_bb to
11783 (insert_if_then_before_iter): Pass true to it.
11784 (build_check_stmt): Pass false to it.
11785 (transform_statements): Flush hash table only on extended basic
11786 block boundaries, rather than at the beginning of every bb.
11787 Don't flush hash table on nonfreeing_call_p calls.
11788 * tree-flow.h (nonfreeing_call_p): New prototype.
11789 * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
11791 2013-02-13 David S. Miller <davem@davemloft.net>
11793 * expmed.c (expand_shift_1): Only strip scalar integer subregs.
11795 2013-02-13 Vladimir Makarov <vmakarov@redhat.com>
11798 * ira.c (max_regno_before_ira): Move from ...
11800 (fix_reg_equiv_init): Use max_regno_before_ira instead of
11803 2013-02-13 Jakub Jelinek <jakub@redhat.com>
11805 * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
11807 2013-02-13 Richard Biener <rguenther@suse.de>
11810 * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
11811 globals in MEM_REFs.
11813 2013-02-13 Richard Biener <rguenther@suse.de>
11815 * loop-init.c (loop_optimizer_init): Clear loop state when
11816 re-initializing preserved loops.
11817 * loop-unswitch.c (unswitch_single_loop): Return whether
11818 we unswitched the loop. Do not verify loop state here.
11819 (unswitch_loops): When we unswitched a loop discover new loops.
11821 2013-02-13 Kostya Serebryany <kcc@google.com>
11823 * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset
11825 * sanitizer.def: Rename __asan_init to __asan_init_v1.
11827 2013-02-12 Dodji Seketeli <dodji@redhat.com>
11829 Avoid instrumenting duplicated memory access in the same basic block
11830 * Makefile.in (asan.o): Add new dependency on hash-table.h
11831 * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
11832 (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
11833 (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
11834 (free_mem_ref_resources, has_mem_ref_been_instrumented)
11835 (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
11836 (get_mem_ref_of_assignment): New functions.
11837 (get_mem_refs_of_builtin_call): Extract from
11838 instrument_builtin_call and tweak a little bit to make it fit with
11840 (instrument_builtin_call): Use the new
11841 get_mem_refs_of_builtin_call. Use gimple_call_builtin_p instead
11842 of is_gimple_builtin_call.
11843 (instrument_derefs, instrument_mem_region_access): Insert the
11844 instrumented memory reference into the hash table.
11845 (maybe_instrument_assignment): Renamed instrument_assignment into
11846 this, and change it to advance the iterator when instrumentation
11847 actually happened and return true in that case. This makes it
11848 homogeneous with maybe_instrument_assignment, and thus give a
11849 chance to callers to be more 'regular'.
11850 (transform_statements): Clear the memory reference hash table
11851 whenever we enter a new BB, when we cross a function call, or when
11852 we are done transforming statements. Use
11853 maybe_instrument_assignment instead of instrumentation. No more
11854 need to special case maybe_instrument_assignment and advance the
11855 iterator after calling it; it's now handled just like
11856 maybe_instrument_call. Update comment.
11858 2013-02-13 Richard Biener <rguenther@suse.de>
11860 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
11861 Fix loop discovery code.
11863 2013-02-12 Vladimir Makarov <vmakarov@redhat.com>
11865 PR inline-asm/56148
11866 * lra-constraints.c (process_alt_operands): Match early clobber
11867 operand with itself. Check conflicts with earlyclobber only if
11868 the operand is not reloaded. Prefer to reload conflicting operand
11869 if earlyclobber and matching operands are the same.
11871 2013-02-12 Richard Biener <rguenther@suse.de>
11874 * lto-streamer-out.c (write_symbol): Do not output symbols
11875 for hard register variables.
11877 2013-02-12 Georg-Johann Lay <avr@gjlay.de>
11880 * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
11881 (umulsidi3_insn, mulsidi3_insn): New insns.
11883 2013-02-12 Christophe Lyon <christophe.lyon@linaro.org>
11885 * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
11886 (struct tune_params): Add vec_costs field.
11887 * config/arm/arm.c (arm_builtin_vectorization_cost)
11888 (arm_add_stmt_cost): New functions.
11889 (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
11890 (TARGET_VECTORIZE_ADD_STMT_COST): Define.
11891 (arm_default_vec_cost): New struct of type cpu_vec_costs.
11892 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
11893 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
11894 (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
11895 (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
11897 2013-02-12 Richard Biener <rguenther@suse.de>
11900 * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
11901 decls again if possible.
11903 2013-02-12 Richard Biener <rguenther@suse.de>
11905 PR middle-end/56288
11906 * tree-ssa.c (verify_ssa_name): Fix check, move
11907 SSA_NAME_IN_FREE_LIST check up.
11909 2013-02-12 Jakub Jelinek <jakub@redhat.com>
11910 Steven Bosscher <steven@gcc.gnu.org>
11912 PR rtl-optimization/56151
11913 * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
11914 equal to op0 or op1, and last_insn pattern is CODE operation
11915 with MEM dest and one of the operands matches that MEM.
11917 2013-02-11 Sriraman Tallam <tmsriramgoogle.com>
11919 * doc/extend.texi: Document Function Multiversioning and "default"
11920 parameter string to target attribute.
11921 * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
11922 target attribute parameter is "default".
11923 (ix86_compare_version_priority): Remove checks for target attribute.
11924 (ix86_mangle_function_version_assembler_name): Change error to sorry.
11925 Remove check for target attribute equal to NULL. Add assert.
11926 (ix86_generate_version_dispatcher_body): Change error to sorry.
11928 2013-02-11 Iain Sandoe <iain@codesourcery.com>
11929 Jack Howarth <howarth@bromo.med.uc.edu>
11930 Patrick Marlier <patrick.marlier@gmail.com>
11933 * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
11934 define ENDFILE_SPEC as TM_DESTRUCTOR.
11935 * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
11937 2013-02-11 Alexander Potapenko <glider@google.com>
11938 Jack Howarth <howarth@bromo.med.uc.edu>
11939 Jakub Jelinek <jakub@redhat.com>
11942 * config/darwin.c (cdtor_record): Rename ctor_record.
11943 (sort_cdtor_records): Rename sort_ctor_records.
11944 (finalize_dtors): New routine to sort destructors by
11945 priority before use in assemble_integer.
11946 (machopic_asm_out_destructor): Use finalize_dtors if needed.
11948 2013-02-11 Uros Bizjak <ubizjak@gmail.com>
11950 PR rtl-optimization/56275
11951 * simplify-rtx.c (avoid_constant_pool_reference): Check that
11952 offset is non-negative and less than cmode size before
11953 calling simplify_subreg.
11955 2013-02-11 Richard Biener <rguenther@suse.de>
11957 PR tree-optimization/56264
11958 * cfgloop.h (fix_loop_structure): Adjust prototype.
11959 * loop-init.c (fix_loop_structure): Return the number of
11960 newly discovered loops.
11961 * tree-cfgcleanup.c (repair_loop_structures): When new loops
11962 are discovered, do a full loop-closed SSA rewrite.
11964 2013-02-11 Richard Biener <rguenther@suse.de>
11966 PR tree-optimization/56273
11967 * tree-vrp.c (simplify_cond_using_ranges): Disable for the
11969 (check_array_ref): Fix missing newline in dumps.
11970 (search_for_addr_array): Likewise.
11972 2013-02-09 David Edelsohn <dje.gcc@gmail.com>
11974 * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
11976 2013-02-09 Jakub Jelinek <jakub@redhat.com>
11979 * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
11981 2013-02-08 Vladimir Makarov <vmakarov@redhat.com>
11983 PR rtl-optimization/56246
11984 * lra-constraints.c (simplify_operand_subreg): Try to reuse
11986 * lra.c (lra): Clear lra_optional_reload_pseudos only when all
11987 constraints are satisfied.
11989 2013-02-08 Jeff Law <law@redhat.com>
11992 * emit-rtl.c (reg_is_parm_p): New function.
11993 * regs.h (reg_is_parm_p): New prototype.
11994 * ira-conflicts.c (ira_build_conflicts): Allow parameters in
11995 callee-clobbered registers.
11997 2013-02-08 Michael Meissner <meissner@linux.vnet.ibm.com>
12000 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
12001 If there is no implicit builtin declaration, just return NULL.
12003 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12005 * config/i386/sse.md (FMAMODEM): New mode iterator.
12006 (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
12007 mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
12009 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12011 * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
12012 when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
12013 * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
12015 2013-02-08 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12017 * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
12018 (microblaze*-*-elf): Likewise.
12019 * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
12021 * config/microblaze/microblaze-c.c: Add builtin defines for
12022 _LITTLE_ENDIAN and _BIG_ENDIAN.
12023 * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
12024 add to TARGET_DEFAULT flags.
12025 Expand ASM_SPEC and LINK_SPEC.
12026 Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
12027 * config/microblaze/microblaze.md: Update extendsidi2 and
12028 movdi_internal instructions to use low-order / high-order reg
12030 * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
12031 options and inversemask / mask of LITTLE_ENDIAN.
12032 * config/microblaze/t-microblaze: Expand multilib options to
12033 include mlittle-endian (le) and update exceptions patterns.
12035 2013-02-08 Jakub Jelinek <jakub@redhat.com>
12037 PR rtl-optimization/56195
12038 * lra-constraints.c (get_reload_reg): Don't reuse regs
12039 if they have smaller mode than requested, if they have
12040 wider mode than requested, try to return a SUBREG.
12042 PR tree-optimization/56250
12043 * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
12044 if type is unsigned and code isn't MULT_EXPR.
12046 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12048 PR tree-optimization/56064
12049 * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
12050 bits according to mode.
12051 * fixed-value.h (fixed_from_double_int)
12052 (const_fixed_from_double_int): Adjust comments.
12054 2013-02-08 Richard Biener <rguenther@suse.de>
12057 * lto-streamer.h (struct data_in): Remove current_file, current_line
12058 and current_col members.
12059 * lto-streamer-out.c (lto_output_location): Stream changed bits
12060 en-block for efficiency.
12061 * lto-streamer-in.c (clear_line_info): Remove.
12062 (lto_input_location): Cache current file, line and column
12063 globally via local statics. Read changed bits en-block.
12064 (input_function): Do not call clear_line_info.
12065 (lto_read_body): Likewise.
12066 (lto_input_toplevel_asms): Likewise.
12068 2013-02-08 Michael Matz <matz@suse.de>
12070 PR tree-optimization/52448
12071 * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
12072 (nt_call_phase): New static.
12073 (add_or_mark_expr): Only mark accesses with newer phase than any
12075 (nonfreeing_call_p): New.
12076 (nt_init_block): Update nt_call_phase, mark blocks as visited.
12077 (nt_fini_block): Keep blocks marked as visited.
12078 (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
12080 2013-02-08 Richard Biener <rguenther@suse.de>
12082 * ira.c (ira): Free broken dominator information.
12084 2013-02-08 Uros Bizjak <ubizjak@gmail.com>
12086 * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
12088 2013-02-08 Marek Polacek <polacek@redhat.com>
12090 * cfgloop.c (verify_loop_structure): Add more checking of headers.
12092 2013-02-08 Richard Biener <rguenther@suse.de>
12094 PR middle-end/56181
12095 * cfgloop.h (flow_loops_find): Adjust.
12096 (bb_loop_header_p): Declare.
12097 * cfgloop.c (bb_loop_header_p): New function split out from ...
12098 (flow_loops_find): ... here. Adjust function signature,
12099 support incremental loop structure update.
12100 (verify_loop_structure): Cleanup. Verify a loop is a loop.
12101 * cfgloopmanip.c (fix_loop_structure): Move ...
12102 * loop-init.c (fix_loop_structure): ... here.
12103 (apply_loop_flags): Split out from ...
12104 (loop_optimizer_init): ... here.
12105 (fix_loop_structure): Use apply_loop_flags. Use flow_loops_find
12106 in incremental mode, only remove dead loops here.
12108 2013-02-08 Georg-Johann Lay <avr@gjlay.de>
12111 * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
12112 * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
12113 (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
12114 (*round<mode>3.libgcc): New insns for fixed-modes.
12115 * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
12116 (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
12117 (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
12118 * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
12119 implementations. Define to __builtin_avr_absFX,
12120 __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
12121 (roundFX, countlsFX): Define to __builtin_avr_roundFX,
12122 __builtin_avr_countlsFX, respectively.
12123 * config/avr/avr-c.c (target.h): Include it.
12124 (enum avr_builtin_id): New enum.
12125 (avr_resolve_overloaded_builtin): New static function.
12126 (avr_register_target_pragmas): Use it to set
12127 targetm.resolve_overloaded_builtin.
12128 * config/avr/avr.c (avr_init_builtins): Supply myriads of local
12129 tree nodes used by DEF_BUILTIN.
12130 (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
12131 (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
12132 <AVR_BUILTIN_xxBITS>: Same.
12134 2013-02-08 Richard Biener <rguenther@suse.de>
12136 * cfgloop.c (verify_loop_structure): Properly handle
12137 a loop exiting to another loop header.
12138 * ira-int.h (ira_loops): Remove.
12139 * ira.c (ira_loops): Remove.
12140 (ira): Use loop_optimizer_init and loop_optimizer_finalize.
12141 (do_reload): Use loop_optimizer_finalize.
12142 * ira-build.c (create_loop_tree_nodes): Use get_loops and
12143 number_of_loops to access the loop tree.
12144 (more_one_region_p): Likewise.
12145 (finish_loop_tree_nodes): Likewise.
12146 (rebuild_regno_allocno_maps): Likewise.
12147 (mark_loops_for_removal): Likewise.
12148 (mark_all_loops_for_removal): Likewise.
12149 (remove_unnecessary_regions): Likewise.
12150 (ira_build): Likewise.
12151 * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
12153 2013-02-08 Richard Biener <rguenther@suse.de>
12155 * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
12156 * ipa-pure-const.c (analyze_function): Avoid calling
12157 mark_irreducible_loops twice.
12158 * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
12160 2013-02-07 David S. Miller <davem@davemloft.net>
12162 * dwarf2out.c (based_loc_descr): Perform leaf register remapping
12164 * var-tracking.c (vt_add_function_parameter): Test the presence of
12165 HAVE_window_save properly and do not remap argument registers when
12166 we have a leaf function.
12168 2013-02-07 Uros Bizjak <ubizjak@gmail.com>
12171 * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
12173 * config/i386/i386.c (ix86_print_operand): Ditto.
12175 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12177 * lra-constraints.c (process_alt_operands): Fix recently added comment.
12179 2013-02-07 Vladimir Makarov <vmakarov@redhat.com>
12181 PR rtl-optimization/56225
12182 * lra-constraints.c (process_alt_operands): Check that reload hard
12183 reg can hold value for strict_low_part.
12185 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12188 * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
12189 dwarf2out_end_function.
12190 (in_first_function_p, maybe_at_text_label_p,
12191 first_loclabel_num_not_at_text_label): New variables.
12192 (dwarf2out_var_location): In the first function find out
12193 lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
12194 (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
12197 2013-02-07 Eric Botcazou <ebotcazou@adacore.com>
12199 PR rtl-optimization/56178
12200 * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
12201 SUBREG of a register. Tidy up related block of code.
12202 * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
12203 note if the source is a register or a SUBREG of a register.
12205 2013-02-07 Jakub Jelinek <jakub@redhat.com>
12208 * config/rs6000/rs6000.md (ptrm): New mode attr.
12209 (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
12210 call_value_indirect_aix<pttrsize>,
12211 call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
12214 2013-02-07 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12216 * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
12217 if -bnortl. Convert to strcmp and strncmp.
12219 2013-02-07 Alan Modra <amodra@gmail.com>
12222 * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
12223 addresses won't wrap when offsetting.
12224 (rs6000_secondary_reload): Provide secondary reloads needed for
12225 wrapping LO_SUM addresses.
12227 2013-02-06 Thomas Schwinge <thomas@codesourcery.com>
12229 * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
12230 MACH, just __MACH__.
12232 2013-02-06 Richard Biener <rguenther@suse.de>
12234 * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
12235 instead of calling fix_loop_structure.
12237 2013-02-06 Jakub Jelinek <jakub@redhat.com>
12239 PR middle-end/56217
12240 * omp-low.c (use_pointer_for_field): Return false if
12241 lower_send_shared_vars doesn't generate any copy-out code.
12243 2013-02-06 Tom de Vries <tom@codesourcery.com>
12245 PR rtl-optimization/56131
12246 * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
12247 to get the bb of a NOTE_INSN_BASIC_BLOCK. Handle the case that the bb
12248 of the label is NULL. Add comment.
12250 2013-02-05 Jakub Jelinek <jakub@redhat.com>
12252 * tree.h (struct tree_decl_with_vis): Remove thread_local field.
12255 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
12256 (STATIC_LIBTSAN_LIBS): Likewise.
12257 * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
12258 (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
12259 is defined, don't add anything else beyond that.
12260 (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
12261 (LINK_COMMAND_SPEC): Use them.
12263 PR tree-optimization/56205
12264 * tree-stdarg.c (check_all_va_list_escapes): Return true if
12265 there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
12266 and some va_list_escape_vars SSA_NAME appears in some PHI argument.
12268 2013-02-05 Richard Biener <rguenther@suse.de>
12270 PR tree-optimization/53342
12271 PR tree-optimization/53185
12272 * tree-vectorizer.h (vect_check_strided_load): Remove.
12273 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
12274 not disallow peeling for vectorized strided loads.
12275 (vect_check_strided_load): Make static and simplify.
12276 (vect_analyze_data_refs): Adjust.
12277 * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
12278 correctly when vectorizing strided loads.
12280 2013-02-05 Richard Biener <rguenther@suse.de>
12282 * doc/install.texi: Refer to ISL, not PPL.
12284 2013-02-05 Jan Hubicka <jh@suse.cz>
12286 PR tree-optimization/55789
12287 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
12289 2013-02-05 Jan Hubicka <jh@suse.cz>
12291 PR tree-optimization/55789
12292 * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
12293 the dead call anyway.
12295 2013-02-05 Eric Botcazou <ebotcazou@adacore.com>
12298 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
12300 2013-02-04 Alexander Potapenko <glider@google.com>
12301 Jack Howarth <howarth@bromo.med.uc.edu>
12302 Jakub Jelinek <jakub@redhat.com>
12305 * config/darwin.c (sort_ctor_records): Stabilized qsort
12306 on constructor priority by using original position.
12307 (finalize_ctors): New routine to sort constructors by
12308 priority before use in assemble_integer.
12309 (machopic_asm_out_constructor): Use finalize_ctors if needed.
12311 2013-02-04 Jakub Jelinek <jakub@redhat.com>
12314 * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
12315 about visibility on artificial decls.
12316 * config/sol2.c (solaris_assemble_visibility): Likewise.
12318 2013-02-04 Kai Tietz <ktietz@redhat.com>
12321 * config/i386/i386.c (function_value_ms_64): Add additional valtype
12322 argument and improve checking of return-argument types for 16-byte
12324 (ix86_function_value_1): Add additional valtype argument on call
12325 of function_value_64.
12326 (return_in_memory_ms_64): Sync 16-byte sized mode handling with
12327 handling infunction_value_64 function.
12329 2013-02-04 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
12331 * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
12333 2013-02-04 Richard Biener <rguenther@suse.de>
12335 PR tree-optimization/56188
12336 * tree-ssa-structalias.c (label_visit): Consider case with
12337 initially non-empty points-to set.
12338 (perform_var_substitution): Dump node mapping and clean up.
12340 2013-02-04 Richard Guenther <rguenther@suse.de>
12343 * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
12344 node prevail as last resort.
12345 (lto_symtab_merge_decls): Remove guard on LTRANS here.
12346 (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
12348 2013-02-04 Richard Biener <rguenther@suse.de>
12350 PR tree-optimization/56113
12351 * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
12353 (equiv_class_lookup_or_add): ... this.
12354 (label_visit): Adjust and fix error in previous patch.
12355 (perform_var_substitution): Adjust.
12357 2013-02-03 Oleg Endo <olegendo@gcc.gnu.org>
12359 * config/sh/divtab.c: Fix formatting and comments throughout the file.
12360 * config/sh/sh4-300.md: Likewise.
12361 * config/sh/sh4a.md: Likewise.
12362 * config/sh/constraints.md: Likewise.
12363 * config/sh/sh.md: Likewise.
12364 * config/sh/netbsd-elf.h: Likewise.
12365 * config/sh/predicates.md: Likewise.
12366 * config/sh/sh-protos.h: Likewise.
12367 * config/sh/ushmedia.h: Likewise.
12368 * config/sh/linux.h: Likewise.
12369 * config/sh/sh.c: Likewise.
12370 * config/sh/superh.h: Likewise.
12371 * config/sh/elf.h: Likewise.
12372 * config/sh/sh4.md: Likewise.
12373 * config/sh/sh.h: Likewise.
12375 2013-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12377 * config/pa/constraints.md: Adjust unused letters. Change "T"
12378 constraint to match_test floating_point_store_memory_operand().
12379 * config/pa/predicates.md (reg_plus_base_memory_operand): New.
12380 (base14_operand): New.
12381 (floating_point_store_memory_operand): New.
12382 (integer_store_memory_operand): Revise to use base14_operand and
12383 reg_plus_base_memory_operand.
12384 (move_dest_operand): Allow symbolic_memory_operands.
12385 (symbolic_memory_operand): Check for LO_SOM.
12386 (symbolic_operand): Change default case to break.
12387 * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
12388 CONST_DOUBLE values to be reloaded by putting them into memory when
12389 the destination is a floating point register.
12390 (movdf): Remove code to handle CONST_DOUBLE.
12392 (reload_indf_r1): New.
12393 (reload_insf_r1): New.
12394 Consistently use "Q" and "T" constraints with integer and floating
12395 point move instructions, respectively.
12396 (movdi): Remove FAIL.
12397 Change predicate for source operand unamed DImode move from
12398 general_operand to move_src_operand.
12399 (umulsidi3): Change predicate for destination operand to
12401 Likewise for similar unamed patterns.
12402 * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
12403 * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
12404 (hppa_legitimize_address): Simplify mask calculation.
12405 (pa_emit_move_sequence): Revised handling of secondary reloads from
12406 REG+D addresses for floating point loads and stores. Directly handle
12407 loading CONST0_RTX (mode) to a floating point register.
12408 (pa_secondary_reload): Handle reloading DF and SFmode constant values
12409 to floating point registers. Don't restrict secondary reloads to
12410 floating point registers to integer modes. Revise some comments and
12412 (TARGET_LEGITIMATE_ADDRESS_P): Define.
12413 (pa_legitimate_address_p): New.
12414 (pa_legitimize_reload_address): New.
12415 * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
12416 (STRICT_REG_OK_FOR_BASE_P): New.
12417 (GO_IF_LEGITIMATE_ADDRESS): Delete. Update some related comments.
12418 (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
12420 2013-02-03 David Edelsohn <dje.gcc@gmail.com>
12421 Andrew Dixie <andrewd@gentrack.com>
12423 * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
12426 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
12428 * expmed.c (extract_bit_field_1): Pass the full width of the
12429 structure to get_best_reg_extraction_insn.
12431 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12434 * configure.ac (use_cxa_atexit): Add AIX.
12435 * configure: Regenerate.
12437 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
12439 2013-02-01 Jakub Jelinek <jakub@redhat.com>
12442 * final.c (need_profile_function): New variable.
12443 (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
12444 If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
12445 is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
12446 notes, targetm.asm_out.function_prologue doesn't emit anything,
12447 HAVE_prologue and profiler should be emitted before prologue,
12448 set need_profile_function instead of emitting it.
12449 (final_scan_insn): If need_profile_function, emit
12450 profile_function on the first NOTE_INSN_BASIC_BLOCK or
12451 NOTE_INSN_FUNCTION_BEG note.
12453 2013-02-01 Richard Henderson <rth@redhat.com>
12455 * config/rs6000/rs6000.md (smulditi3): New.
12458 * config/alpha/alpha.md (umulditi3): New.
12460 2013-02-01 David Edelsohn <dje.gcc@gmail.com>
12462 * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
12463 (ASM_OUTPUT_ALIGNED_LOCAL): New.
12465 2013-02-01 Richard Biener <rguenther@suse.de>
12467 PR tree-optimization/56113
12468 * tree-ssa-structalias.c (label_visit): Reduce work for
12469 single-predecessor nodes.
12471 2013-02-01 Eric Botcazou <ebotcazou@adacore.com>
12473 * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
12474 range isn't testing for zero.
12476 2013-01-31 Steven Bosscher <steven@gcc.gnu.org>
12478 PR middle-end/56113
12479 * fwprop.c (fwprop_init): Set up loops without CFG modifications.
12481 2013-01-31 Hiroyuki Ono <hiroyuki.ono.jc@renesas.com>
12482 Nick Clifton <nickc@redhat.com>
12484 * config/v850/constraints.md (Q): Define as a memory constraint.
12485 * config/v850/predicates.md (label_ref_operand): New predicate.
12486 (e3v5_shift_operand): New predicate.
12487 (ior_operator): New predicate.
12488 * config/v850/t-v850: Add e3v5 multilib.
12489 * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
12490 (v850_gen_movdi): Prototype.
12491 * config/v850/v850.c: Add support for e3v5 architecture.
12492 Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
12494 (construct_save_jarl): Add e3v5 long JARL support.
12495 (v850_adjust_insn_length): New function. Adjust length of call
12496 insns when using e3v5 instructions.
12497 (v850_gen_movdi): New function: Generate instructions to move a
12499 * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
12500 (CPP_SPEC): Define __v850e3v5__ as appropriate.
12501 (TARGET_USE_FPU): Enable for e3v5.
12502 (CONST_OK_FOR_W): New macro.
12503 (ADJUST_INSN_LENGTH): Define.
12504 * config/v850/v850.md (UNSPEC_LOOP): Define.
12505 (attr cpu): Add v850e3v5.
12506 Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
12507 (movdi): New pattern.
12508 (movdi_internal): New pattern.
12509 (cbranchsf4): Conditionalize on TARGET_USE_FPU.
12510 (cbranchdf4): Conditionalize on TARGET_USE_FPU.
12511 (cstoresf4): Likewise.
12512 (cstoredf4): Likewise.
12513 (insv): New pattern.
12514 (rotlso3_a): New pattern.
12515 (rotlsi3_b): New pattern
12516 (rotlsi3_v850e3v5): New pattern.
12517 (doloop_begin): New pattern.
12518 (fix_loop_counter): New pattern.
12519 (doloop_end): New pattern.
12520 (branch_normal): Add e3v5 long branch support.
12521 (branch_invert): Likewise.
12522 (branch_z_normal): Likewise.
12523 (branch_z_invert): Likewise.
12524 (branch_nz_normal): Likewise.
12525 (branch_nz_invert): Likewise.
12526 (call_internal_short): Add e3v5 register-indirect JARL support.
12527 (call_internal_long): Likewise.
12528 (call_value_internal_short): Likewise.
12529 (call_value_internal_long): Likewise.
12530 * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
12531 (mloop): New option.
12532 * config.gcc: Add support for configuring v840e3v5 target.
12533 * doc/invoke.texi: Document new v850 specific command line options.
12535 2013-01-31 Paul Koning <ni1d@arrl.net>
12539 * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
12540 children if parent is a class.
12541 (prune_unused_types_prune): Don't add DW_AT_declaration.
12543 2013-01-31 Richard Biener <rguenther@suse.de>
12545 PR tree-optimization/56157
12546 * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
12547 match up operand with SLP child.
12549 2013-01-31 Jason Merrill <jason@redhat.com>
12552 * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
12553 parameters the first time.
12554 (gen_scheduled_generic_parms_dies): Check completeness here.
12556 2013-01-31 Richard Biener <rguenther@suse.de>
12558 PR middle-end/53073
12559 * common.opt (faggressive-loop-optimizations): New flag,
12560 enabled by default.
12561 * doc/invoke.texi (faggressive-loop-optimizations): Document.
12562 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
12563 infer_loop_bounds_from_undefined by it.
12565 2013-01-31 Richard Biener <rguenther@suse.de>
12567 PR tree-optimization/56150
12568 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
12569 visit virtual operands.
12570 (find_uses_to_rename_bb): Likewise.
12572 2013-01-31 Richard Biener <rguenther@suse.de>
12574 PR tree-optimization/56150
12575 * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
12576 mixed store non-store stmts.
12578 2013-01-30 Jakub Jelinek <jakub@redhat.com>
12581 * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
12582 LIBASAN_EARLY_SPEC is defined.
12583 (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
12584 (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
12586 * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
12589 * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
12590 invalid args instead of ICEing on it.
12591 (ix86_valid_target_attribute_tree): Return error_mark_node if
12592 ix86_valid_target_attribute_inner_p failed.
12593 (ix86_valid_target_attribute_p): Return false only if
12594 ix86_valid_target_attribute_tree returned error_mark_node. Allow
12595 target("default") attribute.
12596 (sorted_attr_string): Change argument from const char * to tree,
12597 merge in all target attribute arguments rather than just one.
12598 Formatting fix. Use XNEWVEC instead of xmalloc and XDELETEVEC
12599 instead of free. Avoid using strcat.
12600 (ix86_mangle_function_version_assembler_name): Mangle
12601 target("default") as if no target attribute is present. Adjust
12602 sorted_attr_string caller. Avoid leaking memory. Use XNEWVEC
12603 instead of xmalloc and XDELETEVEC instead of free.
12604 (ix86_function_versions): Don't return true if one of the decls
12605 doesn't have target attribute. If they don't and one of the decls
12606 is DECL_FUNCTION_VERSIONED, report an error. Adjust
12607 sorted_attr_string caller. Use XDELETEVEC instead of free.
12608 (ix86_supports_function_versions): Remove.
12609 (make_name): Fix up formatting.
12610 (make_dispatcher_decl): Remove resolver_name and its initialization.
12611 Avoid leaking memory.
12612 (is_function_default_version): Return true if there is
12613 target("default") attribute rather than no target attribute at all.
12614 (make_resolver_func): Avoid leaking memory.
12615 (ix86_generate_version_dispatcher_body): Likewise.
12616 (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
12617 * target.def (supports_function_versions): Remove.
12618 * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
12619 * doc/tm.texi: Regenerated.
12621 2013-01-30 Vladimir Makarov <vmakarov@redhat.com>
12623 PR rtl-optimization/56144
12624 * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
12625 for values with side effects.
12627 2013-01-30 Richard Biener <rguenther@suse.de>
12629 * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
12630 (sparseset_pop): Likewise.
12631 * cfganal.c (compute_idf): Likewise. Increase work-stack size
12632 to be able to use quick_push in the worker loop.
12634 2013-01-30 Marek Polacek <polacek@redhat.com>
12636 * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
12638 2013-01-30 Richard Biener <rguenther@suse.de>
12641 * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
12643 2013-01-30 Georg-Johann Lay <avr@gjlay.de>
12645 PR tree-optimization/56064
12646 * fixed-value.c (fixed_from_double_int): New function.
12647 * fixed-value.h (fixed_from_double_int): New prototype.
12648 (const_fixed_from_double_int): New static inline function.
12649 * fold-const.c (native_interpret_fixed): New static function.
12650 (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
12651 (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
12652 (native_encode_fixed): New static function.
12653 (native_encode_expr) <FIXED_CST>: Use it.
12654 (native_interpret_int): Move double_int worker code to...
12655 * double-int.c (double_int::from_buffer): ...this new static method.
12656 * double-int.h (double_int::from_buffer): Prototype it.
12658 2013-01-30 Richard Biener <rguenther@suse.de>
12660 * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
12661 New pointer-map and obstack.
12662 (init_alias_vars): Allocate pointer-map and obstack.
12663 (delete_points_to_sets): Free them.
12664 (find_what_var_points_to): Cache result.
12665 (find_what_p_points_to): Adjust for changed interface of
12666 find_what_var_points_to.
12667 (compute_points_to_sets): Likewise.
12668 (ipa_pta_execute): Likewise.
12670 2013-01-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12672 * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
12673 * configure: Regenerate.
12674 * config.in: Regenerate.
12675 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
12676 #nobits/#progbits if supported.
12678 2013-01-29 Oleg Endo <olegendo@gcc.gnu.org>
12681 * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
12682 bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
12683 bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
12685 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12687 * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
12688 (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
12690 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12692 * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
12693 * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
12695 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12697 * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
12699 * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
12700 * config/arm/cortex-a7.md: New bypasses using
12701 arm_mac_accumulator_is_result.
12703 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12705 * config/arm/cortex-a7.md (cortex_a7_neon_mul): New reservation.
12706 (cortex_a7_neon_mla): Likewise.
12707 (cortex_a7_fpfmad): New reservation.
12708 (cortex_a7_fpmacs): Use ffmas and update required units.
12709 (cortex_a7_fpmuld): Update required units and latency.
12710 (cortex_a7_fpmacd): Likewise.
12711 (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
12712 (cortex_a7_neon). Likewise.
12713 (bypass) Update participating units.
12715 2013-01-29 Greta Yorsh <Greta.Yorsh@arm.com>
12717 * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
12718 * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
12720 * config/arm/vfp11.md (vfp_farith): Use ffmas.
12721 (vfp_fmul): Use ffmad.
12722 * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
12723 (cortex_r4_fmacd): Use ffmad.
12724 * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
12725 * config/arm/cortex-a9.md (cortex_a9_fmacs): Use ffmas.
12726 (cortex_a9_fmacd): Use ffmad.
12727 * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
12728 (cortex_a8_vfp_macd): Use ffmad.
12729 * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
12730 (cortex_a5_fpmacd): Use ffmad.
12731 * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
12732 (cortex_a15_vfp_macd): Use ffmad.
12733 * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
12735 2013-01-29 Jason Merrill <jason@redhat.com>
12738 * varasm.c (default_assemble_visibility): Don't warn about
12739 visibility on artificial decls.
12741 2013-01-29 Richard Biener <rguenther@suse.de>
12743 PR tree-optimization/56113
12744 * tree-ssa-structalias.c (equiv_class_lookup): Also return
12746 (label_visit): Free duplicate bitmaps and record the leader instead.
12747 (perform_var_substitution): Adjust.
12749 2013-01-29 Richard Biener <rguenther@suse.de>
12751 PR tree-optimization/55270
12752 * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
12753 the CFG, schedule loops for fixup.
12755 2013-01-29 Nick Clifton <nickc@redhat.com>
12757 * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
12760 2013-01-28 Leif Ekblad <leif@rdos.net>
12762 * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
12763 * config/i386/i386.h (TARGET_RDOS): New macro.
12764 (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
12765 * config/i386/i386.c (ix86_option_override_internal): For 64bit
12766 TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
12767 * config/i386/i386.opt (mlarge-data-threshold): Initialize to
12768 DEFAULT_LARGE_SECTION_THRESHOLD.
12769 * config/i386/i386.md (R14_REG, R15_REG): New constants.
12770 * config/i386/rdos.h: New file.
12771 * config/i386/rdos64.h: New file.
12773 2013-01-28 Bernd Schmidt <bernds@codesourcery.com>
12776 * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
12779 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12781 PR rtl-optimization/56117
12782 * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
12783 call cselib_lookup_from_insn on the MEM before calling
12784 add_insn_mem_dependence.
12786 2013-01-28 Richard Biener <rguenther@suse.de>
12788 * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
12789 to a stmt that didn't have one.
12790 (copy_phis_for_bb): Likewise for PHI arguments.
12791 (copy_debug_stmt): Likewise for debug stmts.
12793 2013-01-28 Richard Biener <rguenther@suse.de>
12795 PR tree-optimization/56034
12796 * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
12797 (partition_builtin_p): Adjust.
12798 (generate_code_for_partition): Handle PKIND_REDUCTION. Assert
12799 it is the last partition.
12800 (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
12801 up the vertex for the definition.
12802 (classify_partition): Classify whether a partition is a
12803 PKIND_REDUCTION, thus has uses outside of the loop.
12804 (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
12805 Merge all PKIND_REDUCTION partitions into the last partition.
12806 (tree_loop_distribution): Seed partitions from reductions as well.
12808 2013-01-28 Jakub Jelinek <jakub@redhat.com>
12810 PR tree-optimization/56125
12811 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
12812 pow(x,c) into sqrt(x) * powi(x, n/2) or
12813 1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
12814 optimizing for size.
12815 Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
12816 1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
12819 PR tree-optimization/56094
12820 * gimplify.c (force_gimple_operand_1): Temporarily set input_location
12821 to UNKNOWN_LOCATION while gimplifying expr.
12823 2013-01-27 Uros Bizjak <ubizjak@gmail.com>
12826 * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
12827 operand 0 in movabs insn template for -masm=intel asm alternative.
12828 (*movabs<mode>_2): Ditto for operand 1.
12830 2013-01-26 David Holsgrove <david.holsgrove@xilinx.com>
12833 * config.gcc (microblaze*-linux*): Add tmake_file to allow building
12836 2013-01-26 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12838 * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
12841 2013-01-25 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12843 * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
12844 Undef to avoid warning.
12846 2013-01-25 Michael Haubenwallner <michael.haubenwallner@salomon.at>
12848 * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
12849 * configure: Regenerate.
12851 2013-01-25 Jakub Jelinek <jakub@redhat.com>
12853 PR tree-optimization/56098
12854 * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
12855 for stmts with volatile ops.
12856 (cond_store_replacement): Don't optimize if assign has volatile ops.
12857 (cond_if_else_store_replacement_1): Don't optimize if either
12858 then_assign or else_assign have volatile ops.
12859 (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
12862 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12864 * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
12866 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12868 * doc/extend.texi (Example of asm with clobbered asm reg): Fix
12869 missing ':' in asm example.
12871 2013-01-25 Tejas Belagod <tejas.belagod@arm.com>
12873 * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
12874 entries into lane and laneq entries.
12875 * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
12876 Remove AdvSIMD scalar modes.
12877 (aarch64_sq<r>dmulh_laneq<mode>): New.
12878 (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
12880 * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
12881 builtin implementations to relfect changes in RTL in aarch64-simd.md.
12882 * config/aarch64/iterators.md (VCOND): New.
12885 2013-01-25 Georg-Johann Lay <avr@gjlay.de>
12888 * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
12889 Add NULL LIBNAME argument to existing definitions.
12890 (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
12891 * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
12892 * config/avr/avr.c (DEF_BUILTIN): Same.
12893 (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
12894 (avr_expand_builtin): Expand to a vanilla call if a libgcc
12895 implementation is available (DECL_ASSEMBLER_NAME is set).
12896 (avr_fold_absfx): New static function.
12897 (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
12898 AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
12899 AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
12900 AVR_BUILTIN_ABSLLK.
12901 * config/avr/stdfix.h (abshr, absr, abslr, absllr)
12902 (abshk, absk, abslk, absllk): Provide as static inline functions.
12904 2013-01-25 Marek Polacek <polacek@redhat.com>
12906 PR tree-optimization/56035
12907 * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
12909 2012-01-24 Uros Bizjak <ubizjak@gmail.com>
12911 * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
12912 (*movtf_internal_rex64): Add (!o,C) alternative
12913 (*movxf_internal_rex64): Ditto.
12914 (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
12916 2013-01-24 Shenghou Ma <minux.ma@gmail.com>
12918 * doc/invoke.texi: fix typo.
12919 * doc/objc.texi: fix typo.
12921 2013-01-24 Richard Sandiford <rdsandiford@googlemail.com>
12923 * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
12924 for the first two alternatives.
12926 2013-01-24 Diego Novillo <dnovillo@google.com>
12928 * Makefile.in (GGC): Remove. Replace all instances with ggc-page.o.
12929 (ggc-zone.o): Remove.
12930 * configure.ac: Remove option --with-gc.
12931 * configure: Re-generate.
12932 * doc/install.texi: Remove documentation for --with-gc.
12933 * gengtype.c (write_enum_defn): Remove. Update all users.
12934 (write_Types_process_field): Remove generation of gt_e_* argument.
12935 (output_type_enum): Remove. Update all users.
12936 (write_enum_defn): Remove. Update all users.
12937 (enum alloc_zone): Remove. Update all users.
12938 (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
12939 * ggc-common.c (ggc_splay_alloc): Remove first argument.
12940 Update all callers.
12941 (struct ptr_data): Remove field TYPE. Update all users.
12942 (gt_pch_note_object): Remove argument TYPE. Update all users.
12943 * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
12945 * ggc-none.c (ggc_alloc_typed_stat): Remove.
12946 (struct alloc_zone): Remove.
12947 (ggc_internal_alloc_zone_stat): Remove.
12948 (ggc_internal_cleared_alloc_zone_stat): Remove.
12949 * ggc-page.c (ggc_alloc_typed_stat): Remove.
12950 (ggc_pch_count_object): Remove last argument. Update all users.
12951 (ggc_pch_alloc_object): Remove last argument. Update all users.
12952 (struct alloc_zone): Remove.
12953 * ggc-zone.c: Remove.
12954 * ggc.h (gt_pch_note_object): Remove last argument. Update all users.
12955 (struct alloc_zone): Remove.
12956 (ggc_alloc_typed_stat): Remove.
12957 (ggc_alloc_typed): Remove.
12958 (ggc_splay_alloc): Remove first argument.
12959 (rtl_zone): Remove. Update all users.
12960 (tree_zone): Remove. Update all users.
12961 (tree_id_zone): Remove. Update all users.
12962 (ggc_internal_zone_alloc_stat): Remove. Update all users.
12963 (ggc_internal_zone_cleared_alloc_stat): Remove. Update all users.
12964 (ggc_internal_zone_vec_alloc_stat): Remove. Update all users.
12965 * tree-ssanames.c: Remove references to zone allocator in comments.
12967 2013-01-24 Georg-Johann Lay <avr@gjlay.de>
12969 * config/avr/avr.c (avr_out_fract): Make register numbers that
12970 might be outside of source operand signed.
12972 2013-01-24 Uros Bizjak <ubizjak@gmail.com>
12974 * config/i386/constraints.md (Yf): New constraint.
12975 * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
12976 of f constraint to conditionaly disable x87 register preferences.
12977 (*movdf_internal): Ditto.
12978 (*movsf_internal): Ditto.
12980 2013-01-24 Steven Bosscher <steven@gcc.gnu.org>
12982 PR inline-asm/55934
12983 * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
12984 that have operands with impossible constraints.
12985 Add a FIXME for a speed-up opportunity.
12986 * lra-constraints.c (process_alt_operands): Verify that a class
12987 selected from constraints on asms is valid for the operand mode.
12988 (curr_insn_transform): Remove incorrect comment.
12990 2013-01-23 David Edelsohn <dje.gcc@gmail.com>
12992 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
12993 TOC operand is a valid symbol ref in the constant pool.
12995 2013-01-23 Edgar E. Iglesias <edgar.iglesias@gmail.com>
12997 * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
12999 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
13002 * config/avr/stdfix.h: New file.
13003 * t-avr (stdfix-gcc.h): New rule to build it.
13004 (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
13006 2013-01-23 Kostya Serebryany <kcc@google.com>
13008 * config/darwin.h: remove dependency on
13009 CoreFoundation (asan on Mac OS).
13011 2013-01-23 Jakub Jelinek <jakub@redhat.com>
13014 * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
13015 instead of cmpdi_operand for first comparison operand.
13016 Don't assert that comparison operands aren't both constants.
13018 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13020 * doc/install.texi (Downloading the Source): Update references to
13021 downloading separate components.
13023 2013-01-22 Jonathan Wakely <jwakely.gcc@gmail.com>
13025 * doc/extend.texi (__int128): Improve grammar.
13027 2013-01-22 Uros Bizjak <ubizjak@gmail.com>
13030 * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
13031 alternative to (o,r).
13032 (*movdi_internal_rex64): Remove (!o,n) alternative.
13033 (DImode immediate->memory splitter): Remove.
13034 (DImode immediate->memory peephole2): Remove.
13035 (movtf): Enable for TARGET_64BIT || TARGET_SSE.
13036 (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
13037 alternative to (!o,*r).
13038 (*movtf_internal_sse): New pattern.
13039 (*movxf_internal_rex64): New pattern.
13040 (*movxf_internal): Disable for TARGET_64BIT.
13041 (*movdf_internal_rex64): Remove (!o,F) alternative.
13043 2013-01-22 Jakub Jelinek <jakub@redhat.com>
13045 PR middle-end/56074
13046 * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
13047 isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
13048 * tree-vect-loop-manip.c (find_loop_location): Also ignore
13049 stmt locations where LOCATION_LOCUS of the stmt location is
13050 UNKNOWN_LOCATION or BUILTINS_LOCATION.
13053 * config/i386/i386.md (UNSPEC_STOS): New.
13054 (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
13055 *strsetqi_1): Add UNSPEC_STOS.
13057 2013-01-22 Paolo Carlini <paolo.carlini@oracle.com>
13060 * doc/invoke.texi: Remove left over -Wsynth example.
13062 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13064 PR tree-optimization/56051
13065 * fold-const.c (fold_binary_loc): Don't fold
13066 X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
13067 a narrowing conversion, or widening conversion from signed
13070 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13072 PR rtl-optimization/56023
13073 * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
13074 dependent on debug instruction.
13076 2013-01-21 Martin Jambor <mjambor@suse.cz>
13078 PR middle-end/56022
13079 * function.c (allocate_struct_function): Call
13080 invoke_set_current_function_hook earlier.
13082 2013-01-21 Jakub Jelinek <jakub@redhat.com>
13084 * reload1.c (init_reload): Only initialize reload_obstack
13085 during the first call.
13087 2013-01-21 Marek Polacek <polacek@redhat.com>
13089 * cfgloop.c (verify_loop_structure): Fix up grammar.
13091 2013-01-21 Yi-Hsiu Hsu <ahsu@marvell.com>
13093 * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
13094 pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
13096 2013-01-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13099 * config/arm/marvell-pj4.md: Update copyright year.
13100 Fix up use of alu to alu_reg and simple_alu_imm.
13102 2013-01-21 Uros Bizjak <ubizjak@gmail.com>
13104 * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
13106 2013-01-20 Vladimir Makarov <vmakarov@redhat.com>
13109 * lra-constraints.c (curr_insn_transform): Don't reuse original
13110 insn for secondary memory move when memory mode should be different.
13112 2013-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13114 * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
13115 atomic_storedi_1): New patterns.
13117 2013-01-20 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13119 btver2 pipeline descriptions.
13120 * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
13122 * config/i386/i386.md (btver2_decode): New type attributes.
13123 * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
13125 * config/i386/btver2.md: New file describing btver2 pipelines.
13127 2013-01-19 Andrew Pinski <apinski@cavium.com>
13129 PR tree-optimization/52631
13130 * tree-ssa-sccvn (visit_use): Before looking up the original
13131 statement, try looking up the simplified expression.
13133 2013-01-19 Anthony Green <green@moxielogic.com>
13135 * config/moxie/moxie.c (moxie_expand_prologue): Set
13136 current_function_static_stack_size.
13138 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13140 PR tree-optimization/56029
13141 * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
13142 gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
13144 2013-01-18 Sharad Singhai <singhai@google.com>
13146 PR tree-optimization/55995
13147 * dumpfile.c (dump_loc): Print location only if available.
13148 * tree-vectorizer.c (increase_alignment): Intialize vect_location.
13150 2013-01-18 Vladimir Makarov <vmakarov@redhat.com>
13153 * lra-constraints.c (curr_insn_transform): Reuse original insn for
13154 secondary memory move.
13155 (inherit_reload_reg): Use rclass instead of cl for
13156 check_secondary_memory_needed_p.
13158 2013-01-18 Jakub Jelinek <jakub@redhat.com>
13160 PR middle-end/56015
13161 * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
13162 the case where writing real complex part of target modifies op1.
13164 2013-01-18 James Greenhalgh <james.greenhalgh@arm.com>
13166 * config/aarch64/aarch64-simd.md
13167 (aarch64_vcond_internal<mode>): Handle unordered cases.
13168 * config/aarch64/iterators.md (v_cmp_result): New.
13170 2013-01-18 Yi-Hsiu Hsu <ahsu@marvell.com>
13171 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13173 * config/arm/marvell-pj4.md: New file.
13174 * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
13175 * config/arm/arm.md (generic_sched): Add marvell_pj4.
13176 (generic_vfp): Likewise.
13177 * config/arm/arm-cores.def: Add marvell-pj4.
13178 * config/arm/arm-tune.md: Regenerate.
13179 * config/arm/arm-tables.opt: Regenerate.
13180 * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
13181 * doc/invoke.texi: Document marvell-pj4.
13183 2013-01-18 Tejas Belagod <tejas.belagod@arm.com>
13185 * config/aarch64/arm_neon.h: Map scalar types to standard types.
13187 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13192 * var-tracking.c (negative_power_of_two_p): New.
13193 (global_get_addr_cache, local_get_addr_cache): New.
13194 (get_addr_from_global_cache, get_addr_from_local_cache): New.
13195 (vt_canonicalize_addr): Rewrite using the above. Adjust the
13197 (vt_stack_offset_p): Remove.
13198 (vt_canon_true_dep): Always canonicalize loc's address.
13199 (clobber_overlapping_mems): Make sure we have a MEM.
13200 (local_get_addr_clear_given_value): New.
13201 (val_reset): Clear local cached entries.
13202 (compute_bb_dataflow): Create and release the local cache.
13203 Disable duplicate MEMs clobbering.
13204 (emit_notes_in_bb): Clobber MEMs likewise.
13205 (vt_emit_notes): Create and release the local cache.
13206 (vt_initialize, vt_finalize): Create and release the global
13207 cache, respectively.
13208 * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
13210 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13212 PR libmudflap/53359
13213 * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
13214 not found in the symtab.
13216 2013-01-18 Alexandre Oliva <aoliva@redhat.com>
13219 PR rtl-optimization/55547
13220 PR rtl-optimization/53827
13223 * alias.c (offset_overlap_p): New, factored out of...
13224 (memrefs_conflict_p): ... this. Use absolute sizes. Retain
13225 the conservative special case for symbolic constants. Don't
13226 adjust zero sizes on alignment.
13228 2013-01-18 Bernd Schmidt <bernds@codesourcery.com>
13230 PR rtl-optimization/52573
13231 * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
13232 REG_UNUSED for the same register.
13234 2013-01-17 Richard Biener <rguenther@suse.de>
13235 Marek Polacek <polacek@redhat.com>
13237 PR rtl-optimization/55833
13238 * loop-unswitch.c (unswitch_loops): Move loop verification...
13239 (unswitch_single_loop): ...here. Call mark_irreducible_loops.
13240 * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
13241 Set it to true when we're removing a loop from hierarchy tree in
13242 an irreducible region.
13243 (fix_bb_placements): Adjust caller.
13244 (fix_loop_placements): Likewise.
13246 2013-01-17 Georg-Johann Lay <avr@gjlay.de>
13248 * config/avr/builtins.def (DEF_BUILTIN): Factor out
13249 "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
13250 Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
13251 Remove ID. Adjust comments.
13252 * config/avr/avr-c.c (avr_builtin_name): Remove.
13253 (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
13254 * config/avr/avr.c (avr_tolower): New static function.
13255 (DEF_BUILTIN): Remove parameter ID. Prefix ICODE by 'CODE_FOR_'.
13256 Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
13257 (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
13260 2013-01-17 Jan Hubicka <jh@suse.cz>
13262 PR tree-optimization/55273
13263 * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
13265 2013-01-17 Uros Bizjak <ubizjak@gmail.com>
13268 * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
13269 store through atomic_store<mode>_1.
13270 (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
13272 2013-01-17 Martin Jambor <mjambor@suse.cz>
13274 PR tree-optimizations/55264
13275 * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
13276 for virtual methods.
13277 * ipa.c (symtab_remove_unreachable_nodes): Never return true for
13278 virtual methods before inlining is over.
13279 * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
13281 * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
13284 2013-01-16 Vladimir Makarov <vmakarov@redhat.com>
13286 PR rtl-optimization/56005
13287 * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
13288 pending reads for prefetch.
13290 2013-01-16 Ian Bolton <ian.bolton@arm.com>
13292 * config/aarch64/aarch64.md
13293 (*cstoresi_neg_uxtw): New pattern.
13294 (*cmovsi_insn_uxtw): New pattern.
13295 (*<optab>si3_uxtw): New pattern.
13296 (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
13297 (*<optab>si3_insn_uxtw): New pattern.
13298 (*bswapsi2_uxtw): New pattern.
13300 2013-01-16 Richard Biener <rguenther@suse.de>
13302 * tree-inline.c (tree_function_versioning): Remove set but
13303 never used variable.
13305 2013-01-16 Richard Biener <rguenther@suse.de>
13307 PR tree-optimization/55964
13308 * tree-flow.h (rename_variables_in_loop): Remove.
13309 (rename_variables_in_bb): Likewise.
13310 * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
13311 (copy_loop_before): Adjust and delete update-ssa status.
13312 * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
13313 (rename_variables_in_bb): Likewise. Properly walk over predecessors.
13314 (rename_variables_in_loop): Remove.
13315 (slpeel_update_phis_for_duplicate_loop): Likewise.
13316 (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
13317 use available cfg machinery instead of duplicating it.
13318 Update PHI nodes and perform poor-mans SSA update here.
13319 (slpeel_tree_peel_loop_to_edge): Adjust.
13321 2013-01-16 Richard Biener <rguenther@suse.de>
13323 PR tree-optimization/54767
13324 PR tree-optimization/53465
13325 * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
13326 (vrp_visit_phi_node): For PHI arguments coming via backedges
13327 drop all symbolical range information.
13328 (execute_vrp): Compute backedges.
13330 2013-01-16 Richard Biener <rguenther@suse.de>
13332 * doc/install.texi: Update CLooG and ISL requirements to
13335 2013-01-16 Christian Bruel <christian.bruel@st.com>
13338 * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
13339 (broken_move): Handle UNSPECV_SP_SWITCH_B.
13340 * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
13342 2013-01-16 DJ Delorie <dj@redhat.com>
13344 * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
13345 (UNSPECV_SP_SWITCH_E): New.
13346 (sp_switch_1): Change to an unspec.
13347 (sp_switch_2): Change to an unspec. Don't use post-inc when we
13350 2013-01-16 Uros Bizjak <ubizjak@gmail.com>
13352 * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
13353 with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
13354 * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
13355 (expand_mem_thread_fence): Ditto.
13356 (expand_mem_signal_fence): Ditto.
13357 (expand_atomic_load): Ditto.
13358 (expand_atomic_store): Ditto.
13360 2013-01-16 Alexandre Oliva <aoliva@redhat.com>
13362 PR rtl-optimization/55547
13363 PR rtl-optimization/53827
13366 * alias.c (memrefs_conflict_p): Set sizes to negative after
13369 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13372 * function.c (thread_prologue_and_epilogue_insns): Always
13373 add crtl->drap_reg to set_up_by_prologue.set, even if
13374 stack_realign_drap is false.
13376 2013-01-15 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13378 * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
13379 and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
13380 *call): Fix indention.
13382 2013-01-15 Tom de Vries <tom@codesourcery.com>
13385 * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
13388 2013-01-15 Vladimir Makarov <vmakarov@redhat.com>
13390 PR rtl-optimization/55153
13391 * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
13393 2013-01-15 Martin Jambor <mjambor@suse.cz>
13395 PR tree-optimization/55920
13396 * tree-sra.c (analyze_access_subtree): Do not mark non-removable
13397 accesses as grp_to_be_debug_replaced.
13399 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13401 PR tree-optimization/55920
13402 * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
13403 there is non-useless type conversion needed from debug rhs to lhs,
13404 use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
13406 2013-01-15 Joseph Myers <joseph@codesourcery.com>
13407 Mikael Pettersson <mikpe@it.uu.se>
13410 * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
13412 (ASM_OUTPUT_CASE_LABEL): Remove.
13413 (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
13414 * final.c (shorten_branches): Update alignment of labels before
13415 jump tables if CASE_VECTOR_SHORTEN_MODE.
13417 2013-01-15 Richard Biener <rguenther@suse.de>
13420 * system.h: Do not include gmp.h for building host tools.
13422 2013-01-15 Richard Biener <rguenther@suse.de>
13424 PR middle-end/55882
13425 * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
13426 account for bitpos when computing alignment.
13428 2013-01-15 Vladimir Yakovlev <vladimir.b.yakovlev@intel.com>
13430 * config/i386/i386-c.c (ix86_target_macros_internal): New case.
13431 (ix86_target_macros_internal): Likewise.
13433 * config/i386/i386.c (m_CORE2I7): Removed.
13434 (m_CORE_HASWELL): New macro.
13435 (m_CORE_ALL): Likewise.
13436 (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
13437 (initial_ix86_arch_features): Likewise.
13438 (processor_target_table): Initializations for Core avx2.
13439 (cpu_names): New names "core-avx2".
13440 (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
13441 PROCESSOR_CORE_HASWELL.
13442 (ix86_issue_rate): New case.
13443 (ia32_multipass_dfa_lookahead): Likewise.
13444 (ix86_sched_init_global): Likewise.
13446 * config/i386/i386.h (TARGET_HASWELL): New macro.
13447 (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
13448 (processor_type): New PROCESSOR_HASWELL.
13450 2013-01-15 Jakub Jelinek <jakub@redhat.com>
13452 PR tree-optimization/55955
13453 * tree-vect-loop.c (vectorizable_reduction): Give up early on
13454 *SHIFT_EXPR and *ROTATE_EXPR codes.
13456 PR tree-optimization/48766
13457 * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
13458 -ftrapv disable -fwrapv.
13460 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13463 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
13464 etc. to 1 and not to __flash.
13465 Use LL suffix for __INT24_MAX__ with -mint8.
13466 Use ULL suffix for __UINT24_MAX__ with -mint8.
13468 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13470 * config/avr/avr-arch.h
13471 (struct base_arch_s): Use typedef avr_arch_t instead.
13472 (struct arch_info_s): Use typedef avr_arch_info_t instead.
13473 (struct mcu_type_s): Use typedef avr_mcu_t instead.
13474 * config/avr/avr.c: Same.
13475 * config/avr/avr-devices.c: Same.
13476 * config/avr/driver-avr.c: Same.
13477 * config/avr/gen-avr-mmcu-texi.c: Same.
13478 * config/avr/avr-mcus.def: Adjust comment.
13480 2013-01-14 Tejas Belagod <tejas.belagod@arm.com>
13482 * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
13483 * config/aarch64/iterators.md (VALLDI): New.
13485 2013-01-14 Uros Bizjak <ubizjak@gmail.com>
13486 Andi Kleen <ak@linux.intel.com>
13489 * config/i386/sync.md (atomic_store<mode>_1): New pattern.
13490 (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
13493 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13495 * config/avr/avr-stdint.h: Remove trailing blanks.
13496 * config/avr/avr-log.h: Same.
13497 * config/avr/avr-arch.h: Same.
13498 * config/avr/avr-devices.c: Same.
13499 * config/avr/avr-dimode.md: Same.
13500 * config/avr/predicates.md: Same.
13501 * config/avr/avr-c.c: Same. And fix typo.
13503 * config/avr/avr-protos.h: Same. And:
13504 (function_arg_regno_p): Rename to avr_function_arg_regno_p.
13505 (init_cumulative_args): Rename to avr_init_cumulative_args.
13506 (expand_prologue): Rename to avr_expand_prologue.
13507 (expand_epilogue): Rename to avr_expand_epilogue.
13508 (adjust_insn_length): Rename to avr_adjust_insn_length.
13509 (notice_update_cc): Rename to avr_notice_update_cc.
13510 (final_prescan_insn): Rename to avr_final_prescan_insn.
13511 * config/avr/avr.c: Same.
13512 * config/avr/avr.h: Same.
13513 * config/avr/avr.md: Remove trailing blanks.
13514 (prologue): Use avr_expand_prologue.
13515 (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
13517 2013-01-14 Richard Biener <rguenther@suse.de>
13519 * tree-cfg.c (verify_expr_location, verify_expr_location_1,
13520 verify_location, collect_subblocks): New functions.
13521 (verify_gimple_in_cfg): Verify that locations only reference
13522 BLOCKs in the functions BLOCK tree.
13524 2013-01-14 Richard Biener <rguenther@suse.de>
13526 * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
13528 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
13530 (insert_out_of_ssa_copy_on_edge): Likewise.
13531 (rewrite_close_phi_out_of_ssa): Likewise.
13532 * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
13534 * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
13535 propagated constants.
13536 * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
13539 2013-01-14 Georg-Johann Lay <avr@gjlay.de>
13541 * config/avr/avr-modes.def: Add GPL copyright notice.
13543 2013-01-13 Uros Bizjak <ubizjak@gmail.com>
13545 * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
13546 MEMMODEL_MASK to determine memory model.
13547 (atomic_store<mode>): Ditto from operands[2].
13548 * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
13550 2013-01-13 Jakub Jelinek <jakub@redhat.com>
13553 * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
13554 (fold_gimple_assign): Don't call unshare_expr here.
13555 (fold_ctor_reference): Call unshare_expr.
13557 2013-01-13 Terry Guo <terry.guo@arm.com>
13559 * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
13560 * doc/fragments.texi: Document MULTILIB_REUSE.
13561 * gcc.c (multilib_reuse): New internal spec.
13562 (set_multilib_dir): Also search multilib from multilib_reuse.
13563 * genmultilib (tmpmultilib3): Refactor code.
13564 (tmpmultilib4): Ditto.
13565 (multilib_reuse): New multilib argument.
13567 2013-01-13 Richard Sandiford <rdsandiford@googlemail.com>
13569 * Makefile.in: Update copyright.
13571 2013-01-12 Tom de Vries <tom@codesourcery.com>
13573 PR middle-end/55890
13574 * calls.c (expand_call): Check if arg_nr is valid.
13576 2013-01-11 Michael Meissner <meissner@linux.vnet.ibm.com>
13578 * doc/extend.texi (X86 Built-in Functions): Add whitespace in
13579 __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
13580 documentation. Add missing '__' in front of
13581 __builtin_ia32_packssdw256.
13583 2013-01-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13586 * config/s390/s390.c (s390_preferred_reload_class): Do not return
13587 NO_REGS for larl operands.
13588 (s390_reload_larl_operand): Use s390_load_address instead of
13591 2013-01-11 Richard Biener <rguenther@suse.de>
13593 * tree-cfg.c (verify_node_sharing_1): Split out from ...
13594 (verify_node_sharing): ... here.
13595 (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
13597 2013-01-11 Eric Botcazou <ebotcazou@adacore.com>
13599 * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
13600 Substitute TREECHECKING.
13601 * configure: Regenerate.
13602 * Makefile.in (TREECHECKING): New.
13604 2013-01-11 Richard Guenther <rguenther@suse.de>
13606 PR tree-optimization/44061
13607 * tree-vrp.c (extract_range_basic): Compute zero as
13608 value-range for __builtin_constant_p of function parameters.
13610 2013-01-10 Richard Sandiford <rdsandiford@googlemail.com>
13612 Update copyright years.
13614 2013-01-10 Vladimir Makarov <vmakarov@redhat.com>
13616 PR rtl-optimization/55672
13617 * lra-eliminations.c (mark_not_eliminable): Permit addition with
13618 const to be eliminable.
13620 2013-01-10 David Edelsohn <dje.gcc@gmail.com>
13622 * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
13623 * configure: Regenerate.
13625 2013-01-10 Richard Biener <rguenther@suse.de>
13627 * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
13629 2013-01-10 Richard Biener <rguenther@suse.de>
13632 * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
13633 locations for virtual PHI arguments.
13634 (rewrite_update_phi_arguments): Likewise.
13636 2013-01-10 Joel Sherrill <joel.sherrill@OARcorp.com>
13638 * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
13641 2013-01-10 Jakub Jelinek <jakub@redhat.com>
13643 PR tree-optimization/55921
13644 * tree-complex.c (expand_complex_asm): New function.
13645 (expand_complex_operations_1): Call it for GIMPLE_ASM.
13647 2013-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13650 * config/s390/s390.c (s390_symref_operand_p)
13651 (s390_loadrelative_operand_p): Merge the two functions.
13652 (s390_check_qrst_address, print_operand_address): Add parameters
13653 to s390_loadrelative_operand_p invokation.
13654 (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
13655 (s390_reload_larl_operand, s390_secondary_reload): Use
13656 s390_loadrelative_operand_p instead of s390_symref_operand_p.
13657 (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
13659 2013-01-09 Mike Stump <mikestump@comcast.net>
13661 * dse.c (record_store): Remove unnecessary assert.
13663 2013-01-09 Jan Hubicka <jh@suse.cz>
13665 PR tree-optimization/55569
13666 * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
13667 * cfgloop.h (scale_loop_profile): Likewise.
13669 2013-01-09 Jan Hubicka <jh@suse.cz>
13672 * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
13674 * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
13676 2013-01-09 Richard Sandiford <rdsandiford@googlemail.com>
13678 PR middle-end/55114
13679 * expr.h (maybe_emit_group_store): Declare.
13680 * expr.c (maybe_emit_group_store): New function.
13681 * builtins.c (expand_builtin_int_roundingfn): Call it.
13682 (expand_builtin_int_roundingfn_2): Likewise.
13684 2013-01-09 Vladimir Makarov <vmakarov@redhat.com>
13686 PR rtl-optimization/55829
13687 * lra-constraints.c (match_reload): Add code for absent output.
13688 (curr_insn_transform): Add code for reloads of matched inputs
13691 2013-01-09 Uros Bizjak <ubizjak@gmail.com>
13693 * config/i386/sse.md (*vec_interleave_highv2df): Change mode
13694 attribute of movddup insn to DF.
13695 (*vec_interleave_lowv2df): Ditto.
13696 (vec_dupv2df): Ditto.
13698 2013-01-09 Jan Hubicka <jh@suse.cz>
13700 PR tree-optimiation/55875
13701 * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
13702 EVERY_ITERATION parameter.
13703 (number_of_iterations_exit): Check if exit is executed every iteration.
13704 (idx_infer_loop_bounds): Similarly here.
13705 (n_of_executions_at_most): Simplify
13706 to only test for cases where statement is dominated by the
13707 particular bound; handle correctly the "postdominance" test.
13708 (scev_probably_wraps_p): Use max loop iterations info
13709 as a global bound first.
13711 2013-01-09 Nguyen Duy Dat <dat.nguyen.yn@rvc.renesas.com>
13712 Nick Clifton <nickc@redhat.com>
13714 * config/v850/v850.md (cbranchsf4): New pattern.
13715 (cstoresf4): New pattern.
13716 (cbranchdf4): New pattern.
13717 (cstoredf4): New pattern.
13718 (movsicc): Disallow floating point comparisons.
13719 (cmpsf_le_insn): Fix order of operators.
13720 (cmpsf_lt_insn): Likewise.
13721 (cmpsf_eq_insn): Likewise.
13722 (cmpdf_le_insn): Likewise.
13723 (cmpdf_lt_insn): Likewise.
13724 (cmpdf_eq_insn): Likewise.
13725 (cmpsf_ge_insn): Use LE comparison.
13726 (cmpdf_ge_insn): Likewise.
13727 (cmpsf_gt_insn): Use LT comparison.
13728 (cmpdf_gt_insn): Likewise.
13729 (cmpsf_ne_insn): Delete pattern.
13730 (cmpdf_ne_insn): Delete pattern.
13731 * config/v850/v850.c (v850_gen_float_compare): Use
13732 gen_cmpdf_eq_insn for NE comparison.
13733 (v850_float_z_comparison_operator)
13734 (v850_float_nz_comparison_operator): Move from here ...
13735 * config/v850/predicates.md: ... to here. Move GT and GE
13736 comparisons into v850_float_z_comparison_operator.
13737 * config/v850/v850-protos.h (v850_float_z_comparison_operator):
13739 (v850_float_nz_comparison_operator): Likewise.
13741 2013-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13743 * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
13744 with calls to gen_insvsi/gen_insvdi.
13746 2013-01-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
13748 * config/i386/i386.c (initial_ix86_tune_features): Set up
13749 X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
13751 2013-01-09 Steven Bosscher <steven@gcc.gnu.org>
13752 Jakub Jelinek <jakub@redhat.com>
13754 PR tree-optimization/48189
13755 * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
13756 If nitercst is 0, don't predict the exit edge.
13758 2013-01-08 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13760 * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
13761 in asm_fprintf with reg_names.
13762 (aarch64_print_operand_address): Likewise.
13763 (aarch64_return_addr): Likewise.
13764 * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
13766 2013-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13768 * config/pa/pa.h (VAL_U6_BITS_P): Define.
13769 (INT_U6_BITS): Likewise.
13770 * config/pa/predicates.md (uint6_operand): New predicate.
13771 (shift5_operand, shift6_operand): Likewise.
13772 * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
13774 (lshrdi3): Use shift6_operand.
13775 (shrpsi4, shrpdi4): New insn patterns.
13776 (extzv): Delete expander.
13777 (extzvsi, extzvdi): New expanders. Use uint5_operand and uint6_operand
13778 predicates in unamed zero extract patterns. Tighten common constraint.
13779 (extv): Delete expander.
13780 (extvsi, extvdi): New expanders. Use uint5_operand and uint6_operand
13781 predicates in unamed sign extract patterns. Tighten common constraint.
13782 (insv): Delete expander.
13783 (insvsi, insvdi): New expanders. Use uint5_operand and uint6_operand
13784 predicates in unamed insert patterns. Tighten common constraint.
13785 Change uint32_operand predicate to uint6_operand predicate in unamed
13786 DImode pattern to insert constant values of type 1...1xxxx.
13788 2013-01-04 Jan Hubicka <jh@suse.cz>
13790 PR tree-optimization/55823
13791 * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
13794 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13795 Uros Bizjak <ubizjak@gmail.com>
13797 PR rtl-optimization/55845
13798 * df-problems.c (can_move_insns_across): Stop scanning at
13799 volatile_insn_p source instruction or give up if
13800 across_from .. across_to range contains any volatile_insn_p
13803 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13805 * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
13806 * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
13808 * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
13809 aarch64_simd_make_constant, aarch64_expand_vector_init): New.
13811 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13814 * asan.c (asan_clear_shadow): New function.
13815 (asan_emit_stack_protection): Use it.
13817 2013-01-08 Tejas Belagod <tejas.belagod@arm.com>
13819 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
13820 aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
13821 with tab instead of space.
13823 2013-01-08 Nick Clifton <nickc@redhat.com>
13825 * config/rl78/rl78.c (rl78_expand_prologue): Always select
13826 register bank 0 at the start of an interrupt handler.
13827 * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
13830 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13832 * config/aarch64/aarch64-simd.md
13833 (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
13834 (aarch64_simd_bsl): Likewise.
13835 (aarch64_vcond_internal<mode>): Likewise.
13836 (vcond<mode><mode>): Likewise.
13837 (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
13838 * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
13840 2013-01-08 James Greenhalgh <james.greenhalgh@arm.com>
13842 * config/aarch64/aarch64-builtins.c
13843 (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
13845 2013-01-08 Martin Jambor <mjambor@suse.cz>
13848 * tree-sra.c (analyze_access_subtree): Return true also after
13849 potentially creating a debug-only replacement.
13851 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13853 PR middle-end/55890
13854 * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
13856 PR tree-optimization/54120
13857 * tree-vrp.c (range_fits_type_p): Don't allow
13858 src_precision < precision from signed vr to unsigned_p
13859 if vr->min or vr->max is negative.
13860 (simplify_float_conversion_using_ranges): Test can_float_p
13861 against CODE_FOR_nothing.
13863 2013-01-08 Jakub Jelinek <jakub@redhat.com>
13864 Richard Biener <rguenther@suse.de>
13866 PR middle-end/55851
13867 * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
13868 types instead of just INTEGER_TYPE types.
13870 2013-01-07 Mark Kettenis <kettenis@openbsd.org>
13872 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
13875 2013-01-07 Steve Ellcey <sellcey@mips.com>
13878 * config/mips/mips.opt: Change mad to mmad to match documentation.
13880 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13883 * doc/extend.texi (AVR Named Address Spaces): __memx goes into
13884 .progmemx.data now.
13886 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13889 * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
13890 (avr_addrspace_t): Add .section_name field.
13891 * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
13893 (avr_addrspace): Same. Initialize .section_name. Remove last
13894 NULL entry. Put __memx into .progmemx.data.
13895 (progmem_section_prefix): Remove.
13896 (avr_asm_init_sections): No need to initialize progmem_section.
13897 (avr_asm_named_section): Use avr_addrspace[].section_name to get
13898 section name prefix.
13899 (avr_asm_select_section): Ditto. And use get_unnamed_section to
13900 retrieve the progmem section.
13901 * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
13902 boundary to run over avr_addrspace[].
13903 (avr_register_target_pragmas): Ditto.
13905 2013-01-06 Jakub Jelinek <jakub@redhat.com>
13907 * varasm.c (output_constant_def_contents): For asan_protect_global
13908 protected strings, adjust DECL_ALIGN if needed, before testing for
13910 (place_block_symbol): Adjust size for asan protected STRING_CSTs if
13911 TREE_CONSTANT_POOL_ADDRESS_P. Increase alignment for asan protected
13913 (output_object_block): For asan protected decls, emit asan padding
13914 after their contents.
13915 * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
13916 (asan_finish_file): Test it here instead.
13918 2013-01-07 Nick Clifton <nickc@redhat.com>
13919 Matthias Klose <doko@debian.org>
13920 Doug Kwan <dougkwan@google.com>
13921 H.J. Lu <hongjiu.lu@intel.com>
13924 * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
13926 * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
13928 * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
13930 * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
13932 * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
13934 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
13937 * doc/install.texi (Cross-Compiler-Specific Options): Document
13940 2013-01-07 Tejas Belagod <tejas.belagod@arm.com>
13942 * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
13943 vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
13944 vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
13945 vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
13946 vqmovun_high_s64): Fix source operand number and update copyright.
13948 2013-01-07 Richard Biener <rguenther@suse.de>
13950 PR middle-end/55890
13951 * gimple.h (gimple_call_builtin_p): New overload.
13952 * gimple.c (validate_call): New function.
13953 (gimple_call_builtin_p): Likewise.
13954 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
13955 Use gimple_call_builtin_p.
13956 (find_func_clobbers): Likewise.
13957 * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
13958 (strlen_optimize_stmt): Likewise.
13960 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13962 * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
13963 (vld1q_dup_*): Likewise.
13964 (vld1_*): Likewise.
13965 (vld1q_*): Likewise.
13966 (vld1_lane_*): Likewise.
13967 (vld1q_lane_*): Likewise.
13969 2013-01-07 Richard Biener <rguenther@suse.de>
13971 * lto-streamer.h (LTO_minor_version): Bump to 2.
13973 2013-01-07 James Greenhalgh <james.greenhalgh@arm.com>
13975 * config/aarch64/aarch64-protos.h
13976 (aarch64_const_double_zero_rtx_p): Rename to...
13977 (aarch64_float_const_zero_rtx_p): ...this.
13978 (aarch64_float_const_representable_p): New.
13979 (aarch64_output_simd_mov_immediate): Likewise.
13980 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
13981 move immediate case.
13982 * config/aarch64/aarch64.c
13983 (aarch64_const_double_zero_rtx_p): Rename to...
13984 (aarch64_float_const_zero_rtx_p): ...this.
13985 (aarch64_print_operand): Allow printing of new constants.
13986 (aarch64_valid_floating_const): New.
13987 (aarch64_legitimate_constant_p): Check for valid floating-point
13989 (aarch64_simd_valid_immediate): Likewise.
13990 (aarch64_vect_float_const_representable_p): New.
13991 (aarch64_float_const_representable_p): Likewise.
13992 (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
13993 (aarch64_output_simd_mov_immediate): New.
13994 * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
13995 (*movdf_aarch64): Likewise.
13996 * config/aarch64/constraints.md (Ufc): New.
13997 (Y): call aarch64_float_const_zero_rtx.
13998 * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
14000 2013-01-07 Richard Biener <rguenther@suse.de>
14002 PR tree-optimization/55888
14003 PR tree-optimization/55862
14004 * tree-ssa-pre.c (phi_translate_1): Revert previous change.
14005 (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
14006 not if it is contained therein.
14008 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14010 * config/avr/t-avr: Typo.
14012 2013-01-07 Georg-Johann Lay <avr@gjlay.de>
14015 * config/avr/t-avr: Don't automatically rebuild
14016 $(srcdir)/config/avr/t-multilib
14017 $(srcdir)/config/avr/avr-tables.opt
14018 $(srcdir)/doc/avr-mmcu.texi
14019 (avr-mcus): New phony target to build them on request.
14020 (s-avr-mlib, s-avr-mmcu-texi): Remove.
14021 * avr/avr-mcus.def: Adjust comments.
14023 2013-01-07 Uros Bizjak <ubizjak@gmail.com>
14025 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
14027 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14029 * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
14031 2013-01-06 Richard Sandiford <rdsandiford@googlemail.com>
14033 * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
14035 2013-01-05 David Edelsohn <dje.gcc@gmail.com>
14037 * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
14038 to generate profiling.
14039 * config/rs6000/aix64.h (LIB_SPEC): Same.
14041 2013-01-04 Andrew Pinski <apinski@cavium.com>
14043 * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
14045 (TARGET_FIXED_CONDITION_CODE_REGS): Define.
14047 2013-01-04 Uros Bizjak <ubizjak@gmail.com>
14049 * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
14051 (ix86_expand_move): Ditto.
14052 (ix86_zero_extend_to_Pmode): Ditto.
14053 (ix86_expand_call): Ditto.
14054 (ix86_expand_special_args_builtin): Ditto.
14055 (ix86_expand_builtin): Ditto.
14057 2013-01-04 Richard Biener <rguenther@suse.de>
14059 PR tree-optimization/55862
14060 * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
14061 translating them through PHI nodes.
14063 2013-01-04 Martin Jambor <mjambor@suse.cz>
14065 PR tree-optimization/55755
14066 * tree-sra.c (sra_modify_assign): Do not check that an access has no
14067 children when trying to avoid producing a VIEW_CONVERT_EXPR.
14069 2013-01-04 Marek Polacek <polacek@redhat.com>
14071 PR middle-end/55859
14072 * opts.c (default_options_optimization): Clarify error message.
14074 2013-01-04 Richard Biener <rguenther@suse.de>
14076 PR middle-end/55863
14077 * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
14080 2013-01-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14083 * config/pa/pa.md (movsi): Revert previous change.
14084 * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
14087 2013-01-03 Richard Henderson <rth@redhat.com>
14089 * config/i386/i386.c (ix86_expand_move): Always assign to op1
14090 after eliminating TLS symbols.
14092 2013-01-03 Marc Glisse <marc.glisse@inria.fr>
14095 * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
14096 * graphite-poly.c (debug_gmp_value): Likewise.
14098 2013-01-03 Uros Bizjak <ubizjak@gmail.com>
14101 * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
14102 selected code model, define __code_mode_small__, __code_model_medium__,
14103 __code_model_large__, __code_model_32__ or __code_model_kernel__.
14104 * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
14105 xchg temporary register with %k. Declare temporary register as
14107 [__x86_64__]: For medium and large code models, preserve %rbx register.
14109 2013-01-03 Richard Biener <rguenther@suse.de>
14111 * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
14112 (dump_subscript): Adjust.
14113 (finalize_ddr_dependent): Do not dump redundant info.
14114 (analyze_siv_subscript): Adjust.
14115 (subscript_dependence_tester): Likewise.
14116 (compute_affine_dependence): Likewise.
14118 2013-01-03 Richard Biener <rguenther@suse.de>
14121 2013-01-03 Richard Biener <rguenther@suse.de>
14123 PR tree-optimization/55857
14124 * tree-vect-stmts.c (vectorizable_load): Do not setup
14125 re-alignment for invariant loads.
14127 2013-01-02 Richard Biener <rguenther@suse.de>
14129 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14130 invariant load do not generate a vector load from the scalar location.
14132 2013-01-03 Richard Biener <rguenther@suse.de>
14134 * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
14135 for not vectorizing.
14136 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
14137 not build INDIRECT_REFs, call get_name once only.
14138 (vect_create_data_ref_ptr): Likewise. Dump base object kind
14139 based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
14141 2013-01-03 Richard Biener <rguenther@suse.de>
14143 PR tree-optimization/55857
14144 * tree-vect-stmts.c (vectorizable_load): Do not setup
14145 re-alignment for invariant loads.
14147 2013-01-03 Richard Biener <rguenther@suse.de>
14150 * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
14151 prefer a built-in decl.
14153 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14155 * gcc.c (process_command): Update copyright notice dates.
14156 * gcov.c (print_version): Likewise.
14157 * gcov-dump.c (print_version): Likewise.
14159 PR rtl-optimization/55838
14160 * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
14161 iv0.step, iv1.step and step.
14163 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14164 Marc Glisse <marc.glisse@inria.fr>
14166 PR tree-optimization/55832
14167 * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
14168 ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
14169 integer_{one,zero}_node.
14171 2013-01-03 Jakub Jelinek <jakub@redhat.com>
14174 * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
14175 * var-tracking.c (reverse_op): Don't add reverse ops to
14176 VALUEs that have already
14177 PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
14179 2013-01-02 Gerald Pfeifer <gerald@pfeifer.com>
14181 * doc/contrib.texi: Note years as release manager for Mark Mitchell.
14183 2013-01-02 Teresa Johnson <tejohnson@google.com>
14185 * dumpfile.c (dump_loc): Print filename with location.
14186 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
14187 new location_t parameter to emit complete unroll message with
14188 new dump framework.
14189 (canonicalize_loop_induction_variables): Compute loops location
14190 and pass to try_unroll_loop_completely.
14191 * loop-unroll.c (report_unroll_peel): New function.
14192 (peel_loops_completely): Use new dump format with location
14193 for main dumpfile message, and invoke report_unroll_peel on success.
14194 (decide_unrolling_and_peeling): Ditto.
14195 (decide_peel_once_rolling): Remove old dumpfile message subsumed
14196 by report_unroll_peel.
14197 (decide_peel_completely): Ditto.
14198 (decide_unroll_constant_iterations): Ditto.
14199 (decide_unroll_runtime_iterations): Ditto.
14200 (decide_peel_simple): Ditto.
14201 (decide_unroll_stupid): Ditto.
14202 * cfgloop.c (get_loop_location): New function.
14203 * cfgloop.h (get_loop_location): Declare.
14205 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14207 * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
14210 2013-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14212 PR middle-end/55198
14213 * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
14214 BLKmode objects when EXPAND_MEMORY is specified.
14216 2013-01-02 Sriraman Tallam <tmsriram@google.com>
14218 * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
14220 (fold_builtin_cpu): Do not share cpu model decls across statements.
14222 2013-01-02 Jason Merrill <jason@redhat.com>
14225 * tree.c (build_array_type_1): Revert earlier change.
14227 2013-01-02 Yufeng Zhang <yufeng.zhang@arm.com>
14229 * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
14231 * config/aarch64/aarch64-tune.md: Re-generate.
14233 2013-01-02 Richard Biener <rguenther@suse.de>
14235 * tree-vect-stmts.c (vectorizable_load): When vectorizing an
14236 invariant load do not generate a vector load from the scalar location.
14238 2013-01-02 Richard Biener <rguenther@suse.de>
14241 * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
14242 * configure: Regenerate.
14244 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14246 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
14247 (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
14248 (expand_builtin_int_roundingfn_2): Keep the original target around
14249 for the fallback case.
14251 2013-01-02 Richard Sandiford <rdsandiford@googlemail.com>
14253 * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
14254 to be clear for sign changes.
14256 2013-01-01 Jan Hubicka <jh@suse.cz>
14258 * ipa-inline-analysis.c: Fix formatting.
14260 2013-01-01 Jakub Jelinek <jakub@redhat.com>
14262 PR tree-optimization/55831
14263 * tree-vect-loop.c (get_initial_def_for_induction): Use
14264 gsi_after_labels instead of gsi_start_bb.
14266 Copyright (C) 2013 Free Software Foundation, Inc.
14268 Copying and distribution of this file, with or without modification,
14269 are permitted in any medium without royalty provided the copyright
14270 notice and this notice are preserved.