1 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
3 PR tree-optimization/61114
4 * expr.c (expand_expr_real_2): For REDUC_{MIN,MAX,PLUS}_EXPR, add
5 extract_bit_field around optab result.
7 * fold-const.c (fold_unary_loc): For REDUC_{MIN,MAX,PLUS}_EXPR, produce
10 * tree-cfg.c (verify_gimple_assign_unary): Check result vs operand type
11 for REDUC_{MIN,MAX,PLUS}_EXPR.
13 * tree-vect-loop.c (vect_analyze_loop): Update comment.
14 (vect_create_epilog_for_reduction): For direct vector reduction, use
15 result of tree code directly without extract_bit_field.
17 * tree.def (REDUC_MAX_EXPR, REDUC_MIN_EXPR, REDUC_PLUS_EXPR): Update
20 2014-10-27 Andrew MacLeod <amacleod@redhat.com>
22 * basic-block.h: Remove all includes.
23 (enum profile_status_d, struct control_flow_graph): Move to cfg.h
24 * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
25 * Makefile.in (GTFILES): Add cfg.h to list.
26 * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
27 * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
28 * genconditions.c (write_header): Add predict.h and basic-block.h to
30 * genemit.c (main): Ditto.
31 * genpreds.c (write_insn_preds_c): Ditto.
32 * genrecog.c (write_header): Ditto.
33 * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
35 * alias.c: Adjust include files.
37 * auto-inc-dec.c: Ditto.
38 * auto-profile.c: Ditto.
39 * bb-reorder.c: Ditto.
42 * caller-save.c: Ditto.
47 * cfgcleanup.c: Ditto.
51 * cfgloopanal.c: Ditto.
52 * cfgloopmanip.c: Ditto.
54 * cgraphbuild.c: Ditto.
55 * cgraphclones.c: Ditto.
56 * cgraphunit.c: Ditto.
57 * combine-stack-adj.c: Ditto.
59 * compare-elim.c: Ditto.
64 * data-streamer-in.c: Ditto.
65 * data-streamer-out.c: Ditto.
66 * data-streamer.c: Ditto.
71 * df-problems.c: Ditto.
85 * fold-const.c: Ditto.
88 * gcc-plugin.h: Ditto.
90 * generic-match-head.c: Ditto.
92 * gimple-builder.c: Ditto.
93 * gimple-expr.c: Ditto.
94 * gimple-fold.c: Ditto.
95 * gimple-iterator.c: Ditto.
96 * gimple-low.c: Ditto.
97 * gimple-match-head.c: Ditto.
98 * gimple-pretty-print.c: Ditto.
99 * gimple-ssa-isolate-paths.c: Ditto.
100 * gimple-ssa-strength-reduction.c: Ditto.
101 * gimple-streamer-in.c: Ditto.
102 * gimple-streamer-out.c: Ditto.
103 * gimple-streamer.h: Ditto.
104 * gimple-walk.c: Ditto.
106 * gimplify-me.c: Ditto.
109 * graphite-blocking.c: Ditto.
110 * graphite-clast-to-gimple.c: Ditto.
111 * graphite-dependences.c: Ditto.
112 * graphite-interchange.c: Ditto.
113 * graphite-isl-ast-to-gimple.c: Ditto.
114 * graphite-optimize-isl.c: Ditto.
115 * graphite-poly.c: Ditto.
116 * graphite-scop-detection.c: Ditto.
117 * graphite-sese-to-poly.c: Ditto.
119 * haifa-sched.c: Ditto.
120 * hw-doloop.c: Ditto.
122 * init-regs.c: Ditto.
123 * internal-fn.c: Ditto.
125 * ipa-devirt.c: Ditto.
126 * ipa-icf-gimple.c: Ditto.
128 * ipa-inline-analysis.c: Ditto.
129 * ipa-inline.c: Ditto.
130 * ipa-polymorphic-call.c: Ditto.
131 * ipa-profile.c: Ditto.
133 * ipa-pure-const.c: Ditto.
134 * ipa-reference.c: Ditto.
135 * ipa-split.c: Ditto.
136 * ipa-utils.c: Ditto.
138 * ira-build.c: Ditto.
139 * ira-color.c: Ditto.
140 * ira-conflicts.c: Ditto.
141 * ira-costs.c: Ditto.
143 * ira-lives.c: Ditto.
147 * loop-doloop.c: Ditto.
148 * loop-init.c: Ditto.
149 * loop-invariant.c: Ditto.
151 * loop-unroll.c: Ditto.
152 * lower-subreg.c: Ditto.
153 * lra-assigns.c: Ditto.
154 * lra-coalesce.c: Ditto.
155 * lra-constraints.c: Ditto.
156 * lra-eliminations.c: Ditto.
157 * lra-lives.c: Ditto.
158 * lra-spills.c: Ditto.
160 * lto-cgraph.c: Ditto.
161 * lto-compress.c: Ditto.
163 * lto-section-in.c: Ditto.
164 * lto-section-out.c: Ditto.
165 * lto-streamer-in.c: Ditto.
166 * lto-streamer-out.c: Ditto.
167 * lto-streamer.c: Ditto.
169 * mode-switching.c: Ditto.
170 * modulo-sched.c: Ditto.
173 * opts-global.c: Ditto.
175 * postreload-gcse.c: Ditto.
176 * postreload.c: Ditto.
178 * print-rtl.c: Ditto.
182 * reg-stack.c: Ditto.
186 * regrename.c: Ditto.
193 * sched-deps.c: Ditto.
194 * sched-ebb.c: Ditto.
195 * sched-int.h: Ditto.
196 * sched-rgn.c: Ditto.
197 * sched-vis.c: Ditto.
198 * sel-sched-dump.c: Ditto.
199 * sel-sched-ir.c: Ditto.
200 * sel-sched-ir.h: Ditto.
201 * sel-sched.c: Ditto.
203 * shrink-wrap.c: Ditto.
204 * stack-ptr-mod.c: Ditto.
206 * store-motion.c: Ditto.
210 * trans-mem.c: Ditto.
211 * tree-affine.c: Ditto.
212 * tree-call-cdce.c: Ditto.
214 * tree-cfgcleanup.c: Ditto.
215 * tree-chrec.c: Ditto.
216 * tree-complex.c: Ditto.
217 * tree-data-ref.c: Ditto.
220 * tree-emutls.c: Ditto.
221 * tree-if-conv.c: Ditto.
222 * tree-inline.c: Ditto.
223 * tree-into-ssa.c: Ditto.
224 * tree-loop-distribution.c: Ditto.
225 * tree-nested.c: Ditto.
227 * tree-object-size.c: Ditto.
228 * tree-outof-ssa.c: Ditto.
229 * tree-parloops.c: Ditto.
230 * tree-phinodes.c: Ditto.
231 * tree-predcom.c: Ditto.
232 * tree-pretty-print.c: Ditto.
233 * tree-profile.c: Ditto.
234 * tree-scalar-evolution.c: Ditto.
236 * tree-ssa-address.c: Ditto.
237 * tree-ssa-alias.c: Ditto.
238 * tree-ssa-ccp.c: Ditto.
239 * tree-ssa-coalesce.c: Ditto.
240 * tree-ssa-copy.c: Ditto.
241 * tree-ssa-copyrename.c: Ditto.
242 * tree-ssa-dce.c: Ditto.
243 * tree-ssa-dom.c: Ditto.
244 * tree-ssa-dse.c: Ditto.
245 * tree-ssa-forwprop.c: Ditto.
246 * tree-ssa-ifcombine.c: Ditto.
247 * tree-ssa-live.c: Ditto.
248 * tree-ssa-loop-ch.c: Ditto.
249 * tree-ssa-loop-im.c: Ditto.
250 * tree-ssa-loop-ivcanon.c: Ditto.
251 * tree-ssa-loop-ivopts.c: Ditto.
252 * tree-ssa-loop-manip.c: Ditto.
253 * tree-ssa-loop-niter.c: Ditto.
254 * tree-ssa-loop-prefetch.c: Ditto.
255 * tree-ssa-loop-unswitch.c: Ditto.
256 * tree-ssa-loop.c: Ditto.
257 * tree-ssa-math-opts.c: Ditto.
258 * tree-ssa-operands.c: Ditto.
259 * tree-ssa-phiopt.c: Ditto.
260 * tree-ssa-phiprop.c: Ditto.
261 * tree-ssa-pre.c: Ditto.
262 * tree-ssa-propagate.c: Ditto.
263 * tree-ssa-reassoc.c: Ditto.
264 * tree-ssa-sccvn.c: Ditto.
265 * tree-ssa-sink.c: Ditto.
266 * tree-ssa-strlen.c: Ditto.
267 * tree-ssa-structalias.c: Ditto.
268 * tree-ssa-tail-merge.c: Ditto.
269 * tree-ssa-ter.c: Ditto.
270 * tree-ssa-threadedge.c: Ditto.
271 * tree-ssa-threadupdate.c: Ditto.
272 * tree-ssa-uncprop.c: Ditto.
273 * tree-ssa-uninit.c: Ditto.
275 * tree-ssanames.c: Ditto.
276 * tree-stdarg.c: Ditto.
277 * tree-streamer-in.c: Ditto.
278 * tree-streamer-out.c: Ditto.
279 * tree-streamer.c: Ditto.
280 * tree-switch-conversion.c: Ditto.
281 * tree-tailcall.c: Ditto.
282 * tree-vect-data-refs.c: Ditto.
283 * tree-vect-generic.c: Ditto.
284 * tree-vect-loop-manip.c: Ditto.
285 * tree-vect-loop.c: Ditto.
286 * tree-vect-patterns.c: Ditto.
287 * tree-vect-slp.c: Ditto.
288 * tree-vect-stmts.c: Ditto.
289 * tree-vectorizer.c: Ditto.
296 * value-prof.c: Ditto.
297 * var-tracking.c: Ditto.
300 * vtable-verify.c: Ditto.
302 * config/aarch64/aarch64-builtins.c: Ditto.
303 * config/aarch64/aarch64.c: Ditto.
304 * config/alpha/alpha.c: Ditto.
305 * config/arc/arc.c: Ditto.
306 * config/arm/arm.c: Ditto.
307 * config/avr/avr.c: Ditto.
308 * config/bfin/bfin.c: Ditto.
309 * config/c6x/c6x.c: Ditto.
310 * config/cr16/cr16.c: Ditto.
311 * config/cris/cris.c: Ditto.
312 * config/darwin-c.c: Ditto.
313 * config/darwin.c: Ditto.
314 * config/epiphany/epiphany.c: Ditto.
315 * config/epiphany/mode-switch-use.c: Ditto.
316 * config/epiphany/resolve-sw-modes.c: Ditto.
317 * config/fr30/fr30.c: Ditto.
318 * config/frv/frv.c: Ditto.
319 * config/h8300/h8300.c: Ditto.
320 * config/i386/i386.c: Ditto.
321 * config/i386/winnt.c: Ditto.
322 * config/ia64/ia64.c: Ditto.
323 * config/iq2000/iq2000.c: Ditto.
324 * config/lm32/lm32.c: Ditto.
325 * config/m32c/m32c.c: Ditto.
326 * config/m32r/m32r.c: Ditto.
327 * config/m68k/m68k.c: Ditto.
328 * config/mcore/mcore.c: Ditto.
329 * config/mep/mep.c: Ditto.
330 * config/microblaze/microblaze.c: Ditto.
331 * config/mips/mips.c: Ditto.
332 * config/mmix/mmix.c: Ditto.
333 * config/mn10300/mn10300.c: Ditto.
334 * config/moxie/moxie.c: Ditto.
335 * config/msp430/msp430.c: Ditto.
336 * config/nds32/nds32-cost.c: Ditto.
337 * config/nds32/nds32-fp-as-gp.c: Ditto.
338 * config/nds32/nds32-intrinsic.c: Ditto.
339 * config/nds32/nds32-isr.c: Ditto.
340 * config/nds32/nds32-md-auxiliary.c: Ditto.
341 * config/nds32/nds32-memory-manipulation.c: Ditto.
342 * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
343 * config/nds32/nds32-predicates.c: Ditto.
344 * config/nds32/nds32.c: Ditto.
345 * config/nios2/nios2.c: Ditto.
346 * config/pa/pa.c: Ditto.
347 * config/pdp11/pdp11.c: Ditto.
348 * config/rl78/rl78.c: Ditto.
349 * config/rs6000/rs6000.c: Ditto.
350 * config/rx/rx.c: Ditto.
351 * config/s390/s390.c: Ditto.
352 * config/sh/sh-mem.cc: Ditto.
353 * config/sh/sh.c: Ditto.
354 * config/sh/sh_optimize_sett_clrt.cc: Ditto.
355 * config/sh/sh_treg_combine.cc: Ditto.
356 * config/sparc/sparc.c: Ditto.
357 * config/spu/spu.c: Ditto.
358 * config/stormy16/stormy16.c: Ditto.
359 * config/tilegx/tilegx.c: Ditto.
360 * config/tilepro/tilepro.c: Ditto.
361 * config/v850/v850.c: Ditto.
362 * config/vax/vax.c: Ditto.
363 * config/xtensa/xtensa.c: Ditto.
365 2014-10-27 Alan Lawrence <alan.lawrence@arm.com>
367 * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
368 * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
369 Remove using preprocessor directives.
371 2014-10-27 Richard Biener <rguenther@suse.de>
373 * match.pd (0 % X): Properly use the iterator iterating over
374 all modulo operators.
377 2014-10-27 Richard Biener <rguenther@suse.de>
379 * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
380 (lattice): New global.
381 (fwprop_ssa_val): New function.
382 (fold_all_stmts): Likewise.
383 (pass_forwprop::execute): Finally fold all stmts.
385 2014-10-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
388 * doc/invoke.texi (fmessage-length): Update text to match reality.
390 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
392 * config/microblaze/microblaze.c: Include rtl-iter.h.
393 (microblaze_tls_referenced_p_1): Delete.
394 (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
396 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
398 * config/mips/mips.c (mips_at_reg_p): Delete.
399 (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
401 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
403 * config/mips/mips.c (mips_record_lo_sum): Replace with...
404 (mips_record_lo_sums): ...this new function.
405 (mips_reorg_process_insns): Update accordingly.
407 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
409 * config/mips/mips.c (mips_sim_insn): Update comment.
410 (mips_sim_wait_regs_2): Delete.
411 (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
413 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
415 * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
416 and return a bool. Iterate over all subrtxes here.
417 (r10k_needs_protection_p): Update accordingly.
419 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
421 * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
422 rather than an rtx pointer. Change type of insn from "void *"
423 to its real type. Return bool rather than int. Iterate over
425 (r10k_needs_protection_p_store): Update accordingly.
426 (r10k_needs_protection_p): Likewise.
428 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
430 * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
431 (mips16_rewrite_pool_refs): Take the insn and constant pool as
432 parameters. Iterate over the instruction's pattern and return void.
433 (mips16_lay_out_constants): Update accordingly.
435 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
437 * config/mips/mips.c (mips_kernel_reg_p): Replace with...
438 (mips_refers_to_kernel_reg_p): ...this new function.
439 (mips_expand_prologue): Update accordingly.
441 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
443 * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
444 as a parameter instead of the containing MEM. Iterate over all
445 subrtxes. Don't return a value.
446 (mips_rewrite_small_data): Update call accordingly.
448 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
450 * config/mips/mips.c: Include rtl-iter.h.
451 (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
452 Take the context as a parameter instead of the containing MEM.
453 Iterate over all subrtxes.
454 (mips_small_data_pattern_p): Update call accordingly.
456 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
458 * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
459 (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
461 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
463 * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
464 return a bool. Replace "void *" with specific type. Iterate
466 (mep_store_data_bypass_1): Update calls accordingly.
468 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
470 * config/mep/mep.c: Include rtl-iter.h.
471 (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
472 (xtensa_tls_referenced_p): Return a bool. Use FOR_EACH_SUBRTX.
474 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
476 * config/xtensa/xtensa.c: Include rtl-iter.h.
477 (xtensa_tls_referenced_p_1): Delete.
478 (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
480 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
482 * config/sh/sh.c (sh_contains_memref_p_1): Delete.
483 (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
485 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
487 * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
488 rtx as argument and return the number of changes.
489 * config/sh/sh.c: Include rtl-iter.h.
490 (shmedia_cleanup_truncate): Take an rtx as argument and iterate
491 over all subrtxes. Return the number of changes made.
492 * config/sh/sh.md: Update caller accordingly.
494 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
496 * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
497 (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
499 2014-10-26 Richard Sandiford <richard.sandiford@arm.com>
501 * config/m68k/m68k.c: Include rtl-iter.h.
502 (m68k_final_prescan_insn_1): Delete.
503 (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
505 2014-10-25 Jakub Jelinek <jakub@redhat.com>
507 PR tree-optimization/63641
508 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
509 to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
511 2014-10-25 Alan Modra <amodra@gmail.com>
513 PR rtl-optimization/63615
514 * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
515 decomposing PLUS or MINUS if operands are not placed adjacent
518 2014-10-25 Joseph Myers <joseph@codesourcery.com>
520 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
521 not allow e500 double in registers not satisyfing
524 2014-10-24 Aldy Hernandez <aldyh@redhat.com>
526 * dwarf2out.c (declare_in_namespace): Only emit external
527 declarations in the local scope once.
529 2014-10-24 Jonathan Wakely <jwakely@redhat.com>
531 * ginclude/stdbool.h: Do not define bool, true or false in C++11.
533 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
535 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
536 update uses to use new macro arguments.
537 (__LD3_LANE_FUNC): Likewise.
538 (__LD4_LANE_FUNC): Likewise.
540 2014-10-24 Charles Baylis <charles.baylis@linaro.org>
542 * config/aarch64/aarch64-builtins.c
543 (aarch64_types_loadstruct_lane_qualifiers): Define.
544 * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
545 ld4_lane): New builtins.
546 * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
548 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
549 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
550 (aarch64_ld2_lane<mode>): New expand.
551 (aarch64_ld3_lane<mode>): Likewise.
552 (aarch64_ld4_lane<mode>): Likewise.
553 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
554 UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
556 2014-10-24 Georg-Johann Lay <avr@gjlay.de>
558 * avr-protos.h (avr_out_sign_extend): New.
559 * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
560 (avr_out_sign_extend): New function.
561 * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
562 (extendhisi2, extendpsisi2): Use it.
563 (adjust_len) [sext]: New.
565 2014-10-24 Martin Liska <mliska@suse.cz>
567 * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
570 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
572 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
573 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
574 * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
575 (LINK_SPEC): Include CA53_ERR_835769_SPEC.
577 2014-10-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
579 * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
581 * config/aarch64/aarch64.c (is_mem_p): Delete.
582 (is_memory_op): Rename to...
583 (has_memory_op): ... This. Use FOR_EACH_SUBRTX.
584 (dep_between_memop_and_curr): Assert that the input is a SET.
585 (aarch64_madd_needs_nop): Add comment. Do not call
586 dep_between_memop_and_curr on NULL body.
587 (aarch64_final_prescan_insn): Add comment.
590 2014-10-24 Richard Biener <rguenther@suse.de>
592 * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
593 to genmatch BUILD_LIBS instead.
595 2014-10-24 Richard Biener <rguenther@suse.de>
597 * genmatch.c (expr::gen_transform): Use fold_buildN_loc
598 and build_call_expr_loc.
599 (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
600 non_lvalue_loc to build it for GENERIC.
601 (decision_tree::gen_generic): Add location argument to
602 generic_simplify prototype.
603 (capture_info): New class.
604 (capture_info::capture_info): New constructor.
605 (capture_info::walk_match): New method.
606 (capture_info::walk_result): New method.
607 (capture_info::walk_c_expr): New method.
608 (dt_simplify::gen): Handle preserving side-effects for
609 GENERIC code generation.
610 (decision_tree::gen_generic): Do not reject operands
611 with TREE_SIDE_EFFECTS.
612 * generic-match.h: New file.
613 * generic-match-head.c: Include generic-match.h, not gimple-match.h.
614 * match.pd: Add some constant folding patterns from fold-const.c.
615 * fold-const.c: Include generic-match.h.
616 (fold_unary_loc): Dispatch to generic_simplify.
617 (fold_ternary_loc): Likewise.
618 (fold_binary_loc): Likewise. Remove patterns now implemented
620 * gimple-fold.c (replace_stmt_with_simplification): New function.
621 (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
622 (no_follow_ssa_edges): New function.
623 (fold_stmt): New overload with valueization hook. Use
624 no_follow_ssa_edges for the overload without hook.
625 (fold_stmt_inplace): Likewise.
626 * gimple-fold.h (no_follow_ssa_edges): Declare.
628 2014-10-24 Felix Yang <felix.yang@huawei.com>
629 Jiji Jiang <jiangjiji@huawei.com>
632 * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
633 (__LD3R_FUNC): Ditto.
634 (__LD4R_FUNC): Ditto.
635 (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
636 vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
637 vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
638 vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
639 vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
640 vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
641 (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
642 vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
643 vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
644 vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
645 vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
646 vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
647 (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
648 vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
649 vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
650 vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
651 vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
652 vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
653 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
654 UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
655 * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
657 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
658 (aarch64_simd_ld3r<mode>): Likewise.
659 (aarch64_simd_ld4r<mode>): Likewise.
660 (aarch64_ld2r<mode>): New expand.
661 (aarch64_ld3r<mode>): Likewise.
662 (aarch64_ld4r<mode>): Likewise.
664 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
666 * rtlanal.c (get_base_term): Handle SCRATCH.
668 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
670 * haifa-sched.c (sched_init): Disable max_issue when scheduling for
673 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
675 * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
676 (cached_issue_rate): Remove. Use dfa_lookahead and issue_rate instead.
677 (max_issue, choose_ready, sched_init): Update.
679 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
681 * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
682 * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
683 (rfs_result): Set INSN_LAST_RFS_WIN. Update signature.
684 (rank_for_schedule): Update calls to rfs_result to pass new parameters.
685 (print_rank_for_schedule_stats): Print out elements of ready list that
686 ended up on their respective places due to each of the sorting
688 (ready_sort): Update.
689 (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
690 (schedule_block): Update.
692 2014-10-24 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
694 * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
695 arrays. Use sched_class_regs_num instead of ira_class_hard_regs_num.
696 (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
697 (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
698 (model_start_schedule): Update.
699 (sched_pressure_start_bb): New static function. Calculate
700 sched_class_regs_num.
701 (schedule_block): Use it.
702 (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
704 2014-10-24 Richard Biener <rguenther@suse.de>
706 * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
707 host library and make sure to pull in the required libintl
708 and libiconv dependencies.
710 2014-10-24 Richard Biener <rguenther@suse.de>
712 * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
714 2014-10-24 Markus Trippelsdorf <markus@trippelsdorf.de>
717 * collect2.c (main): Filter out -fno-lto.
719 2014-10-24 Martin Liska <mliska@suse.cz>
721 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
722 division by zero in dumps.
723 (sem_item_optimizer::merge_classes): Ditto.
725 2014-10-23 John David Anglin <danglin@gcc.gnu.org>
727 * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
729 2014-10-23 Ian Lance Taylor <iant@google.com>
731 * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
733 2014-10-23 Ian Lance Taylor <iant@google.com>
735 * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
737 2014-10-23 Jakub Jelinek <jakub@redhat.com>
740 * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
741 (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
742 instead of only handling autoinc in dest if it is a MEM.
743 (vt_stack_adjustments): Fix up formatting.
745 2014-10-23 DJ Delorie <dj@redhat.com>
747 * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
748 independend of -mlarge.
749 * config/msp430/constraints.md (Ys): Update comment.
751 2014-10-23 Evgeny Stupachenko <evstupac@gmail.com>
755 * cse.c (delete_trivially_dead_insns): Consider PIC register is used
757 * dse.c (deletable_insn_p): Likewise.
759 2014-10-23 Georg-Johann Lay <avr@gjlay.de>
761 * config/avr/avr.c: Fix GNU coding rules and typos.
762 * config/avr/avr.h: Dito.
763 * config/avr/avr-c.c: Dito.
764 * config/avr/avr.md: Dito.
766 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
768 * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
770 (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
772 (define_expand "abs<mode>2"): Ditto.
774 2014-10-23 Kirill Yukhin <kirill.yukhin@intel.com>
776 * tree-core.h (tree_var_decl): Extend `function_code' field
777 by one bit, move `regdecl_flag' field to ...
778 (tree_decl_with_vis): Here.
779 * tree.h (DECL_STATIC_CHAIN): Update struct name.
781 2014-10-23 Richard Biener <rguenther@suse.de>
783 * Makefile.in (BUILD_CPPLIB): Add.
784 (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
787 2014-10-23 Richard Biener <rguenther@suse.de>
789 * fold-const.c (fold_binary_loc): Preserve side-effects of
790 X - X when simplifying to 0.
791 * stor-layout.c (finish_bitfield_representative): Strip
792 side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
794 2014-10-22 Richard Biener <rguenther@suse.de>
795 Tobias Burnus <burnus@net-b.de>
798 * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
800 2014-10-22 Dehao Chen <dehao@google.com>
802 * auto-profile.c: Change order of header files.
804 2014-10-22 Guozhi Wei <carrot@google.com>
806 PR tree-optimization/63530
807 tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
808 pointer alignment according to DR_MISALIGNMENT.
810 2014-10-22 David Malcolm <dmalcolm@redhat.com>
812 * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
814 2014-10-22 Andrew MacLeod <amacleod@redhat.com>
816 * cfgbuild.h: New. Add prototypes for cfgbuild.c.
817 * cfgcleanup.h: New. Add prototypes for cfgcleanup.c.
818 * cfgloopmanip.h: New. Add prototypes for cfgloopmanip.c.
819 * dominance.h: New. Add prototypes for dominance.c.
820 * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
821 * cfghooks.h: (struct profile_record) Relocate here.
822 Relocate 2 prototypes from basic-block.h.
823 * basic-block.h: Move prototypes and struct to new header files.
824 Include cfgbuild.h, cfgcleanup.h, and dominance.h.
825 * rtl.h: Move a few prototypes to new header files.
826 * cfgcleanup.c (merge_memattrs): Make static.
827 * genopinit.c (main): Add predict.h to list of includes.
828 * predict.h: Update prototype list to match predict.c.
829 * predict.c (maybe_hot_count_p): Export.
830 (cgraph_edge::maybe_hot_p): Move to cgraph.c.
831 (cgraph_node::optimize_for_size_p): Move to cgraph.h.
832 * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
833 * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
834 * profile.h: Adjust prototypes.
835 * ifcvt.h: New. Relocate struct ce_if_block here.
836 * ifcvt.c: Include ifcvt.h.
837 * config/frv/frv.c: Include ifcvt.h.
838 * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
840 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
842 * lra.c (lra): Remove call to recog_init.
843 * config/i386/i386.md (preferred_for_speed): New attribute
844 (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
845 "enabled". Remove check for sched1.
847 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
849 * recog.h (recog_data_d): Remove enabled_alternatives.
850 * recog.c (extract_insn): Don't set it.
851 * reload.c (find_reloads): Call get_enabled_alternatives.
853 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
855 * recog.h (constrain_operands): Add an alternative_mask parameter.
856 (constrain_operands_cached): Likewise.
857 (get_preferred_alternatives): Declare new form.
858 * recog.c (get_preferred_alternatives): New bb-taking instance.
859 (constrain_operands): Take the set of available alternatives as
861 (check_asm_operands, insn_invalid_p, extract_constrain_insn)
862 (extract_constrain_insn_cached): Update calls to constrain_operands.
863 * caller-save.c (reg_save_code): Likewise.
864 * ira.c (setup_prohibited_mode_move_regs): Likewise.
865 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
866 * ree.c (combine_reaching_defs): Likewise.
867 * reload.c (can_reload_into): Likewise.
868 * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
869 (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
870 (emit_insn_if_valid_for_reload): Likewise.
871 * reorg.c (fill_slots_from_thread): Likewise.
872 * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
873 * config/pa/pa.c (pa_can_combine_p): Likewise.
874 * config/rl78/rl78.c (insn_ok_now): Likewise.
875 * config/sh/sh.md (define_peephole2): Likewise.
876 * final.c (final_scan_insn): Update call to constrain_operands_cached.
878 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
880 * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
882 * genattr.c (main): Handle "preferred_for_size" and
883 "preferred_for_speed" in the same way as "enabled".
884 * recog.h (bool_attr): New enum.
885 (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
886 (get_preferred_alternatives, check_bool_attrs): Declare.
887 * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
888 (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
890 (get_enabled_alternatives): Use get_bool_attr_mask.
891 * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
892 instead of recog_data.enabled_alternatives.
893 * ira.c (ira_setup_alts): Likewise.
894 * postreload.c (reload_cse_simplify_operands): Likewise.
895 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
896 * ira-lives.c (preferred_alternatives): New variable.
897 (process_bb_node_lives): Set it.
898 (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
899 (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
900 of recog_data.enabled_alternatives.
901 * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
902 to preferred_alternatives.
903 * lra-constraints.c (process_alt_operands): Update accordingly.
904 * lra.c (lra_set_insn_recog_data): Likewise.
905 (lra_update_insn_recog_data): Assert check_bool_attrs.
907 2014-10-22 Richard Sandiford <richard.sandiford@arm.com>
909 * recog.h (extract_constrain_insn): Declare.
910 * recog.c (extract_constrain_insn): New function.
911 * lra.c (check_rtl): Use it.
912 * postreload.c (reload_cse_simplify_operands): Likewise.
913 * reg-stack.c (check_asm_stack_operands): Likewise.
914 (subst_asm_stack_regs): Likewise.
915 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
916 * regrename.c (build_def_use): Likewise.
917 * sel-sched.c (get_reg_class): Likewise.
918 * config/arm/arm.c (note_invalid_constants): Likewise.
919 * config/s390/predicates.md (execute_operation): Likewise.
921 2014-10-22 Jakub Jelinek <jakub@redhat.com>
922 Yury Gribov <y.gribov@samsung.com>
924 * common.opt (flag_sanitize_recover): New variable.
925 (fsanitize-recover): Remove Var/Init, deprecate.
926 (fsanitize-recover=): New option.
927 * doc/invoke.texi (fsanitize-recover): Update docs.
928 * opts.c (finish_options): Use opts->x_flag_sanitize
929 instead of flag_sanitize. Prohibit -fsanitize-recover
930 for anything besides UBSan. Formatting.
931 (common_handle_option): Handle OPT_fsanitize_recover_
932 and OPT_fsanitize_recover. Use opts->x_flag_sanitize
933 instead of flag_sanitize.
934 * asan.c (pass_sanopt::execute): Fix up formatting.
935 * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
936 ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
937 instrument_bool_enum_load, ubsan_instrument_float_cast,
938 instrument_nonnull_arg, instrument_nonnull_return): Check
939 bits in flag_sanitize_recover bitmask instead of
940 flag_sanitize_recover as bool flag.
942 2014-10-22 Jiong Wang <jiong.wang@arm.com>
944 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
946 2014-10-22 Renlin Li <renlin.li@arm.com>
948 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
949 __ARM_FEATURE_IDIV__.
951 2014-10-22 Richard Biener <rguenther@suse.de>
953 * Makefile.in (s-match): Adjust dependencies to only catch
956 2014-10-22 Richard Biener <rguenther@suse.de>
957 Prathamesh Kulkarni <bilbotheelffriend@gmail.com>
959 * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
960 (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
961 (gimple-match.c): Generate by triggering s-match.
962 (generic-match.c): Likewise.
963 (s-match): Rule to build gimple-match.c and generic-match.c
964 by running the genmatch generator program.
965 (build/hash-table.o): Dependencies to build hash-table.c for the host.
966 (build/genmatch.o): Dependencies to build genmatch.
967 (genprog): Add match.
968 (build/genmatch): Likewise.
969 (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
970 * generic-match-head.c: New file.
971 * gimple-match-head.c: Likewise.
972 * gimple-match.h: Likewise.
973 * genmatch.c: Likewise.
974 * match.pd: Likewise.
975 * builtins.h (fold_builtin_n): Export.
976 * builtins.c (fold_builtin_n): Likewise.
977 * gimple-fold.h (gimple_build): Declare various overloads.
978 (gimple_simplify): Likewise.
979 (gimple_convert): Re-implement in terms of gimple_build.
980 * gimple-fold.c (gimple_convert): Remove.
981 (gimple_build): New functions.
982 * doc/match-and-simplify.texi: New file.
983 * doc/gccint.texi: Add menu item Match and Simplify and include
984 match-and-simplify.texi.
986 2014-10-22 Jakub Jelinek <jakub@redhat.com>
989 * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
990 V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
991 even for just TARGET_AVX2, not only for
992 TARGET_AVX512VL && TARGET_AVX512BW. For V{32HI,64QI}mode,
993 call ix86_vector_duplicate_value only if TARGET_AVX512BW,
994 otherwise build it using concatenation of 256-bit
996 * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
997 avx512 broadcast patterns.
998 (vec_dup<mode>): Likewise. For avx2 use
999 v<sseintprefix>broadcast<bcstscalarsuff> instead of
1000 vbroadcast<ssescalarmodesuffix>.
1001 (AVX2_VEC_DUP_MODE): New mode iterator.
1002 (*vec_dup<mode>): New TARGET_AVX2 define_insn with
1003 AVX2_VEC_DUP_MODE iterator, add a splitter for that.
1006 * config/i386/i386.c (ix86_pic_register_p): Also return
1007 true if x is a hard register with ORIGINAL_REGNO equal to
1008 pic_offset_table_rtx pseudo REGNO.
1009 (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
1010 after reload, subtract GOT_SYMBOL_NAME symbol if possible.
1012 2014-10-22 Alan Modra <amodra@gmail.com>
1014 * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
1015 * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
1016 (gcc_obstack_init): Use obstack_specify_allocation in place of
1018 * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
1019 (regexp_representation): Likewise.
1020 * godump.c (go_output_type): Likewise.
1022 2014-10-21 John David Anglin <danglin@gcc.gnu.org>
1024 * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
1025 * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
1026 * config/pa/pa.opt (mjump-in-delay): Ignore option. Update comment.
1028 2014-10-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
1030 * doc/invoke.texi (pedantic-errors): Explain better.
1032 2014-10-21 Joern Rennecke <joern.rennecke@embecosm.com>
1033 Vidya Praveen <vidya.praveen@atmel.com>
1034 Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
1035 Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
1036 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
1038 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
1040 * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
1041 (avr_nonconst_pointer_addrspace): Likewise.
1042 * config/avr/avr.h (AVR_HAVE_LPM): Define.
1044 Added AVRTINY architecture to avr target.
1045 * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
1046 (base_arch_s): member added for AVRTINY architecture.
1047 * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
1048 alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
1049 AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
1050 and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
1051 respectively. LAST_CALLEE_SAVED_REG macro added for the last register
1052 in callee saved register list.
1053 (avr_option_override): CCP address updated for AVRTINY.
1054 (avr_init_expanders): tmp and zero rtx initialized as per arch.
1055 Reset avr_have_dimode if AVRTINY.
1056 (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
1057 (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
1058 (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
1059 Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
1060 (expand_epilogue): Likewise.
1061 (avr_print_operand): Print CCP address in case of AVRTINY also.
1063 (function_arg_regno_p): Check different register list for arguments
1065 (init_cumulative_args): Check for AVRTINY to update number of argument
1067 (tiny_valid_direct_memory_access_range): New function. Return false if
1068 direct memory access range is not in accepted range for AVRTINY.
1069 (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
1070 indirect load (with displacement) for AVRTINY.
1071 (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
1072 avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
1073 (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
1074 indirect load (no displacement) for AVRTINY.
1075 (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
1076 indirect load (with displacement) for AVRTINY.
1077 (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
1078 indirect load for pre-decrement address.
1079 (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
1080 functions. Update instruction length for AVRTINY.
1081 (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
1083 (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
1084 (out_movsi_r_mr): Likewise, for SImode.
1085 (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
1086 indirect store (no displacement) for AVRTINY.
1087 (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
1088 indirect store (with displacement) for AVRTINY.
1089 (out_movsi_mr_r): Emit out insn for IO address store. Update store
1090 instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
1092 (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
1093 indirect load (no displacement) for PSImode in AVRTINY.
1094 (avr_out_load_psi_reg_disp_tiny): New function to handle register
1095 indirect load (with displacement) for PSImode in AVRTINY.
1096 (avr_out_load_psi): Call PSImode register indirect load functions for
1097 AVRTINY. Update instruction length for AVRTINY.
1098 (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
1099 indirect store (no displacement) for PSImode in AVRTINY.
1100 (avr_out_store_psi_reg_disp_tiny): New function to handle register
1101 indirect store (with displacement) for PSImode in AVRTINY.
1102 (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
1103 register indirect store functions for AVRTINY.
1104 (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
1105 register indirect store (with displacement) for AVRTINY.
1106 (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
1107 register indirect store function for QImode in AVRTINY.
1108 (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
1109 (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
1110 indirect store (no displacement) for HImode in AVRTINY.
1111 (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
1112 indirect store (with displacement) for HImode in AVRTINY.
1113 (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
1114 indirect store for post-increment address in HImode.
1115 (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
1116 register indirect store function for HImode in AVRTINY.
1117 (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
1119 (order_regs_for_local_alloc): Updated register allocation order for
1121 (avr_conditional_register_usage): New function. It is a target hook
1122 (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
1123 used registers list and register allocation order for AVRTINY.
1124 (avr_return_in_memory): Update return value size for AVRTINY.
1125 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
1126 for AVRTINY arch and tiny program memory base address.
1127 * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
1128 (avr_texinfo): Added description for AVRTINY arch.
1129 * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
1130 STATIC_CHAIN_REGNUM for AVRTINY.
1131 * config/avr/avr-mcus.def: Added AVRTINY arch devices.
1132 * config/avr/avr.md: Added constants for tmp/ zero registers in
1133 AVRTINY. Attributes for AVRTINY added.
1134 (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
1135 memory access range.
1136 (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
1137 in AVRTINY memory access range.
1138 (*mov<mode>): Likewise for HImode and SImode.
1139 (*movsf): Likewise for SFmode.
1140 (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
1142 * config/avr/avr-protos.h: Added function prototype for
1143 tiny_valid_direct_memory_access_range.
1144 * config/avr/avr-tables.opt: Regenerate.
1145 * gcc/config/avr/t-multilib: Regenerate.
1146 * doc/avr-mmcu.texi: Regenerate.
1148 2014-10-21 Andrew Pinski <apinski@cavium.com>
1150 * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
1151 available option also.
1152 * config/aarch64/aarch64-cost-tables.h: New file.
1153 * config/aarch64/aarch64-cores.def (thunderx): New core.
1154 * config/aarch64/aarch64-tune.md: Regenerate.
1155 * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
1156 of config/arm/aarch-cost-tables.h.
1157 (thunderx_regmove_cost): New variable.
1158 (thunderx_tunings): New variable.
1160 2014-10-21 Dehao Chen <dehao@google.com>
1162 * auto-profile.c: New file.
1163 * auto-profile.h: New file.
1164 * basic-block.h (maybe_hot_count_p): New export func.
1165 (add_working_set): New export func.
1166 * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
1167 (GCOV_TAG_AFDO_FUNCTION): Likewise.
1168 (GCOV_TAG_AFDO_WORKING_SET): Likewise.
1169 * opts.c (enable_fdo_optimizations): New func.
1170 (common_handle_option): Handle -fauto-profile flag.
1171 * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
1172 (class pass_early_inline): Export early_inliner.
1173 (early_inliner): Likewise.
1174 (pass_early_inline::execute): Likewise.
1175 * ipa-inline.h (early_inliner): Likewise.
1176 * predict.c (maybe_hot_count_p): New export func.
1177 (counts_to_freqs): AutoFDO logic.
1178 (rebuild_frequencies): Likewise.
1179 * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
1180 * profile.c (add_working_set): New func.
1181 * Makefile.in (auto-profile.o): New object file.
1182 * passes.def (pass_ipa_auto_profile): New pass.
1183 * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
1184 * tree-pass.h (make_pass_ipa_auto_profile): New pass.
1185 * toplev.c (compile_file): AutoFDO logic.
1186 * doc/invoke.texi (-fauto-profile): New doc.
1187 * coverage.c (coverage_init): AutoFDO logic.
1188 * common.opt (-fauto-profile): New flag.
1189 * timevar.def (TV_IPA_AUTOFDO): New tag.
1190 * value-prof.c (gimple_alloc_histogram_value): New export func.
1191 (check_ic_target): Likewise.
1192 * value-prof.h (gimple_alloc_histogram_value): Likewise.
1193 (check_ic_target): Likewise.
1195 2014-10-21 David Malcolm <dmalcolm@redhat.com>
1197 * cgraph.c (cgraph_c_finalize): New function.
1198 * cgraph.h (cgraph_c_finalize): New prototype.
1199 (cgraphunit_c_finalize): New prototype.
1200 * cgraphunit.c (first_analyzed): Move from analyze_functions
1202 (first_analyzed_var): Likewise.
1203 (analyze_functions): Move static variables into file-scope.
1204 (cgraphunit_c_finalize): New function.
1205 * diagnostic.c (diagnostic_finish): Free the memory for
1206 context->classify_diagnostic and context->printer, running the
1207 destructor for the latter.
1208 (bt_stop): Use toplev::main.
1209 * dwarf2out.c (dwarf2out_finalize): New function.
1210 * dwarf2out.h (dwarf2out_c_finalize): New prototype.
1211 * gcse.c (gcse_c_finalize): New function.
1212 * gcse.h (gcse_c_finalize): New prototype.
1213 * ggc-page.c (init_ggc): Make idempotent.
1214 * input.c (input_location): Initialize to UNKNOWN_LOCATION.
1215 * ipa-cp.c (ipa_cp_c_finalize): New function.
1216 * ipa-prop.h (ipa_cp_c_finalize): New prototype.
1217 * ipa-pure-const.c (function_insertion_hook_holder): Move to be
1218 a field of class pass_ipa_pure_const.
1219 (node_duplication_hook_holder): Likewise.
1220 (node_removal_hook_holder): Likewise.
1221 (register_hooks): Convert to method...
1222 (pass_ipa_pure_const::register_hooks): ...here, converting
1223 static variable init_p into...
1224 (pass_ipa_pure_const::init_p): ...new field.
1225 (pure_const_generate_summary): Update invocation of
1226 register_hooks to invoke as a method of current_pass.
1227 (pure_const_read_summary): Likewise.
1228 (propagate): Convert to...
1229 (pass_ipa_pure_const::execute): ...method.
1230 * ipa-reference.c (ipa_init): Move static bool init_p from here
1232 (ipa_init_p): New file-scope variable, so that it can be reset
1233 when repeatedly invoking the compiler within one process by...
1234 (ipa_reference_c_finalize): New function.
1235 * ipa-reference.h (ipa_reference_c_finalize): New.
1236 * main.c (main): Replace invocation of toplev_main with
1237 construction of a toplev instance, and call its "main" method.
1238 * params.c (global_init_params): Add an assert that
1239 params_finished is false.
1240 (params_c_finalize): New.
1241 * params.h (params_c_finalize): New.
1242 * passes.c (execute_ipa_summary_passes): Set "current_pass" before
1243 invoking generate_summary, for the benefit of pass_ipa_pure_const.
1244 (ipa_write_summaries_2): Assign "pass" to "current_pass" global
1245 before calling write_summary hook.
1246 (ipa_write_optimization_summaries_1): Likewise when calling
1247 write_optimization_summary hook.
1248 (ipa_read_summaries_1): Likewise for read_summary hook.
1249 (ipa_read_optimization_summaries_1): Likewise for
1250 read_optimization_summary hook.
1251 (execute_ipa_stmt_fixups): Likewise.
1252 * stringpool.c (init_stringpool): Clean up if we're called more
1254 * timevar.c (timevar_init): Ignore repeated calls.
1255 * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
1257 (general_init): Reset "input_location" to UNKNOWN_LOCATION.
1258 (initialize_rtl): Move static local "initialized_once"
1259 into file scope, and rename to...
1260 (rtl_initialized): New variable.
1261 (do_compile): Move timevar initialization from here to
1262 toplev::start_timevars.
1263 (toplev::toplev, toplev::~toplev, toplev::start_timevars,
1264 toplev::finalize): New functions.
1265 (toplev_main): Rename to...
1266 (toplev::main): ...this.
1267 * toplev.h (class toplev): New class.
1269 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
1271 * loop-doloop.c: Include loop-unroll.h.
1273 2014-10-21 Andrew MacLeod <amacleod@redhat.com>
1275 * cfg.h: New. Header file for cfg.c.
1276 * cfganal.h: New. Header file for cfganal.c.
1277 * lcm.h: New. Header file for lcm.c.
1278 * loop-unroll.h: New. Header file for loop-unroll.h.
1279 * cfgloop.h: (unroll_loops): Remove prototype.
1280 * basic-block.h: Move prototypes and structs to new header files.
1281 Include cfg.h, cfganal.h, and lcm.h.
1282 * loop-init.c: Include loop-unroll.h.
1283 * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
1284 * modulo-sched.c: Include loop-unroll.h.
1286 2014-10-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
1288 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
1289 MARKER_BYTE_UNKNOWN markers when handling casts.
1291 2014-10-21 Richard Biener <rguenther@suse.de>
1293 * tree-ssa-phiopt.c (value_replacement): Properly verify we
1294 are the non-singleton PHI.
1296 2014-10-21 Jakub Jelinek <jakub@redhat.com>
1298 PR tree-optimization/63563
1299 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
1300 if either dra or drb stmts are not normal loads/stores.
1302 2014-10-21 Ilya Tocar <ilya.tocar@intel.com>
1304 * config/i386/i386.c (expand_vec_perm_1): Fix
1305 expand_vec_perm_palignr case.
1306 * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
1309 2014-10-21 Zhenqiang Chen <zhenqiang.chen@arm.com>
1311 * cfgloopanal.c (seq_cost): Delete.
1312 * rtl.h (seq_cost): New prototype.
1313 * rtlanal.c (seq_cost): New function.
1314 * tree-ssa-loop-ivopts.c (seq_cost): Delete.
1316 2014-10-20 Andrew MacLeod <amacleod@redhat.com>
1318 * cfgrtl.h: New. Add prototypes for cfgrtl.c.
1319 * basic-block.h: Remove prototypes for cfgrtl.c.
1320 * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
1321 prototypes to cfgrtl.h.
1322 * profile.h (profile_info): Add extern export declaration.
1323 * rtl.h: Remove prototypes for cfgrtl.h.
1324 * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
1325 * ipa-inline.c: Include profile.h.
1326 * loop-unroll.c: Ditto.
1327 * modulo-sched.c: Ditto.
1328 * postreload-gcse.c: Ditto.
1330 * sched-ebb.c: Ditto.
1331 * sched-rgn.c: Ditto.
1333 * tree-ssa-loop-ivcanon.c: Ditto.
1335 2014-10-20 Richard Biener <rguenther@suse.de>
1337 * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
1338 operands to get a def operand kind match. Signal mismatches
1339 to the parent so we can try swapping its operands.
1340 (vect_build_slp_tree): Try swapping operands if they have
1341 a mismatched operand kind.
1343 2014-10-20 Alan Modra <amodra@gmail.com>
1346 * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
1347 Increase "ops" array size. Correct array size tests. Init
1348 n_constants in loop. Break out of innermost loop when finding
1349 a trivial CONST expression.
1351 2014-10-20 Martin Liska <mliska@suse.cz>
1354 * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
1355 Gimple tempate string is compared.
1357 2014-10-20 Uros Bizjak <ubizjak@gmail.com>
1359 * varasm.c (const_alias_set): Remove.
1360 (init_varasm_once): Remove initialization of const_alias_set.
1361 (build_constant_desc): Do not set alias set to const_alias_set.
1363 2014-10-19 Ilya Verbin <ilya.verbin@intel.com>
1365 * configure: Regenerate.
1366 * configure.ac: Move the test for section attribute specifier "e" in GAS
1367 out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
1368 * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
1369 * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
1370 ifdef HAVE_GAS_SECTION_EXCLUDE.
1372 2014-10-19 Andreas Schwab <schwab@linux-m68k.org>
1374 * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
1375 match_operand expression.
1377 2014-10-19 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
1378 David Edelsohn <dje.gcc@gmail.com>
1380 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
1382 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1384 2014-10-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
1386 * doc/invoke.texi (Options to Request or Suppress Warnings):
1387 Explain options precedence.
1388 (Wtrampolines): Do not indent paragraph.
1390 2014-10-18 John David Anglin <danglin@gcc.gnu.org>
1392 * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
1393 * config/pa/pa-protos.h (pa_following_call): Delete declaration.
1394 (pa_jump_in_call_delay): Likewise.
1395 * config/pa/pa.c (pa_option_override): Remove jump in call delay
1397 (pa_output_millicode_call): Remove support for jump in call delay.
1398 (pa_output_call): Likewise.
1399 (pa_jump_in_call_delay): Delete.
1400 (pa_following_call): Likewise.
1401 * config/pa/pa.md (in_call_delay): Remove jump in delay check.
1402 (uncond_branch): Remove following call check from attribute length.
1404 2014-10-18 Oleg Endo <olegendo@gcc.gnu.org>
1407 * config/sh/sh-modes.def (PSI): Remove.
1408 * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
1409 * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
1410 (sh_reorg): Remove commented out FPSCR code.
1411 (fpscr_set_from_mem): Use SImode instead of PSImode. Emit lds_fpscr
1412 insn instead of move insn.
1413 (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1414 (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1416 (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1417 (sh1_builtin_p): Uncomment.
1418 (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1419 (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1420 * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1421 (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1422 (general_movsrc_operand, general_movdst_operand): Disallow
1424 * config/sh/sh.md (FPSCR_FR): New constant.
1425 (push_fpscr): Emit sts_fpscr insn.
1426 (pop_fpscr): Emit lds_fpscr_insn.
1427 (movsi_ie): Disallow FPSCR operands.
1428 (fpu_switch, unnamed related split, extend_psi_si,
1429 truncate_si_psi): Remove insns.
1430 (lds_fpscr, sts_fpscr): New insns.
1431 (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1433 2014-10-17 Eric Botcazou <ebotcazou@adacore.com>
1435 * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1436 (clone_inlined_nodes): Do not overwrite the clone if above predicate
1439 2014-10-17 Ilya Tocar <ilya.tocar@intel.com>
1441 * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1442 (expand_vec_perm_d): Ditto.
1443 (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1444 V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1446 (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1447 (ix86_expand_sse_unpack): Handle V64QImode.
1448 (expand_vec_perm_blend): Update conditions for TARGET, handle
1449 V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1450 (expand_vec_perm_pshufb): Handle V64QImode.
1451 (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1452 V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1453 (ix86_expand_vec_perm_const_1): Call ix86_expand_vec_perm_vpermi2.
1454 (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1455 (ix86_expand_vecop_qihi): Handle V64QImode.
1456 * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1457 (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1458 (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1459 (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1460 (mul<mode>3): Use VI1_AVX512.
1461 (<sse2_avx2>_packsswb): Ditto.
1462 (<sse2_avx2>_packuswb): Ditto.
1463 (<ssse3_avx2>_pshufb<mode>3): Ditto.
1464 (<shift_insn><mode>3): Ditto.
1466 2014-10-17 Kirill Yukhin <kirill.yukhin@intel.com>
1468 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1469 conditions to fix bootstrap.
1471 2014-10-17 Andrew MacLeod <amacleod@redhat.com>
1473 gcc-plugin.h: Add tm.h and flattened includes from function.h.
1475 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
1476 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1477 Anna Tikhonova <anna.tikhonova@intel.com>
1478 Ilya Tocar <ilya.tocar@intel.com>
1479 Andrey Turetskiy <andrey.turetskiy@intel.com>
1480 Ilya Verbin <ilya.verbin@intel.com>
1481 Kirill Yukhin <kirill.yukhin@intel.com>
1482 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1484 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1485 and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1486 (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1487 * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1488 (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1489 (define_expand "vec_init<mode>"): Use VF48_I1248.
1491 2014-10-17 Alexander Ivchenko <alexander.ivchenko@intel.com>
1492 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1493 Anna Tikhonova <anna.tikhonova@intel.com>
1494 Ilya Tocar <ilya.tocar@intel.com>
1495 Andrey Turetskiy <andrey.turetskiy@intel.com>
1496 Ilya Verbin <ilya.verbin@intel.com>
1497 Kirill Yukhin <kirill.yukhin@intel.com>
1498 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1500 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1501 expand_sse2_mulvxdi3.
1503 2014-10-17 Richard Biener <rguenther@suse.de>
1505 * fold-const.c (fold_comparison): Remove redundant constant
1506 folding and operand swapping.
1507 (fold_binary_loc): Do comparison operand swapping here.
1508 (fold_ternary_loc): Canonicalize operand order for
1509 commutative ternary operations.
1510 * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1513 2014-10-17 Jakub Jelinek <jakub@redhat.com>
1515 PR tree-optimization/63464
1516 * gimple.h (gimple_seq_discard): New prototype.
1517 * gimple.c: Include stringpool.h and tree-ssanames.h.
1518 (gimple_seq_discard): New function.
1519 * optabs.h (lshift_cheap_p): New prototype.
1520 * optabs.c (lshift_cheap_p): New function, moved from...
1521 * tree-switch-conversion.c (lshift_cheap_p): ... here.
1522 * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1523 (reassoc_branch_fixups): New variable.
1524 (update_range_test): Add otherrangep and seq arguments.
1525 Unshare exp. If otherrange is NULL, use for other ranges
1526 array of pointers pointed by otherrangep instead.
1527 Emit seq before gimplified statements for tem.
1528 (optimize_range_tests_diff): Adjust update_range_test
1530 (optimize_range_tests_xor): Likewise. Fix up comment.
1531 (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1533 (optimize_range_tests): Adjust update_range_test caller.
1534 Call optimize_range_tests_to_bit_test.
1535 (branch_fixup): New function.
1536 (execute_reassoc): Call branch_fixup.
1538 PR tree-optimization/63302
1539 * tree-ssa-reassoc.c (optimize_range_tests_xor,
1540 optimize_range_tests_diff): Use !integer_pow2p () instead of
1543 2014-10-17 Martin Liska <mliska@suse.cz>
1545 * ipa-icf.c (sem_function::merge): Local flags are set to false
1546 to enforce equal calling convention to be used.
1547 * opts.c (common_handle_option): Indentation fix.
1549 2014-10-17 Marc Glisse <marc.glisse@inria.fr>
1551 * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1553 2014-10-17 Tom de Vries <tom@codesourcery.com>
1555 PR rtl-optimization/61605
1556 * regcprop.c (copyprop_hardreg_forward_1): Use
1557 regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1559 2014-10-17 Tom de Vries <tom@codesourcery.com>
1561 PR rtl-optimization/61605
1562 * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p. Don't
1563 notice stores for noops. Don't regard noops as copies.
1565 2014-10-17 Uros Bizjak <ubizjak@gmail.com>
1567 * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1568 register in a special way.
1569 (__cpuid_count): Ditto.
1570 * config/i386/driver-i386.h: Protect with
1571 "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1572 (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1573 is required to compile the function.
1575 2014-10-16 DJ Delorie <dj@redhat.com>
1577 * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1580 * config/rs6000/rs6000-c.c (rid_int128): New.
1581 (rs6000_macro_to_expand): Use instead of RID_INT128.
1583 2014-10-16 Andrew MacLeod <amacleod@redhat.com>
1585 * function.h: Flatten file. Remove includes, adjust prototypes to
1586 reflect only what is in function.h.
1587 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1588 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1590 (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1591 (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1592 prototypes to predict.h.
1593 (init_varasm_status): Move prototype to varasm.h.
1594 * expr.h: Adjust include files.
1595 (enum direction, struct args_size, struct locate_and_pad_arg_data,
1596 ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1598 (locate_and_pad_parm): Move prototype to function.h.
1599 * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1600 assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1601 assign_temp, reposition_prologue_and_epilogue_notes,
1602 prologue_epilogue_contains, sibcall_epilogue_contains,
1603 update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1604 set_return_jump_label): Move prototypes to function.h.
1605 * predict.h (optimize_function_for_size_p,
1606 optimize_function_for_speed_p): Relocate prototypes from function.h.
1607 * shrink-wrap.h (emit_return_into_block, active_insn_between,
1608 convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1610 * varasm.h (init_varasm_status): Relocate prototype from function.h.
1611 * genattrtab.c (write_header): Add predict.h to include list.
1612 * genconditions.c (write_header): Add predict.h to include list.
1613 * genemit.c (main): Adjust header file includes.
1614 * gengtype.c (ifiles): Add flattened function.h header files.
1615 * genoutput.c (output_prologue): Add predict.h to include list.
1616 * genpreds.c (write_insn_preds_c): Adjust header file includes.
1617 * genrecog.c (write_header): Add flattened function.h header files.
1618 * alias.c: Adjust include files.
1619 * auto-inc-dec.c: Likewise.
1620 * basic-block.h: Likewise.
1621 * bb-reorder.c: Likewise.
1622 * bt-load.c: Likewise.
1623 * builtins.c: Likewise.
1624 * caller-save.c: Likewise.
1625 * calls.c: Likewise.
1626 * cfgbuild.c: Likewise.
1627 * cfgcleanup.c: Likewise.
1628 * cfgexpand.c: Likewise.
1629 * cfgloop.c: Likewise.
1630 * cfgloop.h: Likewise.
1631 * cfgrtl.c: Likewise.
1632 * cgraph.h: Likewise.
1633 * cgraphclones.c: Likewise.
1634 * cgraphunit.c: Likewise.
1635 * combine-stack-adj.c: Likewise.
1636 * combine.c: Likewise.
1637 * coverage.c: Likewise.
1638 * cprop.c: Likewise.
1640 * cselib.c: Likewise.
1641 * dbxout.c: Likewise.
1643 * df-core.c: Likewise.
1644 * df-problems.c: Likewise.
1645 * df-scan.c: Likewise.
1646 * dojump.c: Likewise.
1647 * dwarf2cfi.c: Likewise.
1648 * dwarf2out.c: Likewise.
1649 * emit-rtl.c: Likewise.
1650 * except.c: Likewise.
1651 * explow.c: Likewise.
1653 * final.c: Likewise.
1654 * function.c: Likewise.
1656 * gimple-fold.c: Likewise.
1657 * gimple-low.c: Likewise.
1658 * gimple-streamer.h: Likewise.
1659 * haifa-sched.c: Likewise.
1660 * ifcvt.c: Likewise.
1664 * loop-invariant.c: Likewise.
1665 * lra-assigns.c: Likewise.
1666 * lra-coalesce.c: Likewise.
1667 * lra-constraints.c: Likewise.
1668 * lra-eliminations.c: Likewise.
1669 * lra-lives.c: Likewise.
1670 * lra-spills.c: Likewise.
1672 * lto-cgraph.c: Likewise.
1673 * lto-section-in.c: Likewise.
1674 * lto-section-out.c: Likewise.
1675 * lto-streamer-in.c: Likewise.
1676 * lto-streamer-out.c: Likewise.
1677 * mode-switching.c: Likewise.
1678 * modulo-sched.c: Likewise.
1679 * omp-low.c: Likewise.
1680 * optabs.c: Likewise.
1681 * passes.c: Likewise.
1682 * postreload-gcse.c: Likewise.
1683 * postreload.c: Likewise.
1684 * predict.c: Likewise.
1685 * profile.c: Likewise.
1686 * recog.c: Likewise.
1688 * reg-stack.c: Likewise.
1689 * regcprop.c: Likewise.
1690 * reginfo.c: Likewise.
1691 * regrename.c: Likewise.
1692 * reload.c: Likewise.
1693 * reload1.c: Likewise.
1694 * reorg.c: Likewise.
1695 * resource.c: Likewise.
1696 * rtlanal.c: Likewise.
1697 * sched-deps.c: Likewise.
1698 * sched-ebb.c: Likewise.
1699 * sched-rgn.c: Likewise.
1700 * sel-sched-dump.c: Likewise.
1701 * sel-sched-ir.c: Likewise.
1702 * sel-sched.c: Likewise.
1703 * shrink-wrap.c: Likewise.
1704 * simplify-rtx.c: Likewise.
1705 * statistics.c: Likewise.
1707 * stor-layout.c: Likewise.
1708 * store-motion.c: Likewise.
1709 * symtab.c: Likewise.
1710 * targhooks.c: Likewise.
1711 * toplev.c: Likewise.
1712 * trans-mem.c: Likewise.
1713 * tree-cfg.c: Likewise.
1714 * tree-cfgcleanup.c: Likewise.
1715 * tree-dfa.c: Likewise.
1716 * tree-eh.c: Likewise.
1717 * tree-inline.c: Likewise.
1718 * tree-into-ssa.c: Likewise.
1719 * tree-nested.c: Likewise.
1720 * tree-nrv.c: Likewise.
1721 * tree-profile.c: Likewise.
1722 * tree-ssa-alias.c: Likewise.
1723 * tree-ssa-ccp.c: Likewise.
1724 * tree-ssa-copy.c: Likewise.
1725 * tree-ssa-copyrename.c: Likewise.
1726 * tree-ssa-dom.c: Likewise.
1727 * tree-ssa-operands.c: Likewise.
1728 * tree-ssa-propagate.c: Likewise.
1729 * tree-ssa-structalias.c: Likewise.
1730 * tree-ssa-tail-merge.c: Likewise.
1731 * tree-ssa-threadedge.c: Likewise.
1732 * tree-ssa-threadupdate.c: Likewise.
1733 * tree-ssa-uncprop.c: Likewise.
1734 * tree-ssa-uninit.c: Likewise.
1735 * tree-ssa.c: Likewise.
1736 * tree-stdarg.c: Likewise.
1737 * tree-tailcall.c: Likewise.
1740 * valtrack.c: Likewise.
1741 * varasm.c: Likewise.
1742 * vmsdbgout.c: Likewise.
1744 * config/aarch64/aarch64.c: Add flattened includes from function.h.
1745 * config/alpha/alpha.c: Likewise.
1746 * config/arc/arc.c: Likewise.
1747 * config/arm/arm.c: Likewise.
1748 * config/avr/avr-log.c: Likewise.
1749 * config/avr/avr.c: Likewise.
1750 * config/bfin/bfin.c: Likewise.
1751 * config/c6x/c6x.c: Likewise.
1752 * config/cr16/cr16.c: Likewise.
1753 * config/cris/cris.c: Likewise.
1754 * config/darwin.c: Likewise.
1755 * config/epiphany/epiphany.c: Likewise.
1756 * config/epiphany/mode-switch-use.c: Likewise.
1757 * config/epiphany/resolve-sw-modes.c: Likewise.
1758 * config/fr30/fr30.c: Likewise.
1759 * config/frv/frv.c: Likewise.
1760 * config/h8300/h8300.c: Likewise.
1761 * config/i386/i386.c: Likewise.
1762 * config/ia64/ia64.c: Likewise.
1763 * config/iq2000/iq2000.c: Likewise.
1764 * config/lm32/lm32.c: Likewise.
1765 * config/m32c/m32c.c: Likewise.
1766 * config/m32r/m32r.c: Likewise.
1767 * config/m68k/m68k.c: Likewise.
1768 * config/mcore/mcore.c: Likewise.
1769 * config/mep/mep-pragma.c: Likewise.
1770 * config/mep/mep.c: Likewise.
1771 * config/microblaze/microblaze.c: Likewise.
1772 * config/mips/mips.c: Likewise.
1773 * config/mmix/mmix.c: Likewise.
1774 * config/mn10300/mn10300.c: Likewise.
1775 * config/moxie/moxie.c: Likewise.
1776 * config/msp430/msp430.c: Likewise.
1777 * config/nds32/nds32-cost.c: Likewise.
1778 * config/nds32/nds32-fp-as-gp.c: Likewise.
1779 * config/nds32/nds32-intrinsic.c: Likewise.
1780 * config/nds32/nds32-isr.c: Likewise.
1781 * config/nds32/nds32-md-auxiliary.c: Likewise.
1782 * config/nds32/nds32-memory-manipulation.c: Likewise.
1783 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1784 * config/nds32/nds32-predicates.c: Likewise.
1785 * config/nds32/nds32.c: Likewise.
1786 * config/nios2/nios2.c: Likewise.
1787 * config/pa/pa.c: Likewise.
1788 * config/pdp11/pdp11.c: Likewise.
1789 * config/rl78/rl78.c: Likewise.
1790 * config/rs6000/rs6000.c: Likewise.
1791 * config/rx/rx.c: Likewise.
1792 * config/s390/s390.c: Likewise.
1793 * config/score/score.c: Likewise.
1794 * config/sh/sh.c: Likewise.
1795 * config/sparc/sparc.c: Likewise.
1796 * config/spu/spu.c: Likewise.
1797 * config/stormy16/stormy16.c: Likewise.
1798 * config/tilegx/tilegx.c: Likewise.
1799 * config/tilepro/tilepro.c: Likewise.
1800 * config/v850/v850.c: Likewise.
1801 * config/vax/vax.c: Likewise.
1802 * config/xtensa/xtensa.c: Likewise.
1804 2014-10-16 Richard Earnshaw <rearnsha@arm.com>
1806 * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1807 (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1809 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1811 * config/sh/sh-protos.h (fldi_ok): Remove.
1812 * config/sh/sh.c (fldi_ok): Likewise.
1813 (sh_secondary_reload): Don't use fldi_ok.
1814 * config/sh/constraints.md (G constraint, H constraint): Don't use
1817 2014-10-16 Martin Liska <mliska@suse.cz>
1819 * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1820 Cast to unsigned long.
1821 (sem_item_optimizer::dump_cong_classes): Likewise.
1823 2014-10-16 Tom de Vries <tom@codesourcery.com>
1825 * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1826 with SSA_NAME_IN_FREELIST.
1828 2014-10-16 Richard Biener <rguenther@suse.de>
1831 * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1832 (fold_builtin_strncat_chk): Move ...
1833 * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1834 (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1836 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1839 * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1842 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1843 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1844 Anna Tikhonova <anna.tikhonova@intel.com>
1845 Ilya Tocar <ilya.tocar@intel.com>
1846 Andrey Turetskiy <andrey.turetskiy@intel.com>
1847 Ilya Verbin <ilya.verbin@intel.com>
1848 Kirill Yukhin <kirill.yukhin@intel.com>
1849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1851 * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1854 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1855 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1856 Anna Tikhonova <anna.tikhonova@intel.com>
1857 Ilya Tocar <ilya.tocar@intel.com>
1858 Andrey Turetskiy <andrey.turetskiy@intel.com>
1859 Ilya Verbin <ilya.verbin@intel.com>
1860 Kirill Yukhin <kirill.yukhin@intel.com>
1861 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1863 * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1864 V16SI, V32HI, V64QI modes.
1866 2014-10-16 Oleg Endo <olegendo@gcc.gnu.org>
1869 * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1870 expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1872 * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1873 to match fp insn patterns.
1874 (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1876 (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1877 expand_df_unop, expand_df_binop): Remove.
1878 (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1879 FPSCR_STAT_REG as not call clobbered.
1880 (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1881 invoking fpscr_set_from_mem.
1883 * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1884 (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1886 (REGISTER_NAMES): Adjust.
1887 (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1888 (FIRST_PSEUDO_REGISTER): Increase to 156.
1889 (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1890 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1892 (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1893 FPSCR_MODES_REG and FPSCR_STAT_REG.
1894 (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1896 * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1897 FPSCR_SZ): Add new constants.
1898 (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1900 (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1901 (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1902 Use TARGET_FPU_ANY condition.
1903 (fpu_switch peephole2): Remove.
1904 (fpu_switch split): Use simple_mem_operand to capture the mem and
1905 adjust split implementation.
1906 (extend_psi_si, truncate_si_psi): New insns.
1907 (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants. Add
1908 set of FPSCR_MODES_REG.
1910 (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1911 reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1912 calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1913 call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1914 call_value_compact, call_value_compact_rettramp, call,
1915 call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1916 sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1917 sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1918 sibcall_value_compact, sibcall_value, call_value_pop_compact,
1919 call_value_pop_compact_rettramp, various unnamed splits):
1920 Replace use of FPSCR_REG with use of FPSCR_MODES_REG. Adjust gen_*
1923 (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1924 (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1925 (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1926 (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1927 (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1929 (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1930 *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1931 cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1932 subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1933 cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1934 truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1935 and use of FPSCR_MODES_REG. Adjust gen_* function uses.
1937 2014-10-16 Martin Liska <mliska@suse.cz>
1938 Jan Hubicka <hubicka@ucw.cz>
1940 * Makefile.in: New object files included.
1941 * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1943 (verify_edge_corresponds_to_fndecl): More sensitive verification
1944 of nodes that are merged by IPA ICF.
1945 * cgraph.h (cgraph_node::num_references): New function.
1946 * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1947 * common.opt: New options ipa-icf, ipa-icf-functions and
1948 ipa-icf-variables introduced.
1949 * doc/invoke.texi: Documentation of new options introduced.
1950 * ipa-icf-gimple.c: New file.
1951 * ipa-icf-gimple.h: New file.
1952 * ipa-icf.c: New file.
1953 * ipa-icf.h: New file.
1954 * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1955 (input_overwrite_node): Likewise.
1956 * lto-section-in.c: New icf section added.
1957 * lto-streamer.h (enum lto_section_type): Likewise.
1958 * opts.c (common_handle_option): New option added.
1959 * passes.def: New pass included.
1960 * timevar.def: Time variable for IPA ICF added.
1961 * tree-pass.h: New IPA ICF pass entry point added.
1963 2014-10-16 Richard Biener <rguenther@suse.de>
1965 PR tree-optimization/63168
1966 * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1967 latches if after merging they are no longer simple.
1968 * cfghooks.c (merge_blocks): Handle merging a latch block
1971 2014-10-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
1972 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
1973 Anna Tikhonova <anna.tikhonova@intel.com>
1974 Ilya Tocar <ilya.tocar@intel.com>
1975 Andrey Turetskiy <andrey.turetskiy@intel.com>
1976 Ilya Verbin <ilya.verbin@intel.com>
1977 Kirill Yukhin <kirill.yukhin@intel.com>
1978 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
1980 * config/i386/sse.md
1981 (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1982 support AVX-512VL instructions.
1984 2014-10-16 DJ Delorie <dj@redhat.com>
1986 * tree-core.h: Fix comment to not assume pointers are multiples of
1989 2014-10-15 Tom Tromey <tromey@redhat.com>
1991 * timevar.h (class auto_timevar): New class.
1993 2014-10-15 Uros Bizjak <ubizjak@gmail.com>
1996 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1997 Remove the second alternative.
1998 (regprefix): Remove mode attribute.
1999 (atomic_compare_and_swap<mode>): Do not fixup operand 2.
2000 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
2003 2013-11-05 Ian Lance Taylor <iant@google.com>
2005 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
2006 If possible, add .cfi directives to record change to bx.
2007 * config/i386/i386.c (ix86_emit_cfi): New function.
2008 * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
2010 2014-10-15 Jan Hubicka <hubicka@ucw.cz>
2013 * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
2015 * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
2018 2014-10-15 Vladimir Makarov <vmakarov@redhat.com>
2020 PR rtl-optimization/63448
2021 * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
2022 (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
2023 (LRA_MAX_INHERITANCE_PASSES): Use it.
2024 (lra_constraint_iter_after_spill): Remove.
2025 (lra_assignment_iter): New.
2026 (lra_assignment_iter_after_spill): New.
2027 * lra-assigns.c (lra_assignment_iter): New.
2028 (lra_assignment_iter_after_spill): New.
2029 (former_reload_pseudo_spill_p): New.
2030 (spill_for): Set up former_reload_pseudo_spill_p.
2031 (setup_live_pseudos_and_spill_after_risky): Ditto.
2032 (assign_by_spills): Ditto.
2033 (lra_assign): Increment lra_assignment_iter. Print the iteration
2034 number. Reset former_reload_pseudo_spill_p. Check
2035 lra_assignment_iter_after_spill.
2036 * lra.c (lra): Remove lra_constraint_iter_after_spill. Initialize
2037 lra_assignment_iter and lra_assignment_iter_after_spill.
2038 * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
2039 (lra_constraints): Remove code with
2040 lra_assignment_iter_after_spill.
2042 2014-10-15 Teresa Johnson <tejohnson@google.com>
2045 * tree-ssa-threadupdate.c (recompute_probabilities): Better
2048 2014-10-15 Renlin Li <renlin.li@arm.com>
2050 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2051 __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
2052 __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
2053 __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
2055 2014-10-15 Richard Biener <rguenther@suse.de>
2057 * gimple-fold.c (gimple_fold_call): Properly keep virtual
2058 SSA form up-to-date when devirtualizing a call to
2059 __builtin_unreachable and avoid fixing up EH info here.
2061 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2062 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2063 Anna Tikhonova <anna.tikhonova@intel.com>
2064 Ilya Tocar <ilya.tocar@intel.com>
2065 Andrey Turetskiy <andrey.turetskiy@intel.com>
2066 Ilya Verbin <ilya.verbin@intel.com>
2067 Kirill Yukhin <kirill.yukhin@intel.com>
2068 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2070 * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
2071 to support AVX-512BW.
2072 (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
2073 (define_expand "<plusminus_insn><mode>3"): Remove masking support.
2074 (define_insn "*<plusminus_insn><mode>3"): Ditto.
2075 (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
2076 (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2077 (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
2078 (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2079 (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
2080 (define_insn "*andnot<mode>3"): Ditto.
2081 (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
2082 (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
2083 (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2084 (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
2085 (define_insn "*abs<mode>2"): Remove masking support.
2086 (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
2087 (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
2088 (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
2090 2014-10-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2091 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2092 Anna Tikhonova <anna.tikhonova@intel.com>
2093 Ilya Tocar <ilya.tocar@intel.com>
2094 Andrey Turetskiy <andrey.turetskiy@intel.com>
2095 Ilya Verbin <ilya.verbin@intel.com>
2096 Kirill Yukhin <kirill.yukhin@intel.com>
2097 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2099 * config/i386/predicates.md (define_predicate "constm1_operand"): New.
2100 * config/i386/sse.md
2101 (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
2102 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
2103 (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
2104 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2105 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2106 (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2107 (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2109 2014-10-15 Renlin Li <renlin.li@arm.com>
2111 * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
2113 2014-10-15 Jakub Jelinek <jakub@redhat.com>
2115 * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
2116 MINUS_EXPR in unsigned type to avoid undefined behavior.
2118 2014-10-15 Eric Botcazou <ebotcazou@adacore.com>
2120 * stor-layout.c (self_referential_size): Do not promote arguments.
2122 2014-10-15 Marek Polacek <polacek@redhat.com>
2124 * doc/invoke.texi: Update to reflect that GNU11 is the default
2126 * c-common.h (c_language_kind): Update comment.
2128 2014-10-15 Richard Biener <rguenther@suse.de>
2130 * hash-table.c: Include bconfig.h if building for the host.
2131 * hash-table.h: Do not include ggc.h on the host but just declare
2132 a few ggc allocation templates.
2134 2014-10-15 Joern Rennecke <joern.rennecke@embecosm.com>
2135 Jeff Law <law@redhat.com>
2137 * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
2138 multiple hard registers, use smaller mode derived from MODE.
2140 2014-10-15 Andreas Schwab <schwab@suse.de>
2142 * explow.c (convert_memory_address_addr_space_1): Mark in_const
2143 as ATTRIBUTE_UNUSED.
2145 2014-10-14 Jan Hubicka <hubicka@ucw.cz>
2147 * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
2148 (decide_unrolling): ... this one.
2149 (peel_loops_completely): Remove.
2150 (decide_peel_simple): Remove.
2151 (decide_peel_once_rolling): Remove.
2152 (decide_peel_completely): Remove.
2153 (peel_loop_simple): Remove.
2154 (peel_loop_completely): Remove.
2155 (unroll_and_peel_loops): Rename to ...
2156 (unroll_loops): ... this one; handle only unrolling.
2157 * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
2160 (unroll_and_peel_loops): Remove.
2161 (unroll_loops): New.
2162 * passes.def: Replace
2163 pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
2164 * loop-init.c (gate_rtl_unroll_and_peel_loops,
2165 rtl_unroll_and_peel_loops): Rename to ...
2166 (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
2167 (pass_rtl_unroll_and_peel_loops): Rename to ...
2168 (pass_rtl_unroll_loops): ... this one.
2169 * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
2170 (make_pass_rtl_unroll_loops): New.
2171 * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
2172 (canonicalize_loop_induction_variables): Update.
2174 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
2176 * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
2177 * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
2178 !TARGET_HARD_FLOAT_POSTINC.
2179 (*lsip, *ssip): new instructions.
2181 2014-10-14 Max Filippov <jcmvbkbc@gmail.com>
2183 * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
2186 2014-10-14 Andrew Pinski <apinski@cavium.com>
2188 * explow.c (convert_memory_address_addr_space): Rename to ...
2189 (convert_memory_address_addr_space_1): This. Add in_const argument.
2190 Inside a CONST RTL, permute the conversion and addition of constant
2191 for zero and sign extended pointers.
2192 (convert_memory_address_addr_space): New function.
2194 2014-10-14 Andrew Pinski <apinski@cavium.com>
2197 2011-08-19 H.J. Lu <hongjiu.lu@intel.com>
2200 * explow.c (convert_memory_address_addr_space): Also permute the
2201 conversion and addition of constant for zero-extend.
2203 2014-10-14 DJ Delorie <dj@redhat.com>
2205 * config/msp430/msp430-modes.def (PSI): Add.
2207 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
2208 (msp430_hard_regno_nregs_with_padding): New.
2209 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
2210 (msp430_hard_regno_nregs_has_padding): New.
2211 (msp430_hard_regno_nregs_with_padding): New.
2212 (msp430_unwind_word_mode): Use PSImode instead of SImode.
2213 (msp430_addr_space_legitimate_address_p): New.
2214 (msp430_asm_integer): New.
2215 (msp430_init_dwarf_reg_sizes_extra): New.
2216 (msp430_print_operand): Use X suffix for PSImode even in small model.
2217 * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
2218 (PTR_SIZE): ...but 4 bytes for EH.
2219 (SIZE_TYPE): Use __int20.
2220 (PTRDIFF_TYPE): Likewise.
2221 (INCOMING_FRAME_SP_OFFSET): Adjust.
2222 * config/msp430/msp430.md (movqi_topbyte): New.
2223 (movpsi): Use fixed suffixes.
2224 (movsipsi2): Enable for 430X, not large model.
2225 (extendhipsi2): Likewise.
2226 (zero_extendhisi2): Likewise.
2227 (zero_extendhisipsi2): Likewise.
2228 (extend_and_shift1_hipsi2): Likewise.
2229 (extendpsisi2): Likewise.
2230 (*bitbranch<mode>4_z): Fix suffix logic.
2232 2014-10-14 Eric Botcazou <ebotcazou@adacore.com>
2235 * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
2236 do not choke on null node.
2237 <VAR_DECL>: Likewise.
2239 2014-10-14 DJ Delorie <dj@redhat.com>
2241 * machmode.h (int_n_data_t): New.
2242 (int_n_enabled_p): New.
2244 * tree.c (int_n_enabled_p): New.
2246 (make_or_reuse_type): Check for all __intN types, not just
2248 (build_common_tree_nodes): Likewise. Also fill in integer_typs[]
2250 * tree.h (int128_integer_type_node): Remove.
2251 (int128_unsigned_type_node): Remove.
2252 (int_n_trees_t): New.
2253 (int_n_enabled_p): New.
2255 * toplev.c (standard_type_bitsize): New.
2256 (do_compile): Check which __intN types are enabled for the current
2258 * builtin-types.def (BT_INT128): Remove.
2259 (BT_UINT128): Remove.
2260 * machmode.def: Add macro to create __int128 for all targets.
2261 * stor-layout.c (mode_for_size): Support __intN types.
2262 (smallest_mode_for_size): Likewise.
2263 (initialize_sizetypes): Support __intN types.
2264 * genmodes.c (struct mode_data): Add int_n field.
2265 (blank_mode): Likewise.
2268 (emit_insn_modes_h): Count __intN entries and define
2270 (emit_mode_int_n): New.
2271 (emit_insn_modes_c): Call it.
2272 * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
2273 types, not just __int128.
2274 * tree-core.h (integer_type_kind): Remove __int128-specific
2275 entries, reserve spots for __intN entries.
2277 * config/msp430/msp430-modes.def (PSI): Add.
2279 2014-10-14 Kito Cheng <kito@0xlab.org>
2281 * ira.c: Fix typo in comment.
2283 * ira-build.c: Ditto.
2284 * ira-color.c: Ditto.
2285 * ira-emit.c: Ditto.
2287 * ira-lives.c: Ditto.
2289 2014-10-14 Uros Bizjak <ubizjak@gmail.com>
2291 PR rtl-optimization/63475
2292 * alias.c (true_dependence_1): Always use get_addr to extract
2293 true address operands from x_addr and mem_addr. Use extracted
2294 address operands to check for references with alignment ANDs.
2295 Use extracted address operands with find_base_term and
2296 base_alias_check. For noncanonicalized operands call canon_rtx with
2297 extracted address operand.
2298 (write_dependence_1): Ditto.
2299 (may_alias_p): Ditto. Remove unused calls to canon_rtx.
2301 2014-10-14 Evgeny Stupachenko <evstupac@gmail.com>
2304 * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
2307 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2308 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2309 Anna Tikhonova <anna.tikhonova@intel.com>
2310 Ilya Tocar <ilya.tocar@intel.com>
2311 Andrey Turetskiy <andrey.turetskiy@intel.com>
2312 Ilya Verbin <ilya.verbin@intel.com>
2313 Kirill Yukhin <kirill.yukhin@intel.com>
2314 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2316 * config/i386/i386.c
2317 (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
2318 (ix86_expand_int_vcond): Ditto.
2320 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2321 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2322 Anna Tikhonova <anna.tikhonova@intel.com>
2323 Ilya Tocar <ilya.tocar@intel.com>
2324 Andrey Turetskiy <andrey.turetskiy@intel.com>
2325 Ilya Verbin <ilya.verbin@intel.com>
2326 Kirill Yukhin <kirill.yukhin@intel.com>
2327 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2329 * config/i386/i386.c
2330 (emit_reduc_half): Handle V64QI and V32HI mode.
2331 * config/i386/sse.md
2332 (define_mode_iterator VI_AVX512BW): New.
2333 (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
2335 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2336 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2337 Anna Tikhonova <anna.tikhonova@intel.com>
2338 Ilya Tocar <ilya.tocar@intel.com>
2339 Andrey Turetskiy <andrey.turetskiy@intel.com>
2340 Ilya Verbin <ilya.verbin@intel.com>
2341 Kirill Yukhin <kirill.yukhin@intel.com>
2342 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2344 * config/i386/sse.md
2345 (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
2347 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2348 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2349 Anna Tikhonova <anna.tikhonova@intel.com>
2350 Ilya Tocar <ilya.tocar@intel.com>
2351 Andrey Turetskiy <andrey.turetskiy@intel.com>
2352 Ilya Verbin <ilya.verbin@intel.com>
2353 Kirill Yukhin <kirill.yukhin@intel.com>
2354 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2356 * config/i386/i386.c
2357 (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
2358 * config/i386/sse.md
2359 (define_mode_iterator VI): Add V64QI and V32HI modes.
2361 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2362 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2363 Anna Tikhonova <anna.tikhonova@intel.com>
2364 Ilya Tocar <ilya.tocar@intel.com>
2365 Andrey Turetskiy <andrey.turetskiy@intel.com>
2366 Ilya Verbin <ilya.verbin@intel.com>
2367 Kirill Yukhin <kirill.yukhin@intel.com>
2368 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2370 * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
2372 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2373 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2374 Anna Tikhonova <anna.tikhonova@intel.com>
2375 Ilya Tocar <ilya.tocar@intel.com>
2376 Andrey Turetskiy <andrey.turetskiy@intel.com>
2377 Ilya Verbin <ilya.verbin@intel.com>
2378 Kirill Yukhin <kirill.yukhin@intel.com>
2379 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2381 * config/i386/sse.md
2382 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
2383 (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
2385 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2386 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2387 Anna Tikhonova <anna.tikhonova@intel.com>
2388 Ilya Tocar <ilya.tocar@intel.com>
2389 Andrey Turetskiy <andrey.turetskiy@intel.com>
2390 Ilya Verbin <ilya.verbin@intel.com>
2391 Kirill Yukhin <kirill.yukhin@intel.com>
2392 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2394 * config/i386/sse.md
2395 (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
2396 (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
2398 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2399 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2400 Anna Tikhonova <anna.tikhonova@intel.com>
2401 Ilya Tocar <ilya.tocar@intel.com>
2402 Andrey Turetskiy <andrey.turetskiy@intel.com>
2403 Ilya Verbin <ilya.verbin@intel.com>
2404 Kirill Yukhin <kirill.yukhin@intel.com>
2405 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2407 * config/i386/sse.md
2408 (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
2409 (define_mode_iterator VI2_AVX2): Add V32HI mode.
2410 (define_expand "mul<mode>3<mask_name>"): Add masking.
2411 (define_insn "*mul<mode>3<mask_name>"): Ditto.
2412 (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2413 (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2414 (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2415 (define_mode_attr SDOT_PMADD_SUF): Ditto.
2416 (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2417 (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2418 (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2419 (define_insn "avx2_packusdw"): Delete.
2420 (define_insn "sse4_1_packusdw"): Ditto.
2421 (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2423 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2424 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2425 Anna Tikhonova <anna.tikhonova@intel.com>
2426 Ilya Tocar <ilya.tocar@intel.com>
2427 Andrey Turetskiy <andrey.turetskiy@intel.com>
2428 Ilya Verbin <ilya.verbin@intel.com>
2429 Kirill Yukhin <kirill.yukhin@intel.com>
2430 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2432 * config/i386/sse.md
2433 (define_insn "vec_dup<mode>"): Update constraints.
2435 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2436 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2437 Anna Tikhonova <anna.tikhonova@intel.com>
2438 Ilya Tocar <ilya.tocar@intel.com>
2439 Andrey Turetskiy <andrey.turetskiy@intel.com>
2440 Ilya Verbin <ilya.verbin@intel.com>
2441 Kirill Yukhin <kirill.yukhin@intel.com>
2442 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2444 * config/i386/sse.md
2445 (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2446 (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2447 (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2449 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2450 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2451 Anna Tikhonova <anna.tikhonova@intel.com>
2452 Ilya Tocar <ilya.tocar@intel.com>
2453 Andrey Turetskiy <andrey.turetskiy@intel.com>
2454 Ilya Verbin <ilya.verbin@intel.com>
2455 Kirill Yukhin <kirill.yukhin@intel.com>
2456 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2458 * config/i386/sse.md
2459 (define_expand "mul<mode>3<mask_name>"): Add masking.
2461 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2462 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2463 Anna Tikhonova <anna.tikhonova@intel.com>
2464 Ilya Tocar <ilya.tocar@intel.com>
2465 Andrey Turetskiy <andrey.turetskiy@intel.com>
2466 Ilya Verbin <ilya.verbin@intel.com>
2467 Kirill Yukhin <kirill.yukhin@intel.com>
2468 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2470 * config/i386/sse.md
2471 (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2472 (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2474 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2475 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2476 Anna Tikhonova <anna.tikhonova@intel.com>
2477 Ilya Tocar <ilya.tocar@intel.com>
2478 Andrey Turetskiy <andrey.turetskiy@intel.com>
2479 Ilya Verbin <ilya.verbin@intel.com>
2480 Kirill Yukhin <kirill.yukhin@intel.com>
2481 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2483 * config/i386/sse.md
2484 (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2485 (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2486 (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2489 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2490 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2491 Anna Tikhonova <anna.tikhonova@intel.com>
2492 Ilya Tocar <ilya.tocar@intel.com>
2493 Andrey Turetskiy <andrey.turetskiy@intel.com>
2494 Ilya Verbin <ilya.verbin@intel.com>
2495 Kirill Yukhin <kirill.yukhin@intel.com>
2496 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2498 * config/i386/sse.md
2499 (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2500 use VF_128_256 mode iterator and update assembler emit code.
2501 (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2502 (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2503 Add masking, use VF_128_256 mode iterator.
2504 (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2505 (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2506 Add masking, use VF_128_256 mode iterator and update assembler emit
2508 (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2509 (define_mode_attr avx512flogicsuff): Delete.
2510 (define_insn "avx512f_<logic><mode>"): Ditto.
2511 (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2513 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2515 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2516 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2517 Anna Tikhonova <anna.tikhonova@intel.com>
2518 Ilya Tocar <ilya.tocar@intel.com>
2519 Andrey Turetskiy <andrey.turetskiy@intel.com>
2520 Ilya Verbin <ilya.verbin@intel.com>
2521 Kirill Yukhin <kirill.yukhin@intel.com>
2522 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2524 * config/i386/sse.md
2525 (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2526 (define_expand "vashr<mode>3<mask_name>"): Add masking,
2527 use VI12_128 mode iterator.
2528 (define_expand "ashrv2di3<mask_name>"): New.
2530 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2531 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2532 Anna Tikhonova <anna.tikhonova@intel.com>
2533 Ilya Tocar <ilya.tocar@intel.com>
2534 Andrey Turetskiy <andrey.turetskiy@intel.com>
2535 Ilya Verbin <ilya.verbin@intel.com>
2536 Kirill Yukhin <kirill.yukhin@intel.com>
2537 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2539 * config/i386/i386.c
2540 (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2541 CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2542 CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2543 CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2544 CODE_FOR_avx512vl_ucmpv4si3_mask.
2545 * config/i386/sse.md
2546 (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2547 "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2549 "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2550 (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2551 (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2552 (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2553 (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2554 (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2556 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2557 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2558 Anna Tikhonova <anna.tikhonova@intel.com>
2559 Ilya Tocar <ilya.tocar@intel.com>
2560 Andrey Turetskiy <andrey.turetskiy@intel.com>
2561 Ilya Verbin <ilya.verbin@intel.com>
2562 Kirill Yukhin <kirill.yukhin@intel.com>
2563 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2565 * config/i386/sse.md
2566 (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2567 (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2568 (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2569 (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2570 (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2571 (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2572 (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2573 (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2574 (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2576 2014-10-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
2577 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2578 Anna Tikhonova <anna.tikhonova@intel.com>
2579 Ilya Tocar <ilya.tocar@intel.com>
2580 Andrey Turetskiy <andrey.turetskiy@intel.com>
2581 Ilya Verbin <ilya.verbin@intel.com>
2582 Kirill Yukhin <kirill.yukhin@intel.com>
2583 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2585 * config/i386/sse.md
2586 (define_insn "avx512f_blendm<mode>"): Delete.
2587 (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2588 (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2589 (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2590 V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2592 "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2595 "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2598 "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2600 (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2601 (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2602 (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2603 (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2606 "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2609 "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2611 (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2614 "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2617 "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2620 2014-10-14 Richard Biener <rguenther@suse.de>
2622 PR tree-optimization/63512
2623 * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2626 2014-10-14 Oleg Endo <olegendo@gcc.gnu.org>
2629 * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2630 abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute. Remove use
2632 (negsf2_i): Rename to *negsf2_i.
2633 (abssf2_i): Rename to *abssf2_i.
2634 (negdf2_i): Rename to *negdf2_i.
2635 (absdf2_i): Rename to *absdf2_i.
2637 2014-10-14 Felix Yang <felix.yang@huawei.com>
2638 Jeff Law <law@redhat.com>
2640 * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2641 "replace" into boolean bitfields; turn member "loop_depth" into a short
2642 integer; add new member "no_equiv" and "reserved".
2643 (no_equiv): Set no_equiv of struct equivalence if register is marked
2644 as having no known equivalence.
2645 (update_equiv_regs): Check all definitions for a multiple-set
2646 register to make sure that the RHS have the same value.
2648 2014-10-13 Richard Henderson <rth@redhat.com>
2650 * combine-stack-adj.c (no_unhandled_cfa): New.
2651 (maybe_merge_cfa_adjust): New.
2652 (combine_stack_adjustments_for_block): Use them.
2654 2014-10-13 Aldy Hernandez <aldyh@redhat.com>
2656 * Makefile.in (TAGS): Tag ../include files.
2658 2014-10-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2660 * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2661 to rs6000_dbx_register_number.
2662 (DWARF_FRAME_REGNUM): Redefine as identity map.
2663 (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2664 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2665 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2666 argument to handle .debug_frame and .eh_frame directly. Always
2667 translate SPE high register numbers. Add special treatment for CR,
2668 but only in .debug_frame. Respect RS6000_USE_DWARF_NUMBERING.
2670 * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2671 * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2672 (RS6000_USE_DWARF_NUMBERING): Define.
2673 * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2674 (RS6000_USE_DWARF_NUMBERING): Define.
2675 * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2676 (RS6000_USE_DWARF_NUMBERING): Define.
2677 * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2678 (RS6000_USE_DWARF_NUMBERING): Define.
2679 * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2680 * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2682 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2684 * config/i386/i386.c (ix86_address_cost): Lower cost for
2685 when address contains GOT register.
2687 2014-10-13 Ilya Enkovich <ilya.enkovich@intel.com>
2688 Vladimir Makarov <vmakarov@redhat.com>
2692 PR rtl-optimization/55458
2693 * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2694 (ix86_init_pic_reg): New.
2695 (ix86_select_alt_pic_regnum): Add check on pseudo register.
2696 (ix86_save_reg): Likewise.
2697 (ix86_expand_prologue): Remove PIC register initialization
2698 now performed in ix86_init_pic_reg.
2699 (ix86_output_function_epilogue): Add check on pseudo register.
2700 (set_pic_reg_ever_alive): New.
2701 (legitimize_pic_address): Replace df_set_regs_ever_live with new
2702 set_pic_reg_ever_alive.
2703 (legitimize_tls_address): Likewise.
2704 (ix86_pic_register_p): New check.
2705 (ix86_delegitimize_address): Add check on pseudo register.
2706 (ix86_expand_call): Insert move from pseudo PIC register to ABI
2707 defined REAL_PIC_OFFSET_TABLE_REGNUM.
2708 (TARGET_INIT_PIC_REG): New.
2709 (TARGET_USE_PSEUDO_PIC_REG): New.
2710 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2711 if pic_offset_table_rtx exists.
2712 * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2714 * doc/tm.texi: Regenerate.
2715 * function.c (assign_parms): Generate pseudo register for PIC.
2716 * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2718 * ira-color.c (color_pass): Add check on pseudo register.
2719 * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2721 * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2723 (ira): Add target specific PIC register initialization.
2724 (do_reload): Keep PIC pseudo register.
2725 * lra-assigns.c (spill_for): Add checks on pseudo register.
2726 * lra-constraints.c (contains_symbol_ref_p): New.
2727 (lra_constraints): Enable lra risky transformations when PIC is pseudo
2729 * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2730 * target.def (use_pseudo_pic_reg): New.
2731 (init_pic_reg): New.
2733 2014-10-13 Evgeny Stupachenko <evstupac@gmail.com>
2735 * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2736 Remove m_SILVERMONT and m_INTEL from the tune.
2738 2014-10-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2741 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2742 when _HPUX_SOURCE is defined.
2744 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2746 PR tree-optimization/62127
2747 * tree.c (remap_type_1): When remapping array, remap
2750 2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
2752 * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2753 longer impact parallelization.
2755 2014-10-13 Jan Hubicka <hubicka@ucw.cz>
2758 * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2760 2014-10-13 Marat Zakirov <m.zakirov@samsung.com>
2762 * asan.c (instrument_derefs): BIT_FIELD_REF added.
2764 2014-10-13 Richard Biener <rguenther@suse.de>
2766 PR tree-optimization/63419
2767 * gimple-fold.h (gimple_convert): New function.
2768 * gimple-fold.c (gimple_convert): Likewise.
2769 * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2770 to split out required conversions early.
2772 2014-10-13 Richard Sandiford <richard.sandiford@arm.com>
2774 * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2775 Add the parts of an insn in reverse order, with the pattern at
2776 the top of the queue. Detect when we're iterating over a SEQUENCE
2777 pattern and in that case just consider patterns of subinstructions.
2779 2014-10-12 Oleg Endo <olegendo@gcc.gnu.org>
2782 * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2784 * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2786 (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2787 address. Use def chains to handle GBR clobbering call insns.
2789 2014-10-12 Trevor Saunders <tsaunders@mozilla.com>
2791 * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2792 config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2793 config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2794 function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2795 output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2796 tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2797 * doc/gty.texi (for_user): Document new option.
2798 * gengtype.c (create_user_defined_type): Don't try to get a struct for
2800 (walk_type): Don't error out on for_user option.
2801 (write_func_for_structure): Emit user marking routines if requested by
2803 (write_local_func_for_structure): Likewise.
2804 (main): Mark types with for_user option as used.
2805 * ggc.h (gt_pch_nx): Add overload for unsigned int.
2806 * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2807 * hash-table.h (ggc_hasher): New struct.
2808 (hash_table::create_ggc): New function.
2809 (gt_pch_nx): New overload for hash_table.
2811 2014-10-11 Oleg Endo <olegendo@gcc.gnu.org>
2813 * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2814 * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2815 * config/sh/sh.c: Likewise.
2816 * config/sh/sh-mem.cc: Likewise.
2817 * config/sh/sh.md: Likewise.
2818 * config/sh/predicates.md: Likewise.
2819 * config/sh/sync.md: Likewise.
2821 2014-10-11 Martin Liska <mliska@suse.cz>
2824 * cgraphunit.c (symbol_table::process_new_functions): Missing call
2825 for call_cgraph_insertion_hooks added.
2827 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2830 * stor-layout.c (min_align_of_type): Don't decrease alignment
2831 through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2832 TYPE_USER_ALIGN is set.
2834 2014-10-10 Uros Bizjak <ubizjak@gmail.com>
2836 PR rtl-optimization/63483
2837 * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2838 references when alignment ANDs are involved.
2839 (write_dependence_p): Ditto.
2840 (may_alias_p): Ditto.
2842 2014-10-10 Marek Polacek <polacek@redhat.com>
2844 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2845 * doc/invoke.texi: Document -fsanitize=object-size.
2846 * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2847 or it into SANITIZE_UNDEFINED.
2848 * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2849 * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2850 * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2851 * opts.c (common_handle_option): Handle -fsanitize=object-size.
2852 * ubsan.c: Include tree-object-size.h.
2853 (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2854 (ubsan_expand_bounds_ifn): Use false instead of 0.
2855 (ubsan_expand_objsize_ifn): New function.
2856 (instrument_object_size): New function.
2857 (pass_ubsan::execute): Add object size instrumentation.
2858 * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2860 2014-10-10 Richard Henderson <rth@redhat.com>
2863 * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2864 Restrict the set of expressions we're willing to move.
2866 2014-10-10 Jeff Law <law@redhat.com>
2868 * ira.c (struct equivalence): Promote INIT_INSNs field to
2869 an rtx_insn_list. Add comments.
2870 (no_equiv): Promote LIST to an rtx_insn_list. Update
2871 testing for and creating the special marker. Use methods
2872 to extract the insn and next pointers. Promote INSN to an
2874 (update_equiv_regs): Update test for special marker in the
2877 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2879 * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2880 * configure: Regenerate.
2881 * config/aarch64/aarch64.c (aarch64_override_options): Handle
2882 TARGET_FIX_ERR_A53_835769_DEFAULT.
2883 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2885 * doc/install.texi (aarch64*-*-*): Document
2886 new --enable-fix-cortex-a53-835769 option.
2888 2014-10-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2889 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2891 * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2892 (ADJUST_INSN_LENGTH): Define.
2893 * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2894 * config/aarch64/aarch64.c (is_mem_p): New function.
2895 (is_memory_op): Likewise.
2896 (aarch64_prev_real_insn): Likewise.
2897 (is_madd_op): Likewise.
2898 (dep_between_memop_and_curr): Likewise.
2899 (aarch64_madd_needs_nop): Likewise.
2900 (aarch64_final_prescan_insn): Likewise.
2901 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2902 and -mno-fix-cortex-a53-835769 options.
2904 2014-10-10 Jakub Jelinek <jakub@redhat.com>
2906 PR tree-optimization/63464
2907 * tree-switch-conversion.c (struct case_bit_test): Remove
2908 hi and lo fields, add wide_int mask field.
2909 (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2910 hi/lo fields into wide_int mask operations, optimize by pretending
2911 minval to be 0 if maxval is small enough.
2912 (process_switch): Adjust caller.
2914 2014-10-10 Richard Biener <rguenther@suse.de>
2916 PR tree-optimization/63379
2917 * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2918 a neutral operand for min/max when it is not a reduction chain.
2920 2014-10-10 Richard Biener <rguenther@suse.de>
2922 PR tree-optimization/63476
2923 * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2924 (BB_LIVE_VOP_ON_EXIT): New define.
2925 (create_expression_by_pieces): Assign VUSEs to stmts.
2926 (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2927 (pass_pre::execute): Assert virtual SSA form is up-to-date
2930 2014-10-10 Eric Botcazou <ebotcazou@adacore.com>
2932 * lra-assigns.c (assign_by_spills): Error out on spill failure.
2934 2014-10-09 Markus Trippelsdorf <markus@trippelsdorf.de>
2936 * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2939 2014-10-09 Richard Biener <rguenther@suse.de>
2941 PR tree-optimization/63380
2942 * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2945 2014-10-09 Joern Rennecke <joern.rennecke@embecosm.com>
2947 * config/avr/avr.opt (mmcu=): Change to have a string value.
2948 (mn-flash=, mskip-bug, march=, mrmw): New options.
2949 (HeaderInclude): New.
2950 (mmcu=): Remove Var / Init clauses.
2951 * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2953 (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2954 (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2955 (SYMBOL_FLAG_IO_LOW): Define.
2956 (avr_device_to_as, avr_device_to_ld): Don't declare.
2957 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2958 (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2959 (EXTRA_SPEC_FUNCTIONS): Don't define.
2960 (ASM_SPEC): Translate -arch= option to -mmcu= option.
2961 (LINK_SPEC): Translate -arch= option to -m= option.
2962 Don't use device_to_ld / device_to_data_start.
2963 (STARTFILE_SPEC): Now empty.
2964 (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2965 * config/avr/gen-avr-mmcu-specs.c: New file.
2966 * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2967 (s-device-specs): Likewise.
2968 (GCC_PASSES): Add s-device-specs.
2969 (install-driver): Depend on install-device-specs.
2970 (install-device-specs): New rule.
2971 * config/avr/avr.c (avr_option_override): Look up mcu arch by
2972 avr_arch_index and provide fallback initialization for avr_n_flash.
2973 (varasm.h): #include.
2974 (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2975 (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2976 (avr_attribute_table): Add "io", "address" and "io_low".
2977 (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2978 Add special handling for symbols with "io" and/or "address" attributes.
2979 (avr_asm_asm_output_aligned_bss): New function.
2980 (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2981 as appropriate. Handle io_low attribute.
2982 (avr_out_sbxx_branch): Handle symbolic io addresses.
2983 (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2984 avr_n_flash instead of avr_current_device->n_flash.
2985 (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2986 (avr_emit_movmemhi): Likewise.
2987 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2988 Use TARGET_RMW instead of avr_current_device->dev_attributes.
2989 Don't define avr_current_device->macro (that's the specfile's job).
2990 Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2991 * config/avr/avr.c (avr_2word_insn_p): Likewise.
2992 * config/avr/avr.md (*cpse.ne): Likewise.
2993 (mov<mode>): Use avr_eval_addr_attrib.
2994 (cbi): Change constraint for low_io_address_operand operand to "i".
2995 (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2996 * config/avr/predicates.md (io_address_operand):
2997 Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2998 (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2999 * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
3001 (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
3002 * config/avr/genmultilib.awk: Use -march=.
3003 Remove Multilib matches processing.
3004 * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
3005 * config/avr/avr-arch.h: Add double include guard.
3006 (avr_mcu_t) <library_name>: Update comment.
3007 * config/avr/driver-avr.c (avr_device_to_as): Delete.
3008 (avr_device_to_ld, avr_device_to_data_start): Likewise.
3009 (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
3010 (avr_device_to_sp8): Likewise.
3011 * config/avr/genopt.sh: Instead avr_mcu, emit an Enum for avr_arch.
3013 * doc/extend.texi (io, address): Document new AVR variable attributes.
3016 2014-10-09 Marek Polacek <polacek@redhat.com>
3018 * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
3020 2014-10-08 Richard Biener <rguenther@suse.de>
3022 PR tree-optimization/61969
3023 * tree-nrv.c (pass_nrv::execute): Properly test for automatic
3026 2014-10-09 Richard Biener <rguenther@suse.de>
3028 PR tree-optimization/63445
3029 * tree-vrp.c (simplify_cond_using_ranges): Only warn about
3030 overflow for non-equality compares.
3032 2014-10-09 Uros Bizjak <ubizjak@gmail.com>
3034 PR rtl-optimization/57003
3035 * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3036 also check CALL_INSN_FUNCTION_USAGE for clobbers again after
3037 killing regs_invalidated_by_call.
3039 2014-10-08 Teresa Johnson <tejohnson@google.com>
3042 * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
3043 (ssa_fix_duplicate_block_edges): Invoke it.
3044 (mark_threaded_blocks): Make two passes to avoid ordering dependences.
3046 2014-10-08 Oleg Endo <olegendo@gcc.gnu.org>
3049 * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
3050 atomic_fetch_<fetchop_name>si_hard,
3051 atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
3052 atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
3053 atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
3054 atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
3056 2014-10-08 Rong Xu <xur@google.com>
3058 * gcov-tool.c (profile_overlap): New driver function
3059 to compute profile overlap.
3060 (print_overlap_usage_message): New.
3061 (overlap_usage): New.
3063 (print_usage): Add calls to overlap function.
3065 * doc/gcov-tool.texi: Add documentation.
3067 2014-10-08 Steve Ellcey <sellcey@mips.com>
3069 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
3070 LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
3072 2014-10-08 Jan Hubicka <hubicka@ucw.cz>
3074 * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
3075 pattern matching of MEM_REF.
3076 (check_stmt_for_type_change): Update.
3078 2014-10-08 Steve Ellcey <sellcey@mips.com>
3080 * config/mips/linux64.h: Remove.
3081 * config/mips/gnu-user64.h: Remove.
3082 * gcc.config (mips*-*-*): Remove references to linux64.h and
3084 * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
3085 with modified version from gnu-user64.h.
3086 (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
3087 (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
3088 * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
3090 (GNU_USER_LINK_EMULATION64): Ditto.
3091 (GNU_USER_LINK_EMULATIONN32): Ditto.
3092 (GLIBC_DYNAMIC_LINKER32): Ditto.
3093 (GLIBC_DYNAMIC_LINKER64): Ditto.
3094 (GLIBC_DYNAMIC_LINKERN32): Ditto.
3095 (UCLIBC_DYNAMIC_LINKER32): Ditto.
3096 (UCLIBC_DYNAMIC_LINKER64): Ditto.
3097 (UCLIBC_DYNAMIC_LINKERN32): Ditto.
3098 (BIONIC_DYNAMIC_LINKERN32): Ditto.
3099 (GNU_USER_DYNAMIC_LINKERN32): Ditto.
3100 (GLIBC_DYNAMIC_LINKER): Delete.
3101 (UCLIBC_DYNAMIC_LINKER): Delete.
3103 2014-10-08 Joern Rennecke <joern.rennecke@embecosm.com>
3104 Richard Biener <rguenther@suse.de>
3106 * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
3107 Get address space from operand 0 (BASE).
3109 2014-10-07 Iain Sandoe <iain@codesourcery.com>
3112 * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
3114 2014-10-07 Aldy Hernandez <aldyh@redhat.com>
3116 * dwarf2out.c: Remove current_function_has_inlines.
3117 (gen_subprogram_die): Same.
3118 (gen_inlined_subroutine_die): Same.
3120 2014-10-07 Ilya Tocar <ilya.tocar@intel.com>
3122 * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
3124 (_addcarry_u64): Ditto.
3125 (_addcarryx_u64): Ditto.
3127 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
3129 * cgraph.h (cgraph_node::get_fun): Declare.
3130 * cgraph.c (cgraph_node::get_fun): New method.
3131 * ipa-inline.c (can_inline_edge_p): Use it.
3133 2014-10-07 Eric Botcazou <ebotcazou@adacore.com>
3135 * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
3136 and -ftrapping-math.
3137 * lto-wrapper.c (merge_and_complain): Likewise.
3138 (run_gcc): Likewise.
3140 2014-10-06 Rong Xu <xur@google.com>
3142 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
3143 * tree-profile.c: (params.h): New include.
3144 (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
3145 and __gcov_indirect_call_topn_counters for
3146 indirect_call_topn_profile.
3147 (gimple_init_edge_profiler): New decls for
3148 __gcov_indirect_call_topn_profiler.
3149 (gimple_gen_ic_profiler): Generate the correct profiler call.
3150 (gimple_gen_ic_func_profiler): Fix format.
3151 * value-prof.c (params.h): New include.
3152 (dump_histogram_value): Hanlde indirect_call_topn counters.
3153 (stream_in_histogram_value): Ditto.
3154 (gimple_indirect_call_to_profile): Use indirect_call_topn
3155 profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
3156 (gimple_find_values_to_profile): Hanlde indirect_call_topn
3158 * value-prof.h (enum hist_type): Histrogram type for
3159 indirect_call_topn counters.
3160 * profile.c (instrument_values): Instrument
3161 indirect_call_topn counters.
3163 2014-10-06 Rong Xu <xur@google.com>
3165 * Makefile.in: Fix dependence.
3166 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
3167 indirect call topn profiler.
3170 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
3172 * calls.c (expand_call): Do not use the target as the return slot if
3173 it is not sufficiently aligned.
3175 2014-10-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3177 * config/rs6000/rs6000.c (analyze_swaps commentary): Add
3178 discussion of permutes and why we don't handle them.
3180 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
3182 * config/sparc/predicates.md (int_register_operand): Delete.
3184 2014-10-06 Eric Botcazou <ebotcazou@adacore.com>
3186 * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
3188 2014-10-06 Jakub Jelinek <jakub@redhat.com>
3190 * ubsan.h (ubsan_get_source_location): New prototype.
3191 * ubsan.c (ubsan_source_location_type): New variable.
3192 Function renamed to ...
3193 (ubsan_get_source_location_type): ... this. Cache
3194 return value in ubsan_source_location_type variable.
3195 (ubsan_source_location, ubsan_create_data): Use
3196 ubsan_get_source_location_type instead of
3197 ubsan_source_location_type.
3198 * asan.c (asan_protect_global): Don't protect globals
3199 with ubsan_get_source_location_type () type.
3200 (asan_add_global): Provide global decl location info
3203 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3205 * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
3208 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3210 * ipa-polymorphic-call.c (possible_placement_new): Fix condition
3212 (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
3214 (ipa_polymorphic_call_context::dump): Fix formating.
3215 (walk_ssa_copies): Add logic avoiding loops; update uses.
3216 * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
3218 2014-10-02 Mark Wielaard <mjw@redhat.com>
3221 * dwarf2out.c (gen_subprogram_die): When a member function is
3222 explicitly deleted then add a DW_AT_GNU_deleted attribute.
3223 * langhooks.h (struct lang_hooks_for_decls): Add
3224 function_decl_deleted_p langhook.
3225 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
3226 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
3228 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3230 * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
3231 NULL pointer checks.
3232 (ipa_polymorphic_call_context::get_dynamic_type): Return true
3233 if type doesn't change.
3234 * cgraph.h (cgraph_indirect_call_info): New flag.
3235 * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
3236 (cgraph_node::dump): Dump it.
3237 * ipa-prop.c (ipa_analyze_call_uses): Ignore return valud
3238 of context.get_dynamic_type.
3239 (ipa_make_edge_direct_to_target): Do not speculate
3240 edge that is already speuclative.
3241 (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
3242 speculate to __builtin_unreachable
3243 (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
3245 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
3247 2014-10-04 Jan Hubicka <hubicka@ucw.cz>
3249 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
3250 get_dynamic_type; drop TODO.
3251 * ipa-polymorphic-call.c
3252 (ipa_polymorphic_call_context::get_dynamic_type): Be ready
3253 for otr_type to be unknown.
3255 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
3257 * common/config/score/score-common.c: Remove.
3258 * config.gcc: Remove support for score-*.
3259 * config/score/constraints.md: Remove.
3260 * config/score/elf.h: Remove.
3261 * config/score/predicates.md: Remove.
3262 * config/score/score-conv.h: Remove.
3263 * config/score/score-generic.md: Remove.
3264 * config/score/score-modes.def: Remove.
3265 * config/score/score-protos.h: Remove.
3266 * config/score/score.c: Remove.
3267 * config/score/score.h: Remove.
3268 * config/score/score.md: Remove.
3269 * config/score/score.opt: Remove.
3270 * doc/md.texi: Don't document score-*.
3272 2014-10-04 Trevor Saunders <tsaunders@mozilla.com>
3275 * genconditions.c: Directly include ggc.h before rtl.h.
3277 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
3279 * ipa-polymorphic-call.c
3280 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
3281 code determining speculative type.
3282 (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
3284 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3286 * altivec.md (altivec_lvsl): New define_expand.
3287 (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
3288 (altivec_lvsr): New define_expand.
3289 (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
3290 * rs6000.c (rs6000_expand_builtin): Change to use
3291 altivec_lvs[lr]_direct; remove commented-out code.
3293 2014-10-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3295 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3296 Issue a warning message when vec_lvsl or vec_lvsr is used with a
3297 little endian target.
3299 2014-10-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
3301 * tree-pretty-print.c (dump_location): Make it extern. Dump also
3303 * tree-pretty-print.h (dump_location): Declare.
3304 * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
3305 (pp_gimple_stmt_1): Likewise.
3306 (dump_implicit_edges): Likewise.
3307 * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
3311 2014-10-03 David Malcolm <dmalcolm@redhat.com>
3313 * gcc.c (driver::global_initializations): Remove "const" so
3314 that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
3315 and decoded_options_count.
3317 2014-10-03 Maciej W. Rozycki <macro@codesourcery.com>
3319 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
3321 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
3322 TARGET_E500_DOUBLE case here.
3324 2014-10-03 Marc Glisse <marc.glisse@inria.fr>
3329 * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
3331 2014-10-03 Jan Hubicka <hubicka@ucw.cz>
3333 * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
3334 * lto-cgraph.c (lto_output_edge, input_edge): Stream
3335 in_polymorphic_cdtor
3336 * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
3337 (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
3338 * cgraphclones.c (cgraph_edge::clone): Likewise.
3339 * ipa-prop.c (update_jump_functions_after_inlining,
3340 try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
3341 to possible_dynamic_type_change.
3342 (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
3343 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3344 IN_POLY_CDOTR argument.
3346 * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
3347 for BASE and OUTER_TYPE being NULL.
3348 (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3349 in_poly_cdtor parameter.
3351 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3353 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
3354 (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
3356 (expand_vec_perm_1): Likewise.
3358 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3359 Uros Bizjak <ubizjak@gmail.com>
3361 PR tree-optimization/61403
3362 * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
3363 error in comment. Also optimize 256-bit vectors for AVX2
3364 or AVX (floating vectors only), provided the first permutation
3365 can be performed in one insn.
3367 2014-10-03 David Malcolm <dmalcolm@redhat.com>
3369 * gcc.c (class driver): New class.
3370 (main): Reimplement in terms of driver::main, moving most of the
3371 locals to be locals within individual methods of class driver.
3372 The remaining locals "explicit_link_files", "decoded_options" and
3373 "decoded_options_count" are used by multiple driver:: methods, and
3374 so become member data. Doing so isolates the argc/argv reads and
3375 writes. Replace "goto out" with a special exit code from
3376 new method driver::prepare_infiles. Split out the old
3377 implementation of main into the following...
3378 (driver::main): New function, corresponding to the old "main"
3380 (driver::set_progname): New function, taken from the old
3381 "main" implementation.
3382 (driver::expand_at_files): Likewise.
3383 (driver::decode_argv): Likewise.
3384 (driver::global_initializations): Likewise.
3385 (driver::build_multilib_strings): Likewise.
3386 (driver::set_up_specs): Likewise.
3387 (driver::putenv_COLLECT_GCC): Likewise.
3388 (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
3389 (driver::handle_unrecognized_options): Likewise.
3390 (driver::maybe_print_and_exit): Likewise.
3391 (driver::prepare_infiles): Likewise.
3392 (driver::do_spec_on_infiles): Likewise.
3393 (driver::maybe_run_linker): Likewise.
3394 (driver::final_actions): Likewise.
3395 (driver::get_exit_code): Likewise.
3397 2014-10-03 Yury Gribov <y.gribov@samsung.com>
3399 * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
3400 don't emit empty ctors.
3402 2014-10-03 Eric Botcazou <ebotcazou@adacore.com>
3404 * convert.c (convert_to_integer): Do not introduce useless conversions
3405 between integral types.
3407 2014-10-03 David Sherwood <david.sherwood@arm.com>
3409 * ira-int.h (ira_allocno): Mark hard_regno as signed.
3411 2014-10-03 Ilya Enkovich <ilya.enkovich@intel.com>
3413 * lra-constraints.c (inherit_in_ebb): Handle calls with
3414 multiple return values.
3415 * caller-save.c (save_call_clobbered_regs): Likewise.
3417 2014-10-03 Jakub Jelinek <jakub@redhat.com>
3419 * tree-vect-data-refs.c (vect_permute_load_chain,
3420 vect_shift_permute_load_chain): Fix a typo in temporary var names,
3421 suffle3 to shuffle3.
3424 * omp-low.c (taskreg_contexts): New variable.
3425 (scan_omp_parallel): Push newly created context into taskreg_contexts
3426 vector and move record layout code to finish_taskreg_scan.
3427 (scan_omp_task): Likewise.
3428 (finish_taskreg_scan): New function.
3429 (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3430 vector elements and release it.
3433 * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3434 of palignr arguments can't be used due to min 0 or max - min
3435 too high, try also op0, op1 order of palignr arguments.
3437 2014-10-02 Jan Hubicka <hubicka@ucw.cz>
3439 * cgraph.h (ipa_polymorphic_call_context):
3440 Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3441 private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3442 * ipa-polymorphic-call.c
3443 (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3444 past end of dynamic types.
3445 (ipa_polymorphic_call_context::stream_out,
3446 speculative_outer_type): Stream dynamic flag.
3447 (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3448 (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3450 (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3452 (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3453 * ipa-prop.c (update_jump_functions_after_inlining,
3454 try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3456 2014-10-02 Teresa Johnson <tejohnson@google.com>
3458 * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3459 up when synthesizing counts to avoid rounding errors.
3461 2014-10-02 Teresa Johnson <tejohnson@google.com>
3464 * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3465 asserts to handle incoming insanities.
3467 2014-10-02 Martin Jambor <mjambor@suse.cz>
3469 PR tree-optimization/63375
3470 * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3473 2014-10-02 Olivier Hainque <hainque@adacore.com>
3475 * Makefile.in (CROSS): Define, to @CROSS.
3477 2014-10-02 Jakub Jelinek <jakub@redhat.com>
3480 * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3481 if it expands to a single insn only.
3482 (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument. If true,
3483 fail unless in_order is true. Add forward declaration.
3484 (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3485 is useful for one_operand_p.
3486 (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3488 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3490 * cgraphclones.c (build_function_type_skip_args): Do not make new
3491 type variant of old.
3493 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3495 * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3496 when speculation is added.
3497 (ipa_edge_args): Add polymorphic_call_contexts.
3498 (ipa_get_ith_polymorhic_call_context): New accesor.
3499 (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3500 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3501 (ipa_compute_jump_functions_for_edge): Compute contexts.
3502 (update_jump_functions_after_inlining): Update contexts.
3503 (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3504 update dumping; add speculative edge creation.
3505 (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3507 (update_indirect_edges_after_inlining): Pass down context.
3508 (ipa_edge_duplication_hook): Duplicate contexts.
3509 (ipa_write_node_info): Stream out contexts.
3510 (ipa_read_node_info): Stream in contexts.
3511 * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3513 (try_speculative_devirtualization): New function.
3514 * ipa-utils.h (try_speculative_devirtualization): Declare.
3516 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3518 * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3521 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3523 * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3526 2014-10-01 Jan Hubicka <hubicka@ucw.cz>
3528 * ipa-polymorphic-call.c
3529 (ipa_polymorphic_call_context::restrict_to_inner_class):
3530 Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3531 use speculation_consistent_p to do so; Add CONSDER_BASES
3532 and CONSIDER_PLACEMENT_NEW parameters.
3533 (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3534 short circuit obvious cases.
3535 (ipa_polymorphic_call_context::dump): Improve formatting.
3536 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3537 combine_speculation_with to record speculations; Do not ICE when
3538 object is located in pointer type decl; do not ICE for methods
3539 of UNION_TYPE; do not record nonpolymorphic types.
3540 (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3541 (ipa_polymorphic_call_context::combine_speculation_with): New method.
3542 (ipa_polymorphic_call_context::combine_with): New method.
3543 (ipa_polymorphic_call_context::make_speculative): Move here; use
3544 combine speculation.
3545 * cgraph.h (ipa_polymorphic_call_context): Update
3546 restrict_to_inner_class prototype; add offset_by, make_speculative,
3547 combine_with, useless_p, combine_speculation_with and
3548 speculation_consistent_p methods.
3549 (ipa_polymorphic_call_context::offset_by): New method.
3550 (ipa_polymorphic_call_context::useless_p): New method.
3552 2014-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3554 PR rtl-optimization/62151
3555 * combine.c (can_combine_p): Allow the destination register of INSN
3556 to be clobbered in I3.
3557 (subst): Do not substitute into clobbers of registers.
3559 2014-10-01 Jakub Jelinek <jakub@redhat.com>
3562 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3563 offset, TARGET_MEM_REF and SSA_NAME.
3565 * config/i386/i386.c (expand_vec_perm_palignr): Handle
3566 256-bit vectors for TARGET_AVX2.
3568 * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3572 * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3573 argument to avx2_permv2ti.
3575 2014-10-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3577 * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3579 2014-09-30 Uros Bizjak <ubizjak@gmail.com>
3581 * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3582 (fmod<mode>3): Ditto.
3583 (fpremxf4_i387): Ditto.
3584 (reminderxf3): Ditto.
3585 (reminder<mode>3): Ditto.
3586 (fprem1xf4_i387): Ditto.
3588 2014-09-30 Teresa Johnson <tejohnson@google.com>
3590 * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3591 duplicate_blocks bitmap.
3592 (remove_ctrl_stmt_and_useless_edges): Ditto.
3593 (create_block_for_threading): Ditto.
3594 (compute_path_counts): New function.
3595 (update_profile): Ditto.
3596 (recompute_probabilities): Ditto.
3597 (update_joiner_offpath_counts): Ditto.
3598 (freqs_to_counts_path): Ditto.
3599 (clear_counts_path): Ditto.
3600 (ssa_fix_duplicate_block_edges): Update profile info.
3601 (ssa_create_duplicates): Pass new parameter.
3602 (ssa_redirect_edges): Remove old profile update.
3603 (thread_block_1): New duplicate_blocks bitmap,
3604 remove old profile update.
3605 (thread_single_edge): Pass new parameter.
3607 2014-09-30 Ilya Tocar <ilya.tocar@intel.com>
3610 * varasm.c (decode_reg_name_and_count): Check availability for
3611 registers from ADDITIONAL_REGISTER_NAMES.
3613 2014-09-30 David Malcolm <dmalcolm@redhat.com>
3616 * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3617 (PLUGIN_HEADERS): Add pass-instances.def.
3619 2014-09-30 James Greenhalgh <james.greenhalgh@arm.com>
3621 * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3623 * config/aarch64/aarch64-simd.md
3624 (aarch64_sqdmull_laneq<mode>): Expand iterator.
3625 * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3626 (vqdmulls_lane_s32): Fix return type.
3627 (vqdmulls_laneq_s32): New.
3629 2014-09-30 Jakub Jelinek <jakub@redhat.com>
3632 * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3633 or invert_jump_1 if jump isn't any_condjump_p.
3635 2014-09-30 Terry Guo <terry.guo@arm.com>
3637 * config/arm/arm-cores.def (cortex-m7): New core name.
3638 * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3640 * config/arm/arm-tables.opt: Regenerated.
3641 * config/arm/arm-tune.md: Regenerated.
3642 * config/arm/arm.h (TARGET_VFP5): New macro.
3643 * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3644 * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3645 smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3646 * doc/invoke.texi: Document new cpu and fpu names.
3648 2014-09-30 Jiong Wang <jiong.wang@arm.com>
3650 * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3651 before sinking insn.
3653 2014-09-30 David Sherwood <david.sherwood@arm.com>
3655 * ira-int.h (ira_allocno): Add "wmode" field.
3656 * ira-build.c (create_insn_allocnos): Add new "parent" function
3658 * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3659 that cannot be accessed in wmode.
3661 2014-09-30 Markus Trippelsdorf <markus@trippelsdorf.de>
3663 * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3666 2014-09-29 Andi Kleen <ak@linux.intel.com>
3668 * opts.c (print_filtered_help): Print --param min/max/default
3671 2014-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
3673 * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3675 2014-09-29 Eric Botcazou <ebotcazou@adacore.com>
3677 * tree-vrp.c (get_single_symbol): New function.
3678 (build_symbolic_expr): Likewise.
3679 (symbolic_range_based_on_p): New predicate.
3680 (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3681 for PLUS and MINUS. Do not drop symbolic ranges at the end.
3682 (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3683 operand is symbolic and based on the other operand.
3685 2014-09-29 Chen Gang <gang.chen.5i5j@gmail.com>
3687 * config/microblaze/microblaze.md (call_internal1): Use VOID
3688 instead of SI to fix "((void (*)(void)) 0)()" issue
3690 2014-09-29 Nick Clifton <nickc@redhat.com>
3692 * config/msp430/msp430.c (msp430_expand_prologue): Return a
3693 CLOBBER rtx for naked functions.
3694 (msp430_expand_epilogue): Likewise.
3695 (msp430_use_f5_series_hwmult): Cache result.
3696 (use_32bit_hwmult): Cache result.
3697 (msp430_no_hwmult): New function.
3698 (msp430_output_labelref): Use it.
3700 2014-09-29 Jakub Jelinek <jakub@redhat.com>
3703 * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3704 of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3705 use the alignment of avar rather than ovar.
3707 2014-09-28 John David Anglin <danglin@gcc.gnu.org>
3709 * config/pa/pa.c (pa_output_function_epilogue): Only update
3710 last_address when a nonnote insn is found.
3712 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3715 * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3717 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3720 * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3721 fix pasto in checking array size.
3723 2014-09-26 Jan Hubicka <hubicka@ucw.cz>
3726 * passes.def (pass_tracer): Move before last dominator pass.
3728 2014-09-26 Thomas Schwinge <thomas@codesourcery.com>
3730 * gcc.c (try_generate_repro): Remove argument "prog". Change all
3732 (run_attempt): Handle errors of "pex_run" invocation.
3734 2014-09-26 Christophe Lyon <christophe.lyon@linaro.org>
3736 * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3738 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3739 (TARGET_ASAN_SHADOW_OFFSET): Define.
3741 2014-09-26 Martin Liska <mliska@suse.cz>
3743 * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3745 * cgraph.h: Likewise.
3746 * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3747 * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3748 * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3749 * tree-ssa-alias.h: Likewise.
3751 2014-09-26 Jakub Jelinek <jakub@redhat.com>
3752 Max Ostapenko <m.ostapenko@partner.samsung.com>
3754 * common.opt: New option.
3755 * doc/invoke.texi: Describe new option.
3756 * gcc.c (execute): Don't free first string early, but at the end
3757 of the function. Call retry_ice if compiler exited with
3759 (main): Factor out common code.
3760 (print_configuration): New function.
3761 (files_equal_p): Likewise.
3762 (check_repro): Likewise.
3763 (run_attempt): Likewise.
3764 (do_report_bug): Likewise.
3765 (append_text): Likewise.
3766 (try_generate_repro): Likewise
3768 2014-09-25 Andi Kleen <ak@linux.intel.com>
3770 * config/i386/i386.c (x86_print_call_or_nop): New function.
3771 (x86_function_profiler): Support -mnop-mcount and
3773 * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3774 * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3776 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3778 * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3779 * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3780 * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3783 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3785 * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3786 type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3787 types_odr_comparable): Declare.
3788 (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3789 * ipa-polymorphic-call.c: New file.
3790 (contains_polymorphic_type_p, possible_placement_new,
3791 ipa_polymorphic_call_context::restrict_to_inner_class,
3792 contains_type_p, decl_maybe_in_construction_p,
3793 ipa_polymorphic_call_context::stream_out,
3794 ipa_polymorphic_call_context::debug,
3795 ipa_polymorphic_call_context::stream_in,
3796 ipa_polymorphic_call_context::set_by_decl,
3797 ipa_polymorphic_call_context::set_by_invariant,
3799 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3800 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3801 extr_type_from_vtbl_ptr_store, record_known_type
3802 check_stmt_for_type_change,
3803 ipa_polymorphic_call_context::get_dynamic_type): Move here from
3805 * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3806 and streamer-hooks.h
3807 (contains_polymorphic_type_p, possible_placement_new,
3808 ipa_polymorphic_call_context::restrict_to_inner_class,
3809 contains_type_p, decl_maybe_in_construction_p,
3810 ipa_polymorphic_call_context::stream_out,
3811 ipa_polymorphic_call_context::debug,
3812 ipa_polymorphic_call_context::stream_in,
3813 ipa_polymorphic_call_context::set_by_decl,
3814 ipa_polymorphic_call_context::set_by_invariant,
3816 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3817 type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3818 extr_type_from_vtbl_ptr_store, record_known_type
3819 check_stmt_for_type_change,
3820 ipa_polymorphic_call_context::get_dynamic_type): Move to
3821 ipa-polymorphic-call.c
3822 (type_all_derivations_known_p, types_odr_comparable,
3823 types_must_be_same_for_odr): Export.
3824 (type_known_to_have_no_deriavations_p): New function.
3825 * Makefile.in: Add ipa-polymorphic-call.c
3827 2014-09-25 Jan Hubicka <hubicka@ucw.cz>
3829 * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3831 (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3832 (possible_polymorphic_call_targets): Instead of computing both
3833 speculative and non-speculative answers, do just one at a time.
3834 Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3835 (dump_targets): Break out from ...
3836 (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3837 and non-speculative lists.
3838 (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3839 * ipa-utils.h (possible_polymorphic_call_targets): Update.
3841 2014-09-25 Uros Bizjak <ubizjak@gmail.com>
3843 PR rtl-optimization/63348
3844 * emit-rtl.c (try_split): Do not emit extra barrier.
3846 2014-09-25 James Greenhalgh <james.greenhalgh@arm.com>
3848 * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3849 * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3851 (aarch64_<sur>shll2_n<mode>): Likewise.
3852 (aarch64_<sur>shr_n<mode>): Likewise.
3853 (aarch64_<sur>sra_n<mode>: Likewise.
3854 (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3855 (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3856 * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3857 * config/aarch64/iterators.md (ve_mode): New.
3858 (offsetlr): Remap to infix text for use in new predicates.
3859 * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3860 (aarch64_simd_shift_imm_hi): Likewise.
3861 (aarch64_simd_shift_imm_si): Likewise.
3862 (aarch64_simd_shift_imm_di): Likewise.
3863 (aarch64_simd_shift_imm_offset_qi): Likewise.
3864 (aarch64_simd_shift_imm_offset_hi): Likewise.
3865 (aarch64_simd_shift_imm_offset_si): Likewise.
3866 (aarch64_simd_shift_imm_offset_di): Likewise.
3867 (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3868 (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3869 (aarch64_simd_shift_imm_bitsize_si): Likewise.
3870 (aarch64_simd_shift_imm_bitsize_di): Likewise.
3872 2014-09-25 Jiong Wang <jiong.wang@arm.com>
3874 * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3875 new created BB as the intersection of live-in from "old_dest" and
3878 2014-09-25 Felix Yang <felix.yang@huawei.com>
3880 * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3881 * genautomata.c (merge_states): Ditto.
3883 2014-09-25 Oleg Endo <olegendo@gcc.gnu.org>
3886 * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3887 in instruction sequence.
3889 2014-09-25 Nick Clifton <nickc@redhat.com>
3892 * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3893 in instruction sequence.
3895 2014-09-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3898 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3899 Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3901 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3902 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3903 Anna Tikhonova <anna.tikhonova@intel.com>
3904 Ilya Tocar <ilya.tocar@intel.com>
3905 Andrey Turetskiy <andrey.turetskiy@intel.com>
3906 Ilya Verbin <ilya.verbin@intel.com>
3907 Kirill Yukhin <kirill.yukhin@intel.com>
3908 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3910 * config/i386/sse.md
3911 (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3912 (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3913 (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3914 (define_expand "<avx512>_perm<mode>_mask"): ... this.
3915 Use VI8F_256_512 mode iterator.
3916 (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3917 (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3919 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3920 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3921 Anna Tikhonova <anna.tikhonova@intel.com>
3922 Ilya Tocar <ilya.tocar@intel.com>
3923 Andrey Turetskiy <andrey.turetskiy@intel.com>
3924 Ilya Verbin <ilya.verbin@intel.com>
3925 Kirill Yukhin <kirill.yukhin@intel.com>
3926 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3928 * config/i386/sse.md
3929 (define_insn "avx_movshdup256<mask_name>"): Add masking.
3930 (define_insn "sse3_movshdup<mask_name>"): Ditto.
3931 (define_insn "avx_movsldup256<mask_name>"): Ditto.
3932 (define_insn "sse3_movsldup<mask_name>"): Ditto.
3933 (define_insn "vec_dupv2df<mask_name>"): Ditto.
3934 (define_insn "*vec_concatv2df"): Add EVEX version.
3936 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3937 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3938 Anna Tikhonova <anna.tikhonova@intel.com>
3939 Ilya Tocar <ilya.tocar@intel.com>
3940 Andrey Turetskiy <andrey.turetskiy@intel.com>
3941 Ilya Verbin <ilya.verbin@intel.com>
3942 Kirill Yukhin <kirill.yukhin@intel.com>
3943 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3945 * config/i386/sse.md
3946 (define_insn "vec_set<mode>_0"): Add EVEX version.
3948 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3949 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3950 Anna Tikhonova <anna.tikhonova@intel.com>
3951 Ilya Tocar <ilya.tocar@intel.com>
3952 Andrey Turetskiy <andrey.turetskiy@intel.com>
3953 Ilya Verbin <ilya.verbin@intel.com>
3954 Kirill Yukhin <kirill.yukhin@intel.com>
3955 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3957 * config/i386/sse.md
3959 "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3961 (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3962 (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3963 (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3964 "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3965 (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3966 (define_expand "sse2_cvtpd2ps_mask): New.
3967 (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3968 (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3970 2014-09-25 Alexander Ivchenko <alexander.ivchenko@intel.com>
3971 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3972 Anna Tikhonova <anna.tikhonova@intel.com>
3973 Ilya Tocar <ilya.tocar@intel.com>
3974 Andrey Turetskiy <andrey.turetskiy@intel.com>
3975 Ilya Verbin <ilya.verbin@intel.com>
3976 Kirill Yukhin <kirill.yukhin@intel.com>
3977 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3979 * config/i386/i386.c
3980 (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3981 (ufix_notruncv8dfv8si2_mask_round): ... this.
3982 * config/i386/sse.md
3983 (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3984 (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3985 (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3986 (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3987 (define_expand "sse2_cvtpd2dq"): Delete.
3988 (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3989 make 2nd operand const0 vector.
3990 (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3992 (define_mode_attr pd2udqsuff): New.
3994 "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3995 (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3996 (define_insn "*avx_cvttpd2dq256_2"): Delete.
3997 (define_expand "sse2_cvttpd2dq"): Ditto.
3998 (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3999 make 2nd operand const0 vector.
4001 2014-09-25 Jakub Jelinek <jakub@redhat.com>
4003 PR tree-optimization/63341
4004 * tree-vectorizer.h (vect_create_data_ref_ptr,
4005 vect_create_addr_base_for_vector_ref): Add another tree argument
4006 defaulting to NULL_TREE.
4007 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
4008 argument, pass it down to vect_create_addr_base_for_vector_ref.
4009 (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
4010 add that to base_offset too if non-NULL.
4011 * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
4012 for dr_explicit_realign_optimized set it to vector byte size
4013 - 1 instead of setting offset, pass byte_offset down to
4014 vect_create_data_ref_ptr.
4016 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
4018 * ipa-devirt.c (possible_polymorphic_call_targets): Remove
4019 forgotten debug output; canonicalize querries more wtih LTO.
4021 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
4023 * cgraph.h (class ipa_polymorphic_call_context): Move here from
4024 ipa-utils.h; add stream_int and stream_out methods.
4025 (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
4026 OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
4027 MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
4029 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4030 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4031 ipa_polymorphic_call_context::clear_speculation,
4032 ipa_polymorphic_call_context::clear_outer_type): Move here from
4034 * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
4035 (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4036 ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4037 ipa_polymorphic_call_context::clear_speculation,
4038 ipa_polymorphic_call_context::clear_outer_type): Likewise.
4039 * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
4041 (ipa_polymorphic_call_context::stream_out): New method.
4042 (ipa_polymorphic_call_context::stream_in): New method.
4043 (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
4044 * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
4046 (ipa_analyze_call_uses): Simplify.
4047 (update_indirect_edges_after_inlining): Do not care about outer_type.
4048 (ipa_write_indirect_edge_info): Update.
4049 (ipa_write_indirect_edge_info): Likewise.
4050 * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
4051 (dump_edge_flags): Break out from ...
4052 (cgraph_node::dump): ... here; dump indirect edges.
4054 2014-09-24 Jan Hubicka <hubicka@ucw.cz>
4056 * ipa-utils.h (polymorphic_call_context): Add
4057 metdhos dump, debug and clear_outer_type.
4058 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4059 (ipa_polymorphic_call_context::clear_outer_type): New method.
4060 * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
4061 * ipa-devirt.c (types_odr_comparable): New function.
4062 (types_must_be_same_for_odr): New function.
4063 (odr_subtypes_equivalent_p): Simplify.
4064 (possible_placement_new): Break out from ...
4065 (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
4066 be more cuatious about returning false in cases the context may be
4067 valid in derived type or via placement new.
4068 (contains_type_p): Clear maybe_derived_type
4069 (ipa_polymorphic_call_context::dump): New method.
4070 (ipa_polymorphic_call_context::debug): New method.
4071 (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
4072 (ipa_polymorphic_call_context::set_by_invariant): Simplify.
4073 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4074 (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
4075 to suceed on all valid cases; remove confused sanity check.
4076 (dump_possible_polymorphic_call_targets): Simplify.
4078 2014-09-24 Aldy Hernandez <aldyh@redhat.com>
4080 * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
4081 lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
4082 tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
4083 varpool.c: Rename all instances of DECL_ABSTRACT to
4086 2014-09-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4088 * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
4089 special handling for stores whose SET_SRC is an UNSPEC (such as
4092 2014-09-24 Jiong Wang <jiong.wang@arm.com>
4094 * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
4095 !REG_P (src) to release more instruction sink opportunities.
4097 2014-09-24 Wilco Dijkstra <wilco.dijkstra@arm.com>
4099 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
4100 move costs for 128-bit types.
4102 2014-09-24 Martin Jambor <mjambor@suse.cz>
4104 * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
4105 when duplicating a PASS_THROUGH jump function when creating a
4108 2014-09-24 Marek Polacek <polacek@redhat.com>
4112 * asan.c (maybe_instrument_call): Add default case.
4113 * ipa-pure-const.c (special_builtin_state): Likewise.
4114 * predict.c (expr_expected_value_1): Likewise.
4115 * lto-streamer-out.c (write_symbol): Initialize variable.
4117 2014-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4119 * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
4121 (vmuld_laneq_f64): Likewise.
4122 (vmuls_lane_f32): Likewise.
4123 (vmuls_laneq_f32): Likewise.
4125 2014-09-24 Kirill Yukhin <kirill.yukhin@intel.com>
4128 * varpool.c (varpool_node::add): Pass decl attributes
4129 to lookup_attribute.
4131 2014-09-24 Jakub Jelinek <jakub@redhat.com>
4134 * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
4136 2014-09-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
4138 PR tree-optimization/63266
4139 * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
4140 marker for unknown byte value.
4141 (MARKER_MASK): New macro.
4142 (MARKER_BYTE_UNKNOWN): New macro.
4143 (HEAD_MARKER): New macro.
4144 (do_shift_rotate): Mark bytes with unknown values due to sign
4145 extension when doing an arithmetic right shift. Replace hardcoded
4146 mask for marker by new MARKER_MASK macro.
4147 (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
4148 numbers accordingly.
4150 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4151 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4152 Anna Tikhonova <anna.tikhonova@intel.com>
4153 Ilya Tocar <ilya.tocar@intel.com>
4154 Andrey Turetskiy <andrey.turetskiy@intel.com>
4155 Ilya Verbin <ilya.verbin@intel.com>
4156 Kirill Yukhin <kirill.yukhin@intel.com>
4157 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4159 * config/i386/sse.md
4161 "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
4163 (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
4164 (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
4166 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4167 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4168 Anna Tikhonova <anna.tikhonova@intel.com>
4169 Ilya Tocar <ilya.tocar@intel.com>
4170 Andrey Turetskiy <andrey.turetskiy@intel.com>
4171 Ilya Verbin <ilya.verbin@intel.com>
4172 Kirill Yukhin <kirill.yukhin@intel.com>
4173 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4175 * config/i386/sse.md
4176 (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
4177 (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
4178 (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
4179 (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
4180 (define_expand "avx512vl_pshuflw_mask"): New.
4181 (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
4182 (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
4183 (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
4184 (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
4185 (define_expand "avx512vl_pshufhw_mask"): New.
4186 (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
4188 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4189 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4190 Anna Tikhonova <anna.tikhonova@intel.com>
4191 Ilya Tocar <ilya.tocar@intel.com>
4192 Andrey Turetskiy <andrey.turetskiy@intel.com>
4193 Ilya Verbin <ilya.verbin@intel.com>
4194 Kirill Yukhin <kirill.yukhin@intel.com>
4195 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4197 * config/i386/i386.c
4198 (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
4199 CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
4200 CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
4201 CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
4202 CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
4203 * config/i386/sse.md
4204 (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
4206 "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
4207 (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
4209 "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
4210 (define_expand "avx512vl_pshufdv3_mask"): Ditto.
4211 (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
4212 (define_expand "avx512vl_pshufd_mask"): New.
4213 (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
4215 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4216 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4217 Anna Tikhonova <anna.tikhonova@intel.com>
4218 Ilya Tocar <ilya.tocar@intel.com>
4219 Andrey Turetskiy <andrey.turetskiy@intel.com>
4220 Ilya Verbin <ilya.verbin@intel.com>
4221 Kirill Yukhin <kirill.yukhin@intel.com>
4222 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4224 * config/i386/i386.c
4225 (CODE_FOR_avx2_extracti128): Rename to ...
4226 (CODE_FOR_avx_vextractf128v4di): this.
4227 (CODE_FOR_avx2_inserti128): Rename to ...
4228 (CODE_FOR_avx_vinsertf128v4di): this.
4229 (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
4230 CODE_FOR_avx_vextractf128v4di.
4231 (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
4232 CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
4233 CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
4234 CODE_FOR_avx512vl_vinsertv8si.
4235 * config/i386/sse.md
4237 "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
4238 AVX512_VEC mode iterator.
4240 "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
4243 "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
4244 AVX512_VEC_2 mode iterator.
4245 (define_insn "vec_set_lo_<mode><mask_name>"): New.
4246 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4247 (define_expand "avx512vl_vinsert<mode>"): Ditto.
4248 (define_insn "avx2_vec_set_lo_v4di"): Delete.
4249 (define_insn "avx2_vec_set_hi_v4di"): Ditto.
4250 (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
4251 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4252 (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
4253 (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4254 (define_expand "avx2_extracti128"): Delete.
4255 (define_expand "avx2_inserti128"): Ditto.
4257 2014-09-24 Alexander Ivchenko <alexander.ivchenko@intel.com>
4258 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4259 Anna Tikhonova <anna.tikhonova@intel.com>
4260 Ilya Tocar <ilya.tocar@intel.com>
4261 Andrey Turetskiy <andrey.turetskiy@intel.com>
4262 Ilya Verbin <ilya.verbin@intel.com>
4263 Kirill Yukhin <kirill.yukhin@intel.com>
4264 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4266 * config/i386/sse.md
4267 (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
4268 (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
4269 (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
4270 (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
4271 (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
4272 (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
4273 (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
4274 (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
4275 (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
4276 (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
4277 (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
4278 (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
4279 (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
4281 2014-09-24 Zhenqiang Chen <zhenqiang.chen@arm.com>
4283 PR rtl-optimization/63210
4284 * ira-color.c (assign_hard_reg): Ignore conflict cost if the
4285 HARD_REGNO is not available for CONFLICT_A.
4287 2014-09-23 Andi Kleen <ak@linux.intel.com>
4289 * cgraph.h (symtab_node): Add no_reorder attribute.
4290 (symbol_table::output_asm_statements): Remove.
4291 * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
4292 (cgraph_node::create_version_clone): Dito.
4293 (symbol_table::output_asm_statements): Remove.
4294 * trans-mem.c (ipa_tm_create_version_alias): Dito.
4295 * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
4296 (output_in_order): Add no_reorder flag. Only handle no_reorder
4298 (symbol_table::compile): Add separate pass for no_reorder nodes.
4299 (process_common_attributes): Set no_reorder flag in symtab node.
4301 (process_function_and_variable_attributes): Pass symtab nodes to
4302 process_common_attributes.
4303 * doc/extend.texi (no_reorder): Document no_reorder attribute.
4304 * lto-cgraph.c (lto_output_node): Serialize no_reorder.
4305 (lto_output_varpool_node): Dito.
4306 (input_overwrite_node): Dito.
4307 (input_varpool_node): Dito.
4308 * varpool.c (varpool_node::add): Set no_reorder attribute.
4309 (symbol_table::remove_unreferenced_decls): Handle no_reorder.
4310 (symbol_table::output_variables): Dito.
4311 * symtab.c (symtab_node::dump_base): Print no_reorder.
4313 2014-09-23 Jiong Wang <jiong.wang@arm.com>
4315 * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
4318 2014-09-23 Thomas Schwinge <thomas@codesourcery.com>
4320 * configure: Regenerate.
4322 2014-09-23 Alan Lawrence <alan.lawrence@arm.com>
4324 * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
4325 when result_mode == shift_mode.
4327 2014-09-23 Kostya Serebryany <kcc@google.com>
4329 Update to match the changed asan API.
4330 * asan.c (asan_global_struct): Update the __asan_global definition
4331 to match the new API.
4332 (asan_add_global): Ditto.
4333 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
4336 2014-09-23 Michael Meissner <meissner@linux.vnet.ibm.com>
4338 * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
4339 refine the constraints used on 32/64-bit floating point moves.
4341 (f64_vsx): Likewise.
4344 (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
4345 (BOOL_REGS_OP1): Likewise.
4346 (BOOL_REGS_OP2): Likewise.
4347 (BOOL_REGS_UNARY): Likewise.
4348 (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
4349 32/64-bit floating point moves. Do not use wa, instead use ww/ws
4350 for moves involving VSX registers. Do not use constraints that
4351 target VSX registers for decimal types.
4352 (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
4353 (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
4355 2014-09-23 Jan Hubicka <hubicka@ucw.cz>
4357 * tree.h (int_bit_position): Turn into inline function;
4358 implement using wide int.
4359 * tree.c (int_bit_position): Remove.
4361 2014-09-23 Richard Sandiford <richard.sandiford@arm.com>
4364 * target-globals.c (target_globals::~target_globals): Fix location
4365 of ira_int destruction.
4367 2014-09-23 Renlin Li <renlin.li@arm.com>
4369 * config/aarch64/aarch64.md (return): New.
4370 (simple_return): Likewise.
4371 * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
4372 * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
4374 2014-09-23 Wilco Dijkstra <wdijkstr@arm.com>
4376 * common/config/aarch64/aarch64-common.c:
4377 (default_options aarch_option_optimization_table):
4378 Default to -fsched-pressure.
4380 2014-09-23 Ilya Enkovich <ilya.enkovich@intel.com>
4382 * cfgcleanup.c (try_optimize_cfg): Do not remove label
4383 with LABEL_PRESERVE_P flag set.
4385 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4386 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4387 Anna Tikhonova <anna.tikhonova@intel.com>
4388 Ilya Tocar <ilya.tocar@intel.com>
4389 Andrey Turetskiy <andrey.turetskiy@intel.com>
4390 Ilya Verbin <ilya.verbin@intel.com>
4391 Kirill Yukhin <kirill.yukhin@intel.com>
4392 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4394 * config/i386/sse.md
4395 (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
4396 (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
4397 (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
4398 (define_insn "sse2_shufpd_v2df_mask"): New.
4400 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4401 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4402 Anna Tikhonova <anna.tikhonova@intel.com>
4403 Ilya Tocar <ilya.tocar@intel.com>
4404 Andrey Turetskiy <andrey.turetskiy@intel.com>
4405 Ilya Verbin <ilya.verbin@intel.com>
4406 Kirill Yukhin <kirill.yukhin@intel.com>
4407 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4409 * config/i386/sse.md
4410 (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
4411 (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4412 (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4413 (define_insn "sse_shufps_v4sf_mask"): New.
4415 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4416 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4417 Anna Tikhonova <anna.tikhonova@intel.com>
4418 Ilya Tocar <ilya.tocar@intel.com>
4419 Andrey Turetskiy <andrey.turetskiy@intel.com>
4420 Ilya Verbin <ilya.verbin@intel.com>
4421 Kirill Yukhin <kirill.yukhin@intel.com>
4422 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4424 * config/i386/sse.md
4425 (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4426 (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4427 (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4428 (define_insn "unpcklps128_mask"): New.
4430 2014-09-23 Alexander Ivchenko <alexander.ivchenko@intel.com>
4431 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4432 Anna Tikhonova <anna.tikhonova@intel.com>
4433 Ilya Tocar <ilya.tocar@intel.com>
4434 Andrey Turetskiy <andrey.turetskiy@intel.com>
4435 Ilya Verbin <ilya.verbin@intel.com>
4436 Kirill Yukhin <kirill.yukhin@intel.com>
4437 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4439 * config/i386/sse.md
4440 (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4441 (define_insn "avx512vl_unpckhpd128_mask"): New.
4442 (define_expand "avx_movddup256<mask_name>"): Add masking.
4443 (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4444 (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4445 (define_insn "avx512vl_unpcklpd128_mask"): New.
4447 2014-09-22 Joseph Myers <joseph@codesourcery.com>
4449 * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4450 * doc/tm.texi: Regenerate.
4451 * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4452 * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4453 * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4455 * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4456 * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4457 * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4458 * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4459 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4461 * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4462 * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4463 * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4464 * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4465 * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4466 * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4467 * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4468 * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4469 * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4470 * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4471 * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4474 2014-09-22 Jan Hubicka <hubicka@ucw.cz>
4476 * tree-ssa-ccp.c (prop_value_d): Rename to ...
4477 (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4478 * ipa-prop.c (struct type_change_info): Rename to ...
4479 (prop_type_change_info): ... this; update uses.
4480 * ggc-page.c (globals): Rename to ...
4481 (static struct ggc_globals): ... this; update uses.
4482 * tree-ssa-loop-im.c (mem_ref): Rename to ...
4483 (im_mem_ref): ... this; update uses.
4484 * ggc-common.c (loc_descriptor): Rename to ...
4485 (ggc_loc_descriptor): ... this; update uses.
4486 * lra-eliminations.c (elim_table): Rename to ...
4487 (lra_elim_table): ... this; update uses.
4488 * bitmap.c (output_info): Rename to ...
4489 (bitmap_output_info): ... this; update uses.
4490 * gcse.c (expr): Rename to ...
4491 (gcse_expr) ... this; update uses.
4492 (occr): Rename to ...
4493 (gcse_occr): .. this; update uses.
4494 * tree-ssa-copy.c (prop_value_d): Rename to ...
4495 (prop_value_t): ... this.
4496 * predict.c (block_info_def): Rename to ...
4497 (block_info): ... this; update uses.
4498 (edge_info_def): Rename to ...
4499 (edge_info): ... this; update uses.
4500 * profile.c (bb_info): Rename to ...
4501 (bb_profile_info): ... this; update uses.
4502 * alloc-pool.c (output_info): Rename to ...
4503 (pool_output_info): ... this; update uses.
4504 * ipa-cp.c (topo_info): Rename to ..
4505 (ipa_topo_info): ... this; update uses.
4506 * tree-nrv.c (nrv_data): Rename to ...
4507 (nrv_data_t): ... this; update uses.
4508 * ipa-split.c (bb_info): Rename to ...
4509 (split_bb_info): ... this one.
4510 * profile.h (edge_info): Rename to ...
4511 (edge_profile_info): ... this one; update uses.
4512 * dse.c (bb_info): Rename to ...
4513 (dse_bb_info): ... this one; update uses.
4514 * cprop.c (occr): Rename to ...
4515 (cprop_occr): ... this one; update uses.
4516 (expr): Rename to ...
4517 (cprop_expr): ... this one; update uses.
4519 2014-09-22 Jason Merrill <jason@redhat.com>
4521 * Makefile.in (check-parallel-%): Add @.
4523 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4525 * config/aarch64/geniterators.sh: New.
4526 * config/aarch64/iterators.md (VDQF_DF): New.
4527 * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4528 * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4530 2014-09-22 Peter A. Bigot <pab@pabigot.com>
4532 * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4533 -lnosys when -msim absent.
4535 2014-09-22 Alan Lawrence <alan.lawrence@arm.com>
4537 * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4539 2014-09-22 Richard Biener <rguenther@suse.de>
4541 * gimplify.c (gimplify_init_constructor): Do not leave
4542 non-GIMPLE vector constructors around.
4543 * tree-cfg.c (verify_gimple_assign_single): Verify that
4544 CONSTRUCTORs have gimple elements.
4546 2014-09-22 Jakub Jelinek <jakub@redhat.com>
4549 * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4550 insert a debug source bind stmt setting DEBUG_EXPR_DECL
4551 instead of a normal gimple assignment stmt.
4553 2014-09-22 James Greenhalgh <james.greenhalgh@arm.com>
4555 * config/bfin/bfin.md: Fix use of constraints in define_split.
4557 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4559 * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4560 GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4562 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4564 * hard-reg-set.h: Include hash-table.h.
4565 (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4567 * target-globals.c (target_globals::~target_globals): Call
4568 hard_regs->finalize.
4569 * rtl.h (subreg_shape): New structure.
4570 (shape_of_subreg): New function.
4571 (simplifiable_subregs): Declare.
4572 * reginfo.c (simplifiable_subreg): New structure.
4573 (simplifiable_subregs_hasher): Likewise.
4574 (simplifiable_subregs): New function.
4575 (invalid_mode_changes): Delete.
4576 (alid_mode_changes, valid_mode_changes_obstack): New variables.
4577 (record_subregs_of_mode): Remove subregs_of_mode parameter.
4578 Record valid mode changes in valid_mode_changes.
4579 (find_subregs_of_mode): Remove subregs_of_mode parameter.
4580 Update calls to record_subregs_of_mode.
4581 (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4582 handling. Initialize new variables. Update call to
4583 find_subregs_of_mode.
4584 (invalid_mode_change_p): Check new variables instead of
4585 invalid_mode_changes.
4586 (finish_subregs_of_mode): Finalize new variables instead of
4587 invalid_mode_changes.
4588 (target_hard_regs::finalize): New function.
4589 * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4590 even when CLASS_CANNOT_CHANGE_MODE is undefined.
4592 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4594 * combine.c (subst): Use simplify_subreg_regno rather than
4595 REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4597 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4599 * rtl.h (subreg_info): Expand commentary
4600 * rtlanal.c (subreg_get_info): Likewise.
4602 2014-09-22 Richard Sandiford <richard.sandiford@arm.com>
4604 * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4605 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4606 (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4608 2014-09-22 Zhenqiang Chen <zhenqiang.chen@arm.com>
4610 * config/arm/arm.c: #include "tm-constrs.h"
4611 (thumb1_size_rtx_costs): Adjust rtx costs.
4613 2014-09-22 Hans-Peter Nilsson <hp@axis.com>
4615 * configure.ac (target_header_dir): Move block defining
4616 this to before the block setting inhibit_libc.
4617 (inhibit_libc): When considering $with_headers, just
4618 check it it's explicitly "no". If not, also check if
4619 $target_header_dir/stdio.h is present. If not, set
4621 * configure: Regenerate.
4623 2014-09-21 Patrick Oppenlander <pattyo.lists@gmail.com>
4625 * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4627 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4629 * config/rs6000/rs6000.md (div<mode>3): Fix comment. Use a different
4630 insn for divides by integer powers of two.
4631 (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4632 (mod<mode>3): Fix formatting.
4633 (three anonymous define_insn and two define_split): Delete.
4635 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4637 * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4638 *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4639 (floatdisf2_internal2): Ditto.
4640 (ashrdi3_no_power): Ditto. Fix formatting.
4642 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4644 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4645 popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4648 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4650 * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4651 constant, use addsi3 directly.
4652 (three anonymous define_insn, two define_split): Delete.
4653 (sub<mode>3): Move. Do not allow constant second operand.
4654 Generate different insn for constant first operand.
4655 (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4656 (subf<mode>3_imm): New.
4657 (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4658 (*plus_ltu<mode>): Only handle registers.
4659 (*plus_ltu<mode>_1): New. Handle integer third operand.
4660 (*plus_gtu<mode>): Only handle registers.
4661 (*plus_gtu<mode>_1): New. Handle integer third operand.
4663 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4665 * config/rs6000/rs6000.md (iorxor): New code_iterator.
4666 (iorxor): New code_attr.
4667 (IORXOR): New code_attr.
4668 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4669 (ior<mode>3, xor<mode>3): Delete.
4670 (<iorxor><mode>3): New.
4671 (splitter for "big" integer ior, xor): New.
4672 (*bool<mode>3): Move. Also handle AND.
4673 (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4674 (splitter for "big" integer ior, xor): Delete.
4676 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4678 * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4679 (two anonymous define_insn and two define_split): Delete.
4680 (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4682 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4684 * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4685 (two anonymous define_insn and two define_split): Delete.
4686 (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4688 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4690 * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4692 2014-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4694 * config/rs6000/predicates.md (ca_operand): Allow subregs.
4695 (input_operand): Do not allow ca_operand.
4696 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4697 carry bit, allow SImode and Pmode.
4698 (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4700 2014-09-21 Uros Bizjak <ubizjak@gmail.com>
4702 * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4703 clobbered registers using clobber_reg. Remove UNSPEC decoration.
4704 * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4705 (*call_rex64_ms_sysv): Remove.
4706 (*call_value_rex64_ms_sysv): Ditto.
4707 * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4709 2014-09-20 Joern Rennecke <joern.rennecke@embecosm.com>
4711 * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4714 2014-09-20 Andreas Schwab <schwab@suse.de>
4716 * config/ia64/ia64.md: Remove constraints from define_split
4719 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4721 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4722 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4723 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4724 (get_dynamic_type): Remove.
4725 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4726 (clear_speculation): Bring to ipa-deivrt.h
4727 (get_class_context): Rename to ...
4728 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4729 (contains_type_p): Update.
4730 (get_dynamic_type): Rename to ...
4731 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4732 (possible_polymorphic_call_targets): UPdate.
4733 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4734 * ipa-prop.c (ipa_analyze_call_uses): Update.
4736 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4738 * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4739 privatize dynamic TLS variables.
4741 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4743 * diagnostic.c (warning_n): New function.
4744 * diagnostic-core.h (warning_n): Declare.
4745 * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4746 output dynamic counts when available.
4748 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4750 PR tree-optimization/63255
4751 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4752 issue in setting body_removed flag.
4754 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4757 * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4758 that visibility change is possible
4759 (handle_weakref_attribute): Likewise.
4760 * cgraph.h (symtab_node): Add method get_create and
4761 field refuse_visibility_changes.
4762 (symtab_node::get_create): New method.
4763 * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4764 * varasm.c (mark_weak): Verify that visibility change is
4767 2014-09-19 Michael Meissner <meissner@linux.vnet.ibm.com>
4769 * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4770 for base_reg_operand to be common between LO_SUM and PLUS.
4771 (fusion_gpr_mem_combo): New predicate to match a fused address
4772 that combines the addis and memory offset address.
4774 * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4776 (emit_fusion_gpr_load): Likewise.
4778 * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4779 signature to pass each argument separately, rather than
4780 using an operands array. Rewrite the insns found by peephole2 to
4781 be a single insn, rather than hoping the insns will still be
4782 together when the peephole pass is done. Drop being called via a
4784 (emit_fusion_gpr_load): Change calling signature to be called from
4785 the fusion_gpr_load_<mode> insns with a combined memory address
4786 instead of the peephole pass passing the addis and offset
4789 * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4791 (power8 fusion peephole): Drop support for doing power8 via a
4792 normal peephole that was created by the peephole2 pass.
4793 (power8 fusion peephole2): Create a new insn with the fused
4794 address, so that the fused operation is kept together after
4795 register allocation is done.
4796 (fusion_gpr_load_<mode>): Likewise.
4798 2014-09-19 Jan Hubicka <hubicka@ucw.cz>
4801 * tree.c (need_assembler_name_p): Do not mangle variadic types.
4803 2014-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4805 * recog.c (scratch_operand): Do not simply allow all hard registers:
4806 only allow those that are allocatable.
4808 2014-09-19 Felix Yang <felix.yang@huawei.com>
4810 * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4811 comments and fix spacing to conform to coding style.
4813 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4815 * genrecog.c (validate_pattern): Allow empty constraints in
4818 2014-09-19 Aldy Hernandez <aldyh@redhat.com>
4820 * dwarf2out.c (decl_ultimate_origin): Update comment.
4821 * tree.c (block_ultimate_origin): Same.
4823 2014-09-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4825 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4826 Update GCC version name to GCC 5.
4827 (rs6000_function_arg_boundary): Likewise.
4828 (rs6000_function_arg): Likewise.
4830 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4832 * config/sh/sh.md: Fix use of constraints in define_split.
4834 2014-09-19 Markus Trippelsdorf <markus@trippelsdorf.de>
4837 * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4839 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4841 * doc/md.texi (Modifiers): Consistently use "read/write"
4842 nomenclature rather than "input/output".
4843 * genrecog.c (constraints_supported_in_insn_p): New.
4844 (validate_pattern): If needed, also check constraints on
4845 MATCH_SCRATCH operands.
4846 * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4847 operands with no '=' or '+' modifier.
4849 2014-09-19 James Greenhalgh <james.greenhalgh@arm.com>
4851 * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4852 scratch register as written.
4854 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4856 * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4859 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4861 * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4864 2014-09-19 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4867 * config/s390/s390.c (s390_emit_epilogue): When doing the return
4868 address load optimization force s390_optimize_prologue to leave it
4869 that way. Only do the optimization if we already decided to push
4870 r14 into a stack slot.
4872 2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
4874 * asan.c (build_check_stmt): Alignment arg was added.
4875 (asan_expand_check_ifn): Optimization for alignment >= 8.
4877 2014-09-19 Olivier Hainque <hainque@adacore.com>
4879 * config/i386/vxworksae.h: Remove obsolete definitions.
4880 (STACK_CHECK_PROTECT): Define.
4881 * config/i386/vx-common.h: Remove. Merge contents within
4882 config/i386/vxworks.h.
4883 * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4886 2014-09-19 Olivier Hainque <hainque@adacore.com>
4888 * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4889 * config/rs6000/t-vxworksmils: New file.
4890 * config/rs6000/vxworksmils.h: New file.
4892 2014-09-19 Olivier Hainque <hainque@adacore.com>
4894 * varasm.c (default_section_type_flags): Flag .persistent.bss
4895 sections as SECTION_BSS.
4897 2014-09-19 Nick Clifton <nickc@redhat.com>
4899 * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4900 pop'ed registers so that DCE does not eliminate them.
4902 2014-09-18 Jan Hubicka <hubicka@ucw.cz>
4905 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4907 2014-09-18 Joseph Myers <joseph@codesourcery.com>
4909 * system.h (LIBGCC2_TF_CEXT): Poison.
4910 * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4911 * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4912 * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4913 * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4914 * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4915 * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4916 * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4917 * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4918 * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4920 2014-09-19 Kito Cheng <kito@0xlab.org>
4922 * except.h: Fix header guard.
4923 * addresses.h: Add missing header guard.
4924 * cfghooks.h: Likewise.
4925 * collect-utils.h: Likewise.
4926 * collect2-aix.h: Likewise.
4927 * conditions.h: Likewise.
4928 * cselib.h: Likewise.
4929 * dwarf2asm.h: Likewise.
4930 * graphds.h: Likewise.
4931 * graphite-scop-detection.h: Likewise.
4932 * gsyms.h: Likewise.
4933 * hw-doloop.h: Likewise.
4934 * incpath.h: Likewise.
4935 * ipa-inline.h: Likewise.
4936 * ipa-ref.h: Likewise.
4937 * ira-int.h: Likewise.
4939 * lra-int.h: Likewise.
4941 * lto-section-names.h: Likewise.
4942 * read-md.h: Likewise.
4943 * reload.h: Likewise.
4944 * rtl-error.h: Likewise.
4945 * sdbout.h: Likewise.
4946 * targhooks.h: Likewise.
4947 * tree-affine.h: Likewise.
4948 * xcoff.h: Likewise.
4949 * xcoffout.h: Likewise.
4951 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4954 * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4957 2014-09-18 Vladimir Makarov <vmakarov@redhat.com>
4960 * lra.c (lra): Call recog_init.
4962 2014-09-18 Jakub Jelinek <jakub@redhat.com>
4965 * asan.c (transform_statements): Don't instrument clobber statements.
4967 2014-09-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4969 * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4970 to neon_load1_1reg<q>.
4972 2014-09-17 Jakub Jelinek <jakub@redhat.com>
4975 * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4976 if there are only debug stmts after the noreturn call, instead
4977 remove the debug stmts.
4979 2014-09-17 Jan Hubicka <hubicka@ucw.cz>
4981 * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4982 (odr_types_equivalent_p): Use pair hash.
4983 (odr_subtypes_equivalent_p): Likewise, do structural compare
4984 on ODR types that may be mismatched.
4985 (warn_odr): Support warning when only one field is given.
4986 (odr_types_equivalent_p): Strenghten comparsions made;
4988 (add_type_duplicate): Update VISITED hash set.
4990 2014-09-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
4992 * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4993 Enable selection of 'posix' or no thread model.
4995 2014-09-17 Andrew Stubbs <ams@codesourcery.com>
4997 * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4998 when architecture is older than ARMv7.
5000 2014-09-16 John David Anglin <danglin@gcc.gnu.org>
5003 * config/pa/pa.c (pa_function_value): Directly handle aggregates
5004 that fit exactly in a word or double word.
5006 2014-09-16 Ilya Tocar <ilya.tocar@intel.com>
5008 * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
5011 2014-09-16 Alexander Ivchenko <alexander.ivchenko@intel.com>
5012 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5013 Anna Tikhonova <anna.tikhonova@intel.com>
5014 Ilya Tocar <ilya.tocar@intel.com>
5015 Andrey Turetskiy <andrey.turetskiy@intel.com>
5016 Ilya Verbin <ilya.verbin@intel.com>
5017 Kirill Yukhin <kirill.yukhin@intel.com>
5018 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5020 * config/i386/i386.c
5021 (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
5022 * config/i386/sse.md
5023 (define_mode_iterator VI48F_256): New.
5024 (define_mode_attr extract_type): Ditto.
5025 (define_mode_attr extract_suf): Ditto.
5026 (define_mode_iterator AVX512_VEC): Ditto.
5028 "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
5030 (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
5032 "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
5034 (define_mode_attr extract_type_2): Ditto.
5035 (define_mode_attr extract_suf_2): Ditto.
5036 (define_mode_iterator AVX512_VEC_2): Ditto.
5038 "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
5039 AVX512_VEC_2 mode iterator.
5040 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5041 (define_expand "avx512vl_vextractf128<mode>"): Ditto.
5042 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5043 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5044 (define_split for V16FI mode): Ditto.
5045 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5046 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5047 (define_split for VI8F_256 mode): Ditto.
5048 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5049 (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5050 (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5051 (define_split for VI4F_256 mode): Ditto.
5052 (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
5053 (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5054 (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5055 (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
5056 (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
5057 (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
5058 (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
5059 Update `type' attribute, remove explicit `memory' attribute calculation.
5061 2014-09-16 Kito Cheng <kito@0xlab.org>
5063 * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
5064 ira_spilled_reg_stack_slots_num if using lra.
5065 (do_reload): Remove release ira_spilled_reg_stack_slots part.
5066 * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
5067 make sure not using lra.
5068 (ira_reuse_stack_slot): Likewise.
5069 (ira_mark_new_stack_slot): Likewise.
5071 2014-09-15 Andi Kleen <ak@linux.intel.com>
5073 * function.c (allocate_struct_function): Force
5074 DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
5075 profiling is disabled.
5077 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
5079 * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
5080 config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
5081 emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
5082 reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
5083 macro with statically checked member functions.
5084 * rtl.h (rtx_insn::deleted): New method.
5085 (rtx_insn::set_deleted): Likewise.
5086 (rtx_insn::set_undeleted): Likewise.
5087 (INSN_DELETED_P): Remove.
5089 2014-09-15 Trevor Saunders <tsaunders@mozilla.com>
5091 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
5092 result of emit_jump_insn_before to a new variable.
5093 * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
5094 (mark_jump_label_1): Likewise.
5095 (mark_jump_label_asm): Likewise.
5096 * reload1.c (gen_reload): Change type of tem to rtx_insn *.
5097 * rtl.h (mark_jump_label): Adjust.
5099 2014-09-15 Jakub Jelinek <jakub@redhat.com>
5101 * Makefile.in (dg_target_exps): Remove.
5102 (check_gcc_parallelize): Change to just an upper bound number.
5103 (check-%-subtargets): Always print the non-parallelized goals.
5104 (check_p_vars, check_p_comma, check_p_subwork): Remove.
5105 (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
5106 check_p_numbers3, check_p_numbers4, check_p_numbers5,
5107 check_p_numbers6): New variables.
5108 (check_p_numbers): Set to sequence from 1 to 9999.
5109 (check_p_subdirs): Set to sequence from 1 to minimum of
5110 $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
5112 (check-%, check-parallel-%): Rewritten so that for parallelized
5113 testing each job runs all the *.exp files, with
5114 GCC_RUNTEST_PARALLELIZE_DIR set in environment.
5116 2014-09-15 David Malcolm <dmalcolm@redhat.com>
5118 * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
5120 (arc_sets_cc_p): Likewise.
5121 * config/arc/arc.c (arc_print_operand): Use methods of
5122 "final_sequence" for clarity, and to enable strengthening of
5123 locals "jump" and "delay" from rtx to rtx_insn *.
5124 (arc_adjust_insn_length): Strengthen local "prev" from rtx to
5125 rtx_insn *; use method of rtx_sequence for typesafety.
5126 (arc_get_insn_variants): Use insn method of rtx_sequence for
5128 (arc_pad_return): Likewise.
5129 (arc_attr_type): Strengthen param from rtx to rtx_insn *.
5130 (arc_sets_cc_p): Likewise. Also, convert a GET_CODE check to a
5131 dyn_cast to rtx_sequence *, using insn method for typesafety.
5132 * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
5133 rtx_sequence * and use insn method when invoking get_attr_length.
5134 * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
5135 to rtx_insn *. Replace a GET_CODE check with a dyn_cast to
5136 rtx_sequence *, introducing a local "seq", using its insn method
5137 from typesafety and clarity.
5138 (add_sched_insns_for_speculation): Strengthen local "next" from
5140 * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
5141 (predicate_insn): Likewise.
5142 * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
5144 * config/cris/cris.c (cris_notice_update_cc): Likewise.
5145 * config/epiphany/epiphany-protos.h
5146 (extern void epiphany_insert_mode_switch_use): Likewise for param
5148 (get_attr_sched_use_fpu): Likewise for param.
5149 * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
5150 Likewise for param "insn".
5151 * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
5152 param "insn" of "target_insert_mode_switch_use" callback.
5153 * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
5154 (frv_issues_to_branch_unit_p): Likewise.
5155 (frv_pack_insn_p): Likewise.
5156 (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
5157 const rtx * (i.e. mutable rtx_def * const *) to
5159 * config/i386/i386-protos.h (standard_sse_constant_opcode):
5160 Strengthen first param from rtx to rtx_insn *.
5161 (output_fix_trunc): Likewise.
5162 * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
5163 (output_fix_trunc): Likewise.
5164 (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
5166 (min_insn_size): Likewise for param "insn".
5167 (get_mem_group): Likewise.
5169 (get_insn_path): Likewise.
5170 (get_insn_group): Likewise.
5171 (count_num_restricted): Likewise.
5172 (fits_dispatch_window): Likewise.
5173 (add_insn_window): Likewise.
5174 (add_to_dispatch_window): Likewise.
5175 (debug_insn_dispatch_info_file): Likewise.
5176 * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
5178 * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
5179 "cmp" and local "prev".
5180 (m32c_output_compare): Likewise for param "insn".
5181 * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
5182 a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
5183 (define_predicate "large_insn_p"): Likewise.
5184 * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
5185 param from rtx to rtx_insn *.
5186 (attr_op_mem m68k_sched_attr_op_mem): Likewise.
5187 * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
5188 (m68k_sched_attr_size): Likewise.
5189 (sched_get_opxy_mem_type): Likewise for param "insn".
5190 (m68k_sched_attr_op_mem): Likewise.
5191 (sched_mem_operand_p): Likewise.
5192 * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
5193 * config/mep/mep.c (mep_multi_slot): Likewise.
5194 * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
5196 (mips_sync_loop_insns): Likewise.
5197 * config/mips/mips.c (mips_print_operand_punctuation): Use insn
5198 method of "final_sequence" for typesafety.
5199 (mips_process_sync_loop): Strengthen param "insn" from rtx to
5201 (mips_output_sync_loop): Likewise.
5202 (mips_sync_loop_insns): Likewise.
5203 (mips_74k_agen_init): Likewise.
5204 (mips_sched_init): Use NULL rather than NULL_RTX when working with
5206 * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
5207 Strengthen param "insn" from rtx to rtx_insn *.
5208 * config/nds32/nds32.c (nds32_target_alignment): Likewise for
5210 * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
5212 * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
5213 "insn". Use method of rtx_sequence for typesafety.
5214 (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
5216 (branch_needs_nop_p): Likewise.
5217 (use_skip_p): Likewise.
5218 (pa_insn_refs_are_delayed): Likewise.
5219 * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
5220 for locals "insn", "ninsn".
5221 * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
5223 (is_cracked_insn): Likewise.
5224 (is_branch_slot_insn): Likewise.
5225 (is_nonpipeline_insn): Likewise.
5226 (insn_terminates_group_p): Likewise.
5227 (insn_must_be_first_in_group): Likewise.
5228 (insn_must_be_last_in_group): Likewise.
5229 (force_new_group): Likewise for param "next_insn".
5230 * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
5232 (s390_sched_score): Likewise.
5233 * config/sh/sh-protos.h (output_branch): Likewise for param 2.
5234 (rtx sfunc_uses_reg): Likewise for sole param.
5235 * config/sh/sh.c (sh_print_operand): Use insn method of
5236 final_sequence for typesafety.
5237 (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
5238 Use insn method of final_sequence for typesafety.
5239 (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
5240 * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
5242 (eligible_for_return_delay): Likewise.
5243 (eligible_for_sibcall_delay): Likewise.
5244 * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
5245 (eligible_for_return_delay): Likewise.
5246 (eligible_for_sibcall_delay): Likewise.
5247 * config/stormy16/stormy16-protos.h
5248 (xstormy16_output_cbranch_hi): Likewise for final param.
5249 (xstormy16_output_cbranch_si): Likewise.
5250 * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
5251 (xstormy16_output_cbranch_si): Likewise.
5252 * config/v850/v850-protos.h (notice_update_cc): Likewise.
5253 * config/v850/v850.c (notice_update_cc): Likewise.
5255 * final.c (get_attr_length_1): Strengthen param "insn" and param
5256 of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
5257 (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
5258 (get_attr_min_length): Likewise.
5259 (shorten_branches): Likewise for signature of locals "length_fun"
5260 and "inner_length_fun". Introduce local rtx_sequence * "seqn"
5261 from a checked cast and use its methods for clarity and to enable
5262 strengthening local "inner_insn" from rtx to rtx_insn *.
5263 * genattr.c (gen_attr): When writing out the prototypes of the
5264 various generated "get_attr_" functions, strengthen the params of
5265 the non-const functions from rtx to rtx_insn *.
5266 Similarly, strengthen the params of insn_default_length,
5267 insn_min_length, insn_variable_length_p, insn_current_length.
5268 (main): Similarly, strengthen the param of num_delay_slots,
5269 internal_dfa_insn_code, insn_default_latency, bypass_p,
5270 insn_latency, min_issue_delay, print_reservation,
5271 insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
5272 "insn_default_latency" callbacks. Rename hook_int_rtx_unreachable
5273 to hook_int_rtx_insn_unreachable.
5274 * genattrtab.c (write_attr_get): When writing out the generated
5275 "get_attr_" functions, strengthen the param "insn" from rtx to
5276 rtx_insn *, eliminating a checked cast.
5277 (make_automaton_attrs): When writing out prototypes of
5278 "internal_dfa_insn_code_", "insn_default_latency_" functions
5279 and the "internal_dfa_insn_code" and "insn_default_latency"
5280 callbacks, strengthen their params from rtx to rtx_insn *
5281 * genautomata.c (output_internal_insn_code_evaluation): When
5282 writing out code, add a checked cast from rtx to rtx_insn * when
5283 invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
5284 (output_dfa_insn_code_func): Strengthen param of generated
5285 function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
5286 (output_trans_func): Likewise for generated function
5288 (output_internal_insn_latency_func): When writing out generated
5289 function "internal_insn_latency", rename params from "insn" and
5290 "insn2" to "insn_or_const0" and "insn2_or_const0". Reintroduce
5291 locals "insn" and "insn2" as rtx_insn * with checked casts once
5292 we've proven that we're not dealing with const0_rtx.
5293 (output_insn_latency_func): Strengthen param of generated
5294 function "insn_latency" from rtx to rtx_insn *.
5295 (output_print_reservation_func): Likewise for generated function
5296 "print_reservation".
5297 (output_insn_has_dfa_reservation_p): Likewise for generated
5298 function "insn_has_dfa_reservation_p".
5299 * hooks.c (hook_int_rtx_unreachable): Rename to...
5300 (hook_int_rtx_insn_unreachable): ...this, and strengthen param
5301 from rtx to rtx_insn *.
5302 * hooks.h (hook_int_rtx_unreachable): Likewise.
5303 (extern int hook_int_rtx_insn_unreachable): Likewise.
5304 * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
5305 (get_attr_min_length): Likewise.
5306 * recog.c (get_enabled_alternatives): Likewise.
5307 * recog.h (alternative_mask get_enabled_alternatives): Likewise.
5308 * reorg.c (find_end_label): Introduce local rtx "pat" and
5309 strengthen local "insn" from rtx to rtx_insn *.
5310 (redundant_insn): Use insn method of "seq" rather than element for
5311 typesafety; strengthen local "control" from rtx to rtx_insn *.
5312 * resource.c (mark_referenced_resources): Add checked cast to
5313 rtx_insn * within INSN/JUMP_INSN case.
5314 (mark_set_resources): Likewise.
5315 * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
5318 2014-09-15 David Malcolm <dmalcolm@redhat.com>
5320 * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
5321 param "label" from rtx to rtx_insn *.
5322 * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
5324 * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
5325 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
5326 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5327 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5328 * final.c (default_label_align_after_barrier_max_skip): Strengthen
5329 param from rtx to rtx_insn *.
5330 (default_loop_align_max_skip): Likewise.
5331 (default_label_align_max_skip): Likewise.
5332 (default_jump_align_max_skip): Likewise.
5333 * target.def (label_align_after_barrier_max_skip): Likewise.
5334 (loop_align_max_skip): Likewise.
5335 (label_align_max_skip): Likewise.
5336 (jump_align_max_skip): Likewise.
5337 * targhooks.h (default_label_align_after_barrier_max_skip):
5339 (default_loop_align_max_skip): Likewise.
5340 (default_label_align_max_skip): Likewise.
5341 (default_jump_align_max_skip): Likewise.
5343 2014-09-15 David Malcolm <dmalcolm@redhat.com>
5345 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
5346 from const_rtx to const rtx_insn *. Update union members from rtx
5348 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
5349 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
5350 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
5351 strengthen both params from const_rtx to const rtx_insn *.
5352 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
5353 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
5354 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
5356 * target.def (can_follow_jump): Strengthen both params from
5357 const_rtx to const rtx_insn *, and update default implementation
5358 from hook_bool_const_rtx_const_rtx_true to
5359 hook_bool_const_rtx_insn_const_rtx_insn_true.
5361 2014-09-15 David Malcolm <dmalcolm@redhat.com>
5363 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
5364 "insn" from rtx to rtx_insn *.
5365 * sched-int.h (deps_start_bb): Likewise for 2nd param.
5367 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
5368 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5369 Anna Tikhonova <anna.tikhonova@intel.com>
5370 Ilya Tocar <ilya.tocar@intel.com>
5371 Andrey Turetskiy <andrey.turetskiy@intel.com>
5372 Ilya Verbin <ilya.verbin@intel.com>
5373 Kirill Yukhin <kirill.yukhin@intel.com>
5374 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5376 * config/i386/sse.md
5377 (define_insn "vcvtph2ps<mask_name>"): Add masking.
5378 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
5379 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
5380 (define_expand "vcvtps2ph_mask"): New.
5381 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
5382 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
5383 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
5385 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
5386 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5387 Anna Tikhonova <anna.tikhonova@intel.com>
5388 Ilya Tocar <ilya.tocar@intel.com>
5389 Andrey Turetskiy <andrey.turetskiy@intel.com>
5390 Ilya Verbin <ilya.verbin@intel.com>
5391 Kirill Yukhin <kirill.yukhin@intel.com>
5392 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5394 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
5396 (define_mode_iterator VI24_AVX512BW_1): Ditto.
5397 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
5398 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
5399 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
5400 also for TARGET_AVX512VL.
5401 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
5403 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
5405 * doc/install.texi (Options specification): add
5406 --disable-libsanitizer item.
5408 2014-09-14 James Clarke <jrtc27@jrtc27.com>
5409 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5412 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5414 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5415 kernel version check to avoid incrementing it after every major OS X
5417 (darwin_default_min_version): Avoid static memory buffer.
5419 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
5421 * tree.c (need_assembler_name_p): Store C++ type mangling only
5424 2014-09-13 Marek Polacek <polacek@redhat.com>
5426 * tree.c (protected_set_expr_location): Don't check whether T is
5429 2014-09-12 DJ Delorie <dj@redhat.com>
5431 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5432 (extend_and_shift1_hipsi2): Likewise.
5433 (extend_and_shift2_hipsi2): Likewise.
5435 2014-09-12 David Malcolm <dmalcolm@redhat.com>
5437 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5438 with NULL when dealing with an insn.
5439 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5440 from rtx to rtx_insn *.
5441 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5442 const_rtx to const rtx_insn *.
5443 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5445 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
5447 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5450 2014-09-12 Joseph Myers <joseph@codesourcery.com>
5452 * target.def (libgcc_floating_mode_supported_p): New hook.
5453 * targhooks.c (default_libgcc_floating_mode_supported_p): New
5455 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5456 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5457 (LIBGCC2_HAS_TF_MODE): Remove.
5458 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5459 * doc/tm.texi: Regenerate.
5460 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5462 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5463 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5464 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5465 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5466 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5467 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5468 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5469 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5470 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5471 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5473 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5474 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5475 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5476 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5477 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5478 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5479 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5480 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5481 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5482 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5483 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5484 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5485 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5486 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5488 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5490 (ia64_libgcc_floating_mode_supported_p): New function.
5491 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5492 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5493 (IA64_NO_LIBGCC_TFMODE): Define.
5494 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5495 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5497 (pdp11_scalar_mode_supported_p): New function.
5498 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5499 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5501 2014-09-12 Richard Biener <rguenther@suse.de>
5504 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5506 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
5508 * tree.c (integer_each_onep): New function.
5509 * tree.h (integer_each_onep): Declare it.
5510 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5511 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5512 (X & 1) == 0 for vector and complex.
5514 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5516 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5518 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
5519 cost to spilling from integer to FP registers.
5521 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5523 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5525 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5526 are now handled correctly.
5528 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5530 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5531 handling of CALLER_SAVE_REGS and POINTER_REGS.
5533 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
5535 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5536 the number of hard registers.
5538 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5539 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5540 Anna Tikhonova <anna.tikhonova@intel.com>
5541 Ilya Tocar <ilya.tocar@intel.com>
5542 Andrey Turetskiy <andrey.turetskiy@intel.com>
5543 Ilya Verbin <ilya.verbin@intel.com>
5544 Kirill Yukhin <kirill.yukhin@intel.com>
5545 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5547 * config/i386/sse.md
5548 (define_mode_iterator VI48_AVX512VL): New.
5549 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5550 "avx512f_vternlog<mode>_maskz" and update mode iterator.
5551 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5552 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5553 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5554 "avx512f_vternlog<mode>_mask" and update mode iterator.
5555 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5556 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5558 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5559 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5560 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5561 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5562 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5563 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5565 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5566 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5567 Anna Tikhonova <anna.tikhonova@intel.com>
5568 Ilya Tocar <ilya.tocar@intel.com>
5569 Andrey Turetskiy <andrey.turetskiy@intel.com>
5570 Ilya Verbin <ilya.verbin@intel.com>
5571 Kirill Yukhin <kirill.yukhin@intel.com>
5572 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5574 * config/i386/sse.md (VI128_256): Delete.
5575 (define_mode_iterator VI124_256): New.
5576 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5577 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5578 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5579 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5580 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5581 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5582 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5583 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5585 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5586 in presence of AVX-512.
5588 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
5589 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5590 Anna Tikhonova <anna.tikhonova@intel.com>
5591 Ilya Tocar <ilya.tocar@intel.com>
5592 Andrey Turetskiy <andrey.turetskiy@intel.com>
5593 Ilya Verbin <ilya.verbin@intel.com>
5594 Kirill Yukhin <kirill.yukhin@intel.com>
5595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5597 * config/i386/sse.md
5598 (define_expand "<avx512>_gathersi<mode>"): Rename from
5599 "avx512f_gathersi<mode>".
5600 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5601 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5602 (define_expand "<avx512>_gatherdi<mode>"): Rename from
5603 "avx512f_gatherdi<mode>".
5604 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5605 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5607 (define_expand "<avx512>_scattersi<mode>"): Rename from
5608 "avx512f_scattersi<mode>".
5609 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5610 (define_expand "<avx512>_scatterdi<mode>"): Rename from
5611 "avx512f_scatterdi<mode>".
5612 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5614 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
5616 * ira.h (ira_finish_once): Delete.
5617 * ira-int.h (target_ira_int::~target_ira_int): Declare.
5618 (target_ira_int::free_ira_costs): Likewise.
5619 (target_ira_int::free_register_move_costs): Likewise.
5620 (ira_finish_costs_once): Delete.
5621 * ira.c (free_register_move_costs): Replace with...
5622 (target_ira_int::free_register_move_costs): ...this new function.
5623 (target_ira_int::~target_ira_int): Define.
5624 (ira_init): Call free_register_move_costs as a member function rather
5625 than a global function.
5626 (ira_finish_once): Delete.
5627 * ira-costs.c (free_ira_costs): Replace with...
5628 (target_ira_int::free_ira_costs): ...this new function.
5629 (ira_init_costs): Call free_ira_costs as a member function rather
5630 than a global function.
5631 (ira_finish_costs_once): Delete.
5632 * target-globals.c (target_globals::~target_globals): Call the
5633 target_ira_int destructor.
5634 * toplev.c: Include lra.h.
5635 (finalize): Call lra_finish_once rather than ira_finish_once.
5637 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
5639 * common.opt (flto-odr-type-merging): New flag.
5640 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5641 (types_same_for_odr): Likewise.
5642 (odr_subtypes_equivalent_p): Likewise.
5643 (add_type_duplicate): Do not walk type variants.
5644 (register_odr_type): New function.
5645 * ipa-utils.h (register_odr_type): Declare.
5646 (odr_type_p): New function.
5647 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5649 * doc/invoke.texi (-flto-odr-type-merging): Document.
5650 * tree.c (need_assembler_name_p): Compute ODR names when asked
5652 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5654 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
5657 * config/i386/i386.c (ix86_option_override_internal): Also turn
5658 off OPTION_MASK_ABI_X32 for -m16.
5660 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5662 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5665 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
5668 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5669 Directly forward to __*_DENORM_MIN__.
5671 2014-09-11 David Malcolm <dmalcolm@redhat.com>
5673 * rtl.h (LABEL_REF_LABEL): New macro.
5675 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5676 of XEXP (, 0), where we know that we have a LABEL_REF.
5677 * cfgbuild.c (make_edges): Likewise.
5678 (purge_dead_tablejump_edges): Likewise.
5679 * cfgexpand.c (convert_debug_memory_address): Likewise.
5680 * cfgrtl.c (patch_jump_insn): Likewise.
5681 * combine.c (distribute_notes): Likewise.
5682 * cse.c (hash_rtx_cb): Likewise.
5683 (exp_equiv_p): Likewise.
5684 (fold_rtx): Likewise.
5685 (check_for_label_ref): Likewise.
5686 * cselib.c (rtx_equal_for_cselib_1): Likewise.
5687 (cselib_hash_rtx): Likewise.
5688 * emit-rtl.c (mark_label_nuses): Likewise.
5689 * explow.c (convert_memory_address_addr_space): Likewise.
5690 * final.c (output_asm_label): Likewise.
5691 (output_addr_const): Likewise.
5692 * gcse.c (add_label_notes): Likewise.
5693 * genconfig.c (walk_insn_part): Likewise.
5694 * genrecog.c (validate_pattern): Likewise.
5695 * ifcvt.c (cond_exec_get_condition): Likewise.
5696 (noce_emit_store_flag): Likewise.
5697 (noce_get_alt_condition): Likewise.
5698 (noce_get_condition): Likewise.
5699 * jump.c (maybe_propagate_label_ref): Likewise.
5700 (mark_jump_label_1): Likewise.
5701 (redirect_exp_1): Likewise.
5702 (rtx_renumbered_equal_p): Likewise.
5703 * lra-constraints.c (operands_match_p): Likewise.
5704 * reload.c (operands_match_p): Likewise.
5705 (find_reloads): Likewise.
5706 * reload1.c (set_label_offsets): Likewise.
5707 * reorg.c (get_branch_condition): Likewise.
5708 * rtl.c (rtx_equal_p_cb): Likewise.
5709 (rtx_equal_p): Likewise.
5710 * rtlanal.c (reg_mentioned_p): Likewise.
5711 (rtx_referenced_p): Likewise.
5712 (get_condition): Likewise.
5713 * sched-vis.c (print_value): Likewise.
5714 * varasm.c (const_hash_1): Likewise.
5715 (compare_constant): Likewise.
5716 (const_rtx_hash_1): Likewise.
5717 (output_constant_pool_1): Likewise.
5719 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
5721 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5722 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5724 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5725 cr6_test_for_lt_reverse): Ditto.
5727 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
5730 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5732 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5734 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5735 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5736 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5737 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5740 (aarch64_fold_builtin): Remove all reinterpret cases.
5742 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5744 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5746 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5747 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5748 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5749 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5750 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5751 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5752 aarch64_reinterpretv2df<mode>): Delete.
5754 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5756 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5757 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5758 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5759 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5760 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5761 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5762 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5763 vreinterpret_u32_f64): Use cast.
5765 * config/aarch64/iterators.md (VD_RE): Delete.
5767 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
5769 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5770 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5771 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5772 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5773 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5774 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5775 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5776 Replace inline assembler with __aarch64_vset_lane_any.
5778 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
5780 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5782 (vmull_high_lane_s32): Likewise.
5783 (vmull_high_lane_u16): Likewise.
5784 (vmull_high_lane_u32): Likewise.
5786 2014-09-11 Jason Merrill <jason@redhat.com>
5789 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5791 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
5794 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5795 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
5796 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5798 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5799 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5800 Anna Tikhonova <anna.tikhonova@intel.com>
5801 Ilya Tocar <ilya.tocar@intel.com>
5802 Andrey Turetskiy <andrey.turetskiy@intel.com>
5803 Ilya Verbin <ilya.verbin@intel.com>
5804 Kirill Yukhin <kirill.yukhin@intel.com>
5805 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5807 * config/i386/sse.md
5808 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5809 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5810 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5812 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5813 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5815 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5817 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5818 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5819 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5820 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5821 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5822 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5823 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5824 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5826 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5828 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5829 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5830 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5832 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5834 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5835 to access removed nodes.
5837 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
5839 PR tree-optimization/63186
5840 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5841 (mark_nonssa_use): Likewise.
5842 (verify_non_ssa_vars): Verify all header blocks for label
5845 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
5846 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5847 Anna Tikhonova <anna.tikhonova@intel.com>
5848 Ilya Tocar <ilya.tocar@intel.com>
5849 Andrey Turetskiy <andrey.turetskiy@intel.com>
5850 Ilya Verbin <ilya.verbin@intel.com>
5851 Kirill Yukhin <kirill.yukhin@intel.com>
5852 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5854 * config/i386/sse.md
5855 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5856 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5857 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5858 "<avx2_avx512f>_permvar<mode><mask_name>".
5859 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5860 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5861 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5862 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5864 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5865 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5866 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5867 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5869 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
5871 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5872 V2DF, V4SF, DF, and DI modes.
5873 (vsx_fmav2df2): Likewise.
5874 (vsx_float_fix_<mode>2): Likewise.
5875 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5877 2014-09-10 Xinliang David Li <davidxl@google.com>
5880 * config/arm/arm.md (movcond_addsi): Handle case where source
5881 and target operands are the same.
5883 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5885 * final.c (this_is_asm_operands): Strengthen this variable from
5886 rtx to const rtx_insn *.
5887 * output.h (this_is_asm_operands): Likewise.
5888 * rtl-error.c (location_for_asm): Strengthen param "insn" from
5889 const_rtx to const rtx_insn *.
5890 (diagnostic_for_asm): Likewise.
5891 * rtl-error.h (error_for_asm): Likewise.
5892 (warning_for_asm): Likewise.
5894 2014-09-10 David Malcolm <dmalcolm@redhat.com>
5896 * genextract.c (print_header): When writing out insn_extract to
5897 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5898 * recog.h (insn_extract): Strengthen the param from rtx to
5901 2014-09-10 Mike Stump <mikestump@comcast.net>
5903 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5906 2014-09-10 Martin Jambor <mjambor@suse.cz>
5908 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5909 (analyze): Do not set analyze flag if expand_thunk returns false;.
5910 (create_wrapper): Likewise.
5911 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5913 2014-09-10 Martin Jambor <mjambor@suse.cz>
5916 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5917 new decl properly. Analyze the new thunk if it is expanded.
5919 2014-09-10 Andreas Schwab <schwab@suse.de>
5921 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5922 [USED_FOR_TARGET]: Define.
5924 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
5926 * config/mips/mips.c (mips_secondary_reload_class): Handle
5929 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
5931 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5934 2014-09-10 Jakub Jelinek <jakub@redhat.com>
5936 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5937 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5938 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5939 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5940 flag_delete_null_pointer_checks for them.
5941 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5942 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5943 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5944 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5945 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5947 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5948 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5949 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5950 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5951 * doc/invoke.texi (-fsanitize=nonnull-attribute,
5952 -fsanitize=returns-nonnull-attribute): Document.
5954 * ubsan.h (struct ubsan_mismatch_data): Removed.
5955 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5956 * ubsan.c (ubsan_source_location): For unknown locations,
5957 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5958 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5959 Allow more than one location and arbitrary extra arguments passed
5960 in ... instead of through MISMATCH pointer.
5961 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5962 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5963 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5966 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5967 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5968 Anna Tikhonova <anna.tikhonova@intel.com>
5969 Ilya Tocar <ilya.tocar@intel.com>
5970 Andrey Turetskiy <andrey.turetskiy@intel.com>
5971 Ilya Verbin <ilya.verbin@intel.com>
5972 Kirill Yukhin <kirill.yukhin@intel.com>
5973 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5975 * config/i386/sse.md
5976 (define_mode_iterator VI48F): New.
5977 (define_insn "<avx512>_compress<mode>_mask"): Rename from
5978 "avx512f_compress<mode>_mask" and update mode iterator.
5979 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5980 "avx512f_compressstore<mode>_mask" and update mode iterator.
5981 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5982 "avx512f_expand<mode>_maskz" and update mode iterator.
5983 (define_insn "<avx512>_expand<mode>_mask"): Rename from
5984 "avx512f_expand<mode>_mask" and update mode iterator.
5986 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
5987 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
5988 Anna Tikhonova <anna.tikhonova@intel.com>
5989 Ilya Tocar <ilya.tocar@intel.com>
5990 Andrey Turetskiy <andrey.turetskiy@intel.com>
5991 Ilya Verbin <ilya.verbin@intel.com>
5992 Kirill Yukhin <kirill.yukhin@intel.com>
5993 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
5995 * config/i386/i386.c
5996 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5997 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5998 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5999 avx512dq_rangepv4sf_mask.
6000 * config/i386/sse.md
6001 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
6003 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
6004 (define_insn "reduces<mode>"): Ditto.
6005 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
6007 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
6008 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
6009 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
6011 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6012 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6013 Anna Tikhonova <anna.tikhonova@intel.com>
6014 Ilya Tocar <ilya.tocar@intel.com>
6015 Andrey Turetskiy <andrey.turetskiy@intel.com>
6016 Ilya Verbin <ilya.verbin@intel.com>
6017 Kirill Yukhin <kirill.yukhin@intel.com>
6018 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6020 * config/i386/i386.c
6021 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
6022 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
6023 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
6024 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
6025 avx512vl_getmantv2df_mask.
6026 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
6027 avx512f_vgetmantv4sf_round.
6028 * config/i386/sse.md
6029 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
6030 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
6032 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
6033 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
6034 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
6035 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
6037 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
6038 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
6039 update mode iterator.
6041 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
6042 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
6045 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
6046 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
6047 update mode iterator.
6048 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
6049 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
6052 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
6053 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
6055 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
6056 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
6057 update mode iterator.
6058 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
6059 "avx512f_getmant<mode><round_saeonly_name>".
6061 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
6064 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
6066 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
6067 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
6068 Anna Tikhonova <anna.tikhonova@intel.com>
6069 Ilya Tocar <ilya.tocar@intel.com>
6070 Andrey Turetskiy <andrey.turetskiy@intel.com>
6071 Ilya Verbin <ilya.verbin@intel.com>
6072 Kirill Yukhin <kirill.yukhin@intel.com>
6073 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
6075 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
6076 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
6077 (define_mode_iterator FMAMODE_AVX512): New.
6078 (define_mode_iterator FMAMODE): Remove conditions.
6079 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
6080 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
6081 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
6083 (define_mode_iterator FMAMODE_NOVF512): Remove.
6084 (define_insn "*fma_fmadd_<mode>"): Rename from
6085 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
6086 FMAMODE mode iterator.
6087 (define_mode_iterator VF_SF_AVX512VL): New.
6088 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
6089 Use VF_SF_AVX512VL mode iterator.
6090 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
6091 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6093 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
6094 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6096 (define_insn "*fma_fmsub_<mode>"): Rename from
6097 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
6098 FMAMODE mode iterator.
6099 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
6100 Use VF_SF_AVX512VL mode iterator.
6101 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
6102 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6104 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
6105 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6107 (define_insn "*fma_fnmadd_<mode>"): Rename from
6108 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
6109 use FMAMODE mode iterator.
6110 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
6111 Use VF_SF_AVX512VL mode iterator.
6112 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
6113 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6115 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
6116 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6118 (define_insn "*fma_fnmsub_<mode>"): Rename from
6119 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
6120 FMAMODE mode iterator.
6121 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
6122 Use VF_SF_AVX512VL mode iterator.
6123 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
6124 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6126 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
6127 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6129 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
6130 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
6131 use VF_AVX512VL mode iterator.
6132 (define_insn "*fma_fmaddsub_<mode>"): Rename from
6133 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
6135 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
6136 Use VF_SF_AVX512VL mode iterator.
6137 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
6138 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6140 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
6141 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6143 (define_insn "*fma_fmsubadd_<mode>"): Rename from
6144 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
6145 remove usage of subst.
6146 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
6147 Use VF_SF_AVX512VL mode iterator.
6148 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
6149 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6151 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
6152 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6155 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
6158 * calls.c (precompute_arguments): Check
6159 promoted_for_signed_and_unsigned_p and set the promoted mode.
6160 (promoted_for_signed_and_unsigned_p): New function.
6161 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6162 and set the promoted mode.
6163 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6164 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6165 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6167 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6169 * opth-gen.awk: Generate mapping from cpp message reasons to the
6170 options that enable them.
6171 * doc/options.texi (CppReason): Document.
6173 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
6175 * doc/invoke.texi (Wnormalized=): Update.
6177 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
6180 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
6181 operands. Split off the constant operand alternative to ...
6182 (*bool<mode>3_imm): New.
6184 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6186 * rtl.h (single_set_2): Strengthen first param from const_rtx to
6187 const rtx_insn *, and move prototype to above...
6188 (single_set): ...this. Convert this from a macro to an inline
6189 function, enforcing the requirement that the param is a const
6191 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
6193 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
6194 Strengthen both params from rtx to rtx_insn *.
6195 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6196 Likewise; introduce locals "producer_set", "consumer_set", using
6197 them in place of "producer" and "consumer" when dealing with SET
6199 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
6200 when invoking single_set in region guarded by INSN_P.
6201 (avr_out_bitop): Likewise.
6202 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
6203 region guarded by GET_CODE check, using methods to strengthen
6204 local "this_insn" from rtx to rtx_insn *, and for clarity.
6205 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
6206 Strengthen local "insn" from rtx to rtx_insn *.
6207 (define_insn_and_split "xload<mode>_A"): Likewise.
6208 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
6210 (find_load): Likewise for return type.
6211 (workaround_speculation): Likewise for both locals named
6213 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
6215 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
6217 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
6219 * config/h8300/h8300.c (notice_update_cc): Likewise.
6220 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
6221 "insn" and "dep_insn".
6222 (exact_store_load_dependency): Likewise for both params.
6223 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
6224 since this now clashes with inline function. Instead, delay
6225 calling single_set until the point where its needed, and then
6226 assign the result to "compare_set" and rework the conditional that
6228 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
6229 local "last" from rtx to rtx_insn *.
6230 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
6232 (mips_store_data_bypass_p): Likewise for both params.
6233 * config/mips/mips.c (mips_load_store_insns): Likewise for second
6235 (mips_store_data_bypass_p): Likewise for both params.
6236 (mips_orphaned_high_part_p): Likewise for param "insn".
6237 * config/mn10300/mn10300.c (extract_bundle): Likewise.
6238 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
6239 Introduce local rtx "insn2_pat".
6240 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
6242 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
6243 Introduce local rtx "set", using it in place of "insn" for the
6244 result of single_set. This appears to fix a bug, since the call
6245 to find_regno_note on a SET does nothing.
6246 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
6247 params from rtx to rtx_insn *.
6248 (set_to_load_agen): Likewise.
6249 * config/s390/s390.c (s390_label_align): Likewise for local
6250 "prev_insn". Introduce new rtx locals "set" and "src", using
6251 them in place of "prev_insn" for the results of single_set
6252 and SET_SRC respectively.
6253 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
6254 Introduce new rtx local "set" using in place of "jump" for the
6255 result of single_set. Use SET_SRC (set) rather than plain
6257 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
6259 (noncall_uses_reg): Likewise.
6260 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
6261 guarded by GET_CODE check, using its methods for clarity, and to
6262 enable strengthening local "this_insn" from rtx to rtx_insn *.
6263 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
6264 "insn" from rtx to rtx_insn *.
6265 (define_expand "umulhisi3"): Likewise.
6266 (define_expand "smulsi3_highpart"): Likewise.
6267 (define_expand "umulsi3_highpart"): Likewise.
6268 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6269 local "after". Replace GET_CODE check with a dyn_cast,
6270 introducing new local rtx_sequence * "seq", using insn method for
6273 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
6274 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
6275 place of "insn" once we're dealing with patterns rather than the
6277 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
6278 (scan_trace): Likewise for local "elt", updating lookups within
6279 sequence to use insn method rather than element method.
6280 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
6282 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
6283 * ifcvt.c (noce_try_abs): Likewise for local "insn".
6284 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
6285 invoking single_set.
6286 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
6287 "insn" from rtx to rtx_insn *.
6288 (skip_usage_debug_insns): Likewise for return type, adding a
6290 (check_secondary_memory_needed_p): Likewise for local "insn".
6291 (inherit_reload_reg): Likewise.
6292 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
6293 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
6295 (store_data_bypass_p): Likewise for both params.
6296 (if_test_bypass_p): Likewise.
6297 * recog.h (store_data_bypass_p): Likewise for both params.
6298 (if_test_bypass_p): Likewise.
6299 * reload.c (find_equiv_reg): Likewise for local "where".
6300 * reorg.c (delete_jump): Likewise for param "insn".
6301 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
6302 to const rtx_insn *.
6303 * store-motion.c (replace_store_insn): Likewise for param "del".
6304 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
6305 and use its methods for clarity, and to strengthen local "del"
6306 from rtx to rtx_insn *.
6307 (build_store_vectors): Use insn method of "st" when calling
6308 replace_store_insn for typesafety and clarity.
6310 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6312 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
6313 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
6314 on how to make it legal in future.
6316 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6318 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
6320 (restinsn): Likewise.
6321 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6323 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
6325 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
6327 (arc_hazard): Likewise for both params.
6328 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
6329 checked casts to rtx_sequence * and uses of the insn method for
6331 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
6332 (arc_adjust_insn_length): Likewise for param "insn".
6333 (struct insn_length_parameters_s): Likewise for first param of
6334 "get_variants" callback field.
6335 (arc_get_insn_variants): Likewise for first param and local
6336 "inner". Replace a check of GET_CODE with a dyn_cast to
6337 rtx_sequence *, using methods for type-safety and clarity.
6338 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
6339 rtx_sequence * and uses of the insn method for type-safety when
6340 invoking arc_adjust_insn_length.
6341 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
6343 (arm_address_offset_is_imm): Likewise.
6344 (struct tune_params): Likewise for params 1 and 3 of the
6345 "sched_adjust_cost" callback field.
6346 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
6347 params 1 and 3 ("insn" and "dep").
6348 (xscale_sched_adjust_cost): Likewise.
6349 (fa726te_sched_adjust_cost): Likewise.
6350 (cortexa7_older_only): Likewise for param "insn".
6351 (cortexa7_younger): Likewise.
6352 (arm_attr_length_move_neon): Likewise.
6353 (arm_address_offset_is_imm): Likewise.
6354 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
6355 * config/avr/avr.c (avr_notice_update_cc): Likewise.
6356 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
6357 (workaround_speculation): Likewise for local "last_condjump".
6358 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
6359 (shadow_or_blockage_p): Likewise.
6360 (get_unit_reqs): Likewise.
6361 (get_unit_operand_masks): Likewise.
6362 (c6x_registers_update): Likewise.
6363 (returning_call_p): Likewise.
6364 (can_use_callp): Likewise.
6365 (convert_to_callp): Likewise.
6366 (find_last_same_clock): Likwise for local "t".
6367 (reorg_split_calls): Likewise for local "shadow".
6368 (hwloop_pattern_reg): Likewise for param "insn".
6369 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
6370 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
6371 (frv_extract_membar): Likewise.
6372 (frv_optimize_membar_local): Strengthen param "last_membar" from
6373 rtx * to rtx_insn **.
6374 (frv_optimize_membar_global): Strengthen param "membar" from rtx
6376 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
6378 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
6379 both params from rtx to rtx_insn *.
6380 (ia64_ld_address_bypass_p): Likewise.
6381 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
6383 (ia64_safe_type): Likewise.
6384 (group_barrier_needed): Likewise.
6385 (safe_group_barrier_needed): Likewise.
6386 (ia64_single_set): Likewise.
6387 (is_load_p): Likewise.
6388 (record_memory_reference): Likewise.
6389 (get_mode_no_for_insn): Likewise.
6390 (important_for_bundling_p): Likewise.
6391 (unknown_for_bundling_p): Likewise.
6392 (ia64_st_address_bypass_p): Likewise for both params.
6393 (ia64_ld_address_bypass_p): Likewise.
6394 (expand_vselect): Introduce new local rtx_insn * "insn", using it
6395 in place of rtx "x" after the emit_insn call.
6396 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
6397 Strengthen param from rtx to rtx_insn *.
6398 (ix86_agi_dependent): Likewise for both params.
6399 (ix86_attr_length_immediate_default): Likewise for param 1.
6400 (ix86_attr_length_address_default): Likewise for param.
6401 (ix86_attr_length_vex_default): Likewise for param 1.
6402 * config/i386/i386.c (ix86_attr_length_immediate_default):
6403 Likewise for param "insn".
6404 (ix86_attr_length_address_default): Likewise.
6405 (ix86_attr_length_vex_default): Likewise.
6406 (ix86_agi_dependent): Likewise for both params.
6407 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
6408 (vselect_insn): Likewise for this variable.
6409 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
6411 (m68k_sched_attr_opy_type): Likewise.
6412 * config/m68k/m68k.c (sched_get_operand): Likewise.
6413 (sched_attr_op_type): Likewise.
6414 (m68k_sched_attr_opx_type): Likewise.
6415 (m68k_sched_attr_opy_type): Likewise.
6416 (sched_get_reg_operand): Likewise.
6417 (sched_get_mem_operand): Likewise.
6418 (m68k_sched_address_bypass_p): Likewise for both params.
6419 (sched_get_indexed_address_scale): Likewise.
6420 (m68k_sched_indexed_address_bypass_p): Likewise.
6421 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6422 (m68k_sched_indexed_address_bypass_p): Likewise.
6423 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6424 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6426 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6427 params from rtx to rtx_insn *.
6428 (mips_fmadd_bypass): Likewise.
6429 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6430 (mips_linked_madd_p): Likewise.
6431 (mips_macc_chains_last_hilo): Likewise for this variable.
6432 (mips_macc_chains_record): Likewise for param.
6433 (vr4130_last_insn): Likewise for this variable.
6434 (vr4130_swap_insns_p): Likewise for both params.
6435 (mips_ls2_variable_issue): Likewise for param.
6436 (mips_need_noat_wrapper_p): Likewise for param "insn".
6437 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6438 in place of "x" after the emit_insn.
6439 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6440 params from rtx to rtx_insn *.
6441 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6442 (pa_combine_instructions): Introduce local "par" for result of
6443 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6445 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6446 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6447 (rl78_alloc_physical_registers_op1): Likewise.
6448 (rl78_alloc_physical_registers_op2): Likewise.
6449 (rl78_alloc_physical_registers_ro1): Likewise.
6450 (rl78_alloc_physical_registers_cmp): Likewise.
6451 (rl78_alloc_physical_registers_umul): Likewise.
6452 (rl78_alloc_address_registers_macax): Likewise.
6453 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6454 * config/s390/predicates.md (execute_operation): Likewise for
6456 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6458 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6459 (addr_generation_dependency_p): Likewise for param "insn".
6460 (s390_agen_dep_p): Likewise for both params.
6461 (s390_fpload_toreg): Likewise for param "insn".
6462 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6463 * config/sh/sh.c (sh_loop_align): Likewise for param and local
6465 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6466 * config/sh/sh_treg_combine.cc
6467 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6469 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6470 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6471 "and_insn", "load", "shift".
6472 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6474 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6475 for XEXP (note, 0) of the REG_CC_SETTER note.
6476 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6477 rtx_insn *, eliminating a checked cast made redundant by this.
6478 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6480 * genattr.c (main): When writing out the prototype to
6481 const_num_delay_slots, strengthen the param from rtx to
6483 * genattrtab.c (write_const_num_delay_slots): Likewise when
6484 writing out the implementation of const_num_delay_slots.
6485 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6486 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6487 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6488 favor of new rtx locals "src" and "set" and new local rtx_insn *
6490 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6492 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6493 locals "cond", "if_then_else", "set" and new rtx_insn * locals
6495 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6496 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
6497 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
6498 the top-level scope, replacing with new more tightly-scoped rtx
6499 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6500 "new_insn", "copy_of_insn_b", and make local rtx "set" more
6502 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6504 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6506 (ira_setup_alts): Likewise for param "insn".
6507 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6508 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6510 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6511 new more-tightly scoped rtx locals "add3_insn", "insn",
6512 "add2_insn" and rtx_insn * "move_insn".
6513 * postreload-gcse.c (eliminate_partially_redundant_load): Add
6514 checked cast on result of gen_move_insn when invoking
6516 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6518 (verify_changes): Add a checked cast on "object" when invoking
6520 (extract_insn_cached): Strengthen param "insn" from rtx to
6522 (extract_constrain_insn_cached): Likewise.
6523 (extract_insn): Likewise.
6524 * recog.h (insn_invalid_p): Likewise for param 1.
6525 (recog_memoized): Likewise for param.
6526 (extract_insn): Likewise.
6527 (extract_constrain_insn_cached): Likewise.
6528 (extract_insn_cached): Likewise.
6529 * reload.c (can_reload_into): Likewise for local "test_insn".
6530 * reload.h (cleanup_subreg_operands): Likewise for param.
6531 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6532 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6533 result of emit_insn. Remove a checked cast made redundant by this
6535 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6537 * sel-sched.c (get_reg_class): Likewise.
6539 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
6540 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6542 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6543 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6545 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6547 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6549 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6550 const rtx_insn *, and from rtx to rtx_insn * for the other
6552 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6553 INSN_LOCATION, since we know INSN_P holds.
6554 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6555 (insn_file): Likewise.
6556 (insn_scope): Likewise.
6557 (insn_location): Likewise.
6559 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6560 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6561 for the result of gen_load_const_gp.
6562 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6563 param from rtx to rtx_insn *.
6564 * config/rs6000/rs6000.c (output_call): Likewise.
6565 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6566 introducing a checked cast to rtx_sequence * and use of the insn
6568 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6569 from rtx to rtx_insn *.
6570 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6571 (insn_line): Likewise.
6572 (insn_file): Likewise.
6573 (insn_location): Likewise.
6574 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6575 from rtx to rtx_insn *.
6576 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6577 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6578 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6580 * reorg.c (relax_delay_slots): Strengthen locals named "after"
6581 from rtx to rtx_insn *; use methods of "pat" for type-safety.
6583 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6585 * combine.c (try_combine): Eliminate checked cast on result of
6587 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6588 autogenerated one by strengthening the return type and params 2 and 3
6589 from rtx to rtx_insn *, and by naming the params.
6590 * gengenrtl.c (special_rtx): Add INSN to those that are
6592 * rtl.h (gen_rtx_INSN): New prototype.
6594 2014-09-09 David Malcolm <dmalcolm@redhat.com>
6596 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6598 (no_equiv): Likewise.
6599 (update_equiv_regs): Likewise.
6600 (setup_reg_equiv): Likewise. Strengthen locals "elem",
6601 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6602 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
6604 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6605 from rtx to rtx_insn_list *.
6606 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6607 rtx_insn_list * and use methods for clarity and typesafety.
6608 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6610 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
6611 redundant check on INSN_P (insns): this cannot hold, as "insns" is
6612 an INSN_LIST, not an insn.
6613 (reverse_equiv_p): Strengthen local "insns" from rtx to
6614 rtx_insn_list * and use methods for clarity and typesafety.
6615 (contains_reloaded_insn_p): Likewise for local "list".
6617 2014-09-09 Jiong Wang <jiong.wang@arm.com>
6619 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6620 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6621 (arm_builtin_vectorized_function): Likewise.
6622 * config/arm/arm_neon_builtins.def: New macro for copysignf.
6623 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6625 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
6627 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6628 * builtins.h (default_target_builtins): Likewise.
6629 * gcse.h (default_target_gcse): Likewise.
6630 * target-globals.h (target_globals): Add a destructor. Convert
6631 void-pointer fields back to their real type and change from
6632 GTY((atomic)) to GTY((skip)).
6633 (restore_target_globals): Remove casts accordingly.
6634 * target-globals.c (save_target_globals): Use XCNEW rather than
6635 ggc_internal_cleared_alloc to allocate non-GC structures.
6636 Use ggc_cleared_alloc to allocate the target_globals structure
6638 (target_globals::~target_globals): Define.
6640 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6642 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6643 mnemonic instead of fldmfdd.
6644 * config/arm/arm.c (vfp_output_fstmd): Rename to...
6645 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
6646 Output vpush when address register is SP.
6647 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6648 (vfp_output_vstmd): ... This.
6649 * config/arm/vfp.md (push_multi_vfp): Update call to
6652 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6654 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6656 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6658 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6659 (*sqrtdf2_vfp): Likewise.
6660 (*cmpsf_vfp): Likewise.
6661 (*cmpsf_trap_vfp): Likewise.
6662 (*cmpdf_vfp): Likewise.
6663 (*cmpdf_trap_vfp): Likewise.
6665 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6667 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6668 (*truncdfsf2_vfp): Likewise.
6669 (*truncsisf2_vfp): Likewise.
6670 (*truncsidf2_vfp): Likewise.
6671 (fixuns_truncsfsi2): Likewise.
6672 (fixuns_truncdfsi2): Likewise.
6673 (*floatsisf2_vfp): Likewise.
6674 (*floatsidf2_vfp): Likewise.
6675 (floatunssisf2): Likewise.
6676 (floatunssidf2): Likewise.
6678 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6680 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6681 (*muldf3_vfp): Likewise.
6682 (*mulsf3negsf_vfp): Likewise.
6683 (*muldf3negdf_vfp): Likewise.
6684 (*mulsf3addsf_vfp): Likewise.
6685 (*muldf3adddf_vfp): Likewise.
6686 (*mulsf3subsf_vfp): Likewise.
6687 (*muldf3subdf_vfp): Likewise.
6688 (*mulsf3negsfaddsf_vfp): Likewise.
6689 (*fmuldf3negdfadddf_vfp): Likewise.
6690 (*mulsf3negsfsubsf_vfp): Likewise.
6691 (*muldf3negdfsubdf_vfp): Likewise.
6693 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6695 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6696 (*absdf2_vfp): Likewise.
6697 (*negsf2_vfp): Likewise.
6698 (*negdf2_vfp): Likewise.
6699 (*addsf3_vfp): Likewise.
6700 (*adddf3_vfp): Likewise.
6701 (*subsf3_vfp): Likewise.
6702 (*subdf3_vfp): Likewise.
6703 (*divsf3_vfp): Likewise.
6704 (*divdf3_vfp): Likewise.
6706 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6708 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6710 (arm_print_operand): Don't convert real values to decimal
6711 representation in default case.
6712 (fp_immediate_constant): Delete.
6713 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6714 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6716 (*thumb2_movsi_vfp): Likewise.
6717 (*movdi_vfp): Likewise.
6718 (*movdi_vfp_cortexa8): Likewise.
6719 (*movhf_vfp_neon): Likewise.
6720 (*movhf_vfp): Likewise.
6721 (*movsf_vfp): Likewise.
6722 (*thumb2_movsf_vfp): Likewise.
6723 (*movdf_vfp): Likewise.
6724 (*thumb2_movdf_vfp): Likewise.
6725 (*movsfcc_vfp): Likewise.
6726 (*thumb2_movsfcc_vfp): Likewise.
6727 (*movdfcc_vfp): Likewise.
6728 (*thumb2_movdfcc_vfp): Likewise.
6730 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
6732 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6736 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6739 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6740 Use qualifier_immediate for last operand. Rename to...
6741 (aarch64_types_ternop_lane_qualifiers): ... This.
6742 (TYPES_QUADOP): Rename to...
6743 (TYPES_TERNOP_LANE): ... This.
6744 (aarch64_simd_expand_args): Return const0_rtx when encountering user
6745 error. Change return of 0 to return of NULL_RTX.
6746 (aarch64_crc32_expand_builtin): Likewise.
6747 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6748 ICE when expanding unknown builtin.
6749 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6750 TERNOP_LANE qualifiers.
6751 (sqdmlsl_lane): Likewise.
6752 (sqdmlal_laneq): Likewise.
6753 (sqdmlsl_laneq): Likewise.
6754 (sqdmlal2_lane): Likewise.
6755 (sqdmlsl2_lane): Likewise.
6756 (sqdmlal2_laneq): Likewise.
6757 (sqdmlsl2_laneq): Likewise.
6759 2014-09-09 Nick Clifton <nickc@redhat.com>
6761 * doc/invoke.texi (Optimization Options): Add missing @gol to the
6763 (S/390 and zSeries Options): Remove superfluous word from the
6764 description of the -mhotpatch option.
6766 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
6768 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6769 * ira.c: #include "shrink-wrap.h"
6770 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6771 * ifcvt.c: #include "shrink-wrap.h"
6772 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6774 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
6776 * common/config/picochip/picochip-common.c: Remove.
6777 * config.gcc: Remove support for picochip.
6778 * config/picochip/constraints.md: Remove.
6779 * config/picochip/dfa_space.md: Remove.
6780 * config/picochip/dfa_speed.md: Remove.
6781 * config/picochip/picochip-protos.h: Remove.
6782 * config/picochip/picochip.c: Remove.
6783 * config/picochip/picochip.h: Remove.
6784 * config/picochip/picochip.md: Remove.
6785 * config/picochip/picochip.opt: Remove.
6786 * config/picochip/predicates.md: Remove.
6787 * config/picochip/t-picochip: Remove.
6788 * doc/md.texi: Don't document picochi.
6790 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6792 * basic-block.h (control_flow_insn_p): Strengthen param from
6793 const_rtx to const rtx_insn *.
6794 * cfgbuild.c (control_flow_insn_p): Likewise.
6796 2014-09-08 David Malcolm <dmalcolm@redhat.com>
6798 * gcse.c (modify_mem_list): Strengthen this variable from
6799 vec<rtx> * to vec<rtx_insn *> *.
6800 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6802 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6803 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6804 (record_last_mem_set_info): Strengthen param "insn" from rtx to
6806 (record_last_set_info): Likewise for local "last_set_insn".
6808 2014-09-08 DJ Delorie <dj@redhat.com>
6810 * doc/invoke.texi (MSP430 Options): Add -minrt.
6812 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6814 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
6815 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6816 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6818 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6820 (adjust_splat): New function.
6821 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6822 (dump_swap_insn_table): Add case for SH_SPLAT.
6824 2014-09-08 Richard Biener <rguenther@suse.de>
6827 * tree-inline.c (copy_loops): The source loop header should
6829 (tree_function_versioning): If loops need fixup after removing
6830 unreachable blocks fix them.
6831 * omp-low.c (simd_clone_adjust): Do not add incr block to
6832 loop under construction.
6834 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
6836 * config/aarch64/aarch64-builtins.c
6837 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6839 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6841 * config/i386/cygming.h (TF_SIZE): Remove.
6842 * config/i386/darwin.h (TF_SIZE): Remove.
6843 * config/i386/dragonfly.h (TF_SIZE): Remove.
6844 * config/i386/freebsd.h (TF_SIZE): Remove.
6845 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6846 * config/i386/openbsdelf.h (TF_SIZE): Remove.
6847 * config/i386/sol2.h (TF_SIZE): Remove.
6848 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6849 * config/ia64/linux.h (TF_SIZE): Remove.
6850 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6851 * doc/tm.texi: Regenerate.
6852 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6854 2014-09-08 Joseph Myers <joseph@codesourcery.com>
6856 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6858 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6860 * doc/tm.texi: Regenerate.
6861 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6863 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6864 * config/cris/cris.h (__make_dp): Remove.
6866 2014-09-08 Richard Biener <rguenther@suse.de>
6869 * cfgloop.c (mark_loop_for_removal): Track former header
6871 * cfgloop.h (struct loop): Add former_header member unconditionally.
6872 * loop-init.c (fix_loop_structure): Enable bogus loop removal
6873 diagnostic unconditionally.
6875 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6878 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6879 constraint for operand0 and remove write only modifier from operand3.
6881 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
6883 PR rtl-optimization/62208
6884 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6885 rather than const0_rtx in eq/ne-xor simplifications.
6887 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
6889 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6890 (arc_output_mi_thunk): Likewise.
6892 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6893 arguments to silence bogus warning.
6895 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
6898 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6900 2014-09-06 Tom de Vries <tom@codesourcery.com>
6902 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6903 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6904 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6906 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
6909 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6910 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6912 2014-09-05 Easwaran Raman <eraman@google.com>
6914 PR rtl-optimization/62146
6915 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6916 hoisted instruction unconditional.
6918 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
6921 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6922 Do not allow any_mask_operand for operands[2].
6923 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6925 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6927 * config/arc/arc.c (arc_print_operand): Use insn method of
6928 final_sequence for type-safety.
6929 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6930 "insn" from rtx to rtx_insn *.
6931 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6932 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6933 Likewise for locals "branch", "label".
6934 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6935 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
6936 (same_cmp_following_p): Likewise for locals "i2", "i3".
6937 * config/sh/sh_optimize_sett_clrt.cc
6938 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6939 param "cbranch_insn".
6940 * function.c (convert_jumps_to_returns): Likewis for local "jump".
6941 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6942 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6944 (condjump_p): Likewise.
6945 (condjump_in_parallel_p): Likewise.
6947 (any_uncondjump_p): Likewise.
6948 (any_condjump_p): Likewise.
6949 (condjump_label): Likewise.
6950 (returnjump_p): Strengthen param "insn" from rtx to
6952 (onlyjump_p): Strengthen param "insn" from const_rtx to
6954 (jump_to_label_p): Likewise.
6955 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6956 (invert_jump): Likewise.
6957 * reorg.c (simplejump_or_return_p): Add checked cast when calling
6959 (get_jump_flags): Strengthen param "insn" from rtx to
6961 (get_branch_condition): Likewise.
6962 (condition_dominates_p): Likewise.
6963 (make_return_insns): Move declaration of local "pat" earlier, to
6964 after we've handled NONJUMP_INSN_P and non-sequences, using its
6965 methods to simplify the code and for type-safety.
6966 * rtl.h (find_constant_src): Strengthen param from const_rtx to
6968 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6969 (condjump_p): Strengthen param from const_rtx to
6971 (any_condjump_p): Likewise.
6972 (any_uncondjump_p): Likewise.
6974 (condjump_label): Likewise.
6975 (simplejump_p): Likewise.
6976 (returnjump_p): Likewise.
6977 (onlyjump_p): Likewise.
6978 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6979 (invert_jump): Likewise.
6980 (condjump_in_parallel_p): Strengthen param from const_rtx to
6982 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6983 to const rtx_insn *.
6984 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6985 to const rtx_insn *.
6986 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6988 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6990 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6991 above the conditional, and convert the check on GET_CODE to a
6992 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6993 the conditional. Simplify the conditional by using methods of
6996 2014-09-05 David Malcolm <dmalcolm@redhat.com>
6998 * haifa-sched.c (check_clobbered_conditions): Strengthen local
6999 "link" from rtx to rtx_insn_list *, and use its methods for
7000 clarity and type-safety.
7001 (toggle_cancelled_flags): Likewise.
7002 (restore_last_backtrack_point): Likewise.
7003 (queue_to_ready): Use insn method of "link" in one place.
7004 (schedule_block): Strengthen local "link" from rtx to
7005 rtx_insn_list *, and use its methods for clarity and type-safety.
7007 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7009 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
7010 param "insn" from const_rtx to const rtx_insn *.
7011 (sched_get_reverse_condition_uncached): Likewise.
7012 (sched_get_condition_with_rev): Likewise.
7013 (sched_has_condition_p): Likewise.
7014 (sched_insns_conditions_mutex_p): Likewise for both params.
7015 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
7016 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
7017 (setup_insn_reg_uses): Move local "list" to be more tightly
7018 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
7019 its methods for clarity and type-safety.
7020 (sched_analyze_1): Strengthen local "pending" from rtx to
7021 rtx_insn_list *, and local "pending_mem" from rtx to
7022 rtx_expr_list *. Use methods of each for clarity and type-safety.
7023 (sched_analyze_2): Likewise.
7024 (sched_analyze_insn): Likewise.
7026 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
7027 param from const_rtx to const rtx_insn *.
7028 (sched_insns_conditions_mutex_p): Likewise for both params.
7029 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
7032 * system.h (CONST_CAST_RTX_INSN): New macro.
7034 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7036 * recog.c (peep2_attempt): Strengthen return type from rtx to
7038 (peep2_update_life): Likewise for params "last", "prev", removing
7039 a checked cast made redundant by this.
7040 (peephole2_optimize): Likewise for local "last".
7042 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7044 * basic-block.h (set_block_for_insn): Eliminate this macro in
7046 * rtl.h (set_block_for_insn): New inline function, imposing the
7047 requirement that the "insn" param is an rtx_insn *.
7049 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7051 * caller-save.c (setup_save_areas): Strengthen local "insn" from
7053 * final.c (get_call_reg_set_usage): Likewise for first param,
7054 eliminating a checked cast.
7055 * regs.h (get_call_reg_set_usage): Likewise for first param.
7056 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
7057 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
7058 cast, replacing references to "x" with "call_insn" where
7060 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
7061 rtx_insn *, adding a checked cast.
7063 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7065 * output.h (final_scan_insn): Strengthen first param from rtx to
7068 * final.c (final_scan_insn): Likewise, renaming it back from
7069 "uncast_insn" to "insn", eliminating the checked cast.
7071 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
7072 "vec" with an rtx_sequence * "seq", taking a copy of
7073 "final_sequence", and using methods of "seq" for clarity, and for
7074 type-safety in the calls to final_scan_insn.
7075 * config/mips/mips.c (mips_output_conditional_branch): Use methods
7076 of "final_sequence" for clarity, and for type-safety in the call to
7078 * config/sh/sh.c (print_slot): Strengthen param from rtx to
7079 rtx_sequence * and rename from "insn" to "seq".
7081 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7083 * jump.c (delete_related_insns): Introduce a new local "table" by
7084 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
7085 get_labels method of "table" to simplify access to the labels in
7088 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7090 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
7091 f_minmaxs, f_minmaxd types.
7093 2014-09-05 Richard Biener <rguenther@suse.de>
7095 * cfgloop.c (mark_loop_for_removal): Record former header
7096 when ENABLE_CHECKING.
7097 * cfgloop.h (strut loop): Add former_header member when
7099 * loop-init.c (fix_loop_structure): Sanity check loops
7100 marked for removal if they re-appeared.
7102 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7104 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
7105 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
7107 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
7108 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
7109 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
7110 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
7111 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
7112 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
7113 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
7114 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
7115 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
7116 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
7117 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
7118 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
7119 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
7120 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
7121 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
7122 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
7123 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
7124 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
7125 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
7126 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
7127 with int{32,16,8}_t.
7129 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7131 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
7132 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
7133 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
7134 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
7135 Remove temporary __asm__ and reimplement.
7137 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7139 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
7140 handling cmge, cmgt, cmeq, cmtst.
7142 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
7143 cmlt, cmgeu, cmgtu, cmtst): Remove.
7145 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
7146 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
7147 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
7148 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
7150 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7152 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
7154 (aarch64_fold_builtin): Update pattern for cmtst.
7156 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
7159 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
7161 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
7162 Switch operands, separate out more cases, refactor.
7164 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
7166 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
7167 argument; rename old version to...
7168 (aarch64_const_vec_all_same_in_range_p): ...this.
7169 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
7171 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
7173 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7175 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7176 Remove qualifier_const_pointer, update comment.
7178 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7180 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
7182 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7184 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
7185 varargs with pointer parameter.
7186 (aarch64_simd_expand_builtin): pass pointer into previous.
7188 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7190 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
7193 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
7195 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
7196 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
7197 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
7198 Replace temporary asm with call to builtin.
7199 (vrbit_p8, vrbitq_p8): New functions.
7201 2014-09-05 Richard Biener <rguenther@suse.de>
7203 * cfgloop.c (mark_loop_for_removal): New function.
7204 * cfgloop.h (mark_loop_for_removal): Declare.
7205 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
7206 (merge_blocks): Likewise.
7207 (duplicate_block): Likewise.
7208 * except.c (sjlj_emit_dispatch_table): Likewise.
7209 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
7210 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
7211 (thread_through_loop_header): Likewise.
7213 2014-09-05 Richard Biener <rguenther@suse.de>
7216 * fold-const.c (try_move_mult_to_index): Remove.
7217 (fold_binary_loc): Do not call it.
7218 * tree-data-ref.c (dr_analyze_indices): Strip conversions
7219 from the base object again.
7221 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
7223 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
7226 2014-09-05 Bin Cheng <bin.cheng@arm.com>
7229 * config/arm/arm.md (setmem): New pattern.
7230 * config/arm/arm-protos.h (struct tune_params): New fields.
7231 (arm_gen_setmem): New prototype.
7232 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7233 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7234 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7235 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7236 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7237 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7238 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7239 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7240 (arm_const_inline_cost): New function.
7241 (arm_block_set_max_insns): New function.
7242 (arm_block_set_non_vect_profit_p): New function.
7243 (arm_block_set_vect_profit_p): New function.
7244 (arm_block_set_unaligned_vect): New function.
7245 (arm_block_set_aligned_vect): New function.
7246 (arm_block_set_unaligned_non_vect): New function.
7247 (arm_block_set_aligned_non_vect): New function.
7248 (arm_block_set_vect, arm_gen_setmem): New functions.
7250 2014-09-05 Bin Cheng <bin.cheng@arm.com>
7252 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
7254 2014-09-05 Bin Cheng <bin.cheng@arm.com>
7256 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7258 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
7260 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
7262 * valtrack.h: Adjust.
7264 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
7266 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
7268 (emit_jump_insn_before_noloc): Likewise.
7269 (emit_call_insn_before_noloc): Likewise.
7270 (emit_label_before): Likewise.
7271 (emit_label_after): Likewise.
7272 (emit_insn_before_setloc): Likewise.
7273 (emit_jump_insn_before_setloc): Likewise.
7274 (emit_call_insn_before_setloc): Likewise.
7275 (emit_call_insn_before): Likewise.
7278 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7280 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
7281 rtx_insn *, eliminating a checked cast.
7283 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7285 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
7286 const_rtx to const rtx_insn *.
7287 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
7290 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7292 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
7293 fixup_args_size_notes.
7294 * expr.c (fixup_args_size_notes): Strengthen first two params from
7295 rtx to rtx_insn *, eliminating a checked cast.
7296 * rtl.h (fixup_args_size_notes): Strengthen first two params from
7299 2014-09-05 David Malcolm <dmalcolm@redhat.com>
7301 * haifa-sched.c (get_ready_element): Strengthen return type from
7303 * sched-int.h (get_ready_element): Likewise.
7305 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
7308 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
7309 indexed_or_indirect_operand instead of memory_operand.
7310 (floatsi<mode>2_lfiwzx_mem): Ditto.
7312 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
7314 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
7315 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
7316 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
7318 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
7320 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
7322 (get_last_nonnote_insn): Likewise.
7323 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
7324 * resource.c (find_basic_block): Likewise.
7326 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
7329 2014-09-04 David Malcolm <dmalcolm@redhat.com>
7331 * genattr.c (main): Within the prototype of insn_latency written
7332 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
7333 * genautomata.c (output_internal_maximal_insn_latency_func):
7334 Within the implementation of insn_latency written out to
7335 insn-automata.c, strengthen both params from rtx to rtx_insn *,
7336 eliminating a pair of checked casts.
7338 2014-09-04 David Malcolm <dmalcolm@redhat.com>
7340 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
7343 * rtl.h (eh_returnjump_p): Likewise.
7345 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
7347 * Makefile.in (TAGS): Handle constructs in timevar.def.
7349 2014-09-04 Guozhi Wei <carrot@google.com>
7352 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
7353 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
7354 it into two patterns.
7355 (move_lo_quad_internal_be_<mode>): Likewise.
7357 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
7359 * doc/options.texi: Document that Var and Init are required if CPP
7361 * optc-gen.awk: Require Var and Init if CPP is given.
7362 * common.opt (Wpedantic): Use Init.
7364 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7366 * config/rs6000/rs6000.c (special_handling_values): Add
7368 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
7369 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
7370 as swappable with special handling SH_EXTRACT. Remove
7371 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
7373 (adjust_extract): New function.
7374 (handle_special_swappables): Add default to case statement; add
7375 case for SH_EXTRACT that calls adjust_extract.
7376 (dump_swap_insn_table): Handle SH_EXTRACT.
7378 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7380 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
7381 selection of 0th memory doubleword, regardless of endianness.
7383 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
7385 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
7387 2014-09-04 Alan Modra <amodra@gmail.com>
7390 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
7393 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
7395 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
7396 * targhooks.c (default_dwarf_frame_reg_mode): New function.
7397 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
7398 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
7399 * doc/tm.texi: Regenerate.
7400 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
7401 selection logic to default_dwarf_frame_reg_mode.
7403 2014-09-03 Marek Polacek <polacek@redhat.com>
7405 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
7408 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
7410 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
7411 the automodified register.
7413 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
7415 * output.h (get_some_local_dynamic_name): Declare.
7416 * final.c (some_local_dynamic_name): New variable.
7417 (get_some_local_dynamic_name): New function.
7418 (final_end_function): Clear some_local_dynamic_name.
7419 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7420 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7421 (print_operand): Report an error if '%&' is used inappropriately.
7422 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7423 (get_some_local_dynamic_name_1): Delete.
7424 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7425 (rs6000_get_some_local_dynamic_name): Delete.
7426 (rs6000_get_some_local_dynamic_name_1): Delete.
7427 (print_operand): Report an error if '%&' is used inappropriately.
7428 * config/s390/s390.c (machine_function): Remove some_ld_name.
7429 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7430 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7431 * config/sparc/sparc.c: Include rtl-iter.h.
7432 (machine_function): Remove some_ld_name.
7433 (sparc_print_operand): Report an error if '%&' is used inappropriately.
7434 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7436 2014-09-03 Richard Henderson <rth@redhat.com>
7438 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7439 (aarch64_popwb_pair_reg): Remove.
7440 (aarch64_set_frame_expr): Remove.
7441 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7442 the restore ops performed by the insns generated.
7443 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7444 insn. Perform the calls_eh_return addition later; do not attempt to
7445 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
7446 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7447 special markup at all. Load cfun->machine->frame.hard_fp_offset
7448 into a local variable.
7449 (aarch64_frame_pointer_required): Don't check calls_alloca.
7451 2014-09-03 Richard Biener <rguenther@suse.de>
7453 * opts.c (default_options_optimization): Adjust
7454 max-combine-insns to 2 for -Og.
7456 2014-09-03 Martin Jambor <mjambor@suse.cz>
7459 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7460 pass-trough jump functions correctly.
7462 2014-09-03 Martin Jambor <mjambor@suse.cz>
7465 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7466 created replacements in ascending order of offsets.
7467 (known_aggs_to_agg_replacement_list): Likewise.
7469 2014-09-03 Martin Liska <mliska@suse.cz>
7471 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7472 is set to set uninitialized value for vnresult.
7474 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7476 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7477 for TARGET_MUST_PASS_IN_STACK.
7479 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7481 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7482 for TARGET_ARG_PARTIAL_BYTES.
7484 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7486 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7487 instructions for varargs implementation.
7488 (nds32_expand_epilogue): Emit stack adjustment instructions for
7489 varargs implementation.
7491 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7493 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7494 optimization detection.
7496 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7498 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7500 (nds32_function_arg_advance): Deal with nameless arguments.
7501 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7502 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7503 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7505 2014-09-03 Richard Biener <rguenther@suse.de>
7507 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7508 (struct bb_bitmap_sets): Remove deferred member.
7509 (BB_DEFERRED): Remove.
7510 (defer_or_phi_translate_block): Remove.
7511 (compute_antic_aux): Remove deferring of blocks, assert
7512 proper iteration order.
7513 (compute_antic): Do not set BB_DEFERRED.
7514 (eliminate): Allocate el_avail of proper size initially.
7516 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7518 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7519 according to the value of crtl->args.pretend_args_size.
7521 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7523 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7524 varargs information.
7526 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7528 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7529 implementation for TARGET_SETUP_INCOMING_VARARGS.
7530 (nds32_strict_argument_naming): Refine comment.
7531 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7532 Define for future implementation.
7534 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
7536 * config/i386/adxintrin.h (_subborrow_u32): New.
7537 (_addcarry_u32): Ditto.
7538 (_subborrow_u64): Ditto.
7539 (_addcarry_u64): Ditto.
7540 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7542 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7543 __builtin_ia32_sbb_u64
7545 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7547 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7549 (nds32_function_arg_advance): Likewise.
7550 (nds32_init_cumulative_args): Likewise.
7551 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7552 (NDS32_FIRST_GPR_REGNUM): Define.
7553 (NDS32_LAST_GPR_REGNUM): Define.
7554 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7555 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7556 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7557 (machine_function): Use GRP-specific stuff.
7559 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7561 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7562 (nds32_expand_epilogue): Likewise.
7563 (nds32_expand_prologue_v3push): Likewise.
7564 (nds32_expand_epilogue_v3pop): Likewise.
7566 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7568 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7569 v3push/v3pop for variadic function.
7570 * config/nds32/nds32.md (prologue, epilogue): Likewise.
7572 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7574 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7575 Check rtx for varargs implementation.
7576 (nds32_output_stack_pop): Likewise.
7577 * config/nds32/nds32-protos.h: Have a rtx argument for
7578 nds32_output_stack_push and nds32_output_stack_pop.
7579 * config/nds32/nds32.md: Likewise.
7581 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7583 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7584 to check if FUNC is an interrupt service routine.
7585 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7587 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7589 * config/nds32/nds32.h (machine_function): Add some fields for variadic
7590 arguments implementation.
7592 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7594 * config/nds32/nds32-predicates.c
7595 (nds32_valid_stack_push_pop): Rename to ...
7596 (nds32_valid_stack_push_pop_p): ... this.
7597 * config/nds32/nds32-protos.h: Likewise.
7598 * config/nds32/predicates.md: Likewise.
7600 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7602 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7603 (nds32_emit_stack_v3push): ... this.
7604 (nds32_gen_stack_v3pop): Rename to ...
7605 (nds32_emit_stack_v3pop): ... this and consider CFA restore
7608 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7610 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7611 (nds32_emit_stack_push_multiple): ... this.
7612 (nds32_gen_stack_pop_multiple): Rename to ...
7613 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7616 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7619 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7620 and add a second splitter to handle the remaining cases.
7622 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
7624 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7626 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7628 * cfgexpand.c (label_rtx_for_bb): Change type to
7629 hash_map<basic_block, rtx_code_label *> *.
7630 (expand_gimple_basic_block): Adjust.
7631 (pass_expand::execute): Likewise.
7633 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7635 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7636 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7637 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7638 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7639 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7640 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7641 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7644 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
7646 * alloc-pool.c: Include coretypes.h.
7647 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7648 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7649 hash_set instead of htab.
7650 * ggc-page.c (in_gc): New variable.
7651 (ggc_free): Do nothing if a collection is taking place.
7652 (ggc_collect): Set in_gc appropriately.
7653 * ggc.h (gt_ggc_mx(const char *)): New function.
7654 (gt_pch_nx(const char *)): Likewise.
7655 (gt_ggc_mx(int)): Likewise.
7656 (gt_pch_nx(int)): Likewise.
7657 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7658 (hash_map::hash_entry::pch_nx): Likewise.
7659 (hash_map::hash_entry::pch_nx_helper): Likewise.
7660 (hash_map::hash_map): Adjust.
7661 (hash_map::create_ggc): New function.
7662 (gt_ggc_mx): Likewise.
7663 (gt_pch_nx): Likewise.
7664 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7665 (default_hashset_traits::pch_nx): Likewise.
7666 (hash_set::hash_entry::ggc_mx): Likewise.
7667 (hash_set::hash_entry::pch_nx): Likewise.
7668 (hash_set::hash_entry::pch_nx_helper): Likewise.
7669 (hash_set::hash_set): Adjust.
7670 (hash_set::create_ggc): New function.
7671 (hash_set::elements): Likewise.
7672 (gt_ggc_mx): Likewise.
7673 (gt_pch_nx): Likewise.
7674 * hash-table.h (hash_table::hash_table): Adjust.
7675 (hash_table::m_ggc): New member.
7676 (hash_table::~hash_table): Adjust.
7677 (hash_table::expand): Likewise.
7678 (hash_table::empty): Likewise.
7679 (gt_ggc_mx): New function.
7680 (hashtab_entry_note_pointers): Likewise.
7681 (gt_pch_nx): Likewise.
7683 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7685 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
7686 built-in definition.
7687 (XVCVUXDDP_SCALE): Likewise.
7688 (XVCVDPSXDS_SCALE): Likewise.
7689 (XVCVDPUXDS_SCALE): Likewise.
7690 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7691 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7692 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7693 VSX_BUILTIN_XVCVDPUXDS_SCALE.
7694 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7696 * config/rs6000/rs6000.c (real.h): New include.
7697 (rs6000_scale_v2df): New function.
7698 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7699 (UNSPEC_VSX_XVCVUXDDP): Likewise.
7700 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7701 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7702 (vsx_xvcvsxddp_scale): New define_expand.
7703 (vsx_xvcvsxddp): New define_insn.
7704 (vsx_xvcvuxddp_scale): New define_expand.
7705 (vsx_xvcvuxddp): New define_insn.
7706 (vsx_xvcvdpsxds_scale): New define_expand.
7707 (vsx_xvcvdpsxds): New define_insn.
7708 (vsx_xvcvdpuxds_scale): New define_expand.
7709 (vsx_xvcvdpuxds): New define_insn.
7710 * doc/extend.texi (vec_ctf): Add new prototypes.
7711 (vec_cts): Likewise.
7712 (vec_ctu): Likewise.
7713 (vec_splat): Likewise.
7714 (vec_div): Likewise.
7715 (vec_mul): Likewise.
7717 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7720 * config/arm/neon.md
7721 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7722 <v_cmp_result>): New pattern.
7723 * config/arm/iterators.md (NEON_VCVT): New int iterator.
7724 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7725 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7726 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7727 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7728 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7730 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7733 * config/arm/iterators.md (FIXUORS): New code iterator.
7734 (VCVT): New int iterator.
7735 (su_optab): New code attribute.
7737 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7739 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7741 * config/aarch64/predicates.md (aarch64_comparison_operation):
7742 New special predicate.
7743 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7744 aarch64_comparison_operation instead of matching an operator.
7745 Update operand numbers.
7746 (csinc3<mode>_insn): Likewise.
7747 (*csinv3<mode>_insn): Likewise.
7748 (*csneg3<mode>_insn): Likewise.
7749 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7750 * config/aarch64/aarch64.c (aarch64_get_condition_code):
7751 Return -1 instead of aborting on invalid condition codes.
7752 (aarch64_print_operand): Update aarch64_get_condition_code callsites
7753 to assert that the returned condition code is valid.
7754 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7756 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
7758 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7759 tree.def, and gimple.def
7761 2014-09-02 Jakub Jelinek <jakub@redhat.com>
7762 Balaji V. Iyer <balaji.v.iyer@intel.com>
7763 Igor Zamyatin <igor.zamyatin@intel.com>
7765 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7766 (__cilkrts_cilk_for_64): Likewise.
7767 * cilk-common.c (declare_cilk_for_builtin): New function.
7768 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7769 __cilkrts_cilk_for_64 bultins.
7770 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7772 (cilk_for_32_fndecl): New define.
7773 (cilk_for_64_fndecl): Likewise.
7774 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7775 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7776 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7777 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7778 GF_OMP_FOR_COMBINED_INTO.
7779 * gimplify.c (gimplify_scan_omp_clauses): Added
7780 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7781 (gimplify_adjust_omp_clauses): Ditto.
7782 (gimplify_omp_for): Added CILK_FOR case.
7783 (gimplify_expr): Ditto.
7784 * omp-low.c: Include cilk.h.
7785 (extract_omp_for_data): Set appropriate kind for
7786 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7787 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7788 (create_omp_child_function_name): Added second argument to handle
7790 (cilk_for_check_loop_diff_type): New function.
7791 (expand_cilk_for_call): Likewise.
7792 (expand_cilk_for): Likewise.
7793 (create_omp_child_function): Set cilk_for_count; handle the cases when
7794 it is true; call create_omp_child_function_name with second argument.
7795 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7796 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7797 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7798 * tree-nested.c (convert_nonlocal_omp_clauses): Added
7799 OMP_CLAUSE__CILK_FOR_COUNT_ case.
7800 (convert_local_omp_clauses): Ditto.
7801 * tree-pretty-print.c (dump_omp_clause): Added
7802 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7803 (dump_generic_node): Added CILK_FOR case.
7804 * tree.c (omp_clause_num_ops): New element
7805 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7806 (omp_clause_code_name): New element _Cilk_for_count_.
7807 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7808 * tree.def: Add tree code for CILK_FOR.
7810 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7812 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7813 (ppc403-compare): Add "exts with dot" case.
7814 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7815 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7816 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7817 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7818 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7819 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7820 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7821 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7822 cell-cmp-microcoded): Similarly.
7823 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7824 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7825 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7826 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7827 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7828 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7829 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7830 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7831 (power6-compare): Add "exts with dot" case.
7832 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7833 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7834 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7836 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7837 if avoiding Cell microcode.
7838 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7839 (is_cracked_insn): Ditto.
7840 (insn_must_be_first_in_group): Ditto.
7841 * config/rs6000/rs6000.md (dot): Adjust comment.
7842 (cell_micro): Handle exts+dot.
7843 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7844 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7845 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7846 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7847 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7848 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7849 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7851 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7853 * config/rs6000/rs6000.md (QHSI): Delete.
7854 (EXTQI, EXTHI, EXTSI): New mode iterators.
7855 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7856 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7857 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7858 9 anonymous instructions, and 8 splitters): Delete.
7859 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7860 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7861 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7862 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7863 *zero_extendsi<mode>2_dot2): New.
7865 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7867 * config/rs6000/rs6000.md (any_extend): New code iterator.
7868 (u, su): New code attributes.
7869 (dmode, DMODE): New mode attributes.
7870 (<su>mul<mode>3_highpart): New.
7871 (*<su>mul<mode>3_highpart): New.
7872 (<su>mulsi3_highpart_le): New.
7873 (<su>muldi3_highpart_le): New.
7874 (<su>mulsi3_highpart_64): New.
7875 (<u>mul<mode><dmode>3): New.
7876 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7878 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7881 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
7883 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7884 *mulsi3_internal2, and two splitters): Delete.
7885 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7887 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7889 2014-09-02 Richard Biener <rguenther@suse.de>
7891 PR tree-optimization/62695
7892 * tree-ssa-structalias.c (find_func_clobbers): Add missing
7895 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
7898 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7900 2014-09-01 Andi Kleen <ak@linux.intel.com>
7902 * file-find.c (add_prefix_begin): Add.
7903 (do_add_prefix): Rename from add_prefix with first argument.
7904 (add_prefix): Add new wrapper.
7905 * file-find.h (add_prefix_begin): Add.
7906 * gcc-ar.c (main): Support -B option.
7908 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7910 * genemit.c: Include dumpfile.h.
7911 (gen_split): Print name of splitter function to dump file.
7913 2014-09-01 Richard Biener <rguenther@suse.de>
7915 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7916 Use stack auto_vecs for constraint expressions.
7917 (find_func_aliases_for_call): Likewise.
7918 (find_func_aliases): Likewise.
7919 (find_func_clobbers): Likewise.
7921 2014-09-01 Richard Biener <rguenther@suse.de>
7923 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7924 operands vector in most cases. Remove redundant code.
7926 2014-09-01 Olivier Hainque <hainque@adacore.com>
7928 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7929 $WIND_BASE instead of designating a harcoded arbitrary home dir.
7930 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7932 2014-09-01 Richard Biener <rguenther@suse.de>
7934 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7935 copy_reference_ops_from_call, vn_nary_op_compute_hash,
7936 vn_reference_compute_hash, vn_reference_insert): Remove.
7937 (vn_reference_lookup_call): New function.
7938 * tree-ssa-sccvn.c (vn_reference_compute_hash,
7939 copy_reference_ops_from_ref, copy_reference_ops_from_call,
7940 vn_reference_insert, vn_nary_op_compute_hash): Make static.
7941 (create_reference_ops_from_call): Remove.
7942 (vn_reference_lookup_3): Properly update shared_lookup_references.
7943 (vn_reference_lookup_pieces): Assert that we updated
7944 shared_lookup_references properly.
7945 (vn_reference_lookup): Likewise.
7946 (vn_reference_lookup_call): New function.
7947 (visit_reference_op_call): Use it. Avoid re-building the
7949 (visit_reference_op_load): Remove redundant lookup.
7950 (visit_reference_op_store): Perform special tail-merging work
7951 only when possibly doing tail-merging.
7952 (visit_use): Likewise.
7953 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7955 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7958 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7959 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7960 (find_inc): Revert 2014-08-13 change.
7962 2014-09-01 Marek Polacek <polacek@redhat.com>
7965 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7966 Change the type of V to unsigned HOST_WIDE_INT.
7968 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
7970 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7971 the size of byte markers.
7972 (do_shift_rotate): Fix confusion between host, target and marker byte
7974 (verify_symbolic_number_p): Likewise.
7975 (find_bswap_or_nop_1): Likewise.
7976 (find_bswap_or_nop): Likewise.
7978 2014-09-01 Olivier Hainque <hainque@adacore.com>
7980 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7981 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7983 2014-09-01 Jakub Jelinek <jakub@redhat.com>
7985 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7986 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7987 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7989 2014-09-01 Yury Gribov <y.gribov@samsung.com>
7993 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7994 (build_check_stmt): Likewise.
7995 (instrument_strlen_call): Likewise.
7996 (asan_expand_check_ifn): Likewise and fix types.
7997 (maybe_cast_to_ptrmode): New function.
7999 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8001 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
8003 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
8005 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
8007 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
8009 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
8010 prefix to function labels when generating fast indirect calls.
8012 2014-08-30 David Malcolm <dmalcolm@redhat.com>
8016 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
8017 param back from rtx_insn * to rtx. Rename param from "label" to
8018 "label_or_return", reintroducing "label" as an rtx_insn * after
8019 we've ensured it's not a RETURN.
8020 (first_active_target_insn): Likewise for return type and param;
8021 add a checked cast to rtx_insn * once we've ensured "insn" is not
8023 (steal_delay_list_from_target): Convert param "pnew_thread" back
8024 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
8026 (own_thread_p): Convert param "thread" back from an rtx_insn * to
8027 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
8028 cast once we've established we're not dealing with a RETURN,
8029 renaming subsequent uses of "thread" to "thread_insn".
8030 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
8032 (follow_jumps): Convert return type and param "label" from
8033 rtx_insn * back to rtx. Move initialization of "value" to after
8034 the handling for ANY_RETURN_P, adding a checked cast there to
8035 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
8036 rename to "this_label_or_return", reintroducing "this_label" as
8037 an rtx_insn * once we've handled the case where it could be an
8039 (fill_slots_from_thread): Rename param "thread" to
8040 "thread_or_return", converting from an rtx_insn * back to an rtx.
8041 Reintroduce name "thread" as an rtx_insn * local with a checked
8042 cast once we've handled the case of it being an ANY_RETURN_P.
8043 Convert local "new_thread" from an rtx_insn * back to an rtx.
8044 Add a checked cast when assigning to "trial" from "new_thread".
8045 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
8046 checked cast to rtx_insn * from "new_thread" when invoking
8048 (fill_eager_delay_slots): Convert locals "target_label",
8049 "insn_at_target" from rtx_insn * back to rtx.
8050 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
8051 (relax_delay_slots): Convert locals "trial", "target_label" from
8052 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
8053 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
8054 invoking update_block.
8055 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
8056 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
8058 * resource.h (mark_target_live_regs): Undo erroneous conversion
8059 of second param of r214693, converting it back from rtx_insn * to
8060 rtx, since it could be a RETURN.
8062 * resource.c (find_dead_or_set_registers): Similarly, convert
8063 param "jump_target" back from an rtx_insn ** to an rtx *, as we
8064 could be writing back a RETURN. Rename local rtx_insn * "next" to
8065 "next_insn", and introduce "lab_or_return" as a local rtx,
8066 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
8067 (mark_target_live_regs): Undo erroneous conversion
8068 of second param of r214693, converting it back from rtx_insn * to
8069 rtx, since it could be a RETURN. Rename it from "target" to
8070 "target_maybe_return", reintroducing the name "target" as a local
8071 rtx_insn * with a checked cast, after we've handled the case of
8074 2014-08-29 DJ Delorie <dj@redhat.com>
8076 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
8077 pointer size up to a power of two.
8078 * defaults.h (DWARF2_ADDR_SIZE): Round up.
8079 (POINTER_SIZE_UNITS): New, rounded up value.
8080 * dwarf2asm.c (size_of_encoded_value): Use it.
8081 (dw2_output_indirect_constant_1): Likewise.
8082 * expmed.c (init_expmed_one_conv): We now know the sizes of
8084 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
8085 * optabs.c (expand_float): Use precision, not size.
8086 (expand_fix): Likewise.
8087 * simplify-rtx (simplify_unary_operation_1): Likewise.
8088 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8089 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
8090 (default_assemble_integer) Likewise.
8091 (dump_tm_clone_pairs): Likewise.
8092 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
8093 * var-tracking.c (adjust_mems): Allow partial-int modes also.
8094 (prepare_call_arguments): Likewise.
8095 * stor-layout.c (finalize_type_size): Preserve precision.
8096 (layout_type): Use precision, not size.
8098 * expr.c (convert_move): If the target has an explicit converter,
8101 2014-08-29 David Malcolm <dmalcolm@redhat.com>
8103 * gdbinit.in: Skip various inline functions in rtl.h when
8106 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
8109 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
8111 2014-08-29 Richard Biener <rguenther@suse.de>
8113 PR tree-optimization/62291
8114 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
8115 exactly the vector size needed and use quick_push.
8116 (phi_translate_1): Adjust comment.
8117 (valid_in_sets): Remove block argument and remove pointless
8119 (dependent_clean): Adjust for removal of block argument.
8121 (compute_antic_aux): Likewise.
8122 (compute_partial_antic_aux): Likewise.
8124 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
8125 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8126 Anna Tikhonova <anna.tikhonova@intel.com>
8127 Ilya Tocar <ilya.tocar@intel.com>
8128 Andrey Turetskiy <andrey.turetskiy@intel.com>
8129 Ilya Verbin <ilya.verbin@intel.com>
8130 Kirill Yukhin <kirill.yukhin@intel.com>
8131 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8133 * config/i386/sse.md
8134 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
8135 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
8136 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
8137 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
8139 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
8140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8141 Anna Tikhonova <anna.tikhonova@intel.com>
8142 Ilya Tocar <ilya.tocar@intel.com>
8143 Andrey Turetskiy <andrey.turetskiy@intel.com>
8144 Ilya Verbin <ilya.verbin@intel.com>
8145 Kirill Yukhin <kirill.yukhin@intel.com>
8146 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8148 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
8149 * config/i386/sse.md
8150 (define_mode_iterator VI4_128_8_256): New.
8151 (define_mode_iterator VI2_128_4_256): Ditto.
8152 (define_mode_iterator PMOV_DST_MODE): Rename into
8153 (define_mode_iterator PMOV_DST_MODE_1): this.
8154 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
8155 Use PMOV_DST_MODE_1 mode iterator.
8156 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8158 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8160 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
8161 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
8162 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
8163 (define_mode_iterator PMOV_DST_MODE_2): New.
8164 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
8165 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
8166 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
8168 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
8169 (define_mode_attr pmov_dst_3): Ditto.
8170 (define_mode_attr pmov_dst_zeroed_3): Ditto.
8171 (define_mode_attr pmov_suff_3): Ditto.
8172 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
8173 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
8174 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
8175 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
8176 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
8177 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
8178 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
8179 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
8180 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
8181 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
8182 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
8183 (define_mode_attr pmov_dst_4): Ditto.
8184 (define_mode_attr pmov_dst_zeroed_4): Ditto.
8185 (define_mode_attr pmov_suff_4): Ditto.
8186 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
8187 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
8188 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
8189 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
8190 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
8191 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
8192 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
8193 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
8194 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
8195 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
8196 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
8198 2014-08-29 Richard Biener <rguenther@suse.de>
8200 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
8201 NON_LVALUE_EXPR in gimple.
8203 2014-08-29 Richard Biener <rguenther@suse.de>
8206 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
8207 from previous refactoring.
8208 (gimple_fold_builtin_strncpy): Likewise.
8210 2014-08-29 David Malcolm <dmalcolm@redhat.com>
8213 * function.c (assign_parm_setup_reg): Remove erroneous checked
8214 cast to rtx_insn * on result of gen_extend_insn in favor of
8215 introducing a new local rtx "pat".
8217 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
8219 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
8221 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
8223 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8225 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
8226 (next_insn): Likewise.
8227 * emit-rtl.c (next_insn): Likewise.
8228 (previous_insn): Likewise.
8229 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
8230 "insn" and "next" from rtx to rtx_insn *.
8231 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
8232 "insn", "insn1", "vliw_start", "prologue_end_note",
8233 "last_insn_in_packet".
8235 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8237 * shrink-wrap.h (active_insn_between): Strengthen both params from
8239 * function.c (active_insn_between): Likewise.
8241 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8243 * genattr.c (main): When writing out insn-attr.h, strengthen param
8244 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
8245 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
8246 writing out the definition of dfa_clear_single_insn_cache to the
8247 generated insn-automata.c
8249 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8251 * resource.h (clear_hashed_info_for_insn): Strengthen param from
8253 (incr_ticks_for_insn): Likewise.
8254 (init_resource_info): Likewise.
8256 * resource.c (init_resource_info): Likewise.
8257 (clear_hashed_info_for_insn): Likewise.
8258 (incr_ticks_for_insn): Likewise.
8260 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
8262 (steal_delay_list_from_target): Use methods of "seq".
8263 (try_merge_delay_insns): Use methods of "merged_insns".
8264 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
8265 (reorg_redirect_jump): Likewise for param "jump".
8267 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8269 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
8271 * config/s390/s390.c (s390_split_branches): Eliminate top-level
8272 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
8274 (s390_mainpool_finish): In three places, split out a local rtx
8275 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
8276 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
8277 and split another local rtx "insn" out into rtx "pat" and
8279 * config/sh/sh.c (output_branchy_insn): Rather than working
8280 directly on operands[9], introduce local rtx_code_label *
8281 variables named "lab" in two places, working on them, and then
8282 assigning them to operands[9], so that the intervening operations
8283 are known by the type system to be on insns.
8285 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8287 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
8290 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
8291 in invocation of INSN_HAS_LOCATION.
8293 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8295 * config/rs6000/altivec.h (vec_xl): New #define.
8296 (vec_xst): Likewise.
8297 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
8298 (XXSPLTD_V2DI): Likewise.
8299 (DIV_V2DI): Likewise.
8300 (UDIV_V2DI): Likewise.
8301 (MUL_V2DI): Likewise.
8302 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8303 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
8304 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
8305 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
8306 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
8307 (UNSPEC_VSX_DIVSD): Likewise.
8308 (UNSPEC_VSX_DIVUD): Likewise.
8309 (UNSPEC_VSX_MULSD): Likewise.
8310 (vsx_mul_v2di): New insn-and-split.
8311 (vsx_div_v2di): Likewise.
8312 (vsx_udiv_v2di): Likewise.
8313 (vsx_xxspltd_<mode>): New insn.
8315 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8317 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
8319 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
8320 (NEXT_INSN): Likewise.
8321 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
8322 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
8324 (no_labels_between_p): Likewise for both params.
8326 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
8327 cast when using NEXT_INSN on operands[2].
8328 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
8329 "insn" from rtx to rtx_insn *, adding a checked cast.
8330 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
8332 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
8334 (arc_text_label): Likewise for param "insn".
8335 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
8337 (arc_ccfsm_record_condition): Likewise for param "jump".
8338 (arc_text_label): Likewise for local "label".
8339 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
8340 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
8341 a method for typesafety. Add a checked cast.
8342 * config/arc/constraints.md (Clb): Add a checked cast when getting
8343 the CODE_LABEL from a LABEL_REF.
8344 * config/arm/arm.c (require_pic_register): Strengthen locals
8345 "seq", "insn" from rtx to rtx_insn *.
8346 (create_fix_barrier): Likewise for locals "selected", "next".
8347 (thumb1_reorg): Likewise for locals "prev", "insn".
8348 (arm_expand_prologue): Likewise for local "last".
8349 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
8351 (thumb2_output_casesi): Likewise for operands[2].
8352 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
8353 strengthen local "insn" from rtx to rtx_insn *.
8354 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
8355 type and param "insn".
8356 (find_prev_insn_start): Likewise.
8357 (hwloop_optimize): Likewise for locals "insn", "last_insn",
8359 (gen_one_bundle): Likewise for loal "t".
8360 (find_load): Likewise for param "insn".
8361 (workaround_speculation): Likewise for locals "insn", "next",
8362 "target", "next_tgt".
8363 * config/c6x/c6x.c (assign_reservations): Likewise for both params
8364 and for locals "insn", "within", "last".
8365 (count_unit_reqs): Likewise for params "head", "tail" and local
8367 (try_rename_operands): Likewise for params "head", "tail".
8368 (reshuffle_units): Likewise for locals "head", "tail", "insn".
8369 (struct c6x_sched_context): Likewise for fields
8370 "last_scheduled_insn", "last_scheduled_iter0".
8371 (init_sched_state): Replace NULL_RTX with NULL.
8372 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
8374 (undo_split_delayed_nonbranch): Likewise for param and for local
8376 (conditionalize_after_sched): Likewise for local "insn".
8377 (bb_earliest_end_cycle): Likewise.
8378 (filter_insns_above): Likewise for locals "insn", "next".
8379 (hwloop_optimize): Remove redundant checked cast.
8380 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
8381 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
8383 (cris_simple_epilogue): Likewise.
8384 (cris_expand_prologue): Likewise.
8385 (cris_expand_epilogue): Likewise.
8386 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
8387 local "insn" from rtx to rtx_insn *.
8388 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
8389 (struct frv_packet_group): Likewise for the elements within array
8390 fields "insns", "sorted", and for field "nop".
8391 (frv_packet): Likewise for the elements within array field
8393 (frv_add_insn_to_packet): Likewise for param "insn".
8394 (frv_insert_nop_in_packet): Likewise for param "insn" and local
8396 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
8397 (frv_sort_insn_group_1): Likewise for local "insn".
8398 (frv_optimize_membar_local): Likewise.
8399 (frv_align_label): Likewise for locals "x", "last", "barrier",
8401 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
8403 (ia64_sched_init): Likewise for local "insn".
8404 (scheduled_good_insn): Likewise for param "last".
8405 (struct _ia64_sched_context): Likewise for field
8406 "last_scheduled_insn".
8407 (ia64_init_sched_context): Replace NULL_RTX with NULL.
8408 (struct bundle_state): Likewise for field "insn".
8409 (issue_nops_and_insn): Likewise for param "insn".
8410 (get_next_important_insn): Likewise for return type and both
8412 (ia64_add_bundle_selector_before): Likewise for param "insn".
8413 (bundling): Likewise for params "prev_head_insn", "tail" and
8414 locals "insn", "next_insn", "b". Eliminate top-level local rtx
8415 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8416 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8417 Strengthen final param from rtx to rtx_insn *.
8418 (iq2000_move_1word): Likewise for second param.
8419 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8420 param "cur_insn" and local "next_insn".
8421 (iq2000_move_1word): Likewise for param "insn".
8422 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8423 casts when using NEXT_INSN on operands[1].
8424 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8425 "insn" from rtx to rtx_insn *.
8426 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8427 "x", introducing local rtx_insn * "insn" for when working with the
8428 CODE_LABEL of the LABEL_REF.
8429 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8431 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8433 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8435 (conditionalize_block): Likewise for return type and param.
8436 (mcore_is_dead): Likewise for param "first" and local "insn".
8437 (emit_new_cond_insn): Likewise for return type.
8438 (conditionalize_block): Likewise for return type, param, and
8439 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8441 (conditionalize_optimization): Likewise for local "insn".
8442 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8444 * config/microblaze/microblaze.md: Add checked casts when using
8446 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8447 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8448 and rtx_insn * "insn".
8449 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8450 checked cast when using NEXT_INSN on operands[2].
8451 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8452 local "insn" from rtx to rtx_insn *.
8453 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8455 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8456 Add a checked cast when using NEXT_INSN on operands[1].
8457 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8459 (pa_output_cbranch): Likewise for final param.
8460 (pa_output_lbranch): Likewise for second param.
8461 (pa_output_bb): Likewise for third param.
8462 (pa_output_bvb): Likewise.
8463 (pa_output_dbra): Likewise for second param.
8464 (pa_output_movb): Likewise.
8465 (pa_output_parallel_movb): Likewise.
8466 (pa_output_parallel_addb): Likewise.
8467 (pa_output_millicode_call): Likewise for first param.
8468 (pa_output_mul_insn): Likewise for second param.
8469 (pa_output_div_insn): Likewise for third param.
8470 (pa_output_mod_insn): Likewise for second param.
8471 (pa_jump_in_call_delay): Likewise for param.
8472 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8473 (pa_output_div_insn): Likewise.
8474 (pa_output_mod_insn): Likewise.
8475 (pa_output_cbranch): Likewise.
8476 (pa_output_lbranch): Likewise.
8477 (pa_output_bb): Likewise.
8478 (pa_output_bvb): Likewise.
8479 (pa_output_dbra): Likewise.
8480 (pa_output_movb): Likewise.
8481 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8482 to simplify and for typesafety.
8483 (pa_output_call): Use method of rtx_sequence *.
8484 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8485 (pa_jump_in_call_delay): Likewise.
8486 (pa_output_parallel_movb): Likewise.
8487 (pa_output_parallel_addb): Likewise.
8488 (pa_following_call): Likewise.
8489 (pa_combine_instructions): Likewise for locals "anchor",
8491 (pa_can_combine_p): Likewise for params "anchor", "floater" and
8492 locals "start", "end".
8493 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8494 param "insn" and local "local_insn".
8495 (picochip_final_prescan_insn): Likewise for local "local_insn".
8496 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8498 (uses_TOC): Likewise.
8499 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8500 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8501 splitting out to more tightly-scoped locals, 3 as rtx and one as
8503 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8505 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8507 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8509 (fixup_addr_diff_vecs): Likewise.
8510 (reg_unused_after): Likewise for param 2.
8511 (sh_can_redirect_branch): Likewise for both params.
8512 (check_use_sfunc_addr): Likewise for param 1.
8513 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8514 (find_barrier): Likewise for local "last_got".
8515 (gen_block_redirect): Likewise for return type, param "jump" and
8516 locals "prev", "scan", "next", "insn".
8517 (struct far_branch): Likewise for fields "near_label",
8518 "insert_place", "far_label".
8519 (gen_far_branch): Likewise for local "jump".
8520 (fixup_addr_diff_vecs): Likewise for param "first" and locals
8522 (barrier_align): Likewise for param and for locals "prev", "x".
8523 Introduce local rtx_sequence * "prev_seq" and use insn method for
8524 typesafety and clarity.
8525 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8526 (get_dest_uid): Likewise for local "dest".
8527 (split_branches): Likewise for locals "next", "beyond", "label",
8528 "block", "far_label". Add checked casts when assigning to
8529 bp->far_label and "far_label".
8530 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8531 (sequence_insn_p): Likewise.
8532 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
8533 more loop-scoped rtx "insn" when walking LABEL_REFS.
8534 (sh_can_redirect_branch): Strengthen both params from rtx to
8536 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
8537 new local rtx_sequence * "seq" via a dyn_cast, and use a method
8538 for clarity and typesafety.
8539 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8540 "insn" from rtx to rtx_insn *.
8541 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8542 when using NEXT_INSN on the CODE_LABEL in operands[2].
8543 (define_insn "casesi_worker_2"): Likewise.
8544 (define_insn "casesi_shift_media"): Likewise.
8545 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8547 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8548 Strengthen field "insn" from rtx to rtx_insn *.
8549 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8550 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8551 param "start_insn" and local "start_insn".
8552 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8554 (find_set_of_reg_bb): Likewise for param "insn".
8555 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8556 (trace_reg_uses): Likewise for param "start_insn".
8557 (sh_treg_combine::cbranch_trace): Likewise for field
8559 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8561 (sh_treg_combine::record_set_of_reg): Likewise for param
8562 "start_insn" and local "i".
8563 (sh_treg_combine::can_remove_cstore): Likewise for local
8565 (sh_treg_combine::try_optimize_cbranch): Likewise for param
8567 (sh_treg_combine::execute): Likewise for local "i".
8568 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8570 (sparc_check_64): Likewise for second param.
8571 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8572 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
8573 dyn_cast, using its insn method for typesafety and clarity.
8574 (empty_delay_slot): Strengthen param "insn" from rtx to
8576 (set_extends): Likewise.
8577 (sparc_check_64): Likewise.
8578 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8579 for locals "seq", "last_insn".
8580 (combine_bnp): Likewise for param "insn".
8581 (xstormy16_reorg): Likewise for local "insn".
8582 * config/v850/v850.c (substitute_ep_register): Likewise for params
8583 "first_insn", "last_insn" and local "insn".
8584 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8585 elements of "regs" array, and local "insn".
8586 * except.c (emit_note_eh_region_end): Likewise for param "insn".
8587 * final.c (final_sequence): Strengthen this global from rtx to
8589 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8591 (final_scan_insn): Update assignment to "final_sequence" to be
8592 from "seq", the cast version of "body", for type-safety.
8593 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8594 "insns" from rtx to rtx_insn *.
8595 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8596 * genattr.c (main): When writing out generated insn-attr.h,
8597 strengthen params 1 and 3 of eligible_for_delay,
8598 eligible_for_annul_true, eligible_for_annul_false from rtx to
8600 * genattrtab.c (write_eligible_delay): Likewise when writing out
8601 generated insn-attrtab.c; also local "insn" the generated
8603 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8605 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8606 "start_label" from rtx to rtx_insn *.
8607 * ira.c (decrease_live_ranges_number): Likewise for local "p".
8608 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8609 "insns" and local "insn".
8610 (validate_equiv_mem): Likewise for param "start" and local "insn".
8611 (memref_used_between_p): Likewise for params "start", "end" and
8613 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8615 * loop-doloop.c (doloop_optimize): Within region guarded by
8616 INSN_P (doloop_pat), introduce a new local rtx_insn *
8617 "doloop_insn" via a checked cast, and use it for typesafety,
8618 eventually writing the value back into doloop_pat.
8619 * output.h (final_sequence): Strengthen this global from rtx to
8621 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8622 reintroducing "insn" as an rtx_insn * via a checked cast.
8623 Strengthen param "attempt" and local "new_insn"from rtx to
8625 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8627 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8628 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8629 "p" in favor of more tightly-scoped replacements, sometimes rtx
8630 and sometimes rtx_insn *, as appropriate.
8631 (delete_output_reload): Eliminate top-level rtx "i1", splitting
8632 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8633 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
8634 local "trial" from rtx to rtx_insn *.
8635 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8636 rtx to rtx_insn *. Strenghten local "pat" from rtx to
8637 rtx_sequence * and use methods for clarity and typesafety.
8638 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8639 rtx to rtx_insn *. Strenghten local "li" from rtx to
8640 rtx_insn_list * and use its methods for clarity and typesafety.
8641 (steal_delay_list_from_target): Strengthen param "insn" from rtx
8643 (steal_delay_list_from_fallthrough): Likewise.
8644 (try_merge_delay_insns): Likewise for param "thread" and locals
8645 "trial", "next_trial", "delay_insn".
8646 (redundant_insn): Likewise for param "target" and local "trial".
8647 (own_thread_p): Likewise for param "thread" and locals
8648 "active_insn", "insn".
8649 (get_label_before): Likewise for param "insn".
8650 (fill_simple_delay_slots): Likewise for local "new_label"; use
8651 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8652 (label_before_next_insn): Strengthen return type and local "insn"
8653 from rtx to rtx_insn *.
8654 (relax_delay_slots): Likewise for locals "other", "tmp".
8655 (make_return_insns): Likewise for param "first" and locals "insn",
8656 "jump_insn", "prev". Move declaration of "pat" to its assignment
8657 and strengthen from rtx to rtx_sequence *. Use its methods for
8658 clarity and typesafety.
8659 * rtlanal.c (no_labels_between_p): Strengthen params from
8660 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
8662 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8663 from const_rtx to const rtx_insn *.
8664 (reg_set_between_p): Rename param "from_insn" to
8665 "uncast_from_insn", and reintroduce "from_insn" as a
8666 const rtx_insn * via a checked cast.
8667 (modified_between_p): Likewise for param "start" as "uncast_start".
8668 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8669 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8670 "tmp", head" from rtx to rtx_insn *.
8671 (recompute_rev_top_order): Likewise for local "insn".
8672 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8673 * store-motion.c (build_store_vectors): Likewise for local "insn".
8674 Strengthen local "st" from rtx to rtx_insn_list * and use methods
8675 for clarity and typesafety.
8676 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8678 (computation_cost): Likewise for local "seq".
8679 (get_address_cost): Likewise.
8681 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8683 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8685 (label_is_jump_target_p): Likewise for second param.
8687 * rtlanal.c (tablejump_p): Likewise for param "insn".
8688 (label_is_jump_target_p): Likewise for param "jump_insn".
8690 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8692 * rtl.h (find_first_parameter_load): Strengthen return type and
8693 both params from rtx to rtx_insn *.
8694 * rtlanal.c (find_first_parameter_load): Strengthen return type,
8695 both params and locals "before", "first_set" from rtx to
8696 rtx_insn *. Remove now-redundant cast.
8697 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8699 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8701 * rtl.h (find_last_value): Delete.
8702 * rtlanal.c (find_last_value): Delete.
8704 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8706 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8707 from rtx to rtx_insn *.
8708 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8709 rtx "note" with new local rtx_insn * "new_head" when calculating
8710 head insn of new basic block.
8711 * combine.c (combine_split_insns): Strengthen return type and local
8712 "ret" from rtx to rtx_insn *.
8713 (likely_spilled_retval_p): Likewise for locals "use" and "p".
8714 (try_combine): Eliminate local "m_split", splitting into new
8715 locals "m_split_insn" and "m_split_pat".
8716 (find_split_point): Strengthen local "seq" from rtx into
8718 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8719 locals "label", "branch".
8720 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8722 (define_expand "umulsi3_highpart"): Likewise for local "insn".
8723 * dse.c (note_add_store_info): Likewise for fields "first",
8725 (note_add_store): Likewise for local "insn".
8726 (emit_inc_dec_insn_before): Likewise for locals "insn",
8728 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8729 (replace_read): Likewise for locals "insns", "this_insn".
8730 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8731 (notice_eh_throw): Likewise for param "insn".
8732 (before_next_cfi_note): Likewise for return type, param, and local
8734 (connect_traces): Likewise for local "note".
8735 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8736 (verify_rtl_sharing): Likewise.
8737 (unshare_all_rtl_in_chain): Likewise for param "insn".
8738 (get_first_nonnote_insn): Likewise for local "insn".
8739 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
8740 "seq" and use its methods to clarify things.
8741 (next_insn): Strengthen return type from rtx to rtx_insn *.
8742 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8743 local rtx_insn * using a checked cast, dropping a checked cast
8744 made redundant by this change. Use a cast to and method of
8745 rtx_sequence to clarify the code.
8746 (previous_insn): Rename param "insn" to "uncast_insn" and
8747 reintroduce "insn" as a local rtx_insn * using a checked cast,
8748 dropping a checked cast made redundant by this change. Use a cast
8749 to and method of rtx_sequence to clarify the code.
8750 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8751 reintroduce "insn" as a local rtx_insn * using a checked cast,
8752 dropping a checked cast made redundant by this change.
8753 (next_nonnote_insn_bb): Likewise.
8754 (prev_nonnote_insn): Likewise.
8755 (prev_nonnote_insn_bb): Likewise.
8756 (next_nondebug_insn): Likewise.
8757 (prev_nondebug_insn): Likewise.
8758 (next_nonnote_nondebug_insn): Likewise.
8759 (prev_nonnote_nondebug_insn): Likewise.
8760 (next_real_insn): Likewise.
8761 (prev_real_insn): Likewise.
8762 (next_active_insn): Likewise.
8763 (prev_active_insn): Likewise.
8764 (next_cc0_user): Likewise. Use rtx_sequence and a method for
8766 (prev_cc0_setter): Likewise.
8767 (try_split): Rename param "trial" to "uncast_trial" and
8768 reintroduce "insn" as a local rtx_insn * using a checked cast,
8769 dropping checked casts made redundant by this change.
8770 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8772 (remove_insn): Rename param "insn" to "uncast_insn" and
8773 reintroduce "insn" as a local rtx_insn * using a checked cast.
8774 (emit_pattern_after_setloc): Likewise for param "after", as
8776 (emit_pattern_after): Likewise. Strengthen local "prev" from
8778 (emit_pattern_before_setloc): Rename param "before" to
8779 "uncast_before" and reintroduce "before" as a local rtx_insn *
8780 using a checked cast. Strengthen locals "first", "last" from
8782 (emit_pattern_before): Likewise rename/cast param "before" to
8783 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8784 * except.c (copy_reg_eh_region_note_forward): Strengthen param
8785 "first" and local "insn" from rtx to rtx_insn *.
8786 (copy_reg_eh_region_note_backward): Likewise for param "last"
8788 * expr.c (fixup_args_size_notes): Rename param "last" to
8789 "uncast_last" and reintroduce "last" as a local rtx_insn *
8790 using a checked cast. Strengthen local "insn" from rtx to
8792 * function.c (set_insn_locations): Strengthen param "insn" from
8794 (record_insns): Likewise for param "insns" and local "tmp".
8795 (active_insn_between): Rename param "tail" to
8796 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8797 using a checked cast.
8798 (thread_prologue_and_epilogue_insns): Split out top-level local
8799 rtx "seq" into three different rtx_insn * locals. Strengthen
8800 local "prologue_seq" from rtx to rtx_insn *.
8801 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8802 from rtx to rtx_insn *.
8803 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8804 (priority): Likewise for locals "prev_first", "twin".
8805 (setup_insn_max_reg_pressure): Likewise for param "after".
8806 (sched_setup_bb_reg_pressure_info): Likewise.
8807 (no_real_insns_p): Strengthen params from const_rtx to
8809 (schedule_block): Strengthen local "next_tail" from rtx to
8811 * ifcvt.c (find_active_insn_before): Strengthen return type and
8812 param "insn" from rtx to rtx_insn *.
8813 (find_active_insn_after): Likewise.
8814 (cond_exec_process_insns): Likewise for param "start" and local "insn".
8815 (cond_exec_process_if_block): Likewise for locals "then_start",
8816 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8817 (noce_process_if_block): Likewise for local "jump".
8818 (merge_if_block): Likewise for two locals named "end".
8819 (cond_exec_find_if_block): Likewise for local "last_insn".
8820 * jump.c (delete_related_insns): Rename param "insn" to
8821 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8822 checked cast. Strengthen local "p" from rtx to rtx_insn *.
8823 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8825 (split_reg): Likewise.
8826 * lra.c (lra_process_new_insns): Likewise.
8827 * modulo-sched.c (permute_partial_schedule): Strengthen param
8828 "last" from rtx to rtx_insn *.
8829 * optabs.c (add_equal_note): Likewise for param "insns" and local
8831 (expand_binop_directly): Add checked casts to rtx_insn * within
8832 NEXT_INSN (pat) uses.
8833 (expand_unop_direct): Likewise.
8834 (maybe_emit_unop_insn): Likewise.
8835 * recog.c (peep2_attempt): Strengthen locals "last",
8836 "before_try", "x" from rtx to rtx_insn *.
8837 * reorg.c (optimize_skip): Strengthen return type and local
8838 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
8839 and locals "trial", "next_trial" from rtx to rtx_insn *.
8840 * resource.c (next_insn_no_annul): Strengthen return type and
8841 param "insn" from rtx to rtx_insn *. Use a cast to and method of
8842 rtx_sequence to clarify the code.
8843 (mark_referenced_resources): Add a checked cast to rtx_insn *
8844 within PREV_INSN (x).
8845 (find_dead_or_set_registers): Strengthen return type, param
8846 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8847 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
8849 (mark_target_live_regs): Strengthen params "insns" and "target",
8850 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8851 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
8853 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8854 from rtx to rtx_insn *.
8855 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8856 from rtx to rtx_insn *.
8857 (copy_reg_eh_region_note_backward): Likewise.
8858 (unshare_all_rtl_in_chain): Likewise for sole param.
8859 (dump_rtl_slim): Strengthen second and third params from const_rtx
8860 to const rtx_insn *.
8861 * sched-deps.c (sched_free_deps): Strengthen params "head" and
8862 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8863 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8864 "next_tail" from rtx to rtx_insn *.
8865 (begin_move_insn): Likewise for local "next".
8866 * sched-int.h (sched_free_deps): Likewise for first and second
8868 (no_real_insns_p): Strengthen both params from const_rtx to
8870 (sched_setup_bb_reg_pressure_info): Strengthen second params from
8872 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8874 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8875 and locals "insn", "tail" from const_rtx to const rtx_insn *.
8876 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8878 (debug_rtl_slim): Strengthen params "first" and "last" from
8879 const_rtx to const rtx_insn *.
8880 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8881 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8882 (convert_to_simple_return): Likewise for param "returnjump".
8883 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8885 (convert_to_simple_return): Likewise for param "returnjump".
8886 * valtrack.c (propagate_for_debug): Likewise for params
8888 * valtrack.h (propagate_for_debug): Likewise for second param.
8890 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8892 * output.h (insn_current_reference_address): Strengthen param
8893 from rtx to rtx_insn *.
8894 * final.c (insn_current_reference_address): Likewise.
8896 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8898 * basic-block.h (inside_basic_block_p): Strengthen param from
8899 const_rtx to const rtx_insn *.
8900 * cfgbuild.c (inside_basic_block_p): Likewise.
8902 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8904 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8906 (get_trace_info): Likewise for param "insn".
8907 (save_point_p): Likewise.
8908 (maybe_record_trace_start): Likewise for both params.
8909 (maybe_record_trace_start_abnormal): Likewise.
8910 (create_trace_edges): Likewise for sole param and for three of the
8912 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8913 to rtx_insn *, and update a call to pat->element to pat->insn.
8915 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8917 * function.h (struct expr_status): Convert field "x_forced_labels"
8918 from rtx_expr_list * to rtx_insn_list *.
8920 * cfgbuild.c (make_edges): Convert local "x" from an
8921 rtx_expr_list * to an rtx_insn_list *, replacing use of
8922 "element" method with "insn" method.
8923 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8924 * except.c (sjlj_emit_dispatch_table): Replace use of
8925 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8927 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8928 rtx_expr_list * to an rtx_insn_list *, replacing use of
8929 "element" method with "insn" method.
8930 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8931 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8932 rtx_insn *, adding a checked cast. Replace use of
8933 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8935 (expand_label): Likewise for local "label_r".
8937 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8939 * function.h (struct rtl_data): Convert field
8940 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8942 * rtl.h (remove_node_from_insn_list): New prototype.
8944 * builtins.c (expand_builtin): When prepending to
8945 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8947 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8948 to rtx_insn_list *, and use its "insn" method rather than
8950 * cfgrtl.c (delete_insn): Use new function
8951 remove_node_from_insn_list rather than
8952 remove_node_from_expr_list.
8953 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8954 to rtx_insn_list *, and use its "insn" method rather than
8956 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8957 * reload1.c (set_initial_label_offsets): Likewise for local "x".
8958 * rtlanal.c (remove_node_from_insn_list): New function, adapted
8959 from remove_node_from_expr_list.
8960 * stmt.c (expand_label): When prepending to
8961 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8964 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8966 * function.h (struct rtl_data): Strengthen fields "x_return_label"
8967 and "x_naked_return_label" from rtx to rtx_code_label *.
8969 2014-08-28 David Malcolm <dmalcolm@redhat.com>
8971 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8972 (SET_NEXT_INSN): Likewise.
8973 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8975 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8976 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
8977 to split out the SEQUENCE from local "bundle", strengthening the
8978 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8979 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8980 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8981 and the type of the elements of the "slot" array from rtx to
8983 (reorg_split_calls): Likewise for locals "insn" and "next", and
8984 the type of the elements of the "slot" array.
8986 * config/frv/frv.c (frv_nops): Likewise for the elements of this
8988 (frv_function_prologue): Likewise for locals "insn", "next",
8990 (frv_register_nop): Introduce a local "nop_insn" to be the
8991 rtx_insn * containing rtx "nop".
8993 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8994 used as an insn and sometimes as a pattern, so rename it to
8995 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8996 using it where dealing with the core insn.
8998 * config/picochip/picochip.c (reorder_var_tracking_notes):
8999 Strengthen locals "insn", "next", "last_insn", "queue",
9000 "next_queue", "prev" from rtx to rtx_insn *.
9002 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
9003 the second param is an rtx_insn ** rather than an rtx **.
9004 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
9005 from rtx to rtx_sequence *, and introduce local named "sequence",
9006 using methods of rtx_sequence to clarify the code.
9007 (remove_insn): Introduce local rtx_sequence * named "sequence" and
9009 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
9010 Rename param "after" to "uncast_after", reintroducing "after" as a
9011 local rtx_insn * with a checked cast.
9012 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
9013 reintroducing "after" as a local rtx_insn * with a checked cast.
9014 Strengthen local "last" from rtx to rtx_insn * and remove the
9015 now-redundant checked casts.
9016 (copy_delay_slot_insn): Strengthen return type and param from rtx
9019 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
9020 "last" from rtx to rtx_insn *.
9022 2014-08-28 David Malcolm <dmalcolm@redhat.com>
9024 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
9025 param from rtx to rtx_insn *.
9027 * emit-rtl.c (copy_delay_slot_insn): Likewise.
9029 * reorg.c (skip_consecutive_labels): Strengthen return type, param
9030 and local "insn" from rtx to rtx_insn *.
9031 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
9032 (unfilled_slots_next): Likewise.
9033 (function_return_label): Strengthen from rtx to rtx_code_label *.
9034 (function_simple_return_label): Likewise.
9035 (first_active_target_insn): Strengthen return type and param from
9037 (find_end_label): Strengthen return type from rtx to
9038 rtx_code_label *; strengthen locals as appropriate.
9039 (emit_delay_sequence): Strengthen return type, param "insn" and
9040 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
9041 and local "li" from rtx to rtx_insn_list *, using methods of
9042 rtx_insn_list for clarity and typesafety.
9043 (add_to_delay_list): Strengthen return type and param "insn" from
9044 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
9045 rtx_insn_list * and use methods of rtx_insn_list.
9046 (delete_from_delay_slot): Strengthen return type, param "insn",
9047 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
9048 Strengthen local "seq" from rtx to rtx_sequence *, and local
9049 "delay_list" from rtx to rtx_insn_list *, using methods of
9050 rtx_sequence for clarity and type-safety.
9051 (delete_scheduled_jump): Add checked cast when invoking
9052 delete_from_delay_slot. Strengthen local "trial" from rtx to
9054 (optimize_skip): Strengthen return type and local "delay_list"
9055 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
9057 (steal_delay_list_from_target): Strengthen return type, param
9058 "delay_list" and local "new_delay_list" from rtx to
9059 rtx_insn_list *. Strengthen param "seq" from rtx to
9060 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
9062 Split out local "temp" into multiple more-tightly scoped locals:
9063 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
9064 of rtx_insn_list and rtx_sequence for clarity and typesafety.
9065 Strengthen locals named "trial" from rtx to rtx_insn *.
9066 (steal_delay_list_from_fallthrough): Strengthen return type and
9067 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
9068 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
9069 Strengthen local "trial" from rtx to rtx_insn *.
9070 (try_merge_delay_insns): Strength local "merged_insns" from rtx
9071 to rtx_insn_list * and use its methods. Strengthen local "pat"
9072 from rtx to rtx_sequence * and use its methods. Strengthen locals
9073 "dtrial" and "new_rtx" from rtx to rtx_insn *.
9074 (get_label_before): Strengthen return type and local "label" from
9076 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
9077 "next_trial", "next", prev". Strengthen local "delay_list" from
9078 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
9080 (follow_jumps): Strengthen return type, param "label" and locals
9081 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
9082 (fill_slots_from_thread): Strengthen return type, param
9083 "delay_list" from rtx to rtx_insn_list *. Strengthen params
9084 "insn", "thread", "opposite_thread" and locals "new_thread",
9085 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
9086 "sequence" from a checked cast to rtx_sequence so that we can call
9087 steal_delay_list_from_target and steal_delay_list_from_fallthrough
9088 with an rtx_sequence *.
9089 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
9090 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
9091 Strengthen local "delay_list" from rtx to rtx_insn_list *.
9092 (relax_delay_slots): Strengthen param "first" and locals "insn",
9093 "next", "trial", "delay_insn", "target_label" from rtx to
9094 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
9095 Introduce a local "trial_seq" for PATTERN (trial) of type
9096 rtx_sequence *, in both cases using methods of rtx_sequence.
9097 (dbr_schedule): Strengthen param "first" and locals "insn",
9098 "next", "epilogue_insn" from rtx to rtx_insn *.
9100 2014-08-28 Richard Biener <rguenther@suse.de>
9102 PR tree-optimization/62283
9103 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9104 Do not peel loops for alignment where the vector loop likely
9105 doesn't run at least VF times.
9107 2014-08-28 Bin Cheng <bin.cheng@arm.com>
9109 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
9110 important_candidates. Consider all important candidates if
9111 IVS doesn't give any result. Remove check on ivs->upto.
9112 (try_add_cand_for): Call iv_ca_add_use only once.
9114 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9115 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9116 Anna Tikhonova <anna.tikhonova@intel.com>
9117 Ilya Tocar <ilya.tocar@intel.com>
9118 Andrey Turetskiy <andrey.turetskiy@intel.com>
9119 Ilya Verbin <ilya.verbin@intel.com>
9120 Kirill Yukhin <kirill.yukhin@intel.com>
9121 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9123 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
9124 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
9126 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
9127 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9128 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9129 (define_insn "*mul<mode>3"): Add EVEX version.
9131 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9132 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9133 Anna Tikhonova <anna.tikhonova@intel.com>
9134 Ilya Tocar <ilya.tocar@intel.com>
9135 Andrey Turetskiy <andrey.turetskiy@intel.com>
9136 Ilya Verbin <ilya.verbin@intel.com>
9137 Kirill Yukhin <kirill.yukhin@intel.com>
9138 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9140 * config/i386/sse.md
9141 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
9142 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
9143 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
9144 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
9145 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
9146 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
9147 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
9148 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
9149 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
9150 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
9151 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
9152 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
9153 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
9154 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
9155 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
9156 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
9158 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9159 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9160 Anna Tikhonova <anna.tikhonova@intel.com>
9161 Ilya Tocar <ilya.tocar@intel.com>
9162 Andrey Turetskiy <andrey.turetskiy@intel.com>
9163 Ilya Verbin <ilya.verbin@intel.com>
9164 Kirill Yukhin <kirill.yukhin@intel.com>
9165 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9167 * config/i386/sse.md
9168 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
9169 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
9170 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
9172 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9173 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9174 Anna Tikhonova <anna.tikhonova@intel.com>
9175 Ilya Tocar <ilya.tocar@intel.com>
9176 Andrey Turetskiy <andrey.turetskiy@intel.com>
9177 Ilya Verbin <ilya.verbin@intel.com>
9178 Kirill Yukhin <kirill.yukhin@intel.com>
9179 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9181 * config/i386/sse.md
9182 (define_mode_iterator VI128_256): New.
9183 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
9185 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
9186 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9187 Anna Tikhonova <anna.tikhonova@intel.com>
9188 Ilya Tocar <ilya.tocar@intel.com>
9189 Andrey Turetskiy <andrey.turetskiy@intel.com>
9190 Ilya Verbin <ilya.verbin@intel.com>
9191 Kirill Yukhin <kirill.yukhin@intel.com>
9192 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9194 * config/i386/sse.md
9195 (define_mode_iterator VI8_256_512): New.
9196 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
9198 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9199 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
9201 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
9203 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9205 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
9206 pointer to the cumulative reloc value and return the value for
9208 (compute_reloc_for_rtx): Take a const_rtx. Call
9209 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
9210 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
9211 for_each_rtx for the CONST case.
9213 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9215 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
9216 (mark_constants_in_pattern): ...this new function to iterate over
9218 (mark_constants): Update accordingly.
9220 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9222 * varasm.c: Include rtl-iter.h.
9223 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
9224 Remove the pointer to the cumulative hashval_t and just return
9225 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
9226 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9227 Accumulate the hashval_ts here instead of const_rtx_hash_1.
9229 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9231 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
9232 Give real type of data parameter. Remove return value.
9233 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
9234 to iterate over subrtxes.
9236 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9238 * var-tracking.c (use_narrower_mode_test): Turn from being a
9239 for_each_rtx callback to being a function that examines each
9241 (adjust_mems): Update accordingly.
9243 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9245 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
9246 callback to being a function that examines each subrtx itself.
9247 Remove handling of null rtxes.
9248 (add_uses): Update accordingly.
9250 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9252 * var-tracking.c: Include rtl-iter.h.
9253 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
9254 to being a function that examines each subrtx itself.
9255 (use_type): Update accordingly.
9257 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9259 * store-motion.c: Include rtl-iter.h.
9260 (extract_mentioned_regs_1): Delete.
9261 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
9262 for_each_rtx to iterate over subrtxes.
9264 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9266 * sel-sched.c: Include rtl-iter.h
9267 (count_occurrences_1): Delete.
9268 (count_occurrences_equiv): Turn rtxes into const_rtxes.
9269 Use FOR_EACH_SUBRTX rather than for_each_rtx.
9271 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9273 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
9274 * rtlanal.c (tls_referenced_p_1): Delete.
9275 (tls_referenced_p): Take a const_rtx rather than an rtx.
9276 Use FOR_EACH_SUBRTX rather than for_each_rtx.
9278 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9280 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
9281 (for_each_inc_dec): Take an rtx rather than an rtx *.
9282 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
9283 (cselib_record_sets): Likewise.
9284 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
9285 (check_for_inc_dec): Likewise.
9286 * rtlanal.c (for_each_inc_dec_ops): Delete.
9287 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
9288 rather than a pointer to the memory address. Replace
9289 for_each_inc_dec_ops argument with separate function and data
9290 arguments. Abort on non-autoinc addresses.
9291 (for_each_inc_dec_find_mem): Delete.
9292 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
9293 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
9295 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9297 * rtl.h (find_all_hard_regs): Declare.
9298 * rtlanal.c (find_all_hard_regs): New function.
9299 (record_hard_reg_uses_1): Delete.
9300 (record_hard_reg_uses): Use find_all_hard_regs.
9302 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9304 * rtl.h (replace_label_data): Delete.
9305 (replace_label): Take the old label, new label and update-nuses flag
9306 as direct arguments. Return void.
9307 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
9308 * rtlanal.c (replace_label): Update interface as above. Handle
9309 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
9310 iterator. Use FOR_EACH_SUBRTX_PTR.
9312 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9314 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
9315 with const_rtx parameters.
9316 * varasm.c (get_pool_constant): Likewise.
9317 * rtlanal.c (rtx_referenced_p_1): Delete.
9318 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9319 Assert that the rtx we're looking for is nonnull. Allow searches
9320 for constant pool SYMBOL_REFs.
9322 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9324 * reload1.c: Include rtl-iter.h.
9325 (note_reg_elim_costly): Turn from being a for_each_rtx callback
9326 to being a function that examines each subrtx itself.
9327 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
9329 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9331 * regcprop.c (cprop_find_used_regs_1): Delete.
9332 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9334 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9336 * regcprop.c: Include rtl-iter.h.
9337 (kill_value): Take a const_rtx.
9338 (kill_autoinc_value): Turn from being a for_each_rtx callback
9339 to being a function that examines each subrtx itself.
9340 (copyprop_hardreg_forward_1): Update accordingly.
9342 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9344 * reg-stack.c: Include rtl-iter.h.
9345 (subst_stack_regs_in_debug_insn): Delete.
9346 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
9347 instead of for_each_rtx.
9349 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9351 * lower-subreg.c (find_decomposable_subregs): Turn from being
9352 a for_each_rtx callback to being a function that examines each
9353 subrtx itself. Remove handling of null rtxes.
9354 (decompose_multiword_subregs): Update accordingly.
9356 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9358 * lower-subreg.c (adjust_decomposed_uses): Delete.
9359 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
9360 Remove handling of null rtxes.
9362 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9364 * lower-subreg.c: Include rtl-iter.h.
9365 (resolve_subreg_use): Turn from being a for_each_rtx callback
9366 to being a function that examines each subrtx itself. Remove
9367 handling of null rtxes.
9368 (resolve_reg_notes, resolve_simple_move): Update accordingly.
9369 (decompose_multiword_subregs): Likewise.
9371 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9373 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
9374 to being a function that examines each subrtx itself.
9375 (simplify_using_condition, simplify_using_initial_values): Update
9378 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9380 * loop-iv.c: Include rtl-iter.h.
9381 (find_single_def_src): New function.
9382 (replace_single_def_regs): Turn from being a for_each_rtx callback
9383 to being a function that examines each subrtx itself.
9384 (replace_in_expr, simplify_using_initial_values): Update accordingly.
9386 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9388 * jump.c (eh_returnjump_p_1): Delete.
9389 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9390 Remove handling of null rtxes.
9392 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9394 * jump.c: Include rtl-iter.h.
9395 (returnjump_p_1): Delete.
9396 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9397 Remove handling of null rtxes.
9399 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9401 * ira.c: Include rtl-iter.h.
9402 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
9403 to being a function that examines each subrtx itself. Remove
9404 handling of null rtxes.
9405 (update_equiv_regs): Update call accordingly.
9407 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9409 * fwprop.c: Include rtl-iter.h.
9410 (varying_mem_p): Turn from being a for_each_rtx callback to being
9411 a function that examines each subrtx itself.
9412 (propagate_rtx): Update accordingly.
9414 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9416 * function.c: Include rtl-iter.h
9417 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9418 callback to being a function that examines each subrtx itself.
9419 Return the changed flag.
9420 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9421 (instantiate_virtual_regs): Update calls accordingly.
9423 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9425 * final.c: Include rtl-iter.h.
9426 (mark_symbol_ref_as_used): Delete.
9427 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9430 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9432 * emit-rtl.c: Include rtl-iter.h.
9433 (find_auto_inc): Turn from being a for_each_rtx callback to being
9434 a function that examines each subrtx itself. Assume the first operand
9435 to an RTX_AUTOINC is the automodified register.
9436 (try_split): Update call accordingly.
9438 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9440 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9441 Return a bool, inverting the result so that 0/false means "not ok".
9442 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9443 subrtxes of a CONST.
9444 (mem_loc_descriptor, add_const_value_attribute)
9445 (resolve_addr_in_expr): Update calls accordingly.
9447 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9449 * dwarf2out.c: Include rtl-iter.h.
9450 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9451 Remove unused data parameter. Return a bool, inverting the result
9452 so that 0/false means "not ok".
9453 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
9454 instead of for_each_rtx.
9456 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9458 * dse.c: Include rtl-iter.h.
9459 (check_mem_read_rtx): Change void * parameter to real type.
9460 Remove return value.
9461 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
9462 for_each_rtx. Don't handle null rtxes.
9464 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9466 * df-problems.c: Include rtl-iter.h.
9467 (find_memory): Turn from being a for_each_rtx callback to being
9468 a function that examines each subrtx itself. Continue to look for
9469 volatile references even after a nonvolatile one has been found.
9470 (can_move_insns_across): Update calls accordingly.
9472 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9474 * ddg.c (walk_mems_2, walk_mems_1): Delete.
9475 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9476 to iterate over subrtxes. Return a bool rather than an int.
9478 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9480 * ddg.c: Include rtl-iter.h.
9481 (mark_mem_use_1): Rename to...
9482 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
9483 instead of for_each_rtx.
9484 (mem_read_insn_p): Update accordingly.
9486 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9488 * cse.c (change_cc_mode_args): Delete.
9489 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9490 a function that examines each subrtx itself. Take the fields of
9491 change_cc_mode_args as argument and return void.
9492 (cse_change_cc_mode_insn): Update calls accordingly.
9494 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9496 * cse.c (is_dead_reg): Change argument to const_rtx.
9497 (dead_debug_insn_data): Delete.
9498 (is_dead_debug_insn): Expand commentary. Turn from being a
9499 for_each_rtx callback to being a function that examines
9500 each subrtx itself. Take the fields of dead_debug_insn_data
9502 (delete_trivially_dead_insns): Update call accordingly.
9504 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9506 * cse.c (check_for_label_ref): Move earlier in file. Turn from
9507 being a for_each_rtx callback to being a function that examines
9509 (cse_extended_basic_block): Update call accordingly.
9511 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9513 * cse.c (check_dependence_data): Delete.
9514 (check_dependence): Change from being a for_each_rtx callback to being
9515 a function that examines all subrtxes itself. Don't handle null rtxes.
9516 (invalidate): Update call accordingly.
9518 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9520 * cse.c: Include rtl-iter.h.
9521 (approx_reg_cost_1): Delete.
9522 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9523 Don't handle null rtxes.
9525 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9527 * cfgcleanup.c: Include rtl-iter.h.
9528 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9529 to being a function that examines each subrtx itself.
9530 (thread_jump): Update accordingly.
9532 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9534 * combine-stack-adj.c: Include rtl-iter.h.
9535 (record_stack_refs_data): Delete.
9536 (record_stack_refs): Turn from being a for_each_rtx callback
9537 to being a function that examines each subrtx itself.
9538 Take a pointer to the reflist. Invert sense of return value
9539 so that true means success and false means failure. Don't
9541 (combine_stack_adjustments_for_block): Update accordingly.
9543 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9545 * combine.c (record_truncated_value): Turn from being a for_each_rtx
9546 callback to a function that takes an rtx and returns a bool
9547 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9550 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9552 * combine.c: Include rtl-iter.h.
9553 (unmentioned_reg_p_1): Delete.
9554 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9555 Don't handle null rtxes.
9557 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9559 * calls.c: Include rtl-iter.h.
9560 (internal_arg_pointer_based_exp_1): Delete.
9561 (internal_arg_pointer_based_exp): Take a const_rtx.
9562 Use FOR_EACH_SUBRTX to iterate over subrtxes.
9564 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9566 * caller-save.c: Include rtl-iter.h.
9567 (add_used_regs_1): Delete.
9568 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9569 to iterate over subrtxes. Assert that any remaining pseudos
9572 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9574 * bt-load.c: Include rtl-iter.h.
9575 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9576 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
9577 to iterate over subrtxes.
9578 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9579 find_btr_use rather than btr_referenced_p.
9581 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9583 * alias.c: Include rtl-iter.h.
9584 (refs_newer_value_cb): Delete.
9585 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9587 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
9589 * rtl-iter.h: New file.
9590 * rtlanal.c: Include it.
9591 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9592 (generic_subrtx_iterator <T>::add_single_to_queue)
9593 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9594 (generic_subrtx_iterator <T>::free_array): New functions.
9595 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9596 (generic_subrtx_iterator <const_rtx_accessor>)
9597 (generic_subrtx_iterator <rtx_var_accessor>
9598 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9599 (setup_reg_subrtx_bounds): New function.
9600 (init_rtlanal): Call it.
9602 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
9605 * config/sh/sh.md (ashlsi3): Handle negative shift count for
9607 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9609 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
9611 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9613 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9615 * rtl.h (JUMP_LABEL_AS_INSN): New.
9617 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9619 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9621 (alloc_EXPR_LIST): Strengthen return type from rtx to
9623 (remove_free_EXPR_LIST_node): Likewise for param.
9624 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9625 from rtx to rtx_expr_list *.
9626 * sched-int.h (struct deps_desc): Strengthen fields
9627 "pending_read_mems" and "pending_write_mems" from rtx to
9630 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9631 rtx to rtx_expr_list *.
9632 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9633 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9635 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
9636 from rtx to rtx_expr_list *.
9637 * loop-iv.c (simplify_using_initial_values): Strengthen local
9638 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9639 "pnote_next" from rtx * to rtx_expr_list **.
9640 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
9641 param "exprp" from rtx * to rtx_expr_list **.
9642 (add_insn_mem_dependence): Strengthen local "mem_list" from
9643 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
9645 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9646 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
9647 param "old_mems_p" from rtx * to rtx_expr_list **.
9648 * var-tracking.c (struct adjust_mem_data): Strengthen field
9649 "side_effects" from rtx to rtx_expr_list *.
9650 (adjust_insn): Replace NULL_RTX with NULL when assigning to
9652 (prepare_call_arguments): Likewise.
9654 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9656 * function.h (struct rtl_data): Strengthen field
9657 "x_stack_slot_list" from rtx to rtx_expr_list *.
9659 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9660 when assigning to stack_slot_list.
9662 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9664 * function.h (struct rtl_data): Strengthen field
9665 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9666 * rtl.h (remove_node_from_expr_list): Strengthen second param from
9667 rtx * to rtx_expr_list **.
9669 * cfgbuild.c (make_edges): In loop over
9670 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9671 rtx_expr_list *, and use methods of the latter class to clarify
9673 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9674 rtx_expr_list *, and use methods of the latter class to clarify
9676 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9677 * reload1.c (set_initial_label_offsets): Likewise for local "x".
9678 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9679 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
9680 to rtx_expr_list *. Use methods of the latter class to clarify
9683 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9685 * function.h (struct expr_status): Strengthen field
9686 "x_forced_labels" from rtx to rtx_expr_list *.
9688 * cfgbuild.c (make_edges): Split local "x" into two locals,
9689 strengthening one from rtx to rtx_expr_list *, and using methods
9691 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9692 loop over forced_labels, introduce strengthen it from rtx to
9693 rtx_expr_list *, using methods to clarify the code.
9694 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9695 to rtx_expr_list *, using methods of said class to clarify the
9697 * reload1.c (set_initial_label_offsets): Split local "x" into two
9698 per-loop variables, strengthening the first from rtx to
9699 rtx_expr_list * and using methods.
9701 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9703 * coretypes.h (class rtx_expr_list): Add forward declaration.
9704 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9705 * gengenrtl.c (special_rtx): Add EXPR_LIST.
9706 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9707 invariant: GET_CODE (X) == EXPR_LIST.
9708 (is_a_helper <rtx_expr_list *>::test): New.
9709 (rtx_expr_list::next): New.
9710 (rtx_expr_list::element): New.
9711 (gen_rtx_EXPR_LIST): New.
9713 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9715 * varasm.c (mark_constants): Convert a GET_CODE check into a
9716 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9717 Use methods of rtx_sequence to clarify the code.
9719 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9721 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9722 local "seq" via a checked cast, and use methods of rtx_sequence
9723 to simplify the code.
9725 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9727 * resource.c (mark_referenced_resources): Strengthen local
9728 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9729 using methods of rtx_sequence to clarify the code.
9730 (find_dead_or_set_registers): Within the switch statement, convert
9731 a GET_CODE check to a dyn_cast, introducing local "seq". Within
9732 the JUMP_P handling, introduce another local "seq", adding a
9733 checked cast to rtx_sequence *. In both cases, use methods of
9734 rtx_sequence to clarify the code.
9735 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9736 via a checked cast, and use methods of rtx_sequence to simplify
9739 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9741 * reorg.c (redundant_insn): In two places in the function, replace
9742 a check of GET_CODE with a dyn_cast, introducing local "seq", and
9743 usings methods of rtx_sequence to clarify the code.
9745 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9747 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9748 local "seq" with a checked cast, and use methods of rtx_sequence
9749 to clarify the code.
9751 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9753 * function.c (contains): Introduce local "seq" for PATTERN (insn),
9754 with a checked cast, in the region for where we know it's a
9755 SEQUENCE. Use methods of rtx_sequence.
9757 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9759 * final.c (get_attr_length_1): Replace GET_CODE check with a
9760 dyn_cast, introducing local "seq" and the use of methods of
9762 (shorten_branches): Likewise, introducing local "body_seq".
9763 Strengthen local "inner_insn" from rtx to rtx_insn *.
9764 (reemit_insn_block_notes): Replace GET_CODE check with a
9765 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9766 Use methods of rtx_sequence.
9767 (final_scan_insn): Likewise, introducing local "seq" for when
9768 "body" is known to be a SEQUENCE, using its methods.
9770 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9772 * except.c (can_throw_external): Strengthen local "seq" from rtx
9773 to rtx_sequence *. Use methods of rtx_sequence.
9774 (insn_nothrow_p): Likewise.
9776 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9778 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9779 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9780 Use methods of rtx_sequence.
9781 (scan_trace): Likewise for local "pat".
9783 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9785 * coretypes.h (class rtx_sequence): Add forward declaration.
9786 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9787 invariant: GET_CODE (X) == SEQUENCE.
9788 (is_a_helper <rtx_sequence *>::test): New.
9789 (is_a_helper <const rtx_sequence *>::test): New.
9790 (rtx_sequence::len): New.
9791 (rtx_sequence::element): New.
9792 (rtx_sequence::insn): New.
9794 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9796 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9798 (alloc_INSN_LIST): Strengthen return type from rtx to
9800 (copy_INSN_LIST): Likewise for return type and param.
9801 (concat_INSN_LIST): Likewise for both params and return type.
9802 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9803 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
9804 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9805 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
9807 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9808 "implicit_sets", "control_uses", "clobbers" from rtx to
9810 (struct deps_desc): Likewise for fields "pending_read_insns",
9811 "pending_write_insns", "pending_jump_insns",
9812 "last_pending_memory_flush", "last_function_call",
9813 "last_function_call_may_noreturn", "sched_before_next_call",
9814 "sched_before_next_jump".
9815 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9816 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9818 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9819 from rtx to rtx_insn_list *.
9820 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9823 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9824 to rtx_insn_list **.
9825 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9827 (queue_insn): Likewise for local "link".
9828 (struct haifa_saved_data): Strengthen field "insn_queue" from
9829 rtx * to rtx_insn_list **.
9830 (save_backtrack_point): Update allocation of save->insn_queue to
9831 reflect the strengthening of elements from rtx to rtx_insn_list *.
9832 (queue_to_ready): Strengthen local "link" from rtx to
9833 rtx_insn_list *; use methods "next" and "insn" when traversing the
9835 (early_queue_to_ready): Likewise for locals "link", "next_link",
9837 (schedule_block): Update allocation of insn_queue to reflect the
9838 strengthening of elements from rtx to rtx_insn_list *. Strengthen
9839 local "link" from rtx to rtx_insn_list *, and use methods when
9841 (add_to_speculative_block): Strengthen locals "twins" and
9842 "next_node" from rtx to rtx_insn_list *, and use methods when
9843 working with them. Strengthen local "twin" from rtx to
9844 rtx_insn *, eliminating a checked cast.
9845 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9846 from rtx to rtx_insn_list *, and use methods when working with
9849 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9850 from rtx to rtx_insn_list *, adding a checked cast.
9851 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9853 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9854 "newlink" from rtx to rtx_insn_list *. Strengthen local
9855 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
9856 from rtx to rtx_insn *.
9857 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9858 from rtx to rtx_insn_list *. Use methods of the latter class.
9859 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9860 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9861 (remove_free_INSN_LIST_node): Strengthen return type and local
9862 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
9863 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
9864 rtx_insn_list *, using "insn" method.
9866 * sched-deps.c (add_dependence_list): Strengthen param "list"
9867 from rtx to rtx_insn_list *, and use methods when working with it.
9868 (add_dependence_list_and_free): Strengthen param "listp" from
9869 rtx * to rtx_insn_list **.
9870 (remove_from_dependence_list): Strenghten param "listp" from rtx *
9871 to rtx_insn_list **, and use methods when working with *listp.
9872 (remove_from_both_dependence_lists): Strengthen param "listp" from
9873 rtx * to rtx_insn_list **
9874 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9875 to rtx_insn_list **. Eliminate local "link", in favor of two new
9876 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9878 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9879 by introducing local "cond_deps".
9880 (remove_from_deps): Strengthen param "insn" from rtx to
9883 * sched-rgn.c (concat_insn_mem_list): Strengthen param
9884 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9885 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9886 Use methods of rtx_insn_list.
9888 * store-motion.c (struct st_expr): Strengthen fields
9889 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9890 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9892 (find_moveable_store): Split out "tmp" into multiple more-tightly
9893 scoped locals. Use methods of rtx_insn_list *.
9894 (compute_store_table): Strengthen local "tmp" from rtx to
9895 rtx_insn *. Use methods of rtx_insn_list *.
9897 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9899 * coretypes.h (class rtx_insn_list): Add forward declaration.
9900 * rtl.h (class rtx_insn_list): New subclass of rtx_def
9901 (is_a_helper <rtx_insn_list *>::test): New.
9902 (rtx_insn_list::next): New.
9903 (rtx_insn_list::insn): New.
9904 (gen_rtx_INSN_LIST): Add prototype.
9905 * emit-rtl.c (gen_rtx_INSN_LIST): New.
9906 * gengenrtl.c (special_rtx): Add INSN_LIST.
9908 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9910 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9911 "prev" from rtx to rtx_insn *.
9913 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9915 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9916 functions. Require merely an rtx for now, not an rtx_insn *.
9917 (BLOCK_FOR_INSN): Likewise.
9918 (INSN_LOCATION): Likewise.
9919 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9921 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9923 * rtl.h (PATTERN): Convert this macro into a pair of inline
9924 functions, for now, requiring const_rtx and rtx.
9926 2014-08-27 David Malcolm <dmalcolm@redhat.com>
9928 * target.def (unwind_emit): Strengthen param "insn" from rtx to
9930 (final_postscan_insn): Likewise.
9931 (adjust_cost): Likewise.
9932 (adjust_priority): Likewise.
9933 (variable_issue): Likewise.
9934 (macro_fusion_pair_p): Likewise.
9935 (dfa_post_cycle_insn): Likewise.
9936 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9937 (first_cycle_multipass_issue): Likewise.
9938 (dfa_new_cycle): Likewise.
9939 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9940 (speculate_insn): Likewise for param "insn".
9941 (gen_spec_check): Likewise for params "insn" and "label".
9942 (get_insn_spec_ds): Likewise for param "insn".
9943 (get_insn_checked_ds): Likewise.
9944 (dispatch_do): Likewise.
9945 (dispatch): Likewise.
9946 (cannot_copy_insn_p): Likewise.
9947 (invalid_within_doloop): Likewise.
9948 (legitimate_combined_insn): Likewise.
9952 * doc/tm.texi: Automatically updated to reflect changes to
9955 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9957 (schedule_block): Likewise.
9958 (sched_init): Likewise.
9959 (sched_speculate_insn): Strengthen param "insn" from rtx to
9961 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9963 * hooks.c (hook_bool_rtx_true): Rename to...
9964 hook_bool_rtx_insn_true): ...this, and strengthen first param from
9966 (hook_constcharptr_const_rtx_null): Rename to...
9967 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9968 first param from const_rtx to const rtx_insn *.
9969 (hook_bool_rtx_int_false): Rename to...
9970 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9971 param from rtx to rtx_insn *.
9972 (hook_void_rtx_int): Rename to...
9973 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9976 * hooks.h (hook_bool_rtx_true): Rename to...
9977 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9979 (hook_bool_rtx_int_false): Rename to...
9980 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9981 param from rtx to rtx_insn *.
9982 (hook_void_rtx_int): Rename to...
9983 (hook_void_rtx_insn_int): ...this, and strengthen first param from
9985 (hook_constcharptr_const_rtx_null): Rename to...
9986 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9987 first param from const_rtx to const rtx_insn *.
9989 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9990 and local "prev" from rtx to rtx_insn *.
9992 * sched-int.h (sched_speculate_insn): Strengthen first param from
9995 * sel-sched.c (create_speculation_check): Likewise for local "label".
9996 * targhooks.c (default_invalid_within_doloop): Strengthen param
9997 "insn" from const_rtx to const rtx_insn *.
9998 * targhooks.h (default_invalid_within_doloop): Strengthen param
9999 from const_rtx to const rtx_insn *.
10001 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
10002 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
10004 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
10006 (arc_invalid_within_doloop): Likewise, with const.
10008 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
10009 (arm_cannot_copy_insn_p): Likewise for param "insn".
10010 (arm_unwind_emit): Likewise.
10012 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
10015 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
10016 (c6x_variable_issue): Likewise. Removed now-redundant checked
10018 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
10020 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
10021 Likewise for param "insn".
10022 (epiphany_mode_after): Likewise.
10023 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
10024 params "insn", "dep_insn".
10025 (epiphany_mode_needed): Likewise for param "insn".
10026 (epiphany_mode_after): Likewise.
10028 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
10029 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10030 (ix86_avx_u128_mode_needed): Likewise.
10031 (ix86_i387_mode_needed): Likewise.
10032 (ix86_mode_needed): Likewise.
10033 (ix86_avx_u128_mode_after): Likewise.
10034 (ix86_mode_after): Likewise.
10035 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
10036 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
10037 (ix86_adjust_priority): Likewise for param "insn".
10038 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
10039 (do_dispatch): Likewise.
10040 (has_dispatch): Likewise.
10041 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
10043 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
10044 reflect renaming of default hook implementation from
10045 hook_constcharptr_const_rtx_null to
10046 hook_constcharptr_const_rtx_insn_null.
10047 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
10049 (ia64_variable_issue): Likewise for param "insn".
10050 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
10051 (ia64_dfa_new_cycle): Likewise.
10052 (ia64_get_insn_spec_ds): Likewise.
10053 (ia64_get_insn_checked_ds): Likewise.
10054 (ia64_speculate_insn): Likewise.
10055 (ia64_gen_spec_check): Likewise for params "insn", "label".
10056 (ia64_asm_unwind_emit): Likewise for param "insn".
10058 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
10060 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
10061 "insn", "def_insn".
10062 (m68k_sched_variable_issue): Likewise for param "insn".
10064 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
10067 * config/microblaze/microblaze.c (microblaze_adjust_cost):
10068 Likewise for params "insn", "dep".
10070 * config/mips/mips.c (mips_adjust_cost): Likewise.
10071 (mips_variable_issue): Likewise for param "insn".
10072 (mips_final_postscan_insn): Likewise.
10074 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
10075 for params "insn", "dep".
10077 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
10079 (pa_adjust_priority): Likewise for param "insn".
10081 * config/picochip/picochip.c (picochip_sched_adjust_cost):
10082 Likewise for params "insn", "dep_insn".
10084 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
10086 (rs6000_variable_issue): Likewise.
10087 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
10088 (rs6000_debug_adjust_cost): Likewise.
10089 (rs6000_adjust_priority): Likewise for param "insn".
10090 (rs6000_use_sched_lookahead_guard): Likewise.
10091 (get_next_active_insn): Likewise for return type and both params.
10092 (redefine_groups): Likewise for params "prev_head_insn", "tail"
10093 and locals "insn", "next_insn".
10094 (pad_groups): Likewise.
10096 * config/s390/s390.c (s390_adjust_priority): Likewise for param
10098 (s390_cannot_copy_insn_p): Likewise.
10099 (s390_sched_variable_issue): Likewise for third param, eliminating
10101 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
10102 default hook implementation from hook_constcharptr_const_rtx_null
10103 to hook_constcharptr_const_rtx_insn_null.
10105 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
10106 from rtx to rtx_insn *.
10107 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
10108 (sh_variable_issue): Likewise for param "insn".
10109 (sh_dfa_new_cycle): Likewise.
10110 (sh_mode_needed): Likewise.
10111 (sh_mode_after): Likewise.
10113 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
10114 params "insn", "dep_insn".
10115 (hypersparc_adjust_cost): Likewise.
10116 (sparc_adjust_cost): Likewise.
10118 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
10119 param, eliminated checked cast.
10120 (spu_sched_adjust_cost): Likewise for first and third params.
10122 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
10123 params "insn" and "dep_insn" from rtx to rtx_insn *.
10125 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
10127 2014-08-27 David Malcolm <dmalcolm@redhat.com>
10129 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
10130 (set_is_load_p): ...this, updating to work on a SET pattern rather
10132 (is_store_insn): Rename to...
10133 (set_is_store_p): ...this, updating to work on a SET pattern
10134 rather than an insn.
10135 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
10136 top of function to where it is needed. Rewrite the bogus
10137 condition that checks for "insn" and "dep" being PARALLEL to
10138 instead use single_set, introducing locals "insn_set" and
10139 "dep_set". Given that we only ever returned "cost" for a non-pair
10140 of SETs, bail out early if we don't have a pair of SET.
10141 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
10142 use the new locals "insn_set" and "dep_set", and update calls to
10143 is_load_insn and is_store_insn to be calls to set_is_load_p and
10146 2014-08-27 Guozhi Wei <carrot@google.com>
10149 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
10150 amount before using it.
10152 2014-08-27 Richard Biener <rguenther@suse.de>
10154 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
10155 get_maxval_strlen inside a more useful API.
10156 (gimple_fold_builtin_with_strlen): Remove and fold into ...
10157 (gimple_fold_builtin): ... caller.
10158 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
10159 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
10160 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
10161 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
10162 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
10163 gimple_fold_builtin_sprintf): Adjust to compute maxval
10166 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
10169 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
10171 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10172 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10173 Anna Tikhonova <anna.tikhonova@intel.com>
10174 Ilya Tocar <ilya.tocar@intel.com>
10175 Andrey Turetskiy <andrey.turetskiy@intel.com>
10176 Ilya Verbin <ilya.verbin@intel.com>
10177 Kirill Yukhin <kirill.yukhin@intel.com>
10178 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10180 * config/i386/sse.md
10181 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
10182 Use `concat_tg_mode' attribute to determine asm register size.
10184 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10185 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10186 Anna Tikhonova <anna.tikhonova@intel.com>
10187 Ilya Tocar <ilya.tocar@intel.com>
10188 Andrey Turetskiy <andrey.turetskiy@intel.com>
10189 Ilya Verbin <ilya.verbin@intel.com>
10190 Kirill Yukhin <kirill.yukhin@intel.com>
10191 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10193 * config/i386/sse.md
10194 (define_mode_iterator VI48_AVX512VL): New.
10195 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
10196 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
10197 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
10198 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10199 with VI1): Change mode iterator.
10200 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10201 with VI_ULOADSTORE_BW_AVX512VL): New.
10202 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10203 with VI_ULOADSTORE_F_AVX512VL): Ditto.
10204 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10205 with VI1): Change mode iterator.
10206 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10207 with VI_ULOADSTORE_BW_AVX512VL): New.
10208 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10209 with VI_ULOADSTORE_F_AVX512VL): Ditto.
10210 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10211 with VI1): Change mode iterator.
10212 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10213 with VI_ULOADSTORE_BW_AVX512VL): New.
10214 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10215 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
10216 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
10217 (define_insn "<avx512>_storedqu<mode>_mask" with
10218 VI48_AVX512VL): New.
10219 (define_insn "<avx512>_storedqu<mode>_mask" with
10220 VI12_AVX512VL): Ditto.
10222 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
10223 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10224 Anna Tikhonova <anna.tikhonova@intel.com>
10225 Ilya Tocar <ilya.tocar@intel.com>
10226 Andrey Turetskiy <andrey.turetskiy@intel.com>
10227 Ilya Verbin <ilya.verbin@intel.com>
10228 Kirill Yukhin <kirill.yukhin@intel.com>
10229 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10231 * config/i386/sse.md
10232 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
10233 (define_mode_iterator VI48_AVX512BW): New.
10234 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
10235 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10236 with VI48_AVX2_48_AVX512F): New.
10237 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10238 with VI2_AVX512VL): Ditto.
10240 2014-08-27 Richard Biener <rguenther@suse.de>
10242 PR middle-end/62239
10243 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
10244 (fold_builtin_3): Do not fold strcat_chk here.
10245 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
10247 (gimple_fold_builtin): Fold strcat_chk here.
10249 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
10251 * dwarf2out.h (dwarf2out_decl): Remove prototype.
10252 * dwarf2out.c (dwarf2out_decl): Make static.
10254 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
10256 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
10258 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10260 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
10261 from rtx to rtx_insn *.
10262 (cselib_lookup_from_insn): Likewise for final param.
10263 (cselib_subst_to_values_from_insn): Likewise.
10264 (cselib_add_permanent_equiv): Likewise.
10266 * cselib.c (cselib_current_insn): Likewise for this variable.
10267 (cselib_subst_to_values_from_insn): Likewise for param "insn".
10268 (cselib_lookup_from_insn): Likewise.
10269 (cselib_add_permanent_equiv): Likewise for param "insn" and local
10270 "save_cselib_current_insn".
10271 (cselib_process_insn): Replace use of NULL_RTX with NULL.
10273 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
10274 from rtx to rtx_insn *.
10276 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10278 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
10281 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10283 * df.h (df_dump_insn_problem_function): Strengthen first param of
10284 this callback from const_rtx to const rtx_insn *.
10285 (struct df_insn_info): Strengthen field "insn" from rtx to
10287 (DF_REF_INSN): Eliminate this function, reinstating the older
10289 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
10290 (df_reg_defined): Likewise.
10291 (df_find_use): Likewise.
10292 (df_reg_used): Likewise.
10293 (df_dump_insn_top): Strengthen param 1 from const_rtx to
10295 (df_dump_insn_bottom): Likewise.
10296 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
10297 (df_insn_debug_regno): Likewise.
10298 (debug_df_insn): Likewise.
10299 (df_rd_simulate_one_insn): Likewise for param 2.
10300 (df_word_lr_simulate_defs): Likewise for param 1.
10301 (df_word_lr_simulate_uses): Likewise.
10302 (df_md_simulate_one_insn): Likewise for param 2.
10303 (df_simulate_find_noclobber_defs): Likewise for param 1.
10304 (df_simulate_find_defs): Likewise.
10305 (df_simulate_defs): Likewise.
10306 (df_simulate_uses): Likewise.
10307 (df_simulate_one_insn_backwards): Likewise for param 2.
10308 (df_simulate_one_insn_forwards): Likewise.
10309 (df_uses_create): Likewise for param 2.
10310 (df_insn_create_insn_record): Likewise for param 1.
10311 (df_insn_delete): Likewise.
10312 (df_insn_rescan): Likewise.
10313 (df_insn_rescan_debug_internal): Likewise.
10314 (df_insn_change_bb): Likewise.
10315 (df_notes_rescan): Likewise.
10316 * rtl.h (remove_death): Likewise for param 2.
10317 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
10319 * sched-int.h (reemit_notes): Strengthen param from rtx to
10321 * valtrack.h (propagate_for_debug): Likewise for param 1.
10323 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
10324 local "tmp_rtx" from const_rtx to const rtx_insn *.
10325 * combine.c (remove_death): Strengthen param "insn" from rtx to
10327 (move_deaths): Likewise for local "where_dead".
10328 * cse.c (delete_trivially_dead_insns): Introduce local
10329 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
10330 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
10332 (df_reg_defined): Likewise.
10333 (df_find_use): Likewise.
10334 (df_reg_used): Likewise.
10335 (df_dump_insn_problem_data): Strengthen param "insn" from
10336 const_rtx to const rtx_insn *.
10337 (df_dump_insn_top): Likewise.
10338 (df_dump_insn_bottom): Likewise.
10339 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
10340 (df_insn_debug_regno): Likewise.
10341 (debug_df_insn): Likewise.
10342 (DF_REF_INSN): Delete.
10343 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
10344 from rtx to rtx_insn *.
10345 (df_chain_insn_top_dump): Strengthen param "insn" from
10346 const_rtx to const rtx_insn *.
10347 (df_chain_insn_bottom_dump): Likewise.
10348 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
10350 (df_word_lr_simulate_uses): Likewise.
10351 (df_print_note): Likewise.
10352 (df_remove_dead_and_unused_notes): Likewise.
10353 (df_set_unused_notes_for_mw): Likewise.
10354 (df_set_dead_notes_for_mw): Likewise.
10355 (df_create_unused_note): Likewise.
10356 (df_simulate_find_defs): Likewise.
10357 (df_simulate_find_uses): Likewise.
10358 (df_simulate_find_noclobber_defs): Likewise.
10359 (df_simulate_defs): Likewise.
10360 (df_simulate_uses): Likewise.
10361 (df_simulate_one_insn_backwards): Likewise.
10362 (df_simulate_one_insn_forwards): Likewise.
10363 (df_md_simulate_one_insn): Likewise.
10364 * df-scan.c (df_uses_create): Likewise.
10365 (df_insn_create_insn_record): Likewise.
10366 (df_insn_delete): Likewise.
10367 (df_insn_rescan): Likewise.
10368 (df_insn_rescan_debug_internal): Likewise.
10369 (df_insn_change_bb): Likewise.
10370 (df_notes_rescan): Likewise.
10371 (df_refs_add_to_chains): Likewise.
10372 (df_insn_refs_verify): Likewise.
10373 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
10374 when invoking df_insn_delete.
10375 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
10376 (set_unique_reg_note): Add checked cast.
10377 * final.c (cleanup_subreg_operands): Likewise.
10378 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
10379 "insn" from rtx to rtx_insn *.
10380 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
10381 "last" from rtx to rtx_insn *.
10382 * ira-emit.c (change_regs_in_insn): New function.
10383 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
10384 Invoke change_regs_in_insn rather than change_regs.
10385 * ira.c (update_equiv_regs): Strengthen locals "insn",
10386 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
10387 for_each_rtx_in_insn rather than for_each_rtx.
10388 * recog.c (confirm_change_group): Add checked casts.
10389 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
10391 (peep2_fill_buffer): Add checked cast.
10392 * rtlanal.c (remove_note): Likewise.
10393 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
10394 locals "next" "end" from rtx to rtx_insn *.
10396 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10398 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
10400 (struct reg_use_data): Likewise for field "insn".
10401 (insn_cost): Likewise for param.
10402 (real_insn_for_shadow): Likewise for return type and param.
10403 (increase_insn_priority): Likewise for param 1.
10404 (debug_dependencies): Likewise for both params.
10406 * haifa-sched.c (insn_delay): Likewise for param "insn".
10407 (real_insn_for_shadow): Likewise for return type and param "insn".
10408 (update_insn_after_change): Likewise for param "insn".
10409 (recompute_todo_spec): Likewise for param "next" and locals "pro",
10411 (insn_cost): Likewise for param "insn".
10412 (increase_insn_priority): Likewise.
10413 (calculate_reg_deaths): Likewise.
10414 (setup_insn_reg_pressure_info): Likewise.
10415 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10416 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10417 (model_recompute): Likewise.
10418 (must_restore_pattern_p): Likewise for param "next".
10419 (model_excess_cost): Likewise for param "insn".
10420 (queue_remove): Likewise.
10421 (adjust_priority): Likewise for param "prev".
10422 (update_register_pressure): Likewise for param "insn".
10423 (setup_insn_max_reg_pressure): Likewise for local "insn".
10424 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10425 (model_add_to_schedule): Likewise.
10426 (model_reset_queue_indices): Likewise for local "insn".
10427 (unschedule_insns_until): Strengthen local "recompute_vec" from
10428 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
10429 "con" from rtx to rtx_insn *.
10430 (restore_last_backtrack_point): Likewise for both locals "x". Add
10432 (estimate_insn_tick): Likewise for param "insn".
10433 (commit_schedule): Likewise for params "prev_head", "tail" and
10435 (verify_shadows): Likewise for locals "i1", "i2".
10436 (dump_insn_stream): Likewise for params "head", "tail" and locals
10437 "next_tail", "insn".
10438 (schedule_block): Likewise for locals "insn", "x". Add a checked
10440 (fix_inter_tick): Likewise for params "head", "tail".
10441 (create_check_block_twin): Likewise for local "jump".
10442 (haifa_change_pattern): Likewise for param "insn".
10443 (haifa_speculate_insn): Likewise.
10444 (dump_new_block_header): Likewise for params "head", "tail".
10445 (fix_jump_move): Likewise for param "jump".
10446 (move_block_after_check): Likewise.
10447 (sched_init_insn_luid): Likewise for param "insn".
10448 (sched_init_luids): Likewise for local "insn".
10449 (insn_luid): Likewise for param "insn".
10450 (init_h_i_d): Likewise.
10451 (haifa_init_h_i_d): Likewise for local "insn".
10452 (haifa_init_insn): Likewise for param "insn".
10453 * sched-deps.c (add_dependence): Likewise for local "real_pro",
10455 (create_insn_reg_use): Likewise for param "insn".
10456 (setup_insn_reg_uses): Likewise. Add a checked cast.
10457 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10458 "tail" from rtx to rtx_insn *.
10459 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10460 "insn", "next_tail".
10462 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10464 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10465 from rtx to rtx_insn *.
10466 (model_add_to_schedule): Likewise for locals "start", "end",
10469 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10471 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10473 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
10474 "to" and locals "insn", "next", "copy". Remove now-redundant
10477 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10479 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10480 rtx_insn * and param 4 from rtx * to rtx_insn **.
10481 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10482 param 2 from rtx * to rtx_insn **.
10484 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10485 rtx_insn * and final param from rtx * to rtx_insn **.
10487 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10488 from rtx to rtx_insn *.
10489 (try_head_merge_bb): Likewise for both locals named "move_upto".
10490 * df-problems.c (can_move_insns_across): Likewise for params
10491 "from", "to", "across_from", "across_to" and locals "insn",
10492 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
10494 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10495 from rtx to rtx_insn *.
10496 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10497 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
10498 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10500 (noce_try_abs): Likewise.
10501 (noce_get_condition): Likewise for param "jump". Strengthen param
10502 "earliest" from rtx * to rtx_insn **.
10503 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10505 (find_cond_trap): Likewise.
10506 (dead_or_predicable): Likewise for local "earliest".
10507 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
10509 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10510 and local "prev". Strengthen param "earliest" from rtx * to
10512 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10513 Strengthen param "earliest" from rtx * to rtx_insn **.
10515 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10517 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10518 "to" and local "insn" from rtx to rtx_insn *.
10520 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10522 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10523 from rtx to rtx_insn *.
10524 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10525 (code_motion_path_driver): Likewise for local "last_insn".
10526 (simplify_changed_insns): Likewise for local "insn".
10528 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10530 * rtl.h (push_to_sequence): Strengthen param from rtx to
10532 (push_to_sequence2): Likewise for both params.
10533 (delete_insns_since): Likewise for param.
10534 (reorder_insns_nobb): Likewise for all three params.
10535 (set_new_first_and_last_insn): Likewise for both params.
10537 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10538 rtx_insn *. Remove now-redundant cast.
10539 (set_last_insn): Likewise.
10541 * builtins.c (expand_builtin_return): Strengthen local
10542 "call_fusage" from rtx to rtx_insn *.
10543 * cfgrtl.c (create_basic_block_structure): Likewise for local
10545 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10546 "first", "last" and local "insn".
10547 (delete_insns_since): Likewise for param "from".
10548 (reorder_insns_nobb): Likewise for params "from", "to", "after"
10550 (push_to_sequence): Likewise for param "first" and local "last".
10551 (push_to_sequence2): Likewise for params "first" and "last".
10552 * lra.c (emit_add3_insn): Likewise for local "last".
10553 (lra_emit_add): Likewise.
10554 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10556 (process_address_1): Likewise for locals "insn", last".
10557 * modulo-sched.c (ps_first_note): Likewise for return type.
10558 * optabs.c (expand_binop_directly): Likewise for param "last".
10560 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10562 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10564 * emit-rtl.c (get_last_insn_anywhere): Likewise.
10566 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10568 * function.h (struct sequence_stack): Strengthen fields "first"
10569 and "last" from rtx to rtx_insn *.
10570 (struct emit_status): Likewise for fields "x_first_insn" and
10573 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10574 (set_first_insn): Add checked cast.
10575 (get_last_insn): Remove now-redundant checked cast.
10576 (set_last_insn): Add checked cast.
10578 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10579 "saved_first" and "saved_last" from rtx to rtx_insn *.
10581 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10583 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10584 (unlink_insn_chain): Strengthen both params from rtx to
10587 * cfgrtl.c (cfg_layout_function_header): Likewise for this
10589 (unlink_insn_chain): Likewise for params "first" and "last".
10590 Remove now-redundant checked cast.
10591 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10592 (fixup_reorder_chain): Strengthen local "insn" from rtx to
10594 * emit-rtl.c (link_insn_into_chain): Likewise for all three
10596 (add_insn): Likewise for param "insn" and local "prev".
10597 (add_insn_after_nobb): Likewise for both params and local "next".
10598 (add_insn_before_nobb): Likewise for both params and local "prev".
10599 (add_insn_after): Rename param "after" to "uncast_after",
10600 introducing local "after" with another checked cast.
10601 (add_insn_before): Rename params "insn" and "before", giving them
10602 "uncast_" prefixes, adding the old names back using checked casts.
10603 (emit_note_after): Likewise for param "after".
10604 (emit_note_before): Likewise for param "before".
10605 (emit_label): Add a checked cast.
10607 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10609 * cselib.h (cselib_record_sets_hook): Strengthen initial param
10610 "insn" from rtx to rtx_insn *.
10612 * cselib.c (cselib_record_sets_hook): Likewise.
10614 * var-tracking.c (add_with_sets): Likewise, renaming back from
10615 "uncast_insn" to "insn" and eliminating the checked cast from rtx
10618 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10620 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10621 and "header_" from rtx to rtx_insn *.
10622 (struct basic_block_d): Likewise for field "head_" within "x"
10623 field of union basic_block_il_dependent.
10624 (BB_HEAD): Drop function...
10625 (SET_BB_HEAD): ...and this function in favor of...
10626 (BB_HEAD): ...reinstate macro.
10627 (BB_END): Drop function...
10628 (SET_BB_END): ...and this function in favor of...
10629 (BB_END): ...reinstate macro.
10630 (BB_HEADER): Drop function...
10631 (SET_BB_HEADER): ...and this function in favor of...
10632 (BB_HEADER): ...reinstate macro.
10634 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10635 (fix_crossing_unconditional_branches): Likewise.
10636 * caller-save.c (save_call_clobbered_regs): Likewise.
10637 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10638 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10639 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10640 (merge_blocks_move_successor_nojumps): Likewise.
10641 (outgoing_edges_match): Update use of for_each_rtx to
10642 for_each_rtx_in_insn.
10643 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10644 (expand_gimple_cond): Likewise.
10645 (expand_gimple_tailcall): Likewise.
10646 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10648 (construct_exit_block): Drop use of SET_BB_END.
10649 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10651 (delete_insn): Rename param "insn" to "uncast_insn", introducing
10652 a new local "insn" with a checked cast to rtx_insn *. Drop use of
10653 SET_BB_HEAD and SET_BB_END.
10654 (create_basic_block_structure): Drop use of SET_BB_HEAD and
10656 (rtl_delete_block): Drop use of SET_BB_HEAD.
10657 (rtl_split_block): Drop use of SET_BB_END.
10658 (emit_nop_for_unique_locus_between): Likewise.
10659 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10660 (block_label): Drop use of SET_BB_HEAD.
10661 (fixup_abnormal_edges): Drop use of SET_BB_END.
10662 (record_effective_endpoints): Drop use of SET_BB_HEADER.
10663 (relink_block_chain): Likewise.
10664 (fixup_reorder_chain): Drop use of SET_BB_END.
10665 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10666 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10667 rtx_insn **. Drop use of SET_BB_HEADER.
10668 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10670 (BB_HEAD): Delete this function.
10671 (SET_BB_HEAD): Likewise.
10672 (BB_END): Likewise.
10673 (SET_BB_END): Likewise.
10674 (BB_HEADER): Likewise.
10675 (SET_BB_HEADER): Likewise.
10676 * emit-rtl.c (add_insn_after): Rename param "insn" to
10677 "uncast_insn", adding a new local "insn" and a checked cast to
10678 rtx_insn *. Drop use of SET_BB_END.
10679 (remove_insn): Strengthen locals "next" and "prev" from rtx to
10680 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
10681 (reorder_insns): Drop use of SET_BB_END.
10682 (emit_insn_after_1): Strengthen param "first" and locals "last",
10683 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
10684 (emit_pattern_after_noloc): Add checked cast.
10685 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10686 (restore_other_notes): Likewise.
10687 (move_insn): Likewise.
10688 (sched_extend_bb): Likewise.
10689 (fix_jump_move): Likewise.
10690 * ifcvt.c (noce_process_if_block): Likewise.
10691 (dead_or_predicable): Likewise.
10692 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10693 * reg-stack.c (change_stack): Drop use of SET_BB_END.
10694 * sel-sched-ir.c (sel_move_insn): Likewise.
10695 * sel-sched.c (move_nop_to_previous_block): Likewise.
10697 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10699 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10701 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10703 * basic-block.h (create_basic_block_structure): Strengthen params
10704 1 "head" and 2 "end" from rtx to rtx_insn *.
10705 * cfgrtl.c (create_basic_block_structure): Likewise.
10706 (rtl_create_basic_block): Update casts from void * to rtx to
10707 rtx_insn *, so that we can pass them as rtx_insn * to
10708 create_basic_block_structure.
10709 * sel-sched-ir.c (sel_create_basic_block): Likewise.
10711 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10713 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10715 (check_for_inc_dec): Strengthen param "insn" from rtx to
10718 * cselib.h (cselib_process_insn): Likewise.
10720 * cselib.c (cselib_record_sets): Likewise.
10721 (cselib_process_insn): Likewise.
10723 * dse.c (struct insn_info): Likewise for field "insn".
10724 (check_for_inc_dec_1): Likewise for local "insn".
10725 (check_for_inc_dec): Likewise for param "insn".
10726 (scan_insn): Likewise.
10727 (dse_step1): Likewise for local "insn".
10729 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10730 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
10732 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10734 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10735 from rtx to rtx_insn *.
10736 (DEP_PRO): Delete this function and...
10737 (SET_DEP_PRO): ...this function in favor of...
10738 (DEP_PRO): ...reinstate this macro.
10739 (DEP_CON): Delete this function and...
10740 (SET_DEP_CON): ...this function in favor of...
10741 (DEP_CON): ...reinstate this old macro.
10742 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10743 (init_dep): Likewise.
10744 (set_priorities): Likewise for both params.
10745 (sd_copy_back_deps): Likewise for params 1 and 2.
10747 * haifa-sched.c (priority): Likewise for param "insn" and local
10749 (set_priorities): Likewise for params "head" and "tail" and local
10751 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10753 (add_to_speculative_block): Add a checked cast.
10754 (create_check_block_twin): Drop use of SET_DEP_CON.
10755 (add_jump_dependencies): Strengthen params "insn" and "jump" from
10758 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10759 Drop use of SET_DEP_PRO
10760 (init_dep): Strengthen params "pro" and "con" from rtx to
10762 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
10763 use of SET_DEP_CON.
10766 (SET_DEP_PRO): Delete.
10767 (SET_DEP_CON): Delete.
10769 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10771 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10772 from rtx to rtx_insn *.
10773 (VINSN_INSN_RTX): Eliminate rvalue function and...
10774 (SET_VINSN_INSN): ...lvalue function in favor of...
10775 (VINSN_INSN_RTX): reinstate this old macro.
10777 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10778 in favor of VINSN_INSN_RTX.
10779 (VINSN_INSN_RTX): Delete this function.
10780 (SET_VINSN_INSN_RTX): Likewise.
10782 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10784 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10785 (BND_TO): Delete this function and...
10786 (SET_BND_TO): ...this functions in favor of...
10787 (BND_TO): ...reinstating this macro.
10788 (struct _fence): Strengthen field "executing_insns" from
10789 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
10790 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10791 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10792 and param "insn" from rtx to insn_t.
10793 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10796 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10798 (rtx_vec_t): Likewise.
10799 (struct sched_deps_info_def): Strengthen param of "start_insn"
10800 callback from rtx to rtx_insn *. Likewise for param "insn2" of
10801 "note_mem_dep" callback and first param of "note_dep" callback.
10803 * haifa-sched.c (add_to_speculative_block): Strengthen param
10804 "insn" from rtx to rtx_insn *.
10805 (clear_priorities): Likewise.
10806 (calc_priorities): Likewise for local "insn".
10808 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10809 Remove redundant checked cast.
10810 (haifa_note_mem_dep): Likewise for param "pending_insn".
10811 (haifa_note_dep): Likewise for param "elem".
10812 (note_mem_dep): Likewise for param "e".
10813 (sched_analyze_1): Add checked casts.
10814 (sched_analyze_2): Likewise.
10816 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10817 from rtx to rtx_insn *.
10818 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10819 from vec<rtx> * to vec<rtx_insn *> *.
10821 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10823 (flist_add): Strengthen param "executing_insns" from
10824 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10825 (advance_deps_context): Remove now-redundant checked cast.
10826 (init_fences): Replace uses of NULL_RTX with NULL.
10827 (merge_fences): Strengthen params "last_scheduled_insn" and
10828 "sched_next" from rtx to rtx_insn * and "executing_insns" from
10829 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10830 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10831 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10832 an instruction, rather than doing double-duty as a pattern.
10833 (return_nop_to_pool): Update for change of insn_t.
10834 (deps_init_id): Remove now-redundant checked cast.
10835 (struct sched_scan_info_def): Strengthen param of "init_insn"
10836 callback from rtx to insn_t.
10837 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10838 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10840 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10841 "end" from rtx to rtx_insn *.
10842 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10843 (rtx insn_rtx, bool force_unique_p)
10844 (BND_TO): Delete function.
10845 (SET_BND_TO): Delete function.
10847 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10849 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10850 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10852 (undo_transformations): Likewise for param "insn".
10853 (update_liveness_on_insn): Likewise.
10854 (compute_live_below_insn): Likewise for param "insn" and local
10856 (update_data_sets): Likewise for param "insn".
10857 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10858 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10859 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10861 (move_cond_jump): Likewise for param "insn".
10862 (move_cond_jump): Drop use of SET_BND_TO.
10863 (compute_av_set_on_boundaries): Likewise.
10864 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10865 (update_and_record_unavailable_insns): Strengthen local "bb_end"
10866 from rtx to rtx_insn *.
10867 (maybe_emit_renaming_copy): Likewise for param "insn".
10868 (maybe_emit_speculative_check): Likewise.
10869 (handle_emitting_transformations): Likewise.
10870 (remove_insn_from_stream): Likewise.
10871 (code_motion_process_successors): Strengthen local "succ" from rtx
10874 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10876 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10877 ilist_t, not _xlist_t;
10878 (ILIST_INSN): Define in terms of new union field "insn".
10879 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10881 (struct _list_node): Add new field "insn" to the union, of type
10883 (ilist_add): Replace macro with an inline function, requiring an
10885 (ilist_remove): Define this macro directly in terms of
10886 _list_remove, rather than indirectly via _xlist_remove.
10887 (ilist_clear): Likewise, in terms of _list_clear rather than
10889 (ilist_is_in_p): Replace macro with an inline function, requiring
10891 (_list_iter_cond_insn): New function.
10892 (ilist_iter_remove): Define this macro directly in terms of
10893 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10894 (ilist_iterator): Define directly in terms of _list_iterator
10895 rather than indirectly through _xlist_iterator.
10896 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10897 than in terms of _FOR_EACH_X.
10898 (FOR_EACH_INSN_1): Likewise.
10900 2014-08-26 Joseph Myers <joseph@codesourcery.com>
10904 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10905 DECL_HARD_REGISTER and return for invalid register specifications.
10906 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10907 DECL_HARD_REGISTER, call expand_one_error_var.
10908 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10909 CC_REGNUM with non-MODE_CC modes.
10910 (arm_regno_class): Return NO_REGS for PC_REGNUM.
10912 2014-08-26 Marek Polacek <polacek@redhat.com>
10915 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10917 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
10919 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10920 qi cost; add di cost.
10921 (cortexa57_addrcost_table): Likewise.
10923 2014-08-26 Marek Polacek <polacek@redhat.com>
10926 * expr.c (is_aligning_offset): Remove logical not.
10928 2014-08-26 Marek Polacek <polacek@redhat.com>
10931 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10932 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10934 2014-08-26 Richard Biener <rguenther@suse.de>
10936 PR tree-optimization/62175
10937 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10938 expand possibly trapping operations.
10940 2014-08-26 David Malcolm <dmalcolm@redhat.com>
10942 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10943 "insn" from rtx to rtx_insn *.
10944 (permute_load): Likewise for param "insn".
10945 (permute_store): Likewise.
10946 (handle_special_swappables): Likewise for local "insn".
10947 (replace_swap_with_copy): Likewise for locals "insn" and
10949 (rs6000_analyze_swaps): Likewise for local "insn".
10951 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10953 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10956 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10958 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10959 "note_list" from rtx to rtx_insn *.
10960 (BB_NOTE_LIST): Replace this function and...
10961 (SET_BB_NOTE_LIST): ...this function with...
10962 (BB_NOTE_LIST): ...the former macro implementation.
10964 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10965 local "from_start" from rtx to rtx_insn *. Strengthen param
10966 "to_endp" from rtx * to rtx_insn **.
10968 * haifa-sched.c (concat_note_lists): Likewise.
10969 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10971 (sel_restore_notes): Likewise.
10972 (move_bb_info): Likewise.
10973 (BB_NOTE_LIST): Delete this function.
10974 (SET_BB_NOTE_LIST): Delete this function.
10975 * sel-sched.c (create_block_for_bookkeeping): Eliminate
10976 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10978 2014-08-25 David Malcolm <dmalcolm@redhat.com>
10980 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10981 from rtx * to rtx_insn **.
10982 (reorder2): Likewise.
10983 (dependencies_evaluation_hook): Strengthen params "head", "tail"
10984 from rtx to rtx_insn *.
10986 * doc/tm.texi: Update mechanically for above change to target.def.
10988 * sched-int.h (note_list): Strengthen this variable from rtx to
10990 (remove_notes): Likewise for both params.
10991 (restore_other_notes): Likewise for return type and first param.
10992 (struct ready_list): Strengthen field "vec" from rtx * to
10994 (struct dep_replacement): Strenghten field "insn" from rtx to
10996 (struct deps_desc): Likewise for fields "last_debug_insn",
10998 (struct haifa_sched_info): Likewise for callback field
10999 "can_schedule_ready_p"'s param, for first param of "new_ready"
11000 callback field, for both params of "rank" callback field, for
11001 first field of "print_insn" callback field (with a const), for
11002 both params of "contributes_to_priority" callback, for param
11003 of "insn_finishes_block_p" callback, for fields "prev_head",
11004 "next_tail", "head", "tail", for first param of "add_remove_insn"
11005 callback, for first param of "begin_schedule_ready" callback, for
11006 both params of "begin_move_insn" callback, and for second param
11007 of "advance_target_bb" callback.
11008 (add_dependence): Likewise for params 1 and 2.
11009 (sched_analyze): Likewise for params 2 and 3.
11010 (deps_analyze_insn): Likewise for param 2.
11011 (ready_element): Likewise for return type.
11012 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11013 (try_ready): Strenghten param from rtx to rtx_insn *.
11014 (sched_emit_insn): Likewise for return type.
11015 (record_delay_slot_pair): Likewise for params 1 and 2.
11016 (add_delay_dependencies): Likewise for param.
11017 (contributes_to_priority): Likewise for both params.
11018 (find_modifiable_mems): Likewise.
11020 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
11021 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
11022 "first_older_only_insn" from rtx to rtx_insn *.
11023 (arm_sched_reorder): Strengthen param "ready" from rtx * to
11026 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
11027 "last_scheduled_iter0" from rtx to rtx_insn *.
11028 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
11029 (c6x_sched_reorder_1): Strengthen param "ready" and locals
11030 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
11031 "insn" from rtx to rtx_insn *.
11032 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
11034 (c6x_sched_reorder2): Strengthen param "ready" and locals
11035 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
11036 "insn" from rtx to rtx_insn *.
11037 (c6x_variable_issue): Add a checked cast when assigning from insn
11038 to ss.last_scheduled_iter0.
11039 (split_delayed_branch): Strengthen param "insn" and local "i1"
11040 from rtx to rtx_insn *.
11041 (split_delayed_nonbranch): Likewise.
11042 (undo_split_delayed_nonbranch): Likewise for local "insn".
11043 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
11044 "entry_after", "end_packet", "head_insn", "tail_insn",
11045 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
11046 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
11047 to rtx_insn **. Remove now-redundant checked cast on last_insn,
11048 but add a checked cast on loop->start_label. Consolidate calls to
11049 avoid assigning result of gen_spkernel to "insn", now an
11052 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
11053 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
11055 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
11056 rtx_insn **. Strengthen locals "top", "next" from rtx to
11058 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
11059 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
11060 (add_parameter_dependencies): Strengthen params "call", "head" and
11061 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
11062 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
11063 (add_dependee_for_func_arg): Likewise for param "arg" and local
11065 (ix86_dependencies_evaluation_hook): Likewise for params "head",
11066 "tail" and locals "insn", "first_arg".
11068 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
11069 for params "head", "tail" and locals "insn", "next", "next_tail".
11070 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
11071 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
11072 "insn", "lowest", "highest" from rtx to rtx_insn *.
11073 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
11075 (ia64_sched_reorder2): Likewise.
11077 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
11078 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
11079 from rtx * to rtx_insn **.
11080 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
11082 (mep_print_sched_insn): Strengthen param "insn" from rtx to
11084 (mep_sched_reorder): Strengthen param "ready" from rtx * to
11085 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
11088 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
11089 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
11091 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
11092 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
11093 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
11095 (vr4130_reorder): Likewise.
11096 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
11098 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
11100 (mips_sched_reorder): Likewise.
11101 (mips_sched_reorder2): Likewise.
11103 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
11105 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
11106 Strengthen local "tmp" from rtx to rtx_insn *.
11107 (rs6000_sched_reorder2): Likewise.
11109 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
11110 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
11111 (s390_sched_reorder): Strengthen param "ready" from rtx * to
11112 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
11114 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
11115 "tmp2" from rtx to rtx_insn *.
11116 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
11117 Strengthen local "insn" from rtx to rtx_insn *.
11118 (ready_reorder): Strengthen param "ready" from rtx * to
11119 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
11120 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
11121 (sh_reorder2): Likewise.
11123 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
11124 local "insn" from rtx to rtx_insn *.
11126 * haifa-sched.c (note_list): Strengthen this variable from rtx to
11128 (scheduled_insns): Strengthen this variable from vec<rtx> to
11130 (set_modulo_params): Likewise for locals "i1", "i2".
11131 (record_delay_slot_pair): Likewise for params "i1", "i2".
11132 (add_delay_dependencies): Likewise for param "insn".
11133 (cond_clobbered_p): Likewise.
11134 (recompute_todo_spec): Likewise for local "prev".
11135 (last_scheduled_insn): Likewise for this variable.
11136 (nonscheduled_insns_begin): Likewise.
11137 (model_set_excess_costs): Strengthen param "insns" from rtx * to
11139 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
11141 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
11142 Strengthen local "insn" from rtx to rtx_insn *.
11143 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
11144 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11145 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
11146 (ready_remove_first): Likewise for return type and local "t".
11147 (ready_element): Likewise for return type.
11148 (ready_remove): Likewise for return type and local "t".
11149 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
11150 (check_clobbered_conditions): Strengthen local "x" from rtx to
11151 rtx_insn *, adding a checked cast.
11152 (schedule_insn): Likewise for param "insn".
11153 (remove_notes): Likewise for params "head", "tail" and locals
11154 "next_tail", "insn", "next".
11155 (struct haifa_saved_data): Likewise for fields
11156 "last_scheduled_insn", "nonscheduled_insns_begin".
11157 (save_backtrack_point): Update for change to field "vec" of
11159 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
11161 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
11162 from rtx to rtx_insn *
11163 (resolve_dependencies): Strengthen param "insn" from rtx to
11165 (restore_other_notes): Likewise for return type, for param "head"
11166 and local "note_head".
11167 (undo_all_replacements): Likewise for local "insn".
11168 (first_nonscheduled_insn): Likewise for return type and local "insn".
11169 (queue_to_ready): Likewise for local "insn", adding checked casts.
11170 (early_queue_to_ready): Likewise for local "insn".
11171 (debug_ready_list_1): Strengthen local "p" from rtx * to
11173 (move_insn): Strengthen param "insn" and local "note" from rtx to
11175 (insn_finishes_cycle_p): Likewise for param "insn".
11176 (max_issue): Likewise for local "insn".
11177 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
11179 (commit_schedule): Strengthen param "prev_head" and local "insn"
11180 from rtx to rtx_insn *
11181 (prune_ready_list): Likewise for local "insn".
11182 (schedule_block): Likewise for locals "prev_head", "head", "tail",
11183 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
11184 (set_priorities): Likewise for local "prev_head".
11185 (try_ready): Likewise for param "next".
11186 (fix_tick_ready): Likewise.
11187 (change_queue_index): Likewise.
11188 (sched_extend_ready_list): Update for change to field "vec" of
11190 (generate_recovery_code): Strengthen param "insn" from rtx to
11192 (begin_speculative_block): Likewise.
11193 (create_check_block_twin): Likewise for param "insn" and locals
11194 "label", "check", "twin". Introduce local "check_pat" to avoid
11195 "check" being used as a plain rtx before being used as an insn.
11196 (fix_recovery_deps): Add a checked cast to rtx_insn * when
11197 extracting elements from ready_list.
11198 (sched_remove_insn): Strengthen param "insn" from rtx to
11200 (sched_emit_insn): Likewise for return type.
11201 (ready_remove_first_dispatch): Likewise for return type and local
11204 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
11206 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
11209 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
11210 from rtx to rtx_insn *.
11211 (add_dependence_list): Likewise for param "insn". Add a checked
11213 (add_dependence_list_and_free): Strengthen param "insn" from rtx
11214 to rtx_insn *. Strengthen param "list_p" from rtx * to
11216 (chain_to_prev_insn): Strengthen param "insn" and locals
11217 "prec_nonnote", "i" from rtx to rtx_insn *.
11218 (flush_pending_lists): Likewise for param "insn".
11219 (cur_insn): Likewise for this variable.
11220 (haifa_start_insn): Add a checked cast.
11221 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
11222 (sched_analyze_reg): Likewise for param "insn".
11223 (sched_analyze_1): Likewise.
11224 (sched_analyze_2): Likewise. Add checked casts.
11225 (sched_analyze_insn): Likewise. Also for local "prev".
11226 (deps_analyze_insn): Likewise for param "insn".
11227 (sched_analyze): Likewise for params "head", "tail" and local "insn".
11228 (add_dependence_1): Likewise for params "insn", "elem".
11229 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
11230 (parse_add_or_inc): Likewise for param "insn".
11231 (find_inc): Likewise for local "inc_cand".
11232 (find_modifiable_mems): Likewise for params "head", "tail" and
11233 locals "insn", "next_tail".
11235 * sched-ebb.c (init_ready_list): Likewise for local "insn".
11236 (begin_schedule_ready): Likewise for param "insn".
11237 (begin_move_insn): Likewise for params "insn" and "last".
11238 (ebb_print_insn): Strengthen param "insn" from const_rtx to
11240 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
11241 (ebb_contributes_to_priority): Likewise for params "next", "insn".
11242 (ebb_add_remove_insn): Likewise for param "insn".
11243 (advance_target_bb): Likewise.
11245 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
11247 (check_live): Likewise for param "insn".
11248 (init_ready_list): Likewise for local "insn".
11249 (can_schedule_ready_p): Likewise for param "insn".
11250 (begin_schedule_ready): Likewise.
11251 (new_ready): Likewise for param "next".
11252 (rgn_print_insn): Likewise for param "insn".
11253 (rgn_rank): Likewise for params "insn1", "insn2".
11254 (contributes_to_priority): Likewise for params "next", "insn".
11255 (rgn_insn_finishes_block_p): Likewise for param "insn".
11256 (add_branch_dependences): Likewise for params "head", "tail" and
11257 locals "insn", "last".
11258 (rgn_add_remove_insn): Likewise for param "insn".
11259 (advance_target_bb): Likewise.
11261 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
11262 const_rtx to const rtx_insn *.
11264 * sel-sched-dump.h (sel_print_insn): Likewise.
11266 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
11267 (deps_init_id): Likewise.
11269 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
11270 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
11273 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11275 * output.h (final_start_function): Strengthen param 1 from rtx to
11278 * final.c (final_start_function): Likewise, renaming back from
11279 "uncast_first" to "first", and dropping the checked cast from rtx
11282 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11284 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
11285 * final.c (final): Likewise. Rename param back from
11286 "uncast_first" to "first" and eliminate the checked cast from rtx
11289 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11291 * output.h (shorten_branches): Strengthen param from rtx to
11294 * final.c (shorten_branches): Likewise, renaming param back from
11295 "uncast_first" to "first", and dropping the checked cast from rtx
11298 * genattr.c (gen_attr): Likewise when writing out the prototype of
11301 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11303 * sched-int.h (struct haifa_sched_info): Strengthen fields
11304 "prev_head" and "next_tail" from rtx to rtx_insn *.
11306 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11308 * rtl.h (rtx_jump_table_data::get_labels): New method.
11309 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
11310 with use of the new rtx_jump_table_data::get_labels method.
11311 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
11312 to rtx_jump_table_data *. Simplify by using get_labels method.
11313 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
11314 a dyn_cast, introducing local "table", using it to replace
11315 label-lookup logic with a get_labels method call.
11316 (patch_jump_insn): Simplify using get_labels method.
11317 * dwarf2cfi.c (create_trace_edges): Likewise.
11318 * rtlanal.c (label_is_jump_target_p): Likewise.
11320 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11322 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
11325 * emit-rtl.c (unshare_all_rtl_1): Likewise.
11326 (unshare_all_rtl_again): Likewise, also for local "p".
11328 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11330 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
11332 * cfgrtl.c (delete_insn_and_edges): Likewise.
11334 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11336 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
11337 from rtx to rtx_insn *.
11339 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
11341 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11343 * function.c (thread_prologue_and_epilogue_insns): Likewise for
11344 locals "returnjump", "epilogue_end", "insn", "next".
11346 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
11347 "returnjump" from rtx * to rtx_insn **.
11348 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
11350 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11352 * basic-block.h (struct edge_def). Strengthen "r" within
11353 union edge_def_insns from rtx to rtx_insn *.
11355 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
11356 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
11358 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
11359 from rtx to rtx_insn *.
11360 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
11362 * postreload-gcse.c (reg_killed_on_edge): Likewise.
11363 (reg_used_on_edge): Likewise.
11364 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
11365 (gt_pch_nx): New overload for rtx_insn *&.
11366 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
11367 from rtx to rtx_insn *.
11369 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11371 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
11372 from rtx to rtx_insn *.
11373 (BB_FOOTER): Replace function with access macro.
11374 (SET_BB_FOOTER): Delete.
11376 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
11378 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11379 (emit_barrier_after_bb): Likewise.
11380 (record_effective_endpoints): Likewise.
11381 (relink_block_chain): Likewise.
11382 (fixup_fallthru_exit_predecessor): Likewise.
11383 (cfg_layout_duplicate_bb): Likewise.
11384 (cfg_layout_split_block): Likewise.
11385 (cfg_layout_delete_block): Likewise.
11386 (cfg_layout_merge_blocks): Likewise.
11387 (BB_FOOTER): Delete function.
11388 (SET_BB_FOOTER): Delete function.
11389 * combine.c (update_cfg_for_uncondjump): Replace uses of
11390 SET_BB_FOOTER with BB_FOOTER.
11392 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11394 * except.h (struct eh_landing_pad_d): Strengthen field
11395 "landing_pad" from rtx to rtx_code_label *.
11397 * except.c (sjlj_emit_dispatch_table): Likewise for param
11399 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
11401 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11403 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
11404 first param from rtx to rtx_insn *.
11405 * config/xtensa/xtensa.c (struct machine_function): Likewise for
11406 field "set_frame_ptr_insn".
11407 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
11408 "csend" from rtx to rtx_code_label *.
11409 (xtensa_expand_atomic): Likewise for local "csloop".
11410 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11412 (xtensa_call_tls_desc): Likewise for return type and locals
11413 "call_insn", "insns".
11414 (xtensa_legitimize_tls_address): Likewise for local "insns".
11415 (xtensa_expand_prologue): Likewise for locals "insn", "first".
11417 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11419 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11420 first param from rtx to rtx_insn *.
11421 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11424 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11426 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11427 Strengthen param 1 from rtx to rtx_insn *.
11428 (tilepro_output_cbranch): Likewise.
11429 (tilepro_adjust_insn_length): Likewise.
11430 (tilepro_final_prescan_insn): Likewise for sole param.
11432 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11433 Likewise for local "last".
11434 (cbranch_predicted_p): Likewise for param "insn".
11435 (tilepro_output_simple_cbranch_with_opcode): Likewise.
11436 (tilepro_output_cbranch_with_opcode): Likewise.
11437 (tilepro_output_cbranch): Likewise.
11438 (frame_emit_load): Likewise for return type and locals "seq",
11440 (emit_sp_adjust): Likewise for return type and local "insn".
11441 (tilepro_expand_epilogue): Likewise for locals "last_insn",
11443 (tilepro_adjust_insn_length): Likewise for param "insn".
11444 (next_insn_to_bundle): Likewise for return type and params
11446 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11447 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11449 (match_addli_pcrel): Likewise for param "insn".
11450 (replace_addli_pcrel): Likewise.
11451 (match_auli_pcrel): Likewise.
11452 (replace_auli_pcrel): Likewise.
11453 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11455 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11456 "queue", "next_queue", "prev".
11457 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11458 (tilepro_final_prescan_insn): Likewise for param "insn".
11460 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11462 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11463 Strengthen param 1 from rtx to rtx_insn *.
11464 (tilegx_output_cbranch): Likewise.
11465 (tilegx_adjust_insn_length): Likewise.
11466 (tilegx_final_prescan_insn): Likewise for sole param.
11468 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11470 (cbranch_predicted_p): Likewise for param "insn".
11471 (tilegx_output_simple_cbranch_with_opcode): Likewise.
11472 (tilegx_output_cbranch_with_opcode): Likewise.
11473 (tilegx_output_cbranch): Likewise.
11474 (frame_emit_load): Likewise for return type.
11475 (set_frame_related_p): Likewise for locals "seq", "insn".
11476 (emit_sp_adjust): Likewise for return type, and for local "insn".
11477 Introduce local "pat" for use in place of "insn" where the latter
11478 isn't an instruction.
11479 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11480 from rtx to rtx_insn *.
11481 (tilegx_adjust_insn_length): Likewise for param "insn".
11482 (next_insn_to_bundle): Likewise for return type and params "r" and
11484 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11486 (replace_insns): Likewise for params "old_insn", "new_insns".
11487 (replace_mov_pcrel_step1): Likewise for param "insn" and local
11489 (replace_mov_pcrel_step2): Likewise.
11490 (replace_mov_pcrel_step3): Likewise.
11491 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11493 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11494 "queue", "next_queue", "prev".
11495 (tilegx_output_mi_thunk): Likewise for local "insn".
11496 (tilegx_final_prescan_insn): Likewise for param "insn".
11498 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11500 * config/spu/spu.c (frame_emit_store): Strengthen return type from
11502 (frame_emit_load): Likewise.
11503 (frame_emit_add_imm): Likewise, also for local "insn".
11504 (spu_expand_prologue): Likewise for local "insn".
11505 (struct spu_bb_info): Likewise for field "prop_jump".
11506 (emit_nop_for_insn): Likewise for param "insn" and local
11508 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11510 (spu_emit_branch_hint): Likewise for params "before", "branch" and
11511 locals "hint", "insn".
11512 (get_branch_target): Likewise for param "branch".
11513 (insn_clobbers_hbr): Likewise for param "insn".
11514 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11515 locals "insn", "before_4", "before_16".
11516 (insert_hbrp): Likewise for local "insn".
11517 (spu_machine_dependent_reorg): Likewise for locals "branch",
11518 "insn", "next", "bbend".
11519 (uses_ls_unit): Likewise for param "insn".
11520 (get_pipe): Likewise.
11521 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11522 introducing a checked cast.
11523 (spu_sched_adjust_cost): Likewise for params "insn" and
11525 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11526 (spu_sms_res_mii): Likewise.
11528 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11530 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11531 from rtx to rtx_insn *.
11532 (output_cbranch): Likewise for param 6.
11533 (output_return): Likewise for param 1.
11534 (output_sibcall): Likewise.
11535 (output_v8plus_shift): Likewise.
11536 (output_v8plus_mult): Likewise.
11537 (output_v9branch): Likewise for param 7.
11538 (output_cbcond): Likewise for param 3.
11540 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11542 (sparc_legitimize_pic_address): Likewise.
11543 (sparc_emit_call_insn): Likewise.
11544 (emit_save_or_restore_regs): Likewise.
11545 (emit_window_save): Likewise for return type and local "insn".
11546 (sparc_expand_prologue): Likewise for local "insn".
11547 (sparc_flat_expand_prologue): Likewise.
11548 (output_return): Likewise for param "insn".
11549 (output_sibcall): Likewise for param "insn" and local "delay".
11550 (output_ubranch): Likewise for param "insn".
11551 (output_cbranch): Likewise.
11552 (output_cbcond): Likewise.
11553 (output_v9branch): Likewise.
11554 (output_v8plus_shift): Likewise.
11555 (sparc_output_mi_thunk): Likewise for local "insn".
11556 (get_some_local_dynamic_name): Likewise.
11557 (output_v8plus_mult): Likewise for param "insn".
11559 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11561 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11562 from rtx to rtx_insn *.
11563 (output_branchy_insn): Likewise for param 3.
11564 (output_far_jump): Likewise for param 1.
11565 (final_prescan_insn): Likewise.
11566 (sh_insn_length_adjustment): Likewise for sole param.
11568 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11569 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11571 (sh_emit_compare_and_set): Likewise for local "lab".
11572 (output_far_jump): Strengthen param "insn" and local "prev" from
11574 (output_branchy_insn): Likewise for param "insn" and local
11576 (output_ieee_ccmpeq): Likewise for param "insn".
11577 (struct label_ref_list_d): Strengthen field "label" from rtx to
11579 (pool_node): Likewise.
11580 (pool_window_label): Likewise for this global.
11581 (add_constant): Likewise for return type and locals "lab", "new_rtx".
11582 (dump_table): Strengthen params "start", "barrier" and local
11583 "scan" from rtx to rtx_insn *.
11584 (broken_move): Likewise for param "insn".
11585 (untangle_mova): Likewise for params "first_mova" and "new_mova".
11586 Strengthen param "first_mova" from rtx * to rtx_insn **.
11587 (mova_p): Likewise for param "insn".
11588 (fixup_mova): Likewise for param "mova".
11589 (find_barrier): Likewise for return type, params "mova" and
11590 "from", and locals "barrier_before_mova", "found_barrier",
11591 "good_barrier", "orig", "last_symoff", "next". Strengthen local
11592 "label" from rtx to rtx_code_label *.
11593 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11595 (sh_reorg): Likewise for locals "link", "scan", "barrier".
11596 (split_branches): Likewise for param "first" and local "insn".
11597 (final_prescan_insn): Likewise for param "insn".
11598 (sequence_insn_p): Likewise for locals "prev", "next".
11599 (sh_insn_length_adjustment): Likewise for param "insn".
11600 (sh_can_redirect_branch): Likewise for local "insn".
11601 (find_r0_life_regions): Likewise for locals "end", "insn".
11602 (sh_output_mi_thunk): Likewise for local "insns".
11604 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11606 * config/score/score.c (score_output_mi_thunk): Strengthen local
11607 "insn" from rtx to rtx_insn *.
11608 (score_prologue): Likewise.
11610 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11612 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11613 1 from rtx to rtx_insn *.
11614 (s390_emit_jump): Likewise for return type.
11615 (s390_emit_call): Likewise.
11616 (s390_load_got): Likewise.
11618 * config/s390/s390.c (last_scheduled_insn): Likewise for this
11620 (s390_match_ccmode): Likewise for param "insn".
11621 (s390_emit_jump): Likewise for return type.
11622 (s390_split_branches): Likewise for local "label".
11623 (struct constant): Strengthen field "label" from rtx to
11625 (struct constant_pool): Likewise for field "label". Strengthen
11626 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11628 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11630 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11631 (s390_end_pool): Likewise.
11632 (s390_dump_pool): Likewise for local "insn".
11633 (s390_mainpool_start): Likewise.
11634 (s390_chunkify_start): Likewise.
11635 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11636 with insns. Strengthen locals "label", "jump", "barrier", "next",
11637 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11638 (s390_chunkify_finish): Strengthen local "insn" from rtx to
11640 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11641 "jump", "label", "next_insn".
11642 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11643 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11645 (s390_load_got): Likewise for return type and local "insns".
11646 (s390_save_gprs_to_fprs): Likewise for local "insn".
11647 (s390_restore_gprs_from_fprs): Likewise.
11648 (pass_s390_early_mach::execute): Likewise.
11649 (s390_emit_prologue): Likewise for local "insns".
11650 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11652 (s390_emit_call): Strengthen return type and local "insn" from
11654 (s390_emit_tpf_eh_return): Likewise for local "insn".
11655 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11656 "next_insn", introducing locals "s_pat", "rpat" to allow this.
11657 (s390_fix_long_loop_prediction): Likewise for param "insn" and
11659 (s390_non_addr_reg_read_p): Likewise for param "insn".
11660 (find_cond_jump): Likewise for return type and param "insn".
11661 (s390_swap_cmp): Likewise for param "insn".
11662 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11663 "prev_insn", "next_insn".
11664 (s390_reorg): Likewise for locals "insn", "target".
11665 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11666 (s390_sched_variable_issue): For now, rename param "insn" to
11667 "uncast_insn", introducing a checked cast.
11668 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11670 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11671 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
11673 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11675 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11676 param from rtx to rtx_insn *.
11677 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11679 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11681 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11682 4 from rtx to rtx_insn *.
11683 (rs6000_final_prescan_insn): Likewise for first param.
11684 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11686 (rs6000_get_some_local_dynamic_name): Likewise.
11687 (output_cbranch): Likewise for param "insn".
11688 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11689 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11690 (rs6000_emit_allocate_stack): Likewise for local "insn".
11691 (load_cr_save): Likewise.
11692 (restore_saved_cr): Likewise.
11693 (restore_saved_lr): Likewise.
11694 (emit_cfa_restores): Likewise.
11695 (rs6000_output_function_epilogue): Likewise for locals "insn" and
11696 "deleted_debug_label".
11697 (rs6000_output_mi_thunk): Likewise for local "insn".
11698 (rs6000_final_prescan_insn): Likewise for param "insn".
11700 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11702 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11703 Strengthen param "insn" from rtx to rtx_insn *.
11704 * config/picochip/picochip.c (picochip_current_prescan_insn):
11705 Likewise for this variable.
11706 (picochip_final_prescan_insn): Likewise for param "insn".
11708 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11710 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11711 from rtx to rtx_insn *.
11712 (pa_output_indirect_call): Likewise.
11713 (pa_adjust_insn_length): Likewise.
11714 (pa_attr_length_millicode_call): Likewise.
11715 (pa_attr_length_call): Likewise.
11716 (pa_attr_length_indirect_call): Likewise.
11718 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11720 (pa_attr_length_millicode_call): Likewise.
11721 (pa_attr_length_call): Likewise.
11722 (pa_output_call): Likewise.
11723 (pa_attr_length_indirect_call): Likewise.
11724 (pa_output_indirect_call): Likewise.
11726 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11728 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11729 Strengthen first param from rtx to rtx_insn *.
11730 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11733 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11735 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11736 type from rtx to rtx_insn *.
11737 (mips_expand_call): Likewise.
11738 (mips_adjust_insn_length): Likewise for first param.
11739 (mips_output_conditional_branch): Likewise.
11740 (mips_output_order_conditional_branch): Likewise.
11741 (mips_final_prescan_insn): Likewise.
11743 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11744 rtx_insn * for the SEQUENCE case.
11745 (SEQ_END): Likewise.
11746 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11747 (mips_emit_call_insn): Likewise, also for local "insn".
11748 (mips16_gp_pseudo_reg): Likewise for local "scan".
11749 (mips16_build_call_stub): Likewise for return type and for local
11750 "insn". Introduce a new local "pattern" so that "insn" can indeed
11752 (mips_expand_call): Strengthen return type and local "insn" from
11754 (mips_block_move_loop): Strengthen local "label" from rtx to
11756 (mips_expand_synci_loop): Likewise for locals "label",
11758 (mips_set_frame_expr): Strengthen local "insn" from rtx to
11760 (mips16e_collect_argument_saves): Likewise for locals "insn",
11762 (mips_find_gp_ref): Likewise for param of callback for "pred"
11763 param, and for local "insn".
11764 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11765 (mips_insn_has_flexible_gp_ref_p): Likewise.
11766 (mips_epilogue_emit_cfa_restores): Likewise for return type and
11768 (mips_epilogue_set_cfa): Likewise for local "insn".
11769 (mips_expand_epilogue): Likewise.
11770 (mips_adjust_insn_length): Likewise for param "insn".
11771 (mips_output_conditional_branch): Likewise.
11772 (mips_output_order_conditional_branch): Likewise.
11773 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11774 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11775 "falu2_turn_enabled_insn".
11776 (mips_builtin_branch_and_move): Strengthen locals "true_label",
11777 "done_label" from rtx to rtx_code_label *.
11778 (struct mips16_constant): Likewise for field "label".
11779 (mips16_add_constant): Likewise for return type.
11780 (mips16_emit_constants_1): Strengthen return type and param "insn"
11781 from rtx to rtx_insn *.
11782 (mips16_emit_constants): Likewise for param "insn".
11783 (mips16_insn_length): Likewise.
11784 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11785 to rtx_code_label *.
11786 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11787 from rtx to rtx_insn *.
11788 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11789 "jump". Strengthen local "label" from rtx to rtx_code_label *.
11790 (r10k_simplify_address): Strengthen param "insn" and local
11791 "def_insn" from rtx to rtx_insn *.
11792 (r10k_safe_address_p): Strengthen param "insn" from rtx to
11794 (r10k_needs_protection_p_1): Update target type of cast of data
11795 from to rtx to rtx_insn *.
11796 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11797 rtx * to rtx_insn **.
11798 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11800 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11801 (mips_call_expr_from_insn): Likewise for param "insn".
11802 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11803 (mips_find_pic_call_symbol): Likewise for param "insn".
11804 (mips_annotate_pic_calls): Likewise for local "insn".
11805 (mips_sim_insn): Likewise for this variable.
11806 (struct mips_sim): Likewise for field "insn" within elements of
11808 (mips_sim_wait_reg): Likewise for param "insn".
11809 (mips_sim_wait_regs): Likewise.
11810 (mips_sim_wait_units): Likewise.
11811 (mips_sim_wait_insn): Likewise.
11812 (mips_sim_issue_insn): Likewise.
11813 (mips_sim_finish_insn): Likewise.
11814 (mips_seq_time): Likewise for param "seq" and local "insn".
11815 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11816 locals "first", "second".
11817 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11818 "last", "last2", "next".
11819 (mips_avoid_hazard): Likewise for params "after", "insn".
11820 (mips_reorg_process_insns): Likewise for locals "insn",
11821 "last_insn", "subinsn", "next_insn".
11822 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11823 (mips16_split_long_branches): Likewise for locals "insn" "jump",
11825 (mips_output_mi_thunk): Likewise for local "insn".
11826 (mips_final_prescan_insn): Likewise for param "insn".
11828 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11830 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11831 Strengthen return type and local "insns" from rtx to rtx_insn *.
11832 (microblaze_legitimize_tls_address): Likewise for local "insns".
11833 (microblaze_block_move_loop): Strengthen local "label" from rtx
11834 to rtx_code_label *.
11835 (microblaze_expand_prologue): Strengthen two locals named "insn"
11836 from rtx to rtx_insn *.
11837 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11838 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11839 "insn". Strengthen locals "div_label", "div_end_label" from rtx
11840 to rtx_code_label *.
11842 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11844 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11845 param from rtx to rtx_insn *.
11846 (mep_reuse_lo): Likewise for third param.
11847 (mep_use_post_modify_p): Likewise for first param.
11848 (mep_core_address_length): Likewise.
11849 (mep_cop_address_length): Likewise.
11850 (mep_final_prescan_insn): Likewise.
11851 (mep_store_data_bypass_p): Likewise for both params.
11852 (mep_mul_hilo_bypass_p): Likewise.
11853 (mep_ipipe_ldc_p): Likewise for param.
11855 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11856 (mep_rewrite_mult): Likewise.
11857 (mep_rewrite_mulsi3): Likewise.
11858 (mep_rewrite_maddsi3): Likewise.
11859 (mep_reuse_lo_p_1): Likewise.
11860 (mep_reuse_lo_p): Likewise.
11861 (mep_frame_expr): Likewise.
11862 (mep_make_parallel): Likewise for both params.
11863 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11865 (mep_use_post_modify_p): Likewise for param "insn".
11866 (mep_core_address_length): Likewise.
11867 (mep_cop_address_length): Likewise.
11868 (mep_reg_set_in_function): Likewise for local "insn".
11869 (mep_asm_without_operands_p): Likewise.
11870 (F): Likewise for return type and param "x".
11871 (add_constant): Likewise for local "insn".
11872 (maybe_dead_move): Likewise for return type and local "insn".
11873 (mep_expand_prologue): Likewise for local "insn".
11874 (mep_final_prescan_insn): Likewise for param "insn".
11875 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11876 "next", "follow", "x".
11877 (mep_insert_repeat_label_last): Likewise for return type, param
11878 "last_insn", and locals "next", "prev". Strengthen param "label"
11879 from rtx to rtx_code_label *.
11880 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11882 (struct mep_doloop_end): Likewise for fields "insn" and
11884 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11885 Strengthen local "repeat_label" from rtx to rtx_code_label *.
11886 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11888 (mep_invert_branch): Likewise for params "insn" and "after".
11889 (mep_reorg_erepeat): Likewise for param "insns" and locals
11890 "insn", "prev", "new_last", "barrier", "user". Strengthen local
11891 "l" from rtx to rtx_code_label *.
11892 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11893 from rtx to rtx_insn *.
11894 (mep_reorg_addcombine): Likewise for param "insns" and locals
11896 (add_sp_insn_p): Likewise for param "insn".
11897 (mep_reorg_noframe): Likewise for param "insns" and locals
11898 "start_frame_insn", "end_frame_insn", "next".
11899 (mep_reorg): Likewise for local "insns".
11900 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
11902 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11903 (mep_mul_hilo_bypass_p): Likewise.
11904 (mep_ipipe_ldc_p): Likewise for param "insn".
11905 (mep_make_bundle): Likewise for return type, param "cop" and local
11906 "insn", splitting out the latter into a new local "seq" for when it
11907 is a SEQUENCE rather than an insn.
11908 (core_insn_p): Likewise for param "insn".
11909 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11910 "last", "first", "note", "prev", "core_insn".
11912 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11914 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11916 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11917 (m68k_final_prescan_insn): Likewise for first param.
11919 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11920 (m68k_set_frame_related): Likewise for param "insn".
11921 (output_btst): Likewise for param "insn".
11922 (m68k_final_prescan_insn): Likewise.
11923 (m68k_move_to_reg): Likewise for local "insn".
11924 (m68k_call_tls_get_addr): Likewise for local "insns".
11925 (m68k_call_m68k_read_tp): Likewise.
11926 (strict_low_part_peephole_ok): Likewise for param "first_insn".
11927 (m68k_output_mi_thunk): Likewise for local "insn".
11929 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11931 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11932 first param from rtx to rtx_insn *.
11933 (iq2000_adjust_insn_length): Likewise.
11934 (iq2000_output_conditional_branch): Likewise.
11935 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11936 "insn" and local "nop_insn".
11937 (iq2000_annotate_frame_insn): Likewise for param "insn".
11938 (iq2000_expand_prologue): Likewise for both locals "insn".
11939 (iq2000_adjust_insn_length): Likewise for param "insn".
11940 (iq2000_output_conditional_branch): Likewise.
11942 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11944 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11945 "insns" from rtx to rtx_insn *.
11946 (ia64_emit_cond_move): Likewise for locals "insn", "first".
11947 (struct spill_fill_data): Likewise for field "init_after" and for
11948 elements of array field "prev_insn".
11949 (spill_restore_mem): Likewise for locals "insn", "first".
11950 (do_spill): Likewise for local "insn".
11951 (do_restore): Likewise.
11952 (ia64_expand_prologue): Likewise.
11953 (ia64_expand_epilogue): Likewise.
11954 (emit_insn_group_barriers): Likewise for locals "insn",
11956 (emit_all_insn_group_barriers): Likewise for locals "insn",
11958 (dfa_stop_insn): Likewise for this global.
11959 (dfa_pre_cycle_insn): Likewise.
11960 (ia64_nop): Likewise.
11961 (final_emit_insn_group_barriers): Likewise for locals "insn",
11963 (emit_predicate_relation_info): Likewise for locals "head", "n",
11965 (ia64_reorg): Likewise for local "insn".
11966 (ia64_output_mi_thunk): Likewise.
11967 (expand_vec_perm_interleave_2): Likewise for local "seq".
11969 2014-08-25 David Malcolm <dmalcolm@redhat.com>
11971 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11972 param 1 "insn" from rtx to rtx_insn *.
11973 (ix86_use_lea_for_mov): Likewise.
11974 (ix86_avoid_lea_for_addr): Likewise.
11975 (ix86_split_lea_for_addr): Likewise.
11976 (ix86_lea_for_add_ok): Likewise.
11977 (ix86_output_call_insn): Likewise.
11979 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11980 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11981 (ix86_output_function_epilogue): Likewise for locals "insn",
11982 "deleted_debug_label".
11983 (legitimize_tls_address): Likewise for local "insn".
11984 (get_some_local_dynamic_name): Likewise.
11985 (increase_distance): Likewise for params "prev", "next".
11986 (distance_non_agu_define_in_bb): Likewise for params "insn",
11987 "start" and locals "prev", "next".
11988 (distance_non_agu_define): Likewise for param "insn".
11989 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11990 locals "next", "prev".
11991 (distance_agu_use): Likewise for param "insn".
11992 (ix86_lea_outperforms): Likewise.
11993 (ix86_ok_to_clobber_flags): Likewise.
11994 (ix86_avoid_lea_for_add): Likewise.
11995 (ix86_use_lea_for_mov): Likewise.
11996 (ix86_avoid_lea_for_addr): Likewise.
11997 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11998 (ix86_split_lea_for_addr): Likewise for param "insn".
11999 (ix86_lea_for_add_ok): Likewise for param "insn".
12000 (ix86_expand_carry_flag_compare): Likewise for local
12002 (ix86_expand_int_movcc): Likewise.
12003 (ix86_output_call_insn): Likewise for param "insn".
12004 (ix86_output_call_insn): Likewise for local "i".
12005 (x86_output_mi_thunk): Introduce local "insn", using it in place
12006 of "tmp" when dealing with insns.
12007 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
12009 (ix86_pad_returns): Likewise for locals "ret", "prev".
12010 (ix86_count_insn_bb): Likewise for local "insn".
12011 (ix86_pad_short_function): Likewise for locals "ret", "insn".
12012 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
12013 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
12014 (expand_vec_perm_interleave2): Likewise for local "seq".
12015 (expand_vec_perm_vperm2f128_vblend): Likewise.
12016 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
12017 call to for_each_rtx with for_each_rtx_in_insn.
12019 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12021 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
12022 "label" from rtx to rtx_code_label *.
12023 (ix86_expand_prologue): Likewise.
12024 (ix86_expand_split_stack_prologue): Likewise for locals "label",
12026 (ix86_split_idivmod): Likewise for locals "end_label" and
12028 (ix86_expand_branch): Likewise for local "label2".
12029 (ix86_expand_aligntest): Likewise for return type and local "label".
12030 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
12032 (expand_movmem_epilogue): Likewise for the various locals named
12034 (expand_setmem_epilogue): Likewise.
12035 (expand_small_movmem_or_setmem): Likewise for local "label".
12036 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12037 Strengthen param "done_label" from rtx * to rtx_code_label **.
12038 Strengthen locals "loop_label" and "label" from rtx to
12040 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12041 Likewise for locals "loop_label", "label".
12042 (ix86_expand_set_or_movmem): Likewise for locals "label",
12043 "jump_around_label", "hot_label".
12044 (ix86_expand_strlensi_unroll_1): Likewise for locals
12045 "align_2_label", align_3_label", "align_4_label", "end_0_label",
12047 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
12048 (void ix86_emit_i387_log1p): Likewise for locals "label1",
12049 "label2", "jump_label".
12050 (ix86_expand_sse_compare_and_jump): Likewise for return type and
12052 (ix86_expand_lfloorceil): Likewise for local "label".
12053 (ix86_expand_rint): Likewise.
12054 (ix86_expand_floorceildf_32): Likewise.
12055 (ix86_expand_floorceil): Likewise.
12056 (ix86_expand_rounddf_32): Likewise.
12057 (ix86_expand_trunc): Likewise.
12058 (ix86_expand_truncdf_32): Likewise.
12059 (ix86_expand_round): Likewise.
12061 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12063 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
12064 first param from rtx to rtx_insn *.
12065 (h8300_insn_length_from_table): Likewise.
12066 * config/h8300/h8300.c (F): Likewise for return type and param
12068 (Fpa): Add a checked cast to rtx_insn *.
12069 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
12071 (final_prescan_insn): Likewise for param "insn".
12072 (h8300_binary_length): Likewise.
12073 (h8300_insn_length_from_table): Likewise.
12075 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12077 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
12078 Strengthen first param "insn" from rtx to rtx_insn *.
12080 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
12082 (frame_insn): Likewise for return type. Introduce local "insn"
12083 for use in place of local "x" for use as an rtx_insn *.
12084 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
12085 (epiphany_expand_prologue): Likewise for local "insn".
12086 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
12087 * config/epiphany/resolve-sw-modes.c
12088 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
12091 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12093 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
12094 param from rtx to rtx_insn *.
12095 (c6x_final_prescan_insn): Likewise for first param.
12097 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
12098 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
12099 (c6x_expand_compare): Strengthen local "insns" from rtx to
12101 (c6x_get_unit_specifier): Likewise for param "insn".
12102 (c6x_print_unit_specifier_field): Likewise.
12103 (c6x_final_prescan_insn): Likewise.
12104 (emit_add_sp_const): Likewise for local "insn".
12105 (c6x_expand_prologue): Likewise.
12107 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12109 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
12110 param 1 from rtx to rtx_insn *.
12111 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
12112 the various locals named "insn".
12113 (expand_epilogue_reg_restore): Likewise.
12114 (frame_related_constant_load): Likewise.
12115 (add_to_reg): Likewise.
12116 (emit_link_insn): Likewise.
12117 (do_link): Likewise.
12118 (expand_interrupt_handler_prologue): Likewise.
12119 (branch_dest): Likewise for param "branch".
12120 (asm_conditional_branch): Likewise for param "insn".
12121 (gen_one_bundle): Likewise for elements of param "slot" and local
12123 (bfin_gen_bundles): Likewise for locals "insn", "next" and
12124 elements of local "slot".
12125 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
12126 "queue", "next_queue", "prev".
12127 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
12128 (add_sched_insns_for_speculation): Likewise for local "insn".
12130 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12132 * config/avr/avr-protos.h (output_movqi): Strengthen first param
12133 from rtx to rtx_insn *.
12134 (output_movhi): Likewise.
12135 (output_movsisf): Likewise.
12136 (avr_out_tstsi): Likewise.
12137 (avr_out_tsthi): Likewise.
12138 (avr_out_tstpsi): Likewise.
12139 (avr_out_compare): Likewise.
12140 (avr_out_compare64): Likewise.
12141 (avr_out_movpsi): Likewise.
12142 (ashlqi3_out): Likewise.
12143 (ashlhi3_out): Likewise.
12144 (ashlsi3_out): Likewise.
12145 (ashrqi3_out): Likewise.
12146 (ashrhi3_out): Likewise.
12147 (ashrsi3_out): Likewise.
12148 (lshrqi3_out): Likewise.
12149 (lshrhi3_out): Likewise.
12150 (lshrsi3_out): Likewise.
12151 (avr_out_ashlpsi3): Likewise.
12152 (avr_out_ashrpsi3): Likewise.
12153 (avr_out_lshrpsi3): Likewise.
12154 (avr_out_fract): Likewise.
12155 (avr_out_sbxx_branch): Likewise.
12156 (avr_out_round): Likewise.
12157 (avr_out_xload): Likewise.
12158 (avr_out_movmem): Likewise.
12159 (adjust_insn_length): Likewise.
12160 (avr_out_lpm): Likewise.
12161 (reg_unused_after): Likewise.
12162 (_reg_unused_after): Likewise.
12163 (avr_jump_mode): Likewise for second param.
12164 (jump_over_one_insn): Likewise for first param.
12165 (avr_final_prescan_insn): Likewise.
12166 (out_shift_with_cnt): Likewise for second param.
12168 * config/avr/avr.c (get_sequence_length): Likewise for param
12169 "insns" and local "insn".
12170 (emit_push_byte): Likewise for local "insn".
12171 (emit_push_sfr): Likewise.
12172 (avr_prologue_setup_frame): Likewise for locals "insn",
12173 "fp_plus_insns", "sp_plus_insns".
12174 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
12176 (avr_jump_mode): Likewise for param "insn".
12177 (avr_final_prescan_insn): Likewise.
12178 (avr_find_unused_d_reg): Likewise.
12179 (avr_out_lpm_no_lpmx): Likewise.
12180 (avr_out_lpm): Likewise.
12181 (avr_out_xload): Likewise.
12182 (output_movqi): Likewise.
12183 (output_movhi): Likewise.
12184 (out_movqi_r_mr): Likewise.
12185 (out_movhi_r_mr): Likewise.
12186 (out_movsi_r_mr): Likewise.
12187 (out_movsi_mr_r): Likewise.
12188 (output_movsisf): Likewise.
12189 (avr_out_load_psi): Likewise.
12190 (avr_out_store_psi): Likewise.
12191 (avr_out_movpsi): Likewise.
12192 (out_movqi_mr_r): Likewise.
12193 (avr_out_movhi_mr_r_xmega): Likewise.
12194 (out_movhi_mr_r): Likewise.
12195 (compare_condition): Likewise for param "insn" and local "next".
12196 (compare_sign_p): Likewise for param "insn".
12197 (compare_diff_p): Likewise.
12198 (compare_eq_p): Likewise.
12199 (avr_out_compare): Likewise.
12200 (avr_out_compare64): Likewise.
12201 (avr_out_tsthi): Likewise.
12202 (avr_out_tstpsi): Likewise.
12203 (avr_out_tstsi): Likewise.
12204 (out_shift_with_cnt): Likewise.
12205 (ashlqi3_out): Likewise.
12206 (ashlhi3_out): Likewise.
12207 (avr_out_ashlpsi3): Likewise.
12208 (ashlsi3_out): Likewise.
12209 (ashrqi3_out): Likewise.
12210 (ashrhi3_out): Likewise.
12211 (avr_out_ashrpsi3): Likewise.
12212 (ashrsi3_out): Likewise.
12213 (lshrqi3_out): Likewise.
12214 (lshrhi3_out): Likewise.
12215 (avr_out_lshrpsi3): Likewise.
12216 (lshrsi3_out): Likewise.
12217 (avr_out_fract): Likewise.
12218 (avr_out_round): Likewise.
12219 (avr_adjust_insn_length): Likewise.
12220 (reg_unused_after): Likewise.
12221 (_reg_unused_after): Likewise.
12222 (avr_compare_pattern): Likewise.
12223 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
12224 and locals "branch1", "branch2", "insn2", "jump".
12225 (avr_reorg): Likewise for local "insn".
12226 (avr_2word_insn_p): Likewise for param "insn".
12227 (jump_over_one_insn_p): Likewise.
12228 (avr_out_sbxx_branch): Likewise.
12229 (avr_out_movmem): Likewise.
12231 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12233 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
12234 param from rtx to rtx_insn *.
12235 (thumb1_final_prescan_insn): Likewise.
12236 (thumb2_final_prescan_insn): Likewise.
12238 * config/arm/arm.c (emit_set_insn): Strengthen return type from
12240 (struct minipool_node): Likewise for field "insn".
12241 (dump_minipool): Likewise for param "scan".
12242 (create_fix_barrier): Likewise for local "from". Strengthen local
12243 "label" from rtx to rtx_code_label *.
12244 (push_minipool_barrier): Strengthen param "insn" from rtx to
12246 (push_minipool_fix): Likewise.
12247 (note_invalid_constants): Likewise.
12248 (thumb2_reorg): Likewise for local "insn".
12249 (arm_reorg): Likewise.
12250 (thumb2_final_prescan_insn): Likewise for param
12251 "insn" and local "first_insn".
12252 (arm_final_prescan_insn): Likewise for param "insn" and locals
12253 "start_insn", "this_insn".
12254 (arm_debugger_arg_offset): Likewise for param "insn".
12255 (thumb1_emit_multi_reg_push): Likewise for return type and local
12257 (thumb1_final_prescan_insn): Likewise for param "insn".
12258 (thumb_far_jump_used_p): Likewise for local "insn".
12259 (thumb1_expand_prologue): Likewise.
12260 (arm_expand_epilogue_apcs_frame): Likewise.
12261 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
12262 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
12263 from rtx to rtx_code_label *.
12264 (arm_split_atomic_op): Likewise for local "label".
12265 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
12267 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12269 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
12270 first param from rtx to rtx_insn *.
12271 (arc_verify_short): Likewise.
12272 (arc_short_long): Likewise.
12273 (arc_need_delay): Likewise.
12275 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
12277 (arc_ccfsm_advance): Likewise for param "insn" and locals
12278 "start_insn", "this_insn".
12279 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
12280 (arc_ccfsm_post_advance): Likewise for param "insn".
12281 (arc_next_active_insn): Likewise for return type and param "insn".
12282 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
12283 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
12284 (output_short_suffix): Likewise for local "insn".
12285 (arc_final_prescan_insn): Likewise for param "insn". Remove
12286 now-redundant checked cast.
12287 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
12288 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
12289 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
12290 for use where lc_set became an insn.
12291 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
12293 (arc_get_insn_variants): Likewise for local "prev".
12294 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
12296 (arc_predicate_delay_insns): Likewise for local "insn".
12297 (arc_pad_return): Likewise for local "prev". For now, add a
12298 checked cast when extracting the insn from "final_sequence".
12299 (arc_short_long): Likewise for param "insn".
12300 (arc_need_delay): Likewise for param "insn" and local "next".
12301 (arc_label_align): Likewise for locals "prev", "next".
12303 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12305 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
12306 "insn" from rtx to rtx_insn *.
12307 (alpha_gp_save_rtx): Likewise for local "seq".
12308 (alpha_instantiate_decls): Likewise for local "top".
12309 (get_some_local_dynamic_name): Likewise for local "insn".
12310 (alpha_does_function_need_gp): Likewise.
12311 (set_frame_related_p): Likewise for return type and for locals
12313 (emit_frame_store_1): Likewise for local "insn".
12314 (alpha_expand_prologue): Likewise for locals "insn", "seq".
12315 (alpha_end_function): Likewise for local "insn".
12316 (alpha_output_mi_thunk_osf): Likewise.
12317 (alphaev4_insn_pipe): Likewise for param "insn".
12318 (alphaev5_insn_pipe): Likewise.
12319 (alphaev4_next_group): Likewise for return type and param 1
12321 (alphaev5_next_group): Likewise.
12322 (alpha_align_insns_1): Likewise for return type and param 1 of
12323 callback param "next_group", and for locals "i", "next", "prev",
12324 "where", "where2", "insn".
12326 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
12328 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
12329 rather than modifying the stmt.
12331 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
12333 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
12334 cgraph_state conversion.
12336 2014-08-25 David Malcolm <dmalcolm@redhat.com>
12338 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12339 Strengthen local "insns" from rtx to rtx_insn *.
12340 (aarch64_set_frame_expr): Likewise for local "insn".
12341 (aarch64_save_or_restore_fprs): Likewise.
12342 (aarch64_save_or_restore_callee_save_registers): Likewise.
12343 (aarch64_expand_prologue): Likewise.
12344 (aarch64_expand_epilogue): Likewise.
12345 (aarch64_output_mi_thunk): Likewise.
12346 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
12347 "label2" from rtx to rtx_code_label *.
12348 (aarch64_split_atomic_op): Likewise for local "label".
12350 2014-08-25 Martin Liska <mliska@suse.cz>
12352 * cgraph.h (symtab_node):
12353 (bool needed_p (void)): created from decide_is_symbol_needed
12354 (bool referred_to_p (void)): created from referred_to_p
12355 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
12356 * cgraph.h (cgraph_node):
12357 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
12358 (void expand (void)): created from expand_function
12359 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
12360 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
12361 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
12362 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
12363 * cgraph.h (varpool_node):
12364 (static void add (tree decl): created from varpool_add_new_variable
12365 * cgraph.h (cgraph_edge):
12366 void remove (void);
12367 (void remove_caller (void)): created from cgraph_edge_remove_caller
12368 (void remove_callee (void)): created from cgraph_edge_remove_callee
12369 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
12370 created from cgraph_set_call_stmt
12371 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
12372 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
12373 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
12374 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
12375 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
12376 created from cgraph_speculative_call_info
12377 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
12378 int freq_scale, bool update_original)): created from cgraph_clone_edge
12379 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
12380 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
12381 (bool recursive_p (void)): created from cgraph_edge_recursive_p
12382 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
12383 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
12384 (static void rebuild_references (void)): created from cgraph_rebuild_references
12385 * cgraph.h (symbol_table):
12386 (create_reference): renamed from add_reference
12387 (maybe_create_reference): renamed from maybe_add_reference
12388 (void register_symbol (symtab_node *node)): new function
12389 (void clear_asm_symbols (void)): new function
12390 (void unregister (symtab_node *node)): new function
12391 (void release_symbol (cgraph_node *node, int uid)): new function
12392 (cgraph_node * allocate_cgraph_symbol (void)): new function
12393 (void initialize (void)): created from cgraph_init
12394 (symtab_node *first_symbol (void)):new function
12395 (asm_node *first_asm_symbol (void)):new function
12396 (symtab_node *first_defined_symbol (void)):new function
12397 (varpool_node *first_variable (void)):new function
12398 (varpool_node *next_variable (varpool_node *node)):new function
12399 (varpool_node *first_static_initializer (void)):new function
12400 (varpool_node *next_static_initializer (varpool_node *node)):new function
12401 (varpool_node *first_defined_variable (void)):new function
12402 (varpool_node *next_defined_variable (varpool_node *node)):new function
12403 (cgraph_node *first_defined_function (void)):new function
12404 (cgraph_node *next_defined_function (cgraph_node *node)):new function
12405 (cgraph_node *first_function (void)):new function
12406 (cgraph_node *next_function (cgraph_node *node)):new function
12407 (cgraph_node *first_function_with_gimple_body (void)):new function
12408 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
12409 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
12410 created from symtab_remove_unreachable_nodes
12411 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12412 (void process_new_functions (void)): created from cgraph_process_new_functions
12413 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12414 (bool output_variables (void)): created from varpool_node::output_variables
12415 (void output_asm_statements (void)): created from output_asm_statements
12416 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12417 (void compile (void)): created from compile
12418 (void output_weakrefs (void)): created from output_weakrefs
12419 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12420 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12421 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12422 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12423 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12424 created from cgraph_next_function_with_gimple_body
12425 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12426 created from cgraph_remove_edge_removal_hook
12427 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12428 created from cgraph_add_node_removal_hook
12429 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12430 created from cgraph_remove_node_removal_hook
12431 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12432 created from varpool_add_node_removal_hook
12433 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12434 created from varpool_remove_node_removal_hook
12435 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12436 created from cgraph_add_function_insertion_hook
12437 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12438 created from cgraph_remove_function_insertion_hook
12439 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12440 created from varpool_add_variable_insertion_hook
12441 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12442 created from varpool_remove_variable_insertion_hook
12443 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12444 created from cgraph_add_edge_duplication_hook
12445 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12446 created from cgraph_remove_edge_duplication_hook
12447 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12448 created from cgraph_add_node_duplication_hook
12449 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12450 created from cgraph_remove_node_duplication_hook
12451 (void call_edge_removal_hooks (cgraph_edge *e)):
12452 created from cgraph_call_edge_removal_hooks
12453 (void call_cgraph_insertion_hooks (cgraph_node *node)):
12454 created from call_function_insertion_hooks
12455 (void call_cgraph_removal_hooks (cgraph_node *node)):
12456 created from cgraph_call_node_removal_hooks
12457 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12458 created from cgraph_node::call_duplication_hooks
12459 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12460 created from cgraph_call_edge_duplication_hooks
12461 (void call_varpool_removal_hooks (varpool_node *node)):
12462 created from varpool_call_node_removal_hooks
12463 (void call_varpool_insertion_hooks (varpool_node *node)):
12464 created from varpool_call_variable_insertion_hooks
12465 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12466 created from insert_to_assembler_name_hash
12467 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12468 created from unlink_from_assembler_name_hash
12469 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12470 created from symtab_prevail_in_asm_name_hash
12471 (void symtab_initialize_asm_name_hash (void)):
12472 created from symtab_initialize_asm_name_hash
12473 (void change_decl_assembler_name (tree decl, tree name)):
12474 created from change_decl_assembler_name
12475 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12476 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12477 created from decl_assembler_name_hash
12478 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12479 created from decl_assembler_name_equal
12480 (static hashval_t hash_node_by_assembler_name (const void *p)):
12481 created from hash_node_by_assembler_name
12482 (static int eq_assembler_name (const void *p1, const void *p2)):
12483 created from eq_assembler_name
12485 2014-08-25 Marek Polacek <polacek@redhat.com>
12487 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12489 2014-08-25 Petr Murzin <petr.murzin@intel.com>
12491 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12492 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12493 SWI1248_AVX512BW mode iterator.
12495 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
12498 * config/sh/predicates.md (general_extend_operand): Disable
12499 TRUNCATE before reload completes.
12501 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
12503 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12505 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
12508 * config/sh/sh.opt (musermode): Allow negative form.
12509 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12510 targets that don't support it.
12511 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12512 Document -mno-usermode option.
12514 2014-08-24 Kito Cheng <kito@0xlab.org>
12516 * system.h (CALLER_SAVE_PROFITABLE): Poison.
12517 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12518 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12519 * doc/tm.texi: Regenerate.
12521 2014-08-24 Kito Cheng <kito@0xlab.org>
12523 * ira.c: Fix typo in comment.
12525 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
12527 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12528 Deprecate c++1y. Change language to reflect greater confidence in C++14.
12530 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
12533 * config/pa/pa.c (pa_output_function_epilogue): Don't set
12534 last_address when the current function is a thunk.
12535 (pa_asm_output_mi_thunk): When we don't have named sections or they
12536 are not being used, check that thunk can reach the stub table with a
12539 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12541 * web.c (union_match_dups): Strengthen param "insn" from rtx to
12543 (pass_web::execute): Likewise for local "insn".
12545 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12547 * var-tracking.c (struct micro_operation_def): Strengthen field
12548 "insn" from rtx to rtx_insn *.
12549 (struct emit_note_data_def): Likewise.
12550 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12551 (vt_stack_adjustments): Likewise for local "insn".
12552 (adjust_insn): Likewise for param "insn".
12553 (val_store): Likewise.
12554 (val_resolve): Likewise.
12555 (struct count_use_info): Likewise for field "insn".
12556 (log_op_type): Likewise for param "insn".
12557 (reverse_op): Likewise.
12558 (prepare_call_arguments): Likewise.
12559 (add_with_sets): The initial param takes an insn, but we can't
12560 yet strengthen it from rtx to rtx_insn * since it's used as a
12561 cselib_record_sets_hook callback. For now rename initial param
12562 from "insn" to "uncast_insn", and introduce a local "insn" of
12563 the stronger rtx_insn * type, with a checked cast.
12564 (compute_bb_dataflow): Strengthen local "insn" from rtx to
12566 (emit_note_insn_var_location): Likewise.
12567 (emit_notes_for_changes): Likewise.
12568 (emit_notes_for_differences): Likewise.
12569 (next_non_note_insn_var_location): Likewise for return type and
12571 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12572 (vt_initialize): Likewise for local "insn".
12573 (delete_debug_insns): Likewise for locals "insn" and "next".
12575 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12577 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12579 (mark_constant_pool): Likewise for local "insn".
12581 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12583 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12585 (dead_debug_promote_uses): Likewise.
12586 (dead_debug_insert_temp): Likewise.
12588 2014-08-23 David Malcolm <dmalcolm@redhat.com>
12590 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12591 from const_rtx to const rtx_insn *.
12592 (store_killed_after): Likewise. Strengthen locals "last", "act"
12593 from rtx to rtx_insn *.
12594 (store_killed_before): Strengthen param "insn" from const_rtx to
12595 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
12596 (find_moveable_store): Strengthen param "insn" from rtx to
12598 (compute_store_table): Likewise for local "insn".
12599 (insert_insn_start_basic_block): Likewise for param "insn" and
12600 locals "prev", "before", "insn".
12601 (insert_store): For now, add a checked cast to rtx_insn * on the
12602 result of gen_move_insn.
12603 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12605 (replace_store_insn): Likewise. For now, add a checked cast to
12606 rtx_insn * on the result of gen_move_insn.
12608 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12610 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12612 (expand_sjlj_dispatch_table): Likewise.
12614 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12616 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12617 "insn" from rtx to rtx_insn *.
12619 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12621 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12622 "insn" from rtx to rtx_insn *.
12623 (dup_block_and_redirect): Likewise for param 3 "before".
12625 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12626 from rtx to rtx_insn *.
12627 (move_insn_for_shrink_wrap): Likewise.
12628 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12629 (dup_block_and_redirect): Likewise for param "before" and local
12631 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12633 (convert_to_simple_return): Likewise for local "start".
12635 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12636 Strengthen local "insn" from rtx to rtx_insn *, for use when
12637 invoking requires_stack_frame_p.
12639 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12641 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12643 (speculate_expr): Likewise for locals "orig_insn_rtx",
12645 (eq_transformed_insns): Likewise for locals "i1", "i2".
12646 (check_for_new_jump): Likewise for return type and local "end".
12647 (find_new_jump): Likewise for return type and local "jump".
12648 (sel_split_edge): Likewise for local "jump".
12649 (sel_create_recovery_block): Likewise.
12650 (sel_redirect_edge_and_branch_force): Likewise.
12651 (sel_redirect_edge_and_branch): Likewise.
12653 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12655 * sel-sched.c (substitute_reg_in_expr): Strengthen local
12656 "new_insn" from rtx to rtx_insn *.
12657 (create_insn_rtx_with_rhs): Likewise for return type and for local
12659 (create_insn_rtx_with_lhs): Likewise.
12660 (create_speculation_check): Likewise for local "insn_rtx".
12661 (implicit_clobber_conflict_p): Likewise for local "insn".
12662 (get_expr_cost): Likewise.
12663 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12664 (move_cond_jump): Likewise for locals "next", "prev", "link",
12665 "head", "from", "to".
12667 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12669 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12670 "next" from rtx to rtx_insn *.
12671 (find_conditional_protection): Likewise for local "next".
12672 (is_conditionally_protected): Likewise for local "insn1".
12673 (is_pfree): Likewise for locals "insn1", "insn2".
12675 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12677 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12678 from rtx to rtx_insn *.
12680 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12681 locals "insn1", "insn2" from rtx to rtx_insn *.
12682 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12683 locals "insn", "prev", "last_jump", "next_tail".
12684 (schedule_ebb): Likewise for params "head", "tail".
12685 (schedule_ebbs): Likewise for locals "tail", "head".
12687 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12688 to rtx_insn on "last_insn" in one of the invocations of
12691 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12693 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12694 "elem", "insn" from rtx to rtx_insn *.
12695 (change_spec_dep_to_hard): Likewise.
12696 (get_back_and_forw_lists): Likewise for local "con".
12697 (sd_add_dep): Likewise for locals "elem", "insn".
12698 (sd_resolve_dep): Likewise for locals "pro", "con".
12699 (sd_unresolve_dep): Likewise.
12700 (sd_delete_dep): Likewise.
12701 (chain_to_prev_insn): Likewise for local "pro".
12702 (find_inc): Likewise for locals "pro", "con".
12704 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12706 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12708 (reg_set_between_p): Strengthen local "insn" from const_rtx to
12710 (modified_between_p): Strengthen local "insn" from rtx to
12712 (remove_reg_equal_equiv_notes_for_regno): Likewise.
12713 (keep_with_call_p): Strengthen local "i2" from const_rtx to
12716 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12718 * resource.c (next_insn_no_annul): Strengthen local "next" from
12720 (mark_referenced_resources): Likewise for local "insn".
12722 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12724 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12726 (find_reloads): Likewise for param 1.
12727 (subst_reloads): Likewise for sole param.
12728 (find_equiv_reg): Likwise for param 2.
12729 (regno_clobbered_p): Likwise for param 2.
12730 (reload): Likewise for param 1.
12732 * caller-save.c (save_call_clobbered_regs): Strengthen local
12733 "insn" from rtx to rtx_insn *.
12734 (insert_one_insn): Likewise for local "insn".
12736 * reload.c (this_insn): Likewise for this global.
12737 (find_reloads): Likewise for param "insn".
12738 (find_reloads_toplev): Likewise.
12739 (find_reloads_address): Likewise.
12740 (subst_reg_equivs): Likewise.
12741 (update_auto_inc_notes): Likewise.
12742 (find_reloads_address_1): Likewise.
12743 (find_reloads_subreg_address): Likewise.
12744 (subst_reloads): Likewise.
12745 (find_equiv_reg): Likewise, also for local "p".
12746 (regno_clobbered_p): Likewise for param "insn".
12748 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12750 (spill_reg_store): Likewise for the elements of this array.
12751 (remove_init_insns): Likewise for local "equiv_insn".
12752 (will_delete_init_insn_p): Likewise for param "insn".
12753 (reload): Likewise for param ""first" and local "insn".
12754 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12756 (calculate_elim_costs_all_insns): Likewise.
12757 (delete_caller_save_insns): Likewise.
12758 (spill_failure): Likewise for param "insn".
12759 (delete_dead_insn): Likewise.
12760 (set_label_offsets): Likewise.
12761 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12763 (elimination_costs_in_insn): Likewise for param "insn".
12764 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12765 when referring to an insn.
12766 (set_initial_label_offsets): Likewise.
12767 (set_offsets_for_label): Strengthen param "insn" from rtx to
12769 (init_eliminable_invariants): Likewise for param "first" and local
12771 (fixup_eh_region_note): Likewise for param "insn".
12772 (reload_as_needed): Likewise for locals "prev", "insn",
12773 "old_next", "old_prev", "next".
12774 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12776 (reload_inheritance_insn): Strengthen elements of this array from
12778 (failed_reload): Likewise for param "insn".
12779 (choose_reload_regs): Likewise for local "insn". Replace use of
12780 NULL_RTX with NULL when referring to an insn.
12781 (input_reload_insns): Strengthen elements of this array from rtx
12783 (other_input_address_reload_insns): Likewise for this global.
12784 (other_input_reload_insns): Likewise for this global.
12785 (input_address_reload_insns): Likwise for the elements of this
12787 (inpaddr_address_reload_insns): Likwise for the elements of this
12789 (output_reload_insns): Likewise for the elements of this array.
12790 (output_address_reload_insns): Likewise for the elements of this
12792 (outaddr_address_reload_insns): Likewise for the elements of this
12794 (operand_reload_insns): Likewise for this global.
12795 (other_operand_reload_insns): Likewise for this global.
12796 (other_output_reload_insns): Likewise for the elements of this
12798 (new_spill_reg_store): Likewise for the elements of this
12800 (emit_input_reload_insns): Likewise for locals "insn", "temp".
12801 Strengthen local "where" from rtx * to rtx_insn **.
12802 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12803 from rtx to rtx_insn *.
12804 (do_input_reload): Likewise for local "insn".
12805 (do_output_reload): Likewise for local "insn".
12806 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12807 (emit_insn_if_valid_for_reload): Likewise for return type and local
12808 "last". Add checked cast to rtx_insn when returning "insn" since
12809 this has been through emit_insn.
12810 (gen_reload): Strengthen return type and locals "last", "insn", "set"
12811 from rtx to rtx_insn *. Add checked cast to rtx_insn when
12812 returning "insn" since it's been through
12813 emit_insn_if_valid_for_reload at this point.
12814 (delete_output_reload): Strengthen param "insn" and locals
12815 "output_reload_insn", "i2" from rtx to rtx_insn *.
12816 (delete_address_reloads): Likewise for params "dead_insn",
12817 "current_insn" and locals "prev", "next".
12818 (delete_address_reloads_1): Likewise for params "dead_insn",
12819 "current_insn" and locals "prev", "i2".
12820 (inc_for_reload): Likewise for locals "last", "add_insn".
12821 (add_auto_inc_notes): Strengthen param "insn" from rtx to
12824 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12825 param of this duplicate of the prototype from reload.h
12827 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12829 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12831 (regstat_bb_compute_calls_crossed): Likewise.
12833 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12835 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12837 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12839 (regrename_analyze): Strengthen local "insn" from rtx to
12841 (scan_rtx_reg): Likewise for param "insn".
12842 (scan_rtx_address): Likewise.
12843 (scan_rtx): Likewise.
12844 (restore_operands): Likewise.
12845 (record_out_operands): Likewise.
12846 (build_def_use): Likewise for local "insn". Replace use of
12847 NULL_RTX with NULL when dealing with an insn.
12849 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12851 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12852 * reginfo.c (reg_scan): Likewise, also for local "insn".
12853 (reg_scan_mark_refs): Likewise for param "insn".
12854 (init_subregs_of_mode): Likewise for local "insn".
12856 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12858 * regcprop.c (struct queued_debug_insn_change): Strengthen field
12859 "insn" from rtx to rtx_insn *.
12860 (replace_oldest_value_reg): Likewise for param "insn".
12861 (replace_oldest_value_addr): Likewise.
12862 (replace_oldest_value_mem): Likewise.
12863 (apply_debug_insn_changes): Likewise for local "last_insn".
12864 (copyprop_hardreg_forward_1): Likewise for local "insn".
12866 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12868 * reg-stack.c (next_flags_user): Strengthen return type and param
12869 "insn" from rtx to rtx_insn *.
12870 (straighten_stack): Likewise for param "insn".
12871 (check_asm_stack_operands): Likewise.
12872 (remove_regno_note): Likewise.
12873 (emit_pop_insn): Likewise for return type, param "insn", local
12875 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
12876 "limit" from rtx to rtx_insn *.
12877 (swap_to_top): Likewise for param "insn".
12878 (move_for_stack_reg): Likewise.
12879 (move_nan_for_stack_reg): Likewise.
12880 (swap_rtx_condition): Likewise.
12881 (compare_for_stack_reg): Likewise.
12882 (subst_all_stack_regs_in_debug_insn): Likewise.
12883 (subst_stack_regs_pat): Likewise, and local "insn2".
12884 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12886 (subst_stack_regs): Likewise.
12887 (change_stack): Likewise.
12888 (convert_regs_1): Likewise for locals "insn", "next".
12890 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12892 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12894 (combine_set_extension): Likewise for param "curr_insn".
12895 (transform_ifelse): Likewise for param "def_insn".
12896 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
12897 from vec<rtx> * to vec<rtx_insn *> *.
12898 (is_cond_copy_insn): Likewise for param "insn".
12899 (struct ext_state): Strengthen the four vec fields from vec<rtx>
12900 to vec<rtx_insn *>.
12901 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12902 local "def_insn" from rtx to rtx_insn *.
12903 (get_sub_rtx): Likewise for param "def_insn".
12904 (merge_def_and_ext): Likewise.
12905 (combine_reaching_defs): Likewise.
12906 (add_removable_extension): Likewise for param "insn".
12907 (find_removable_extensions): Likewise for local "insn".
12908 (find_and_remove_re): Likewise for locals "curr_insn" and
12909 "def_insn". Strengthen locals "reinsn_del_list" and
12910 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12912 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12914 * recog.c (split_insn): Strengthen param "insn" and locals
12915 "first", "last" from rtx to rtx_insn *.
12916 (split_all_insns): Likewise for locals "insn", "next".
12917 (split_all_insns_noflow): Likewise.
12919 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12921 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12923 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12924 (debug_rtx_find): Likewise for param 1 "x".
12926 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12927 const_rtx to const rtx_insn *. Likewise for local "insn".
12928 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12929 (debug_rtx_find): Likewise for param 1 "x".
12930 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12931 from const_rtx to const rtx_insn * within the appropriate cases of
12932 the switch statement.
12934 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12935 Strengthen local "insns" from rtx to rtx_insn * since this is
12936 passed to a call to debug_rtx_list.
12938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12940 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12943 * function.c (stack_protect_epilogue): Add checked cast to
12944 rtx_insn for now when invoking predict_insn_def.
12946 * predict.c (predict_insn): Strengthen param "insn" from rtx to
12948 (predict_insn_def): Likewise.
12949 (rtl_predict_edge): Likewise for local "last_insn".
12950 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12952 (combine_predictions_for_insn): Strengthen param "insn" from rtx
12954 (bb_estimate_probability_locally): Likewise for local "last_insn".
12955 (expensive_function_p): Likewise for local "insn".
12957 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12958 local "jmp", since this is used when invoking predict_insn_def.
12960 2014-08-22 Marek Polacek <polacek@redhat.com>
12963 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12965 2014-08-22 Marek Polacek <polacek@redhat.com>
12968 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12969 a comparison in parens.
12970 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12973 2014-08-22 David Malcolm <dmalcolm@redhat.com>
12975 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12978 * cprop.c (fis_get_condition): Likewise.
12980 * postreload.c (reload_cse_regs): Likewise for param "first".
12981 (reload_cse_simplify): Likewise for param "insn".
12982 (reload_cse_regs_1): Likewise for local "insn".
12983 (reload_cse_simplify_set): Likewise for param "insn".
12984 (reload_cse_simplify_operands): Likewise.
12985 (struct reg_use): Likewise for field "insn".
12986 (reload_combine_purge_insn_uses): Likewise for param "insn".
12987 (fixup_debug_insns): Likewise for params "from", "to" and local
12989 (try_replace_in_use): Likewise for local "use_insn".
12990 (reload_combine_recognize_const_pattern): Likewise for param
12991 "insn" and locals "add_moved_after_insn", "use_insn".
12992 (reload_combine_recognize_pattern): Likewise for param "insn" and
12994 (reload_combine): Likewise for locals "insn", "prev".
12995 (reload_combine_note_use): Likewise for param "insn".
12996 (move2add_use_add2_insn): Likewise.
12997 (move2add_use_add3_insn): Likewise.
12998 (reload_cse_move2add): Likewise, also for local "next".
12999 (move2add_note_store): Likewise for local "insn".
13001 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13003 * postreload-gcse.c (struct occr): Strengthen field "insn" from
13005 (struct unoccr): Likewise.
13006 (struct modifies_mem): Likewise.
13007 (alloc_mem): Likewise for local "insn".
13008 (insert_expr_in_table): Likewise for param "insn".
13009 (dump_expr_hash_table_entry): Likewise for local "insn".
13010 (oprs_unchanged_p): Likewise for param "insn".
13011 (load_killed_in_block_p): Likewise for local "setter".
13012 (record_last_reg_set_info): Likewise for param "insn".
13013 (record_last_reg_set_info_regno): Likewise.
13014 (record_last_mem_set_info): Likewise.
13015 (record_last_set_info): Likewise for local "last_set_insn".
13016 (record_opr_changes): Likewise for param "insn".
13017 (hash_scan_set): Likewise.
13018 (compute_hash_table): Likewise for local "insn".
13019 (get_avail_load_store_reg): Likewise for param "insn".
13020 (eliminate_partially_redundant_load): Likewise, also for locals
13021 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
13023 (eliminate_partially_redundant_loads): Likewise for local "insn".
13025 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13027 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
13029 (expand_binop): Likewise for locals "entry_last", "last", "insns"
13030 (expand_twoval_unop): Likewise for locals entry_last", "last".
13031 (expand_twoval_binop): Likewise.
13032 (expand_twoval_binop_libfunc): Likewise for local "insns".
13033 (widen_leading): Likewise for local "last".
13034 (expand_doubleword_clz): Likewise for local "seq". Strengthen
13035 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
13036 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
13037 (expand_parity): Likewise for locals "last" and "seq".
13038 (expand_ffs): Likewise for local "seq". Strengthen local
13039 "nonzero_label" from rtx to rtx_code_label *.
13040 (expand_absneg_bit): Strengthen local "insns" from rtx to
13042 (expand_unop_direct): Likewise for local "last".
13043 (expand_unop): Likewise for locals "last", "insns".
13044 (expand_abs_nojump): Likewise for local "last".
13045 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
13046 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
13048 (expand_copysign_absneg): Strengthen local "label" from rtx to
13050 (expand_copysign_bit): Strengthen local "insns" from rtx to
13052 (struct no_conflict_data): Likewise for fields "first", "insn".
13053 (emit_libcall_block_1): Likewise for param "insns" and locals
13054 "next", "last", "insn".
13055 (emit_libcall_block): For now, add a checked cast to rtx_insn *
13056 on "insns" when invoking emit_libcall_block_1. Ultimately we
13057 want to strengthen insns itself.
13058 (prepare_cmp_insn): Strengthen local "last" from rtx to
13060 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
13061 (prepare_float_lib_cmp): Likewise for local "insns".
13062 (emit_conditional_move): Likewise for local "last".
13063 (emit_conditional_add): Likewise.
13064 (have_sub2_insn): Likewise for local "seq".
13065 (expand_float): Likewise for local "insns". Strengthen locals
13066 "label", "neglabel" from rtx to rtx_code_label *.
13067 (expand_fix): Likewise for locals "last", "insn", "insns" (to
13068 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
13069 (expand_fixed_convert): Likewise for local "insns" (to
13071 (expand_sfix_optab): Likewise for local "last".
13072 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
13073 to rtx_code_label *.
13074 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
13075 from rtx to rtx_insn *.
13076 (expand_atomic_fetch_op): Likewise for local "insn".
13077 (maybe_legitimize_operand_same_code): Likewise for local "last".
13078 (maybe_legitimize_operands): Likewise.
13080 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13082 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
13083 "insn" from rtx to rtx_insn *.
13084 (ps_rtl_insn): Likewise for return type.
13085 (doloop_register_get): Likewise for params "head", "tail" and
13086 locals "insn", "first_insn_not_to_check".
13087 (schedule_reg_move): Likewise for local "this_insn".
13088 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
13089 of gen_move_insn for now.
13090 (reset_sched_times): Strengthen local "insn" from rtx to
13092 (permute_partial_schedule): Likewise.
13093 (duplicate_insns_of_cycles): Likewise for local "u_insn".
13094 (dump_insn_location): Likewise for param "insn".
13095 (loop_canon_p): Likewise for local "insn".
13096 (sms_schedule): Likewise.
13097 (print_partial_schedule): Likewise.
13098 (ps_has_conflicts): Likewise.
13100 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13102 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
13103 "tailp" from rtx * to rtx_insn **.
13105 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
13106 from rtx to rtx_insn *.
13107 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
13108 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
13109 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
13111 * modulo-sched.c (const_iteration_count): Strengthen return type
13112 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
13113 use of NULL_RTX with NULL when working with insns.
13114 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
13116 (sms_schedule): Likewise.
13117 * sched-rgn.c (init_ready_list): Likewise, also for locals
13118 "src_head" and "src_next_tail".
13119 (compute_block_dependences): Likewise.
13120 (free_block_dependencies): Likewise.
13121 (debug_rgn_dependencies): Likewise.
13122 (free_rgn_deps): Likewise.
13123 (compute_priorities): Likewise.
13124 (schedule_region): Likewise.
13125 * sel-sched.c (find_ebb_boundaries): Likewise.
13127 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
13128 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
13130 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13132 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
13133 from rtx to rtx_insn *.
13134 (new_seginfo): Likewise for param "insn".
13135 (create_pre_exit): Likewise for locals "last_insn",
13136 "before_return_copy", "return_copy".
13137 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
13140 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13142 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
13143 from rtx to rtx_insn *.
13144 (lra_push_insn): Likewise for 1st param.
13145 (lra_push_insn_and_update_insn_regno_info): Likewise.
13146 (lra_pop_insn): Likewise for return type.
13147 (lra_invalidate_insn_data): Likewise for 1st param.
13148 (lra_set_insn_deleted): Likewise.
13149 (lra_delete_dead_insn): Likewise.
13150 (lra_process_new_insns): Likewise for first 3 params.
13151 (lra_set_insn_recog_data): Likewise for 1st param.
13152 (lra_update_insn_recog_data): Likewise.
13153 (lra_set_used_insn_alternative): Likewise.
13154 (lra_invalidate_insn_regno_info): Likewise.
13155 (lra_update_insn_regno_info): Likewise.
13156 (lra_former_scratch_operand_p): Likewise.
13157 (lra_eliminate_regs_1): Likewise.
13158 (lra_get_insn_recog_data): Likewise.
13160 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
13163 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
13165 (substitute_within_insn): New.
13166 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
13167 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
13168 Replace call to "substitute" with call to substitute_within_insn.
13170 * lra-constraints.c (curr_insn): Strengthen from rtx to
13172 (get_equiv_with_elimination): Likewise for param "insn".
13173 (match_reload): Strengthen params "before" and "after" from rtx *
13175 (emit_spill_move): Likewise for return type. Add a checked cast
13176 to rtx_insn * on result of gen_move_insn for now.
13177 (check_and_process_move): Likewise for local "before". Replace
13178 NULL_RTX with NULL when referring to insns.
13179 (process_addr_reg): Strengthen params "before" and "after" from
13180 rtx * to rtx_insn **.
13181 (insert_move_for_subreg): Likewise.
13182 (simplify_operand_subreg): Strengthen locals "before" and "after"
13183 from rtx to rtx_insn *.
13184 (process_address_1): Strengthen params "before" and "after" from
13185 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
13187 (process_address): Strengthen params "before" and "after" from
13188 rtx * to rtx_insn **.
13189 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
13190 (curr_insn_transform): Strengthen locals "before" and "after"
13191 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
13193 (loc_equivalence_callback): Update cast of "data", changing
13194 resulting type from rtx to rtx_insn *.
13195 (substitute_pseudo_within_insn): New.
13196 (inherit_reload_reg): Strengthen param "insn" from rtx to
13197 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
13198 NULL when referring to insns. Add a checked cast to rtx_insn *
13199 when using usage_insn to invoke lra_update_insn_regno_info.
13200 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
13201 likewise for locals "restore", "save". Add checked casts to
13202 rtx_insn * when using usage_insn to invoke
13203 lra_update_insn_regno_info and lra_process_new_insns. Replace
13204 NULL_RTX with NULL when referring to insns.
13205 (split_if_necessary): Strengthen param "insn" from rtx to
13207 (update_ebb_live_info): Likewise for params "head", "tail" and local
13209 (get_last_insertion_point): Likewise for return type and local "insn".
13210 (get_live_on_other_edges): Likewise for local "last".
13211 (inherit_in_ebb): Likewise for params "head", "tail" and locals
13212 "prev_insn", "next_insn", "restore".
13213 (remove_inheritance_pseudos): Likewise for local "prev_insn".
13214 (undo_optional_reloads): Likewise for local "insn".
13216 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
13218 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
13220 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
13222 (spill_pseudos): Likewise for local "insn".
13223 (init_elimination): Likewise.
13224 (process_insn_for_elimination): Likewise for param "insn".
13226 * lra-lives.c (curr_insn): Likewise.;
13228 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
13229 (remove_pseudos): Likewise for param "insn".
13230 (spill_pseudos): Likewise for local "insn".
13231 (lra_final_code_change): Likewise for locals "insn", "curr".
13233 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
13234 (lra_set_insn_deleted): Likewise.
13235 (lra_delete_dead_insn): Likewise, and for local "prev".
13236 (new_insn_reg): Likewise for param "insn".
13237 (lra_set_insn_recog_data): Likewise.
13238 (lra_update_insn_recog_data): Likewise.
13239 (lra_set_used_insn_alternative): Likewise.
13240 (get_insn_freq): Likewise.
13241 (invalidate_insn_data_regno_info): Likewise.
13242 (lra_invalidate_insn_regno_info): Likewise.
13243 (lra_update_insn_regno_info): Likewise.
13244 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
13246 (lra_push_insn_1): Strengthen param "insn" from rtx to
13248 (lra_push_insn): Likewise.
13249 (lra_push_insn_and_update_insn_regno_info): Likewise.
13250 (lra_pop_insn): Likewise for return type and local "insn".
13251 (push_insns): Likewise for params "from", "to", and local "insn".
13252 (setup_sp_offset): Likewise for params "from", "last" and locals
13254 (lra_process_new_insns): Likewise for params "insn", "before",
13255 "after" and local "last".
13256 (struct sloc): Likewise for field "insn".
13257 (lra_former_scratch_operand_p): Likewise for param "insn".
13258 (remove_scratches): Likewise for locals "insn", "last".
13259 (check_rtl): Likewise for local "insn".
13260 (add_auto_inc_notes): Likewise for param "insn".
13261 (update_inc_notes): Likewise for local "insn".
13262 (lra): Replace NULL_RTX with NULL when referring to insn.
13264 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13266 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
13268 (resolve_reg_notes): Likewise.
13269 (resolve_simple_move): Likewise for return type, param "insn", and
13270 locals "insns", "minsn".
13271 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
13272 (resolve_use): Likewise.
13273 (resolve_debug): Likewise.
13274 (find_decomposable_shift_zext): Likewise.
13275 (resolve_shift_zext): Likewise for return type, param "insn", and
13276 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
13277 (decompose_multiword_subregs): Likewise for local "insn",
13278 "orig_insn", "decomposed_shift", "end".
13280 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13282 * basic-block.h (basic_block split_edge_and_insert): Strengthen
13283 param "insns" from rtx to rtx_insn *.
13285 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
13287 (struct iv_to_split): Likewise.
13288 (loop_exit_at_end_p): Likewise for local "insn".
13289 (split_edge_and_insert): Likewise for param "insns".
13290 (compare_and_jump_seq): Likewise for return type, param "cinsn",
13291 and locals "seq", "jump".
13292 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
13293 "branch_code"; update invocations of compare_and_jump_seq to
13294 eliminate NULL_RTX in favor of NULL.
13295 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
13297 (reset_debug_uses_in_loop): Likewise.
13298 (analyze_insn_to_expand_var): Likewise for param "insn".
13299 (analyze_iv_to_split_insn): Likewise.
13300 (analyze_insns_in_loop): Likewise for local "insn".
13301 (insert_base_initialization): Likewise for param
13302 "insn" and local "seq".
13303 (split_iv): Likewise for param "insn" and local "seq".
13304 (expand_var_during_unrolling): Likewise for param "insn".
13305 (insert_var_expansion_initialization): Likewise for local "seq".
13306 (combine_var_copies_in_loop_exit): Likewise.
13307 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
13309 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
13310 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
13313 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13315 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
13317 (iv_analyze_result): Likewise.
13318 (iv_analyze_expr): Likewise.
13321 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
13322 local "def_insn" from rtx to rtx_insn *.
13323 (get_biv_step_1): Likewise for local "insn".
13324 (iv_analyze_expr): Likewise for param "insn".
13325 (iv_analyze_def): Likewise for local "insn".
13326 (iv_analyze_op): Likewise for param "insn".
13327 (iv_analyze): Likewise.
13328 (iv_analyze_result): Likewise.
13330 (suitable_set_for_replacement): Likewise.
13331 (simplify_using_initial_values): Likewise for local "insn".
13332 (iv_number_of_iterations): Likewise for param "insn".
13333 (check_simple_exit): Add checked cast to rtx_insn when invoking
13334 iv_number_of_iterations for now (until get_condition is
13337 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
13338 "insn" from rtx to rtx_insn *.
13339 (analyze_insns_in_loop): Likewise for local "insn".
13341 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13343 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
13345 (struct invariant): Likewise.
13346 (hash_invariant_expr_1): Likewise for param "insn".
13347 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
13348 (find_exits): Likewise for local "insn".
13349 (create_new_invariant): Likewise for param "insn".
13350 (check_dependencies): Likewise.
13351 (find_invariant_insn): Likewise.
13352 (record_uses): Likewise.
13353 (find_invariants_insn): Likewise.
13354 (find_invariants_bb): Likewise for local "insn".
13355 (get_pressure_class_and_nregs): Likewise for param "insn".
13356 (calculate_loop_reg_pressure): Likewise for local "insn".
13358 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13360 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
13362 (add_test): Likewise for locals "seq", "jump".
13363 (doloop_modify): Likewise for locals "sequence", "jump_insn".
13365 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13367 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
13369 (rebuild_jump_labels_chain): Likewise for param "chain".
13371 * cfgexpand.c (pass_expand::execute): Add checked cast to
13372 rtx_insn * when calling rebuild_jump_labels_chain in region where
13373 we know e->insns.r is non-NULL.
13375 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
13377 (rebuild_jump_labels): Likewise.
13378 (rebuild_jump_labels_chain): Likewise for param "chain".
13379 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
13380 (init_label_info): Likewise for param "f".
13381 (maybe_propagate_label_ref): Likewise for params "jump_insn",
13382 "prev_nonjump_insn".
13383 (mark_all_labels): Likewise for param "f" and locals "insn",
13384 "prev_nonjump_insn".
13386 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13388 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
13389 from rtx to rtx_insn *insn.
13390 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
13391 (ira_add_allocno_copy): Likewise.
13392 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
13394 (ira_create_copy): Likewise.
13395 (ira_add_allocno_copy): Likewise.
13396 (create_bb_allocnos): Likewise for local "insn".
13397 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
13398 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
13399 process_regs_for_copy for rtx_insn * param.
13400 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
13401 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
13402 process_regs_for_copy for rtx_insn * param.
13403 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
13404 * ira-costs.c (record_reg_classes): Likewise for param "insn".
13405 (record_operand_costs): Likewise.
13406 (scan_one_insn): Likewise for return type, and for param "insn".
13407 (process_bb_for_costs): Likewise for local "insn".
13408 (process_bb_node_for_hard_reg_moves): Likewise.
13409 * ira-emit.c (struct move): Likewise for field "insn".
13410 (create_move): Eliminate use of NULL_RTX when dealing with an
13412 (emit_move_list): Strengthen return type and locals "result",
13413 "insn" from rtx to rtx_insn *insn.
13414 (emit_moves): Likewise for locals "insns", "tmp".
13415 (ira_emit): Likewise for local "insn".
13416 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13418 (find_call_crossed_cheap_reg): Likewise.
13419 (process_bb_node_lives): Likewise for local "insn".
13420 * ira.c (decrease_live_ranges_number): Likewise.
13421 (compute_regs_asm_clobbered): Likewise.
13422 (build_insn_chain): Likewise.
13423 (find_moveable_pseudos): Likewise, also locals "def_insn",
13424 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
13425 to rtx_insn **. Add a checked cast when assigning from
13426 "closest_use" into closest_uses array in a region where we know
13427 it's a non-NULL insn.
13428 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13430 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13431 "last_interesting_insn", "uin".
13432 (move_unallocated_pseudos): Likewise for locals "def_insn",
13433 "move_insn", "newinsn".
13435 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13437 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13438 Strengthen locals "done_label", "do_error" from rtx to
13440 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13441 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
13443 (ubsan_expand_si_overflow_neg_check): Likewise for locals
13444 "done_label", "do_error" to rtx_code_label * and local "last" to
13446 (ubsan_expand_si_overflow_mul_check): Likewise for locals
13447 "done_label", "do_error", "large_op0", "small_op0_large_op1",
13448 "one_small_one_large", "both_ops_large", "after_hipart_neg",
13449 "after_lopart_neg", "do_overflow", "hipart_different" to
13450 rtx_code_label * and local "last" to rtx_insn *.
13452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13454 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13455 "insn" and "move_insn" from rtx to rtx_insn *.
13457 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13459 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13461 (cheap_bb_rtx_cost_p): Likewise.
13462 (first_active_insn): Likewise for return type and local "insn".
13463 (last_active_insn): Likewise for return type and locals "insn",
13465 (struct noce_if_info): Likewise for fields "jump", "insn_a",
13467 (end_ifcvt_sequence): Likewise for return type and locals "insn",
13469 (noce_try_move): Likewise for local "seq".
13470 (noce_try_store_flag): Likewise.
13471 (noce_try_store_flag_constants): Likewise.
13472 (noce_try_addcc): Likewise.
13473 (noce_try_store_flag_mask): Likewise.
13474 (noce_try_cmove): Likewise.
13475 (noce_try_minmax): Likewise.
13476 (noce_try_abs): Likewise.
13477 (noce_try_sign_mask): Likewise.
13478 (noce_try_bitop): Likewise.
13479 (noce_can_store_speculate_p): Likewise for local "insn".
13480 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13482 (check_cond_move_block): Likewise for local "insn".
13483 (cond_move_convert_if_block): Likewise.
13484 (cond_move_process_if_block): Likewise for locals "seq",
13486 (noce_find_if_block): Likewise for local "jump".
13487 (merge_if_block): Likewise for local "last".
13488 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13489 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13490 (block_has_only_trap): Likewise for return type and local "trap".
13491 (find_if_case_1): Likewise for local "jump".
13492 (dead_or_predicable): Likewise for locals "head", "end", "jump",
13495 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13497 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13498 "last_insn", "loop_end" from rtx to rtx_insn *.
13500 * hw-doloop.c (scan_loop): Likewise for local "insn".
13501 (discover_loop): Likewise for param "tail_insn".
13502 (discover_loops): Likewise for local "tail".
13504 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13505 cast to rtx_insn * when assigning from an rtx local to a
13506 hwloop_info's "last_insn" field.
13508 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13510 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13511 (add_delay_dependencies): Strengthen local "pro" from rtx to
13513 (recompute_todo_spec): Likewise.
13514 (dep_cost_1): Likewise for locals "insn", "used".
13515 (schedule_insn): Likewise for local "dbg".
13516 (schedule_insn): Likewise for locals "pro", "next".
13517 (unschedule_insns_until): Likewise for local "con".
13518 (restore_pattern): Likewise for local "next".
13519 (estimate_insn_tick): Likewise for local "pro".
13520 (resolve_dependencies): Likewise for local "next".
13521 (fix_inter_tick): Likewise.
13522 (fix_tick_ready): Likewise for local "pro".
13523 (add_to_speculative_block): Likewise for locals "check", "twin",
13525 (sched_extend_bb): Likewise for locals "end", "insn".
13526 (init_before_recovery): Likewise for local "x".
13527 (sched_create_recovery_block): Likewise for local "barrier".
13528 (create_check_block_twin): Likewise for local "pro".
13529 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13531 (unlink_bb_notes): Update for change to type of bb_header.
13532 Strengthen locals "prev", "label", "note", "next" from rtx to
13534 (clear_priorities): Likewise for local "pro".
13536 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13538 * gcse.c (struct occr): Strengthen field "insn" from rtx to
13540 (test_insn): Likewise for this global.
13541 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13543 (oprs_anticipatable_p): Likewise.
13544 (oprs_available_p): Likewise.
13545 (insert_expr_in_table): Strengthen param "insn" from rtx to
13547 (hash_scan_set): Likewise.
13548 (hash_scan_clobber): Likewise.
13549 (hash_scan_call): Likewise.
13550 (hash_scan_insn): Likewise.
13551 (compute_hash_table_work): Likewise for local "insn".
13552 (process_insert_insn): Likewise for return type and local "pat".
13553 (insert_insn_end_basic_block): Likewise for locals "new_insn",
13554 "pat", "pat_end", "maybe_cc0_setter".
13555 (pre_edge_insert): Likewise for local "insn".
13556 (pre_insert_copy_insn): Likewise for param "insn".
13557 (pre_insert_copies): Likewise for local "insn".
13558 (struct set_data): Likewise for field "insn".
13559 (single_set_gcse): Likewise for param "insn".
13560 (gcse_emit_move_after): Likewise.
13561 (pre_delete): Likewise for local "insn".
13562 (update_bb_reg_pressure): Likewise for param "from" and local
13564 (should_hoist_expr_to_dom): Likewise for param "from".
13565 (hoist_code): Likewise for local "insn".
13566 (get_pressure_class_and_nregs): Likewise for param "insn".
13567 (calculate_bb_reg_pressure): Likewise for local "insn".
13568 (compute_ld_motion_mems): Likewise.
13570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13572 * genpeep.c (main): Rename param back from "uncast_ins1" to
13573 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
13576 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13578 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
13581 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13582 documentation to state it is only for VSX operations.
13584 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13585 constraint only active if VSX.
13587 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13588 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13589 (lfiwzx): Likewise.
13591 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13593 * fwprop.c (single_def_use_dom_walker::before_dom_children):
13594 Strengthen local "insn" from rtx to rtx_insn *.
13595 (use_killed_between): Likewise for param "target_insn".
13596 (all_uses_available_at): Likewise for param "target_insn" and
13598 (update_df_init): Likewise for params "def_insn", "insn".
13599 (update_df): Likewise for param "insn".
13600 (try_fwprop_subst): Likewise for param "def_insn" and local
13602 (free_load_extend): Likewise for param "insn".
13603 (forward_propagate_subreg): Likewise for param "def_insn" and
13605 (forward_propagate_asm): Likewise for param "def_insn" and local
13607 (forward_propagate_and_simplify): Likewise for param "def_insn"
13608 and local "use_insn".
13609 (forward_propagate_into): Likewise for locals "def_insn" and
13612 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13614 * function.c (emit_initial_value_sets): Strengthen local "seq"
13615 from rtx to rtx_insn *.
13616 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13618 (instantiate_virtual_regs): Likewise for local "insn".
13619 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13620 (reorder_blocks_1): Likewise for param "insns" and local "insn".
13621 (expand_function_end): Likewise for locals "insn" and "seq".
13622 (epilogue_done): Likewise for local "insn".
13623 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13625 (reposition_prologue_and_epilogue_notes): Likewise for locals
13626 "insn", "last", "note", "first".
13627 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13628 (pass_match_asm_constraints::execute): Likewise for local "insn".
13630 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13632 * output.h (final_scan_insn): Strengthen return type from rtx to
13634 (final_forward_branch_p): Likewise for param.
13635 (current_output_insn): Likewise for this global.
13637 * final.c (rtx debug_insn): Likewise for this variable.
13638 (current_output_insn): Likewise.
13639 (get_attr_length_1): Rename param "insn" to "uncast_insn",
13640 adding "insn" back in as an rtx_insn * with a checked cast, so
13641 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13643 (compute_alignments): Strengthen local "label" from rtx to
13645 (shorten_branches): Rename param from "first" to "uncast_first",
13646 introducing a new local rtx_insn * "first" using a checked cast to
13647 effectively strengthen "first" from rtx to rtx_insn * without
13648 affecting the type signature. Strengthen locals "insn", "seq",
13649 "next", "label" from rtx to rtx_insn *.
13650 (change_scope): Strengthen param "orig_insn" and local "insn" from
13652 (final_start_function): Rename param from "first" to "uncast_first",
13653 introducing a new local rtx_insn * "first" using a checked cast to
13654 effectively strengthen "first" from rtx to rtx_insn * without
13655 affecting the type signature. Strengthen local "insn" from rtx to
13657 (dump_basic_block_info): Strengthen param "insn" from rtx to
13659 (final): Rename param from "first" to "uncast_first",
13660 introducing a new local rtx_insn * "first" using a checked cast to
13661 effectively strengthen "first" from rtx to rtx_insn * without
13662 affecting the type signature. Strengthen locals "insn", "next"
13663 from rtx to rtx_insn *.
13664 (output_alternate_entry_point): Strengthen param "insn" from rtx to
13666 (call_from_call_insn): Strengthen param "insn" from rtx to
13668 (final_scan_insn): Rename param from "insn" to "uncast_insn",
13669 introducing a new local rtx_insn * "insn" using a checked cast to
13670 effectively strengthen "insn" from rtx to rtx_insn * without
13671 affecting the type signature. Strengthen return type and locals
13672 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
13673 now-redundant checked cast to rtx_insn * from both invocations of
13674 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
13675 introducing a local "call_insn" for use when invoking
13676 call_from_call_insn.
13677 (notice_source_line): Strengthen param "insn" from rtx to
13679 (leaf_function_p): Likewise for local "insn".
13680 (final_forward_branch_p): Likewise.
13681 (leaf_renumber_regs): Likewise for param "first".
13682 (rest_of_clean_state): Likewise for locals "insn" and "next".
13683 (self_recursive_call_p): Likewise for param "insn".
13684 (collect_fn_hard_reg_usage): Likewise for local "insn".
13685 (get_call_fndecl): Likewise for param "insn".
13686 (get_call_cgraph_rtl_info): Likewise.
13687 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
13688 introducing a new local rtx_insn * "insn" using a checked cast to
13689 effectively strengthen "insn" from rtx to rtx_insn * without
13690 affecting the type signature.
13692 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13693 cast when assigning from param "insn" to current_output_insn.
13694 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13695 so that we can assign it back to current_output_insn.
13697 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13699 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13700 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13701 atmxt540s and atmxt540sreva devices.
13702 * config/avr/avr-tables.opt: Regenerate.
13703 * config/avr/t-multilib: Regenerate.
13704 * doc/avr-mmcu.texi: Regenerate.
13706 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13708 * expr.c (convert_move): Strengthen local "insns" from rtx to
13710 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13711 "top_label" from rtx to rtx_code_label *.
13712 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13714 (emit_single_push_insn): Likewise for locals "prev", "last".
13715 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13716 to rtx_code_label *.
13717 (store_constructor): Likewise for locals "loop_start", "loop_end".
13718 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13720 (expand_expr_real_2): Likewise.
13721 (expand_expr_real_1): Strengthen local "label" from rtx to
13724 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13726 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13727 from rtx to rtx_insn *.
13728 (store_bit_field_1): Likewise.
13729 (extract_bit_field_1): Likewise.
13730 (expand_mult_const): Likewise for local "insns".
13731 (expmed_mult_highpart): Strengthen local "label" from rtx to
13733 (expand_smod_pow2): Likewise.
13734 (expand_sdiv_pow2): Likewise.
13735 (expand_divmod): Strengthen locals "last", "insn" from rtx to
13736 rtx_insn *. Strengthen locals "label", "label1", "label2",
13737 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13738 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13739 (emit_store_flag): Likewise.
13740 (emit_store_flag_force): Strengthen local "label" from rtx to
13742 (do_cmp_and_jump): Likewise for param "label".
13744 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13746 * explow.c (force_reg): Strengthen local "insn" from rtx to
13748 (adjust_stack_1): Likewise.
13749 (allocate_dynamic_stack_space): Likewise. Strengthen locals
13750 "final_label", "available_label", "space_available" from rtx to
13752 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13753 (anti_adjust_stack_and_probe): Likewise.
13755 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13757 * except.h (sjlj_emit_function_exit_after): Strengthen param
13758 "after" from rtx to rtx_insn *. This is only called with
13759 result of get_last_insn (in function.c) so type-change should be
13762 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13763 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13764 to rtx_insn *. These fields are only used from except.c so this
13765 type-change should be self-contained to this patch.
13767 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13768 local "last" from rtx to rtx_insn *.
13769 (dw2_build_landing_pads): Likewise for local "seq".
13770 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13771 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13772 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
13774 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13776 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13777 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13778 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13779 referring to an insn. Strengthen local "dispatch_label" from
13780 rtx to rtx_code_label *.
13781 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13783 (expand_eh_return): Strengthen local "around_label" from
13784 rtx to rtx_code_label *.
13785 (convert_to_eh_region_ranges): Strengthen locals "iter",
13786 "last_action_insn", "first_no_action_insn",
13787 "first_no_action_insn_before_switch",
13788 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13790 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13792 * dwarf2out.c (last_var_location_insn): Strengthen this variable
13793 from rtx to rtx_insn *.
13794 (cached_next_real_insn): Likewise.
13795 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13796 working with insns.
13797 (dwarf2out_var_location): Strengthen locals "next_real",
13798 "next_note", "expected_next_loc_note", "last_start", "insn" from
13801 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13803 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13804 from rtx to rtx_insn *.
13805 (create_pseudo_cfg): Likewise for local "insn".
13807 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13809 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13810 from rtx to rtx_insn *.
13811 (df_bb_regno_last_def_find): Likewise.
13813 * df-problems.c (df_rd_bb_local_compute): Likewise.
13814 (df_lr_bb_local_compute): Likewise.
13815 (df_live_bb_local_compute): Likewise.
13816 (df_chain_remove_problem): Likewise.
13817 (df_chain_create_bb): Likewise.
13818 (df_word_lr_bb_local_compute): Likewise.
13819 (df_remove_dead_eq_notes): Likewise for param "insn".
13820 (df_note_bb_compute): Likewise for local "insn".
13821 (simulate_backwards_to_point): Likewise.
13822 (df_md_bb_local_compute): Likewise.
13824 * df-scan.c (df_scan_free_bb_info): Likewise.
13825 (df_scan_start_dump): Likewise.
13826 (df_scan_start_block): Likewise.
13827 (df_install_ref_incremental): Likewise for local "insn".
13828 (df_insn_rescan_all): Likewise.
13829 (df_reorganize_refs_by_reg_by_insn): Likewise.
13830 (df_reorganize_refs_by_insn_bb): Likewise.
13831 (df_recompute_luids): Likewise.
13832 (df_bb_refs_record): Likewise.
13833 (df_update_entry_exit_and_calls): Likewise.
13834 (df_bb_verify): Likewise.
13836 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13838 * ddg.h (struct ddg_node): Strengthen fields "insn" and
13839 "first_note" from rtx to rtx_insn *.
13840 (get_node_of_insn): Likewise for param 2 "insn".
13841 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13843 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13845 (mem_write_insn_p): Likewise.
13846 (mem_access_insn_p): Likewise.
13847 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13848 (def_has_ccmode_p): Likewise for param "insn".
13849 (add_cross_iteration_register_deps): Likewise for locals
13850 "def_insn" and "use_insn".
13851 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13852 (build_intra_loop_deps): Likewise for local "src_insn".
13853 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13855 (get_node_of_insn): Likewise for param "insn".
13857 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13859 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13860 (deletable_insn_p): Strengthen param "insn" from rtx to
13861 rtx_insn *. Add checked cast to rtx_call_insn when invoking
13862 find_call_stack_args, since this is guarded by CALL_P (insn).
13863 (marked_insn_p): Strengthen param "insn" from rtx to
13865 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
13866 invoking find_call_stack_args, since this is guarded by
13868 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13869 rtx_insn *; we know this is an insn since this was called by
13870 mark_nonreg_stores.
13871 (mark_nonreg_stores_2): Likewise.
13872 (mark_nonreg_stores): Strengthen param "insn" from rtx to
13874 (find_call_stack_args): Strengthen param "call_insn" from rtx to
13875 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13877 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13878 from rtx to rtx_insn *.
13879 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13880 "next", "ref_insn".
13881 (delete_unmarked_insns): Likewise for locals "insn", "next".
13882 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13883 (mark_reg_dependencies): Likewise for param "insn".
13884 (rest_of_handle_ud_dce): Likewise for local "insn".
13885 (word_dce_process_block): Likewise.
13886 (dce_process_block): Likewise.
13888 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13890 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13891 from rtx to rtx_insn *.
13892 (struct change_cc_mode_args): Likewise for field "insn".
13893 (this_insn): Strengthen from rtx to rtx_insn *.
13894 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13896 (validate_canon_reg): Strengthen param "insn" from rtx to
13898 (canon_reg): Likewise.
13899 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
13901 (record_jump_equiv): Strengthen param "insn" from rtx to
13903 (try_back_substitute_reg): Likewise, also for locals "prev",
13905 (find_sets_in_insn): Likewise for param "insn".
13906 (canonicalize_insn): Likewise.
13907 (cse_insn): Likewise. Add a checked cast.
13908 (invalidate_from_clobbers): Likewise for param "insn".
13909 (invalidate_from_sets_and_clobbers): Likewise.
13910 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13912 (cse_prescan_path): Strengthen local "insn" from rtx to
13914 (cse_extended_basic_block): Likewise for locals "insn" and
13916 (cse_main): Likewise for param "f".
13917 (check_for_label_ref): Likewise for local "insn".
13918 (set_live_p): Likewise for second param ("insn").
13919 (insn_live_p): Likewise for first param ("insn") and for local
13921 (cse_change_cc_mode_insn): Likewise for first param "insn".
13922 (cse_change_cc_mode_insns): Likewise for first and second params
13924 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13926 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13929 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13930 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13931 Anna Tikhonova <anna.tikhonova@intel.com>
13932 Ilya Tocar <ilya.tocar@intel.com>
13933 Andrey Turetskiy <andrey.turetskiy@intel.com>
13934 Ilya Verbin <ilya.verbin@intel.com>
13935 Kirill Yukhin <kirill.yukhin@intel.com>
13936 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13938 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13940 * config/i386/sse.md
13941 (define_mode_iterator VI248_AVX2): Delete.
13942 (define_mode_iterator VI2_AVX2_AVX512BW): New.
13943 (define_mode_iterator VI48_AVX2): Ditto.
13944 (define_insn <shift_insn><mode>3): Delete.
13945 (define_insn "<shift_insn><mode>3<mask_name>" with
13946 VI2_AVX2_AVX512BW): New.
13947 (define_insn "<shift_insn><mode>3<mask_name>" with
13950 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13951 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13952 Anna Tikhonova <anna.tikhonova@intel.com>
13953 Ilya Tocar <ilya.tocar@intel.com>
13954 Andrey Turetskiy <andrey.turetskiy@intel.com>
13955 Ilya Verbin <ilya.verbin@intel.com>
13956 Kirill Yukhin <kirill.yukhin@intel.com>
13957 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13959 * config/i386/sse.md
13960 (define_mode_iterator VI4F_BRCST32x2): New.
13961 (define_mode_attr 64x2_mode): Ditto.
13962 (define_mode_attr 32x2mode): Ditto.
13963 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13964 with VI4F_BRCST32x2): Ditto.
13965 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13966 with V16FI mode iterator): Ditto.
13967 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13968 with V16FI): Ditto.
13969 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13970 with VI8F_BRCST64x2): Ditto.
13972 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
13973 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
13974 Anna Tikhonova <anna.tikhonova@intel.com>
13975 Ilya Tocar <ilya.tocar@intel.com>
13976 Andrey Turetskiy <andrey.turetskiy@intel.com>
13977 Ilya Verbin <ilya.verbin@intel.com>
13978 Kirill Yukhin <kirill.yukhin@intel.com>
13979 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
13981 * config/i386/sse.md
13982 (define_mode_iterator VI8_AVX512VL): New.
13983 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13985 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
13987 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13988 (define_mode_iterator V48_AVX512VL): New.
13989 (define_mode_iterator V12_AVX512VL): Ditto.
13990 (define_insn <avx512>_load<mode>_mask): Split into two similar
13991 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13992 Refactor output template.
13993 (define_insn "<avx512>_store<mode>_mask"): Ditto.
13995 2014-08-22 David Malcolm <dmalcolm@redhat.com>
13997 * cprop.c (struct occr): Strengthen field "insn" from rtx to
13999 (reg_available_p): Likewise for param "insn".
14000 (insert_set_in_table): Likewise.
14001 (hash_scan_set): Likewise.
14002 (hash_scan_insn): Likewise.
14003 (make_set_regs_unavailable): Likewise.
14004 (compute_hash_table_work): Likewise for local "insn".
14005 (reg_not_set_p): Strengthen param "insn" from const_rtx to
14007 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
14008 (try_replace_reg): Likewise.
14009 (find_avail_set): Likewise.
14010 (cprop_jump): Likewise for params "setcc", "jump".
14011 (constprop_register): Likewise for param "insn".
14012 (cprop_insn): Likewise.
14013 (do_local_cprop): Likewise.
14014 (local_cprop_pass): Likewise for local "insn".
14015 (bypass_block): Likewise for params "setcc" and "jump".
14016 (bypass_conditional_jumps): Likewise for locals "setcc" and
14018 (one_cprop_pass): Likewise for local "insn".
14020 2014-08-22 David Malcolm <dmalcolm@redhat.com>
14022 * compare-elim.c (struct comparison_use): Strengthen field "insn"
14023 from rtx to rtx_insn *.
14024 (struct comparison): Likewise, also for field "prev_clobber".
14025 (conforming_compare): Likewise for param "insn".
14026 (arithmetic_flags_clobber_p): Likewise.
14027 (find_flags_uses_in_insn): Likewise.
14028 (find_comparison_dom_walker::before_dom_children): Likewise for
14029 locals "insn", "next", "last_clobber".
14030 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
14032 2014-08-22 David Malcolm <dmalcolm@redhat.com>
14034 * combine-stack-adj.c (struct csa_reflist): Strengthen field
14035 "insn" from rtx to rtx_insn *.
14036 (single_set_for_csa): Likewise for param "insn".
14037 (record_one_stack_ref): Likewise.
14038 (try_apply_stack_adjustment): Likewise.
14039 (struct record_stack_refs_data): Likewise for field "insn".
14040 (maybe_move_args_size_note): Likewise for params "last" and "insn".
14041 (prev_active_insn_bb): Likewise for return type and param "insn".
14042 (next_active_insn_bb): Likewise.
14043 (force_move_args_size_note): Likewise for params "prev" and "last"
14044 and locals "test", "next_candidate", "prev_candidate".
14045 (combine_stack_adjustments_for_block): Strengthen locals
14046 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
14049 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14051 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
14052 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
14053 (subst_insn): Likewise for this variable.
14054 (added_links_insn): Likewise.
14055 (struct insn_link): Likewise for field "insn".
14056 (alloc_insn_link): Likewise for param "insn".
14057 (struct undobuf): Likewise for field "other_insn".
14058 (find_single_use): Likewise for param "insn" and local "next".
14059 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
14060 (delete_noop_moves): Likewise for locals "insn", "next".
14061 (create_log_links): Likewise for locals "insn", "use_insn".
14062 Strengthen local "next_use" from rtx * to rtx_insn **.
14063 (insn_a_feeds_b): Likewise for params "a", "b".
14064 (combine_instructions): Likewise for param "f" and locals "insn",
14065 "next", "prev", "first", "last_combined_insn", "link", "link1",
14066 "temp". Replace use of NULL_RTX with NULL when referring to
14068 (setup_incoming_promotions): Likewise for param "first"
14069 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
14070 (can_combine_p): Likewise for params "insn", "i3", "pred",
14071 "pred2", "succ", "succ2" and for local "p".
14072 (combinable_i3pat): Likewise for param "i3".
14073 (cant_combine_insn_p): Likewise for param "insn".
14074 (likely_spilled_retval_p): Likewise.
14075 (adjust_for_new_dest): Likewise.
14076 (update_cfg_for_uncondjump): Likewise, also for local "insn".
14077 (try_combine): Likewise for return type and for params "i3", "i2",
14078 "i1", "i0", "last_combined_insn", and for locals "insn",
14079 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
14080 "i0_insn". Eliminate local "tem" in favor of new locals
14081 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
14082 checked cast for now to rtx_insn * on the return type of
14083 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
14085 (find_split_point): Strengthen param "insn" from rtx to
14087 (simplify_set): Likewise for local "other_insn".
14088 (recog_for_combine): Likewise for param "insn".
14089 (record_value_for_reg): Likewise.
14090 (record_dead_and_set_regs_1): Likewise for local
14091 "record_dead_insn".
14092 (record_dead_and_set_regs): Likewise for param "insn".
14093 (record_promoted_value): Likewise.
14094 (check_promoted_subreg): Likewise.
14095 (get_last_value_validate): Likewise.
14096 (reg_dead_at_p): Likewise.
14097 (move_deaths): Likewise for param "to_insn".
14098 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
14099 and locals "place", "place2", "cc0_setter". Eliminate local "tem
14100 in favor of new locals "tem_note" and "tem_insn", the latter being
14102 (distribute_links): Strengthen locals "place", "insn" from rtx to
14105 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14107 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
14109 (can_delete_label_p): Require a const rtx_code_label * rather than
14111 (delete_insn): Add checked cast to rtx_code_label * when we know
14112 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
14114 (delete_insn_chain): Strengthen locals "prev" and "current" from
14115 rtx to rtx_insn *. Add a checked cast when assigning from
14116 "finish" (strengthening the params will come later). Add a
14117 checked cast to rtx_note * in region where we know
14119 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
14121 (compute_bb_for_insn): Likewise.
14122 (free_bb_for_insn): Likewise for local "insn".
14123 (compute_bb_for_insn): Likewise.
14124 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
14125 local "insn" from rtx to rtx_insn *
14126 (flow_active_insn_p): Require a const rtx_insn * rather than a
14128 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
14130 (can_fallthru): Likewise for locals "insn" and "insn2".
14131 (bb_note): Likewise for local "note".
14132 (first_insn_after_basic_block_note): Likewise for local "note" and
14134 (rtl_split_block): Likewise for locals "insn" and "next".
14135 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
14137 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
14138 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
14140 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
14141 them), "kill_from", "barrier", "new_insn".
14142 (patch_jump_insn): Likewise for params "insn", "old_label".
14143 (redirect_branch_edge): Likewise for locals "old_label", "insn".
14144 (force_nonfallthru_and_redirect): Likewise for locals "insn",
14145 "old_label", "new_label".
14146 (rtl_tidy_fallthru_edge): Likewise for local "q".
14147 (rtl_split_edge): Likewise for locals "before", "last".
14148 (commit_one_edge_insertion): Likewise for locals "before",
14149 "after", "insns", "tmp", "last", adding a checked cast where
14150 currently necessary.
14151 (commit_edge_insertions): Likewise.
14152 (rtl_dump_bb): Likewise for locals "insn", "last".
14153 (print_rtl_with_bb): Likewise for local "x".
14154 (rtl_verify_bb_insns): Likewise for local "x".
14155 (rtl_verify_bb_pointers): Likewise for local "insn".
14156 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
14158 (rtl_verify_fallthru): Likewise for local "insn".
14159 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
14160 (purge_dead_edges): Likewise for local "insn".
14161 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
14162 (skip_insns_after_block): Likewise for return type and for locals
14163 "insn", "last_insn", "next_head", "prev".
14164 (record_effective_endpoints): Likewise for locals "next_insn",
14166 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
14167 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
14168 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
14169 (duplicate_insn_chain): For now, add checked cast from rtx to
14170 rtx_insn * when returning insn.
14171 (cfg_layout_duplicate_bb): Likewise for local "insn".
14172 (cfg_layout_delete_block): Likewise for locals "insn", "next",
14173 "prev", "remaints".
14174 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
14175 (rtl_block_empty_p): Likewise.
14176 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
14177 "split_point", "last".
14178 (rtl_block_ends_with_call_p): Likewise for local "insn".
14179 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
14181 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
14182 "split_at_insn" from rtx to rtx_insn *.
14183 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
14184 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
14185 to const rtx_insn *.
14186 (rtl_account_profile_record): Likewise.
14188 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14190 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
14192 (average_num_loop_insns): Likewise.
14193 (init_set_costs): Likewise for local "seq".
14194 (seq_cost): Likewise for param "seq", from const_rtx to const
14197 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14199 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
14202 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14204 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
14205 "f1" and "f2" from rtx * to rtx_insn **.
14206 (flow_find_head_matching_sequence): Likewise.
14208 * cfgcleanup.c (try_simplify_condjump): Strengthen local
14209 "cbranch_insn" from rtx to rtx_insn *.
14210 (thread_jump): Likewise for local "insn".
14211 (try_forward_edges): Likewise for local "last".
14212 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
14213 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
14215 (can_replace_by): Likewise for params "i1", "i2".
14216 (old_insns_match_p): Likewise.
14217 (merge_notes): Likewise.
14218 (walk_to_nondebug_insn): Likewise for param "i1".
14219 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
14220 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
14221 "afterlast1", "afterlast2" from rtx to rtx_insn *.
14222 (flow_find_head_matching_sequence): Strengthen params "f1" and
14223 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
14224 "last1", "last2", "beforelast1", "beforelast2" from rtx to
14226 (outgoing_edges_match): Likewise for locals "last1", "last2".
14227 (try_crossjump_to_edge): Likewise for local "insn".
14228 Replace call to for_each_rtx with for_each_rtx_in_insn.
14230 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
14231 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
14232 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
14233 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
14234 (try_optimize_cfg): Strengthen local "last" from rtx to
14236 (delete_dead_jumptables): Likewise for locals "insn", "next",
14239 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
14240 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
14241 "rtx else_first_tail", to reflect the basic-block.h changes above.
14243 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14245 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
14247 (purge_dead_tablejump_edges): Likewise.
14248 (find_bb_boundaries): Likewise for locals "insn", "end",
14249 "flow_transfer_insn".
14251 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14253 * caller-save.c (save_call_clobbered_regs): Strengthen locals
14254 "ins" and "prev" from rtx to rtx_insn *.
14256 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14258 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
14260 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
14261 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
14263 (load_register_parameters): Likewise for local "before_arg".
14264 (check_sibcall_argument_overlap): Likewise for param "insn".
14265 (expand_call): Likewise for locals "normal_call_insns",
14266 "tail_call_insns", "insns", "before_call", "after_args",
14267 "before_arg", "last", "prev". Strengthen one of the "last" from
14268 rtx to rtx_call_insn *.
14269 (fixup_tail_calls): Strengthen local "insn" from rtx to
14271 (emit_library_call_value_1): Likewise for locals "before_call" and
14274 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14276 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
14277 and "last" from rtx to rtx_insn *.
14278 (expand_builtin_nonlocal_goto): Likewise for local "insn".
14279 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
14281 (expand_errno_check): Strengthen local "lab" from rtx to
14283 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
14285 (expand_builtin_mathfn_2): Likewise.
14286 (expand_builtin_mathfn_ternary): Likewise.
14287 (expand_builtin_mathfn_3): Likewise.
14288 (expand_builtin_interclass_mathfn): Likewise for local "last".
14289 (expand_builtin_int_roundingfn): Likewise for local "insns".
14290 (expand_builtin_int_roundingfn_2): Likewise.
14291 (expand_builtin_strlen): Likewise for local "before_strlen".
14292 (expand_builtin_strncmp): Likewise for local "seq".
14293 (expand_builtin_signbit): Likewise for local "last".
14294 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
14295 from rtx to rtx_code_label *.
14296 (expand_stack_restore): Strengthen local "prev" from rtx to
14299 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14301 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
14303 (struct btr_def_s): Likewise.
14304 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
14306 (add_btr_def): Likewise.
14307 (new_btr_user): Likewise.
14308 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
14310 (link_btr_uses): Likewise.
14311 (move_btr_def): Likewise for locals "insp", "old_insn",
14312 "new_insn". Add checked cast to rtx_insn * for now on result of
14314 (can_move_up): Strengthen param "insn" from const_rtx to
14317 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14319 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
14321 (get_uncond_jump_length): Likewise for locals "label", "jump".
14322 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
14324 (add_labels_and_missing_jumps): Likewise for local "new_jump".
14325 (fix_up_fall_thru_edges): Likewise for local "old_jump".
14326 (find_jump_block): Likewise for local "insn".
14327 (fix_crossing_conditional_branches): Likewise for locals
14328 "old_jump", "new_jump".
14329 (fix_crossing_unconditional_branches): Likewise for locals
14330 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
14331 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
14333 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14335 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
14337 (struct mem_insn): Likewise for field "insn".
14338 (reg_next_use): Strengthen from rtx * to rtx_insn **.
14339 (reg_next_inc_use): Likewise.
14340 (reg_next_def): Likewise.
14341 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
14342 from rtx to rtx_insn *.
14343 (move_insn_before): Likewise for param "next_insn" and local "insns".
14344 (attempt_change): Likewise for local "mov_insn".
14345 (try_merge): Likewise for param "last_insn".
14346 (get_next_ref): Likewise for return type and local "insn".
14347 Strengthen param "next_array" from rtx * to rtx_insn **.
14348 (parse_add_or_inc): Strengthen param "insn" from rtx to
14350 (find_inc): Likewise for locals "insn" and "other_insn" (three of
14352 (merge_in_block): Likewise for locals "insn", "curr",
14354 (pass_inc_dec::execute): Update allocations of the arrays to
14355 reflect the stronger types.
14357 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14359 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
14360 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
14361 from rtx to rtx_code_label *.
14363 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14365 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
14368 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
14370 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
14371 generated a warning and prevented bootstrapping the compiler.
14373 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14375 * rtl.h (delete_related_insns): Strengthen return type from rtx to
14378 * jump.c (delete_related_insns): Likewise, also for locals "next"
14381 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14383 * genautomata.c (output_internal_insn_latency_func): When writing
14384 the function "internal_insn_latency" to insn-automata.c,
14385 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14386 allowing the optional guard function of (define_bypass) clauses to
14387 expect a pair of rtx_insn *, rather than a pair of rtx.
14388 (output_insn_latency_func): When writing the function
14389 "insn_latency", add an "uncast_" prefix to params "insn" and
14390 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
14391 using checked casts from the params, thus enabling the above
14392 change to the generated "internal_insn_latency" function.
14394 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
14396 PR tree-optimization/62091
14397 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
14398 handle correctly arrays.
14399 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
14400 inheritance binfos.
14401 (record_known_type): Walk into inner type.
14402 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
14403 condition on no type changes.
14405 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14407 * genattrtab.c (write_attr_get): Within the generated get_attr_
14408 functions, rename param "insn" to "uncast_insn" and reintroduce
14409 "insn" as an local rtx_insn * using a checked cast, so that "insn"
14410 is an rtx_insn * within insn-attrtab.c
14412 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14414 * output.h (peephole): Strengthen return type from rtx to
14416 * rtl.h (delete_for_peephole): Likewise for both params.
14417 * genpeep.c (main): In generated "peephole" function, strengthen
14418 return type and local "insn" from rtx to rtx_insn *. For now,
14419 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14420 rtx_insn *, with a checked cast.
14421 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14422 locals "insn", "next", "prev" from rtx to rtx_insn *.
14424 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
14426 PR tree-optimization/62112
14427 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14428 * gimple-iterator.h (gsi_replace): Return bool.
14429 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14430 moved from ref_may_alias_global_p.
14431 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14433 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14434 (stmt_kills_ref_p_1): Rename...
14435 (stmt_kills_ref_p): ... to this.
14436 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14437 stmt_kills_ref_p): Declare.
14438 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14439 Move the self-assignment case...
14440 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14442 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14444 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14446 * emit-rtl.c (try_split): Likewise, also for locals "before" and
14447 "after". For now, don't strengthen param "trial", which requires
14448 adding checked casts when returning it.
14450 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14452 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14453 "label" from rtx to rtx_code_label *. Strengthen param 1 of
14454 "var_location" hook from rtx to rtx_insn *.
14455 (debug_nothing_rtx): Delete in favor of...
14456 (debug_nothing_rtx_code_label): New prototype.
14457 (debug_nothing_rtx_rtx): Delete unused prototype.
14458 (debug_nothing_rtx_insn): New prototype.
14460 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14461 invoking debug_hooks->var_location (in two places, one in a NOTE
14462 case of a switch statement, the other guarded by a CALL_P
14463 conditional. Add checked cast to rtx_code_label * when invoking
14464 debug_hooks->label (within CODE_LABEL case of switch statement).
14466 * dbxout.c (dbx_debug_hooks): Update "label" hook from
14467 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
14468 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14469 (xcoff_debug_hooks): Likewise.
14470 * debug.c (do_nothing_debug_hooks): Likewise.
14471 (debug_nothing_rtx): Delete in favor of...
14472 (debug_nothing_rtx_insn): New function.
14473 (debug_nothing_rtx_rtx): Delete unused function.
14474 (debug_nothing_rtx_code_label): New function.
14475 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14476 debug_nothing_rtx to debug_nothing_rtx_code_label.
14477 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14479 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14480 debug_nothing_rtx to debug_nothing_rtx_insn.
14481 (sdbout_label): Strengthen param "insn" from rtx to
14483 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14484 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
14485 "var_location" hook from debug_nothing_rtx to
14486 debug_nothing_rtx_insn.
14488 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14490 * recog.h (insn_output_fn): Update this function typedef to match
14491 the changes below to the generated output functions, strengthening
14492 the 2nd param from rtx to rtx_insn *.
14494 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14495 insn when invoking an output function, to match the new signature
14496 of insn_output_fn with a stronger second param.
14498 * genconditions.c (write_header): In the generated code for
14499 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14500 to match the other changes in this patch.
14502 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14503 the generated "gen_" functions from rtx to rtx_insn * within their
14506 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14507 the subfunctions within the generated "recog_", "split", "peephole2"
14508 function trees from rtx to rtx_insn *. For now, the top-level
14509 generated functions ("recog", "split", "peephole2") continue to
14510 take a plain rtx for "insn", to avoid introducing dependencies on
14511 other patches. Rename this 2nd param from "insn" to
14512 "uncast_insn", and reintroduce "insn" as a local variable of type
14513 rtx_insn *, initialized at the top of the generated function with
14514 a checked cast on "uncast_insn".
14515 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14516 the generated "gen_" functions from rtx to rtx_insn * within their
14519 * genoutput.c (process_template): Strengthen the 2nd param within
14520 the generated "output_" functions "insn" from rtx to rtx_insn *.
14522 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14524 * tree-profile.c (tree_profiling): Skip external functions
14525 when doing coverage instrumentation.
14526 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14528 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14530 * config/rs6000/altivec.h (vec_cpsgn): New #define.
14531 (vec_mergee): Likewise.
14532 (vec_mergeo): Likewise.
14533 (vec_cntlz): Likewise.
14534 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14535 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14536 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14537 VMRGEW, and VMRGOW.
14538 * doc/extend.texi: Document various forms of vec_cpsgn,
14539 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14540 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14541 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14542 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14543 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14545 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14547 * config/rs6000/rs6000.c (context.h): New include.
14548 (tree-pass.h): Likewise.
14549 (make_pass_analyze_swaps): New decl.
14550 (rs6000_option_override): Register pass_analyze_swaps.
14551 (swap_web_entry): New subsclass of web_entry_base (df.h).
14552 (special_handling_values): New enum.
14553 (union_defs): New function.
14554 (union_uses): Likewise.
14555 (insn_is_load_p): Likewise.
14556 (insn_is_store_p): Likewise.
14557 (insn_is_swap_p): Likewise.
14558 (rtx_is_swappable_p): Likewise.
14559 (insn_is_swappable_p): Likewise.
14560 (chain_purpose): New enum.
14561 (chain_contains_only_swaps): New function.
14562 (mark_swaps_for_removal): Likewise.
14563 (swap_const_vector_halves): Likewise.
14564 (adjust_subreg_index): Likewise.
14565 (permute_load): Likewise.
14566 (permute_store): Likewise.
14567 (handle_special_swappables): Likewise.
14568 (replace_swap_with_copy): Likewise.
14569 (dump_swap_insn_table): Likewise.
14570 (rs6000_analyze_swaps): Likewise.
14571 (pass_data_analyze_swaps): New pass_data.
14572 (pass_analyze_swaps): New rtl_opt_pass.
14573 (make_pass_analyze_swaps): New function.
14574 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14576 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14578 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14579 type from rtx to rtx_insn *.
14580 (create_copy_of_insn_rtx): Likewise.
14581 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14582 (create_copy_of_insn_rtx): Likewise, also for local "res".
14584 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14586 * rtl.h (find_first_parameter_load): Strengthen return type from
14588 * rtlanal.c (find_first_parameter_load): Strengthen return type
14589 from rtx to rtx_insn *. Add checked cast for now, to postpone
14590 strengthening the params.
14592 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14595 * diagnostic.c: Set default caret.
14596 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14598 * diagnostic.h (struct diagnostic_context):
14600 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14602 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14603 (sel_bb_head): Strengthen return type insn_t (currently just an
14604 rtx) to rtx_insn *.
14605 (sel_bb_end): Likewise.
14607 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14608 (sel_bb_head): Strengthen return type and local "head" from
14609 insn_t (currently just an rtx) to rtx_insn *.
14610 (sel_bb_end): Likewise for return type.
14611 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14614 2014-08-21 David Malcolm <dmalcolm@redhat.com>
14616 * basic-block.h (get_last_bb_insn): Strengthen return type from
14618 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14621 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
14624 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14626 (diagnostic_report_diagnostic): ... from here.
14627 * toplev.c (general_init): Move code to c-family.
14629 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14631 * df.h (web_entry_base): Replace existing struct web_entry with a
14632 new class web_entry_base with only the predecessor member.
14633 (unionfind_root): Remove declaration and move to class member.
14634 (unionfind_union): Remove declaration and move to friend
14636 (union_defs): Remove declaration.
14637 * web.c (web_entry_base::unionfind_root): Modify to be member
14638 function and adjust accessors.
14639 (unionfind_union): Modify to be friend function and adjust
14641 (web_entry): New subclass of web_entry_base containing the reg
14643 (union_match_dups): Modify for struct -> class changes.
14644 (union_defs): Likewise.
14645 (entry_register): Likewise.
14646 (pass_web::execute): Likewise.
14648 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
14650 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14651 builtin define __VEC_ELEMENT_REG_ORDER__.
14653 2014-08-20 Martin Jambor <mjambor@suse.cz>
14654 Wei Mi <wmi@google.com>
14657 PR middle-end/61776
14658 * tree-ssa-operands.c (update_stmt_operands): Remove
14659 MODIFIED_NORETURN_CALLS.
14660 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14661 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14662 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14663 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14664 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14665 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14666 (gimple_call_set_ctrl_altering): New func.
14667 (gimple_call_ctrl_altering_p): Ditto.
14668 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14669 (make_blocks): Use gimple_call_initialize_ctrl_altering.
14670 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14671 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14672 remove MODIFIED_NORETURN_CALLS.
14674 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14676 * coverage.c (coverage_compute_profile_id): Return non-0;
14677 also handle symbols with unique name.
14678 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14680 2014-08-20 Steve Ellcey <sellcey@mips.com>
14682 PR middle-end/49191
14683 * doc/sourcebuild.texi (non_strict_align): New.
14685 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
14687 * cgraphunit.c (ipa_passes, compile): Reshedule
14688 symtab_remove_unreachable_nodes passes; update comments.
14689 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14690 TODO_remove_functions before the pass; the functions ought to be
14692 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14693 TODO_remove_functions.
14694 * passes.c (pass_data_early_local_passes): Do not schedule function
14696 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14698 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14701 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14702 before setting the option.
14703 * diagnostic.c (diagnostic_classify_diagnostic): Record
14704 command-line status.
14706 2014-08-20 Richard Biener <rguenther@suse.de>
14709 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14710 to build uint{16,32,64}_type_node.
14712 2014-08-20 Terry Guo <terry.guo@arm.com>
14714 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14715 with immediate_operand.
14717 2014-08-20 David Malcolm <dmalcolm@redhat.com>
14719 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14720 "insn" from an as_a to a safe_as_a, for the case when "insn" is
14723 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14725 PR preprocessor/51303
14726 * incpath.c (remove_duplicates): Use cpp_warning.
14728 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
14732 * doc/options.texi (CPP): Document it.
14733 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14734 * optc-gen.awk: Handle CPP.
14735 * opth-gen.awk: Likewise.
14737 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14739 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14741 (duplicate_insn_chain): Likewise.
14742 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14743 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
14744 checked cast for now (until we can strengthen the params in the
14746 (duplicate_insn_chain): Likewise.
14748 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14750 * rtl.h (next_cc0_user): Strengthen return type from rtx to
14752 (prev_cc0_setter): Likewise.
14754 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14755 rtx_insn *, adding checked casts for now as necessary.
14756 (prev_cc0_setter): Likewise.
14758 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14760 * expr.h (emit_move_insn): Strengthen return type from rtx to
14762 (emit_move_insn_1): Likewise.
14763 (emit_move_complex_push): Likewise.
14764 (emit_move_complex_parts): Likewise.
14766 * expr.c (emit_move_via_integer): Strengthen return type from rtx
14767 to rtx_insn *. Replace use of NULL_RTX with NULL when working
14769 (emit_move_complex_push): Strengthen return type from rtx to
14771 (emit_move_complex): Likewise, also for local "ret".
14772 (emit_move_ccmode): Likewise.
14773 (emit_move_multi_word): Likewise for return type and locals
14774 "last_insn", "seq".
14775 (emit_move_insn_1): Likewise for return type and locals "result",
14777 (emit_move_insn): Likewise for return type and local "last_insn".
14778 (compress_float_constant): Likewise.
14780 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14782 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14783 from rtx to rtx_insn *.
14785 * rtl.h (emit_insn_before): Likewise.
14786 (emit_insn_before_noloc): Likewise.
14787 (emit_insn_before_setloc): Likewise.
14788 (emit_jump_insn_before): Likewise.
14789 (emit_jump_insn_before_noloc): Likewise.
14790 (emit_jump_insn_before_setloc): Likewise.
14791 (emit_call_insn_before): Likewise.
14792 (emit_call_insn_before_noloc): Likewise.
14793 (emit_call_insn_before_setloc): Likewise.
14794 (emit_debug_insn_before): Likewise.
14795 (emit_debug_insn_before_noloc): Likewise.
14796 (emit_debug_insn_before_setloc): Likewise.
14797 (emit_label_before): Likewise.
14798 (emit_insn_after): Likewise.
14799 (emit_insn_after_noloc): Likewise.
14800 (emit_insn_after_setloc): Likewise.
14801 (emit_jump_insn_after): Likewise.
14802 (emit_jump_insn_after_noloc): Likewise.
14803 (emit_jump_insn_after_setloc): Likewise.
14804 (emit_call_insn_after): Likewise.
14805 (emit_call_insn_after_noloc): Likewise.
14806 (emit_call_insn_after_setloc): Likewise.
14807 (emit_debug_insn_after): Likewise.
14808 (emit_debug_insn_after_noloc): Likewise.
14809 (emit_debug_insn_after_setloc): Likewise.
14810 (emit_label_after): Likewise.
14811 (emit_insn): Likewise.
14812 (emit_debug_insn): Likewise.
14813 (emit_jump_insn): Likewise.
14814 (emit_call_insn): Likewise.
14815 (emit_label): Likewise.
14816 (gen_clobber): Likewise.
14817 (emit_clobber): Likewise.
14818 (gen_use): Likewise.
14819 (emit_use): Likewise.
14822 (emit_barrier_before): Strengthen return type from rtx to
14824 (emit_barrier_after): Likewise.
14825 (emit_barrier): Likewise.
14827 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
14828 from rtx to rtx_insn *. Add checked casts for now when converting
14829 "last" from rtx to rtx_insn *.
14830 (emit_insn_before_noloc): Likewise for return type.
14831 (emit_jump_insn_before_noloc): Likewise.
14832 (emit_call_insn_before_noloc): Likewise.
14833 (emit_debug_insn_before_noloc): Likewise.
14834 (emit_barrier_before): Strengthen return type and local "insn"
14835 from rtx to rtx_barrier *.
14836 (emit_label_before): Strengthen return type from rtx to
14837 rtx_insn *. Add checked cast for now when returning param
14838 (emit_pattern_after_noloc): Strengthen return type from rtx to
14839 rtx_insn *. Add checked casts for now when converting "last" from
14841 (emit_insn_after_noloc): Strengthen return type from rtx to
14843 (emit_jump_insn_after_noloc): Likewise.
14844 (emit_call_insn_after_noloc): Likewise.
14845 (emit_debug_insn_after_noloc): Likewise.
14846 (emit_barrier_after): Strengthen return type from rtx to
14848 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14849 Add checked cast for now when converting "label" from rtx to
14851 (emit_pattern_after_setloc): Strengthen return type from rtx to
14852 rtx_insn *. Add checked casts for now when converting "last" from
14854 (emit_pattern_after): Strengthen return type from rtx to
14856 (emit_insn_after_setloc): Likewise.
14857 (emit_insn_after): Likewise.
14858 (emit_jump_insn_after_setloc): Likewise.
14859 (emit_jump_insn_after): Likewise.
14860 (emit_call_insn_after_setloc): Likewise.
14861 (emit_call_insn_after): Likewise.
14862 (emit_debug_insn_after_setloc): Likewise.
14863 (emit_debug_insn_after): Likewise.
14864 (emit_pattern_before_setloc): Likewise. Add checked casts for now
14865 when converting "last" from rtx to rtx_insn *.
14866 (emit_pattern_before): Strengthen return type from rtx to
14868 (emit_insn_before_setloc): Likewise.
14869 (emit_insn_before): Likewise.
14870 (emit_jump_insn_before_setloc): Likewise.
14871 (emit_jump_insn_before): Likewise.
14872 (emit_call_insn_before_setloc): Likewise.
14873 (emit_call_insn_before): Likewise.
14874 (emit_debug_insn_before_setloc): Likewise.
14875 (emit_debug_insn_before): Likewise.
14876 (emit_insn): Strengthen return type and locals "last", "insn",
14877 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
14878 within cases where we know we have an insn.
14879 (emit_debug_insn): Likewise.
14880 (emit_jump_insn): Likewise.
14881 (emit_call_insn): Strengthen return type and local "insn" from rtx
14883 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
14884 a checked cast to rtx_insn * for now on "label".
14885 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14886 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14887 (emit_use): Likewise.
14888 (gen_use): Likewise, also for local "seq".
14889 (emit): Likewise for return type and local "insn".
14890 (rtx_insn): Likewise for return type and local "new_rtx".
14892 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14893 from rtx to rtx_barrier *.
14895 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14896 changed return type from rtx to rtx_insn *, we must update
14897 "emit_fn" type, and this in turn means updating...
14898 (frame_insn): ...this. Strengthen return type from rtx to
14899 rtx_insn *. Introduce a new local "insn" of the appropriate type.
14901 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14903 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14904 rtx to rtx_jump_table_data *. Also for local.
14905 * rtl.h (emit_jump_table_data): Likewise.
14907 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14909 * basic-block.h (create_basic_block_structure): Strengthen third
14910 param "bb_note" from rtx to rtx_note *.
14911 * rtl.h (emit_note_before): Strengthen return type from rtx to
14913 (emit_note_after): Likewise.
14914 (emit_note): Likewise.
14915 (emit_note_copy): Likewise. Also, strengthen param similarly.
14916 * function.h (struct rtl_data): Strengthen field
14917 "x_stack_check_probe_note" from rtx to rtx_note *.
14919 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14920 from rtx to rtx_note *.
14921 * cfgrtl.c (create_basic_block_structure): Strengthen third param
14922 "bb_note" from rtx to rtx_note *.
14923 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
14924 when calling emit_note_copy.
14925 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14927 (emit_note_after): Likewise.
14928 (emit_note_before): Likewise.
14929 (emit_note_copy): Likewise. Also, strengthen param similarly.
14930 (emit_note): Likewise.
14931 * except.c (emit_note_eh_region_end): Likewise for return type.
14932 Strengthen local "next" from rtx to rtx_insn *.
14933 (convert_to_eh_region_ranges): Strengthen local "note"
14934 from rtx to rtx_note *.
14935 * final.c (change_scope): Likewise.
14936 (reemit_insn_block_notes): Likewise, for both locals named "note".
14937 Also, strengthen local "insn" from rtx to rtx_insn *.
14938 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14940 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14941 strengthen local "seq" from rtx to rtx_insn *.
14942 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14944 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14946 (get_bb_note_from_pool): Strengthen return type from rtx to
14948 (sel_create_basic_block): Strengthen local "new_bb_note" from
14949 insn_t to rtx_note *.
14950 * var-tracking.c (emit_note_insn_var_location): Strengthen local
14951 "note" from rtx to rtx_note *.
14952 (emit_notes_in_bb): Likewise.
14954 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14956 * function.h (struct rtl_data): Strengthen field
14957 "x_parm_birth_insn" from rtx to rtx_insn *.
14958 * function.c (struct assign_parm_data_all): Strengthen fields
14959 "first_conversion_insn" and "last_conversion_insn" from rtx to
14962 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14964 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14965 to rtx_insn *; also for local "var_end_seq".
14966 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14967 (maybe_cleanup_end_of_block): Likewise for param "last" and local
14969 (expand_gimple_cond): Likewise for locals "last2" and "last".
14970 (mark_transaction_restart_calls): Likewise for local "insn".
14971 (expand_gimple_stmt): Likewise for return type and locals "last"
14973 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14974 (avoid_complex_debug_insns): Likewise for param "insn".
14975 (expand_debug_locations): Likewise for locals "insn", "last",
14976 "prev_insn" and "insn2".
14977 (expand_gimple_basic_block): Likewise for local "last".
14978 (construct_exit_block): Likewise for locals "head", "end",
14980 (pass_expand::execute): Likewise for locals "var_seq",
14981 "var_ret_seq", "next".
14983 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14985 * asan.h (asan_emit_stack_protection): Strengthen return type from
14987 * asan.c (asan_emit_stack_protection): Likewise. Add local
14988 "insns" to hold the return value.
14990 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14992 * basic-block.h (bb_note): Strengthen return type from rtx to
14994 * sched-int.h (bb_note): Likewise.
14995 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
14997 2014-08-19 David Malcolm <dmalcolm@redhat.com>
14999 * rtl.h (make_insn_raw): Strengthen return type from rtx to
15002 * emit-rtl.c (make_insn_raw): Strengthen return type and local
15003 "insn" from rtx to rtx_insn *.
15004 (make_debug_insn_raw): Strengthen return type from rtx to
15005 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
15006 (make_jump_insn_raw): Strengthen return type from rtx to
15007 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
15008 (make_call_insn_raw): Strengthen return type from rtx to
15009 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
15010 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
15011 callback from rtx to rtx_insn *; likewise for local "insn" and
15012 "next", adding a checked cast to rtx_insn in the relevant cases of
15013 the switch statement.
15014 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
15015 callback from rtx to rtx_insn *.
15016 (emit_pattern_after_setloc): Likewise.
15017 (emit_pattern_after): Likewise.
15018 (emit_pattern_before_setloc): Likewise.
15019 (emit_pattern_before): Likewise.
15021 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15023 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
15025 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
15026 accepting an rtx_insn *.
15027 (last_call_insn): Strengthen return type from rtx to
15030 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15032 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
15033 "insns" from rtx to rtx_insn *.
15034 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
15035 locals "insn" and "prev".
15037 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15039 * rtl.h (tablejump_p): Strengthen third param from rtx * to
15040 rtx_jump_table_data **.
15042 * cfgbuild.c (make_edges): Introduce local "table", using it in
15043 place of "tmp" for jump table data.
15044 (find_bb_boundaries): Strengthen local "table" from rtx to
15045 rtx_jump_table_data *.
15046 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15047 (outgoing_edges_match): Likewise for locals "table1" and "table2".
15048 (try_crossjump_to_edge): Likewise.
15049 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
15051 (patch_jump_insn): Introduce local "table", using it in place of
15052 "tmp" for jump table data.
15053 (force_nonfallthru_and_redirect): Introduce local "table", so that
15054 call to tablejump_p can receive an rtx_jump_table_data **. Update
15055 logic around the call to overwrite "note" appropriately if
15056 tablejump_p returns non-zero.
15057 (get_last_bb_insn): Introduce local "table", using it in place of
15058 "tmp" for jump table data.
15059 * dwarf2cfi.c (create_trace_edges): Likewise.
15061 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
15062 from rtx to rtx_jump_table_data *.
15063 (create_fix_barrier): Strengthen local "tmp" from rtx to
15064 rtx_jump_table_data *.
15065 (arm_reorg): Likewise for local "table".
15067 * config/s390/s390.c (s390_chunkify_start): Likewise.
15069 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
15071 * jump.c (delete_related_insns): Strengthen local "lab_next" from
15072 rtx to rtx_jump_table_data *.
15074 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
15075 rtx_jump_table_data **. Add a checked cast when writing through
15076 the pointer: we know there that local "table" is non-NULL and that
15077 JUMP_TABLE_DATA_P (table) holds.
15078 (label_is_jump_target_p): Introduce local "table", using it in
15079 place of "tmp" for jump table data.
15081 2014-08-19 Marek Polacek <polacek@redhat.com>
15084 * doc/invoke.texi: Document -Wbool-compare.
15086 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15088 * rtl.h (entry_of_function): Strengthen return type from rtx to
15090 * cfgrtl.c (entry_of_function): Likewise.
15092 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15094 * emit-rtl.h (get_insns): Strengthen return type from rtx to
15095 rtx_insn *, adding a checked cast for now.
15096 (get_last_insn): Likewise.
15098 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15100 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
15103 * emit-rtl.c (gen_label_rtx): Likewise.
15105 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15107 * rtl.h (previous_insn): Strengthen return type from rtx to
15109 (next_insn): Likewise.
15110 (prev_nonnote_insn): Likewise.
15111 (prev_nonnote_insn_bb): Likewise.
15112 (next_nonnote_insn): Likewise.
15113 (next_nonnote_insn_bb): Likewise.
15114 (prev_nondebug_insn): Likewise.
15115 (next_nondebug_insn): Likewise.
15116 (prev_nonnote_nondebug_insn): Likewise.
15117 (next_nonnote_nondebug_insn): Likewise.
15118 (prev_real_insn): Likewise.
15119 (next_real_insn): Likewise.
15120 (prev_active_insn): Likewise.
15121 (next_active_insn): Likewise.
15123 * emit-rtl.c (next_insn): Strengthen return type from rtx to
15124 rtx_insn *, adding a checked cast.
15125 (previous_insn): Likewise.
15126 (next_nonnote_insn): Likewise.
15127 (next_nonnote_insn_bb): Likewise.
15128 (prev_nonnote_insn): Likewise.
15129 (prev_nonnote_insn_bb): Likewise.
15130 (next_nondebug_insn): Likewise.
15131 (prev_nondebug_insn): Likewise.
15132 (next_nonnote_nondebug_insn): Likewise.
15133 (prev_nonnote_nondebug_insn): Likewise.
15134 (next_real_insn): Likewise.
15135 (prev_real_insn): Likewise.
15136 (next_active_insn): Likewise.
15137 (prev_active_insn): Likewise.
15139 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
15140 param "stepfunc" so that it returns an rtx_insn * rather than an
15141 rtx, to track the change to prev_nonnote_insn_bb, which is the
15142 only function this is called with.
15143 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
15145 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
15147 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
15150 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15152 * coretypes.h (class rtx_debug_insn): Add forward declaration.
15153 (class rtx_nonjump_insn): Likewise.
15154 (class rtx_jump_insn): Likewise.
15155 (class rtx_call_insn): Likewise.
15156 (class rtx_jump_table_data): Likewise.
15157 (class rtx_barrier): Likewise.
15158 (class rtx_code_label): Likewise.
15159 (class rtx_note): Likewise.
15161 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
15162 adding the invariant DEBUG_INSN_P (X).
15163 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
15164 the invariant NONJUMP_INSN_P (X).
15165 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
15166 the invariant JUMP_P (X).
15167 (class rtx_call_insn): New, a subclass of rtx_insn, adding
15168 the invariant CALL_P (X).
15169 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
15170 invariant JUMP_TABLE_DATA_P (X).
15171 (class rtx_barrier): New, a subclass of rtx_insn, adding the
15172 invariant BARRIER_P (X).
15173 (class rtx_code_label): New, a subclass of rtx_insn, adding
15174 the invariant LABEL_P (X).
15175 (class rtx_note): New, a subclass of rtx_insn, adding
15176 the invariant NOTE_P(X).
15177 (is_a_helper <rtx_debug_insn *>::test): New.
15178 (is_a_helper <rtx_nonjump_insn *>::test): New.
15179 (is_a_helper <rtx_jump_insn *>::test): New.
15180 (is_a_helper <rtx_call_insn *>::test): New.
15181 (is_a_helper <rtx_jump_table_data *>::test): New functions,
15182 overloaded for both rtx and rtx_insn *.
15183 (is_a_helper <rtx_barrier *>::test): New.
15184 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
15185 for both rtx and rtx_insn *.
15186 (is_a_helper <rtx_note *>::test): New.
15188 2014-08-19 Marek Polacek <polacek@redhat.com>
15190 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
15191 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15192 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
15193 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15195 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15197 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
15198 rtx_insn *. To help with transition, for now, convert from an
15199 access macro into a pair of functions: BND_TO, returning an
15201 (SET_BND_TO): New function, for use where BND_TO is used as an
15204 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
15206 (BND_TO): New function, adding a checked cast.
15207 (SET_BND_TO): New function.
15209 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
15211 (compute_av_set_on_boundaries): Likewise.
15213 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
15215 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
15216 destination if it is used in source.
15217 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
15218 (*popcount<mode>2_falsedep_1): Likewise.
15220 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
15223 * configure.ac: Set install_gold_as_default to no first.
15224 * configure: Regenerated.
15226 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15228 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
15229 "note_list" field will eventually be an rtx_insn *. To help with
15230 transition, for now, convert from an access macro into a pair of
15231 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
15232 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
15235 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
15236 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
15238 * sel-sched-ir.c (init_bb): Likewise.
15239 (sel_restore_notes): Likewise.
15240 (move_bb_info): Likewise.
15241 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
15242 (SET_BB_NOTE_LIST): New function.
15244 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15246 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
15247 field will eventually be an rtx_insn *. To help with transition,
15248 for now, convert from an access macro into a pair of functions:
15249 VINSN_INSN_RTX, returning an rtx_insn *, and...
15250 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
15251 is used as an lvalue.
15253 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
15254 SET_VINSN_INSN_RTX where it's used as an lvalue.
15255 (VINSN_INSN_RTX): New function.
15256 (SET_VINSN_INSN_RTX): New function.
15258 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15260 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
15261 eventually be rtx_insn *, but to help with transition, for now,
15262 convert from an access macro into a pair of functions: DEP_PRO
15263 returning an rtx_insn * and...
15264 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
15265 lvalue, returning an rtx&.
15266 (DEP_CON): Analogous changes to DEP_PRO above.
15267 (SET_DEP_CON): Likewise.
15269 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
15270 an lvalue to SET_DEP_CON.
15271 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
15272 (sd_copy_back_deps): Likewise for DEP_CON.
15273 (DEP_PRO): New function, adding a checked cast for now.
15274 (DEP_CON): Likewise.
15275 (SET_DEP_PRO): New function.
15276 (SET_DEP_CON): Likewise.
15278 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
15280 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
15281 (extra_options): Add i386/cygwin.opt.
15282 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
15283 (CPP_SPEC): Accept -pthread.
15284 (LINK_SPEC): Ditto.
15285 (GOMP_SELF_SPECS): Update comment.
15286 * config/i386/cygwin.opt: New file for -pthread flag.
15288 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15290 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
15291 * df.h (DF_REF_INSN): Convert from a macro to a function, so
15292 that we can return an rtx_insn *.
15294 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
15296 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
15297 when building executables, not DLLs. Add --large-address-aware
15298 under the same conditions.
15299 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
15300 when building executables, not DLLs. Add --large-address-aware
15301 under the same conditions when using -m32.
15303 * config/i386/cygwin-stdint.h: Throughout, make type
15304 definitions dependent on target architecture, not host.
15306 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15308 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
15309 the return type from rtx to rtx_insn *, which will enable various
15310 conversions in followup patches. For now this is is done by a
15312 (NEXT_INSN): Likewise.
15313 (SET_PREV_INSN): Convert to an inline function. This is intended
15314 for use as an lvalue, and so returns an rtx& to allow in-place
15316 (SET_NEXT_INSN): Likewise.
15318 2014-07-08 Mark Wielaard <mjw@redhat.com>
15321 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
15323 2014-08-19 Marek Polacek <polacek@redhat.com>
15326 * cgraphunit.c (handle_alias_pairs): Fix condition.
15328 2014-08-19 Richard Biener <rguenther@suse.de>
15330 * gimple-fold.c (fold_gimple_assign): Properly build a
15331 null-pointer constant when devirtualizing addresses.
15333 2014-07-07 Mark Wielaard <mjw@redhat.com>
15335 * dwarf2out.c (decl_quals): New function.
15336 (modified_type_die): Take one cv_quals argument instead of two,
15337 one for const and one for volatile.
15338 (add_type_attribute): Likewise.
15339 (generic_parameter_die): Call add_type_attribute with one modifier
15341 (base_type_for_mode): Likewise.
15342 (add_bounds_info): Likewise.
15343 (add_subscript_info): Likewise.
15344 (gen_array_type_die): Likewise.
15345 (gen_descr_array_type_die): Likewise.
15346 (gen_entry_point_die): Likewise.
15347 (gen_enumeration_type_die): Likewise.
15348 (gen_formal_parameter_die): Likewise.
15349 (gen_subprogram_die): Likewise.
15350 (gen_variable_die): Likewise.
15351 (gen_const_die): Likewise.
15352 (gen_field_die): Likewise.
15353 (gen_pointer_type_die): Likewise.
15354 (gen_reference_type_die): Likewise.
15355 (gen_ptr_to_mbr_type_die): Likewise.
15356 (gen_inheritance_die): Likewise.
15357 (gen_subroutine_type_die): Likewise.
15358 (gen_typedef_die): Likewise.
15359 (force_type_die): Likewise.
15361 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15363 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
15365 * configure: Regenerate.
15367 2014-08-19 Richard Biener <rguenther@suse.de>
15369 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
15370 DECL_EXTERNALs in BLOCKs as non-references.
15371 * tree-streamer-out.c (streamer_write_chain): Likewise.
15373 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
15374 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15375 Anna Tikhonova <anna.tikhonova@intel.com>
15376 Ilya Tocar <ilya.tocar@intel.com>
15377 Andrey Turetskiy <andrey.turetskiy@intel.com>
15378 Ilya Verbin <ilya.verbin@intel.com>
15379 Kirill Yukhin <kirill.yukhin@intel.com>
15380 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15382 * config/i386/sse.md
15383 (define_mode_iterator VI48_AVX512F): Delete.
15384 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
15385 (define_mode_iterator VI2_AVX512VL): Ditto.
15386 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
15389 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
15391 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
15392 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
15393 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15394 with VI48_AVX512F_AVX512VL): New.
15395 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15396 with VI2_AVX512VL): Ditto.
15398 2014-08-19 Marek Polacek <polacek@redhat.com>
15400 * doc/invoke.texi: Document -Wc99-c11-compat.
15402 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15404 * rtl.h (PREV_INSN): Split macro in two: the existing one,
15405 for rvalues, and...
15406 (SET_PREV_INSN): New macro, for use as an lvalue.
15407 (NEXT_INSN, SET_NEXT_INSN): Likewise.
15409 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
15410 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
15411 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15412 (fixup_abnormal_edges): Likewise.
15413 (unlink_insn_chain): Likewise.
15414 (fixup_reorder_chain): Likewise.
15415 (cfg_layout_delete_block): Likewise.
15416 (cfg_layout_merge_blocks): Likewise.
15417 * combine.c (update_cfg_for_uncondjump): Likewise.
15418 * emit-rtl.c (link_insn_into_chain): Likewise.
15419 (remove_insn): Likewise.
15420 (delete_insns_since): Likewise.
15421 (reorder_insns_nobb): Likewise.
15422 (emit_insn_after_1): Likewise.
15423 * final.c (rest_of_clean_state): Likewise.
15424 (final_scan_insn): Likewise.
15425 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15426 * haifa-sched.c (concat_note_lists): Likewise.
15427 (remove_notes): Likewise.
15428 (restore_other_notes): Likewise.
15429 (move_insn): Likewise.
15430 (unlink_bb_notes): Likewise.
15431 (restore_bb_notes): Likewise.
15432 * jump.c (delete_for_peephole): Likewise.
15433 * optabs.c (emit_libcall_block_1): Likewise.
15434 * reorg.c (emit_delay_sequence): Likewise.
15435 (fill_simple_delay_slots): Likewise.
15436 * sel-sched-ir.c (sel_move_insn): Likewise.
15437 (sel_remove_insn): Likewise.
15438 (get_bb_note_from_pool): Likewise.
15439 * sel-sched.c (move_nop_to_previous_block): Likewise.
15441 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15442 * config/c6x/c6x.c (gen_one_bundle): Likewise.
15443 (c6x_gen_bundles): Likewise.
15444 (hwloop_optimize): Likewise.
15445 * config/frv/frv.c (frv_function_prologue): Likewise.
15446 (frv_register_nop): Likewise.
15447 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15448 (ia64_reorg): Likewise.
15449 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15450 (mep_make_bundle): Likewise.
15451 (mep_bundle_insns): Likewise.
15452 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15453 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15454 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15456 2014-08-19 David Malcolm <dmalcolm@redhat.com>
15458 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
15459 return type from rtx to rtx_insn *.
15460 (BB_END): Likewise.
15461 (BB_HEADER): Likewise.
15462 (BB_FOOTER): Likewise.
15463 (SET_BB_HEAD): Convert to a function.
15464 (SET_BB_END): Likewise.
15465 (SET_BB_HEADER): Likewise.
15466 (SET_BB_FOOTER): Likewise.
15468 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15469 Strengthen the return type from rtx to rtx_insn *. For now, this
15470 is done by adding a checked cast, but this will eventually
15471 become a field lookup.
15472 (BB_END): Likewise.
15473 (BB_HEADER): Likewise.
15474 (BB_FOOTER): Likewise.
15475 (SET_BB_HEAD): New function, from macro of same name. This is
15476 intended for use as an lvalue, and so returns an rtx& to allow
15477 in-place modification.
15478 (SET_BB_END): Likewise.
15479 (SET_BB_HEADER): Likewise.
15480 (SET_BB_FOOTER): Likewise.
15482 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15484 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15485 for rvalues, and...
15486 (SET_BB_HEAD): New macro, for use as a lvalue.
15487 (BB_END, SET_BB_END): Likewise.
15488 (BB_HEADER, SET_BB_HEADER): Likewise.
15489 (BB_FOOTER, SET_BB_FOOTER): Likewise.
15491 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15492 of BB_* macros into SET_BB_* macros.
15493 (fix_crossing_unconditional_branches): Likewise.
15494 * caller-save.c (save_call_clobbered_regs): Likewise.
15495 (insert_one_insn): Likewise.
15496 * cfgbuild.c (find_bb_boundaries): Likewise.
15497 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15498 (outgoing_edges_match): Likewise.
15499 (try_optimize_cfg): Likewise.
15500 * cfgexpand.c (expand_gimple_cond): Likewise.
15501 (expand_gimple_tailcall): Likewise.
15502 (expand_gimple_basic_block): Likewise.
15503 (construct_exit_block): Likewise.
15504 * cfgrtl.c (delete_insn): Likewise.
15505 (create_basic_block_structure): Likewise.
15506 (rtl_delete_block): Likewise.
15507 (rtl_split_block): Likewise.
15508 (emit_nop_for_unique_locus_between): Likewise.
15509 (rtl_merge_blocks): Likewise.
15510 (block_label): Likewise.
15511 (try_redirect_by_replacing_jump): Likewise.
15512 (emit_barrier_after_bb): Likewise.
15513 (fixup_abnormal_edges): Likewise.
15514 (record_effective_endpoints): Likewise.
15515 (relink_block_chain): Likewise.
15516 (fixup_reorder_chain): Likewise.
15517 (fixup_fallthru_exit_predecessor): Likewise.
15518 (cfg_layout_duplicate_bb): Likewise.
15519 (cfg_layout_split_block): Likewise.
15520 (cfg_layout_delete_block): Likewise.
15521 (cfg_layout_merge_blocks): Likewise.
15522 * combine.c (update_cfg_for_uncondjump): Likewise.
15523 * emit-rtl.c (add_insn_after): Likewise.
15524 (remove_insn): Likewise.
15525 (reorder_insns): Likewise.
15526 (emit_insn_after_1): Likewise.
15527 * haifa-sched.c (get_ebb_head_tail): Likewise.
15528 (restore_other_notes): Likewise.
15529 (move_insn): Likewise.
15530 (sched_extend_bb): Likewise.
15531 (fix_jump_move): Likewise.
15532 * ifcvt.c (noce_process_if_block): Likewise.
15533 (dead_or_predicable): Likewise.
15534 * ira.c (update_equiv_regs): Likewise.
15535 * reg-stack.c (change_stack): Likewise.
15536 * sel-sched-ir.c (sel_move_insn): Likewise.
15537 * sel-sched.c (move_nop_to_previous_block): Likewise.
15539 * config/c6x/c6x.c (hwloop_optimize): Likewise.
15540 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15542 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15544 * rtl.h (for_each_rtx_in_insn): New function.
15545 * rtlanal.c (for_each_rtx_in_insn): Likewise.
15547 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15549 * coretypes.h (class rtx_insn): Add forward declaration.
15551 * rtl.h: Include is-a.h.
15552 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15553 workaround to ensure gengtype knows inheritance is occurring,
15554 whilst continuing to use the pre-existing special-casing for
15556 (class rtx_insn): New subclass of rtx_def, adding the
15557 invariant that we're dealing with something we can sanely use
15558 INSN_UID, NEXT_INSN, PREV_INSN on.
15559 (is_a_helper <rtx_insn *>::test): New.
15560 (is_a_helper <const rtx_insn *>::test): New.
15562 2014-08-18 David Malcolm <dmalcolm@redhat.com>
15564 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15566 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15568 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15571 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
15573 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15574 to BUILT_IN_UNREACHABLE.
15576 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
15579 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15581 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15582 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15583 (ffs<mode>2): Do not expand with tzcnt for
15584 TARGET_AVOID_FALSE_DEP_FOR_BMI.
15585 (ffssi2_no_cmove): Ditto.
15586 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15587 (ctz<mode>2): New expander.
15588 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15589 (*ctz<mode>2_falsedep): New insn.
15590 (*ctz<mode>2): Rename from ctz<mode>2.
15591 (clz<mode>2_lzcnt): New expander.
15592 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15593 (*clz<mode>2_lzcnt_falsedep): New insn.
15594 (*clz<mode>2): Rename from ctz<mode>2.
15595 (popcount<mode>2): New expander.
15596 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15597 (*popcount<mode>2_falsedep): New insn.
15598 (*popcount<mode>2): Rename from ctz<mode>2.
15599 (*popcount<mode>2_cmp): Remove.
15600 (*popcountsi2_cmp_zext): Ditto.
15602 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
15604 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15605 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15606 * config/microblaze/microblaze.h
15607 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15609 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
15612 * configure.ac: Set install_gold_as_default to no for
15614 * configure: Regenerated.
15616 2014-08-18 Roman Gareev <gareevroman@gmail.com>
15618 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15619 * config.in: Add undef of HAVE_isl.
15620 * configure: Regenerate.
15621 * configure.ac: Add definition of HAVE_isl.
15622 * graphite-blocking.c: Add checking of HAVE_isl.
15623 * graphite-dependences.c: Likewise.
15624 * graphite-interchange.c: Likewise.
15625 * graphite-isl-ast-to-gimple.c: Likewise.
15626 * graphite-optimize-isl.c: Likewise.
15627 * graphite-poly.c: Likewise.
15628 * graphite-scop-detection.c: Likewise.
15629 * graphite-sese-to-poly.c: Likewise.
15630 * graphite.c: Likewise.
15631 * toplev.c: Replace the checking of HAVE_cloog with the checking
15634 2014-08-18 Richard Biener <rguenther@suse.de>
15636 PR tree-optimization/62090
15637 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15638 (fold_builtin_3): Do not fold snprintf.
15639 (fold_builtin_4): Likewise.
15640 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15641 moved from builtins.c.
15642 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15643 (gimple_fold_builtin): Do not fold sprintf here.
15645 2014-08-18 Richard Biener <rguenther@suse.de>
15647 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15649 (maybe_canonicalize_mem_ref_addr): ... this function.
15650 (fold_stmt_1): Apply it here before all simplification.
15652 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
15655 * cgraph.h (cgraph_node::create_indirect_edge): Add
15656 compute_indirect_info param.
15657 * cgraph.c (cgraph_node::create_indirect_edge): Compute
15658 indirect_info only when it is required.
15659 * cgraphclones.c (cgraph_clone_edge): Do not recompute
15660 indirect_info fore cloned indirect edge.
15662 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15663 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15664 Anna Tikhonova <anna.tikhonova@intel.com>
15665 Ilya Tocar <ilya.tocar@intel.com>
15666 Andrey Turetskiy <andrey.turetskiy@intel.com>
15667 Ilya Verbin <ilya.verbin@intel.com>
15668 Kirill Yukhin <kirill.yukhin@intel.com>
15669 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15671 * config/i386/sse.md
15672 (define_mode_iterator VI8_AVX2_AVX512BW): New.
15673 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15675 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15676 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15677 Anna Tikhonova <anna.tikhonova@intel.com>
15678 Ilya Tocar <ilya.tocar@intel.com>
15679 Andrey Turetskiy <andrey.turetskiy@intel.com>
15680 Ilya Verbin <ilya.verbin@intel.com>
15681 Kirill Yukhin <kirill.yukhin@intel.com>
15682 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15684 * config/i386/sse.md
15685 (define_mode_iterator VF1_AVX512VL): New.
15686 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15687 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15690 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15691 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15692 Anna Tikhonova <anna.tikhonova@intel.com>
15693 Ilya Tocar <ilya.tocar@intel.com>
15694 Andrey Turetskiy <andrey.turetskiy@intel.com>
15695 Ilya Verbin <ilya.verbin@intel.com>
15696 Kirill Yukhin <kirill.yukhin@intel.com>
15697 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15699 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15700 * config/i386/i386.md
15701 (define_code_iterator any_float): New.
15702 (define_code_attr floatsuffix): New.
15703 * config/i386/sse.md
15704 (define_mode_iterator VF1_128_256VL): New.
15705 (define_mode_iterator VF2_512_256VL): New.
15706 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15708 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15709 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15711 (define_mode_attr qq2pssuff): New.
15712 (define_mode_attr sselongvecmode): New.
15713 (define_mode_attr sselongvecmodelower): New.
15714 (define_mode_attr sseintvecmode3): New.
15715 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15717 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15718 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15719 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15720 (define_insn "ufloatv2siv2df2<mask_name>"): New.
15722 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15723 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15724 Anna Tikhonova <anna.tikhonova@intel.com>
15725 Ilya Tocar <ilya.tocar@intel.com>
15726 Andrey Turetskiy <andrey.turetskiy@intel.com>
15727 Ilya Verbin <ilya.verbin@intel.com>
15728 Kirill Yukhin <kirill.yukhin@intel.com>
15729 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15731 * config/i386/sse.md
15732 (define_mode_iterator VF2_AVX512VL): New.
15733 (define_mode_attr sseintvecmode2): New.
15734 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15735 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15736 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15738 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15740 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15742 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15745 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15746 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15747 Anna Tikhonova <anna.tikhonova@intel.com>
15748 Ilya Tocar <ilya.tocar@intel.com>
15749 Andrey Turetskiy <andrey.turetskiy@intel.com>
15750 Ilya Verbin <ilya.verbin@intel.com>
15751 Kirill Yukhin <kirill.yukhin@intel.com>
15752 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15754 * config/i386/i386.md
15755 (define_insn "*movoi_internal_avx"): Add evex version.
15756 (define_insn "*movti_internal"): Ditto.
15758 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15759 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15760 Anna Tikhonova <anna.tikhonova@intel.com>
15761 Ilya Tocar <ilya.tocar@intel.com>
15762 Andrey Turetskiy <andrey.turetskiy@intel.com>
15763 Ilya Verbin <ilya.verbin@intel.com>
15764 Kirill Yukhin <kirill.yukhin@intel.com>
15765 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15767 * config/i386/i386.md
15768 (define_attr "isa"): Add avx512dq, noavx512dq.
15769 (define_attr "enabled"): Ditto.
15770 * config/i386/sse.md
15771 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15773 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
15774 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
15775 Anna Tikhonova <anna.tikhonova@intel.com>
15776 Ilya Tocar <ilya.tocar@intel.com>
15777 Andrey Turetskiy <andrey.turetskiy@intel.com>
15778 Ilya Verbin <ilya.verbin@intel.com>
15779 Kirill Yukhin <kirill.yukhin@intel.com>
15780 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
15782 * config/i386/i386.c
15783 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15784 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15785 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15786 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15787 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15788 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15789 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15790 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15791 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15792 * config/i386/sse.md
15793 (define_mode_iterator VMOVE): Allow V4TI mode.
15794 (define_mode_iterator V_AVX512VL): New.
15795 (define_mode_iterator V): New handling for AVX512VL.
15796 (define_insn "avx512f_load<mode>_mask"): Delete.
15797 (define_insn "<avx512>_load<mode>_mask"): New.
15798 (define_insn "avx512f_store<mode>_mask"): Delete.
15799 (define_insn "<avx512>_store<mode>_mask"): New.
15802 2014-08-18 Yury Gribov <y.gribov@samsung.com>
15805 * asan.c (instrument_derefs): Fix bitfield check.
15807 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15809 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15810 * config/rs6000/htm.md (ttest): Remove clobber.
15811 * config/rs6000/predicates.md (any_mask_operand): New predicate.
15812 (and_operand): Reformat.
15813 (and_2rld_operand): New predicate.
15814 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15816 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15817 parameter. Handle AND directly.
15818 (rs6000_split_logical_di): Remove last parameter.
15819 (rs6000_split_logical): Remove last parameter. Remove obsolete
15821 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15822 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15823 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
15824 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15825 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15826 and 5 anonymous splitters): Delete.
15827 (and<mode>3): New expander.
15828 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15829 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15830 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15831 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15832 (floatdisf2_internal1): Remove clobbers.
15833 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15834 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15835 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15836 (and<mode>3 for BOOL_128): Remove clobber.
15837 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
15838 rs6000_split_logical.
15839 (*bool<mode>3_internal for BOOL_128): Adjust call of
15840 rs6000_split_logical.
15841 (*boolc<mode>3_internal1 for BOOL_128,
15842 *boolc<mode>3_internal2 for BOOL_128,
15843 *boolcc<mode>3_internal1 for BOOL_128,
15844 *boolcc<mode>3_internal2 for BOOL_128,
15845 *eqv<mode>3_internal1 for BOOL_128,
15846 *eqv<mode>3_internal2 for BOOL_128,
15847 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15848 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15850 (*vec_reload_and_reg_<mptrsize>): Delete.
15852 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15854 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15855 and split, *boolccsi3_internal3 and split): Delete.
15856 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15857 *boolccdi3_internal3 and split): Delete.
15858 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15859 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
15861 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15863 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15864 and split, *boolcsi3_internal3 and split): Delete.
15865 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15866 *boolcdi3_internal3 and split): Delete.
15867 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15869 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
15871 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15872 <'u'>: Also support printing the low-order 16 bits.
15873 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15874 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15875 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15876 *booldi3_internal3 and split): Delete.
15877 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15878 *bool<mode>3_dot2): New.
15879 (two anonymous define_splits for non_logical_cint_operand): Merge.
15881 2014-08-17 Marek Polacek <polacek@redhat.com>
15882 Manuel López-Ibáñez <manu@gcc.gnu.org>
15885 * diagnostic.c (adjust_line): Add gcc_checking_assert.
15886 (diagnostic_show_locus): Don't print caret diagnostic
15887 if a column is larger than the line_width.
15889 2014-08-17 Roman Gareev <gareevroman@gmail.com>
15891 * common.opt: Make the ISL AST generator to be the main code generator
15894 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
15896 * wide-int.h (generic_wide_int): Declare as class instead of struct.
15898 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
15901 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15903 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15904 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15905 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15907 * config/pa/pa.md (begin_brtab): Delete insn.
15908 (end_brtab): Likewise.
15910 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
15912 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15914 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
15916 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15917 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15918 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15919 (get_dynamic_type): Remove.
15920 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15921 (clear_speculation): Bring to ipa-deivrt.h
15922 (get_class_context): Rename to ...
15923 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15924 (contains_type_p): Update.
15925 (get_dynamic_type): Rename to ...
15926 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15927 (possible_polymorphic_call_targets): UPdate.
15928 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15929 * ipa-prop.c (ipa_analyze_call_uses): Update.
15931 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
15933 * doc/invoke.texi (SH options): Document missing processor variant
15934 options. Remove references to Hitachi. Undocument deprecated mspace
15937 2014-08-15 Jason Merrill <jason@redhat.com>
15939 * tree.c (type_hash_canon): Uncomment assert.
15941 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15943 * input.h (in_system_header_at): Add comment.
15945 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15948 * diagnostic.c (build_message_string): Make it extern.
15949 * diagnostic.h (build_message_string): Make it extern.
15951 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
15953 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15954 load/store from/to non-floating class pseudo.
15956 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
15958 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15960 2014-08-15 Richard Biener <rguenther@suse.de>
15962 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15963 (get_constraint_for_ssa_var): Remove dead code.
15964 (get_constraint_for_1): Adjust.
15965 (find_what_var_points_to): Likewise.
15966 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
15968 2014-08-15 Ilya Tocar <tocarip@gmail.com>
15971 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15972 (_mm512_mask_cmpge_epu32_mask): Ditto.
15973 (_mm512_cmpge_epu32_mask): Ditto.
15974 (_mm512_mask_cmpge_epi64_mask): Ditto.
15975 (_mm512_cmpge_epi64_mask): Ditto.
15976 (_mm512_mask_cmpge_epu64_mask): Ditto.
15977 (_mm512_cmpge_epu64_mask): Ditto.
15978 (_mm512_mask_cmple_epi32_mask): Ditto.
15979 (_mm512_cmple_epi32_mask): Ditto.
15980 (_mm512_mask_cmple_epu32_mask): Ditto.
15981 (_mm512_cmple_epu32_mask): Ditto.
15982 (_mm512_mask_cmple_epi64_mask): Ditto.
15983 (_mm512_cmple_epi64_mask): Ditto.
15984 (_mm512_mask_cmple_epu64_mask): Ditto.
15985 (_mm512_cmple_epu64_mask): Ditto.
15986 (_mm512_mask_cmplt_epi32_mask): Ditto.
15987 (_mm512_cmplt_epi32_mask): Ditto.
15988 (_mm512_mask_cmplt_epu32_mask): Ditto.
15989 (_mm512_cmplt_epu32_mask): Ditto.
15990 (_mm512_mask_cmplt_epi64_mask): Ditto.
15991 (_mm512_cmplt_epi64_mask): Ditto.
15992 (_mm512_mask_cmplt_epu64_mask): Ditto.
15993 (_mm512_cmplt_epu64_mask): Ditto.
15994 (_mm512_mask_cmpneq_epi32_mask): Ditto.
15995 (_mm512_mask_cmpneq_epu32_mask): Ditto.
15996 (_mm512_cmpneq_epu32_mask): Ditto.
15997 (_mm512_mask_cmpneq_epi64_mask): Ditto.
15998 (_mm512_cmpneq_epi64_mask): Ditto.
15999 (_mm512_mask_cmpneq_epu64_mask): Ditto.
16000 (_mm512_cmpneq_epu64_mask): Ditto.
16001 (_mm512_castpd_ps): Ditto.
16002 (_mm512_castpd_si512): Ditto.
16003 (_mm512_castps_pd): Ditto.
16004 (_mm512_castps_si512): Ditto.
16005 (_mm512_castsi512_ps): Ditto.
16006 (_mm512_castsi512_pd): Ditto.
16007 (_mm512_castpd512_pd128): Ditto.
16008 (_mm512_castps512_ps128): Ditto.
16009 (_mm512_castsi512_si128): Ditto.
16010 (_mm512_castpd512_pd256): Ditto.
16011 (_mm512_castps512_ps256): Ditto.
16012 (_mm512_castsi512_si256): Ditto.
16013 (_mm512_castpd128_pd512): Ditto.
16014 (_mm512_castps128_ps512): Ditto.
16015 (_mm512_castsi128_si512): Ditto.
16016 (_mm512_castpd256_pd512): Ditto.
16017 (_mm512_castps256_ps512): Ditto.
16018 (_mm512_castsi256_si512): Ditto.
16019 (_mm512_cmpeq_epu32_mask): Ditto.
16020 (_mm512_mask_cmpeq_epu32_mask): Ditto.
16021 (_mm512_mask_cmpeq_epu64_mask): Ditto.
16022 (_mm512_cmpeq_epu64_mask): Ditto.
16023 (_mm512_cmpgt_epu32_mask): Ditto.
16024 (_mm512_mask_cmpgt_epu32_mask): Ditto.
16025 (_mm512_mask_cmpgt_epu64_mask): Ditto.
16026 (_mm512_cmpgt_epu64_mask): Ditto.
16027 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
16028 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
16029 * config/i386/i386.c (enum ix86_builtins): Add
16030 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
16031 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
16032 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
16033 (bdesc_args): Add __builtin_ia32_si512_256si,
16034 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
16035 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
16036 __builtin_ia32_pd512_pd.
16037 (ix86_expand_args_builtin): Handle new FTYPEs.
16038 * config/i386/sse.md (castmode): Add 512-bit modes.
16039 (AVX512MODE2P): New.
16040 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
16041 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
16043 2014-08-15 Richard Biener <rguenther@suse.de>
16045 * fold-const.c (tree_swap_operands_p): Put all constants
16046 last, also strip sign-changing NOPs when considering further
16047 canonicalization. Canonicalize also when optimizing for size.
16049 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16051 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
16052 one_match > zero_match case to just before simple_sequence.
16054 2014-08-15 Richard Biener <rguenther@suse.de>
16056 * data-streamer.h (streamer_string_index, string_for_index):
16058 * data-streamer-out.c (streamer_string_index): Make static.
16059 * data-streamer-in.c (string_for_index): Likewise.
16060 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
16061 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
16063 2014-08-15 Richard Biener <rguenther@suse.de>
16065 PR tree-optimization/62031
16066 * tree-data-ref.c (dr_analyze_indices): Do not set
16067 DR_UNCONSTRAINED_BASE.
16068 (dr_may_alias_p): All indirect accesses have to go the
16069 formerly DR_UNCONSTRAINED_BASE path.
16070 * tree-data-ref.h (struct indices): Remove
16071 unconstrained_base member.
16072 (DR_UNCONSTRAINED_BASE): Remove.
16074 2014-08-15 Jakub Jelinek <jakub@redhat.com>
16076 PR middle-end/62092
16077 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
16078 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
16079 in OMP_CLAUSE_MAP in some outer target region.
16081 2014-08-15 Bin Cheng <bin.cheng@arm.com>
16083 * tree-ssa-loop-ivopts.c (ivopts_data): New field
16084 name_expansion_cache.
16085 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
16086 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
16087 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
16088 (difference_cannot_overflow_p): New parameter. Use affine
16089 expansion for equality check.
16090 (iv_elimination_compare_lt): Pass new argument.
16092 2014-08-14 DJ Delorie <dj@redhat.com>
16094 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
16095 variables to the accumulator.
16097 * config/rl78/predicates.md (rl78_near_mem_operand): New.
16098 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
16099 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
16100 with far-far moves.
16102 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
16103 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
16104 (umulqihi3_virt): Likewise.
16105 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
16106 (umulqihi3_real): Likewise.
16108 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
16110 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
16112 PR tree-optimization/62091
16113 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
16114 function_entry_reached.
16115 (walk_aliased_vdefs): Clear it here.
16116 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
16118 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
16120 * ipa-utils.h (compare_virtual_tables): Declare.
16121 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
16123 2014-08-14 Marek Polacek <polacek@redhat.com>
16126 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
16127 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
16129 2014-08-14 Tom de Vries <tom@codesourcery.com>
16131 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
16133 2014-08-14 Tom de Vries <tom@codesourcery.com>
16135 PR rtl-optimization/62004
16136 PR rtl-optimization/62030
16137 * ifcvt.c (rtx_interchangeable_p): New function.
16138 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
16139 * emit-rtl.h (mem_attrs_eq_p): Declare.
16141 2014-08-14 Roman Gareev <gareevroman@gmail.com>
16143 * graphite-scop-detection.c:
16144 Add inclusion of cp-tree.h.
16145 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
16146 in case they are pointers to object types
16148 2014-08-14 Richard Biener <rguenther@suse.de>
16150 * BASE-VER: Change to 5.0.0
16152 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16153 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16154 Anna Tikhonova <anna.tikhonova@intel.com>
16155 Ilya Tocar <ilya.tocar@intel.com>
16156 Andrey Turetskiy <andrey.turetskiy@intel.com>
16157 Ilya Verbin <ilya.verbin@intel.com>
16158 Kirill Yukhin <kirill.yukhin@intel.com>
16159 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16161 * config/i386/sse.md (define_mode_attr avx512): New.
16162 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
16164 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
16165 (define_mode_attr ssse3_avx2): Ditto.
16166 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
16167 (define_mode_attr avx2_avx512bw): New.
16168 (define_mode_attr ssedoublemodelower): New.
16169 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
16170 V32HI, V64QI modes.
16171 (define_mode_attr ssebytemode): Allow V8DI modes.
16172 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
16173 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
16174 (define_mode_attr ssePSmode2): New.
16175 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
16176 V16HI, V32HI modes.
16177 (define_mode_attr dbpsadbwmode): New.
16178 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
16179 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
16180 (vi8_sse4_1_avx2_avx512): New.
16181 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
16183 (define_mode_attr blendbits): Move before its immediate use.
16185 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16186 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16187 Anna Tikhonova <anna.tikhonova@intel.com>
16188 Ilya Tocar <ilya.tocar@intel.com>
16189 Andrey Turetskiy <andrey.turetskiy@intel.com>
16190 Ilya Verbin <ilya.verbin@intel.com>
16191 Kirill Yukhin <kirill.yukhin@intel.com>
16192 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16194 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
16195 * config/i386/subst.md
16196 (define_mode_iterator SUBST_V): Update.
16197 (define_mode_iterator SUBST_A): Ditto.
16198 (define_subst_attr "mask_operand7"): New.
16199 (define_subst_attr "mask_operand10"): New.
16200 (define_subst_attr "mask_operand_arg34") : New.
16201 (define_subst_attr "mask_expand_op3"): New.
16202 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
16203 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
16204 (define_subst_attr "mask_avx512vl_condition"): New.
16205 (define_subst_attr "round_mask_operand4"): Ditto.
16206 (define_subst_attr "round_mask_scalar_op3"): Delete.
16207 (define_subst_attr "round_mask_op4"): New.
16208 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
16210 (define_subst_attr "round_modev8sf_condition"): New.
16211 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
16213 (define_subst_attr "round_saeonly_mask_operand4"): New.
16214 (define_subst_attr "round_saeonly_mask_op4"): New.
16215 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
16216 V8DImode, V16SImode.
16217 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
16218 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
16219 (define_subst_attr "mask_expand4_args"): New.
16220 (define_subst "mask_expand4"): New.
16222 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16223 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16224 Anna Tikhonova <anna.tikhonova@intel.com>
16225 Ilya Tocar <ilya.tocar@intel.com>
16226 Andrey Turetskiy <andrey.turetskiy@intel.com>
16227 Ilya Verbin <ilya.verbin@intel.com>
16228 Kirill Yukhin <kirill.yukhin@intel.com>
16229 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16231 * config/i386/i386.md
16232 (define_attr "isa"): Add avx512bw,noavx512bw.
16233 (define_attr "enabled"): Ditto.
16234 (define_split): Add 32/64-bit mask logic.
16235 (define_insn "*k<logic>qi"): New.
16236 (define_insn "*k<logic>hi"): New.
16237 (define_insn "*anddi_1"): Add mask version.
16238 (define_insn "*andsi_1"): Ditto.
16239 (define_insn "*<code><mode>_1"): Ditto.
16240 (define_insn "*<code>hi_1"): Ditto.
16241 (define_insn "kxnor<mode>"): New.
16242 (define_insn "kunpcksi"): New.
16243 (define_insn "kunpckdi"): New.
16244 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
16245 (define_insn "*one_cmplhi2_1"): Ditto.
16247 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16248 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16249 Anna Tikhonova <anna.tikhonova@intel.com>
16250 Ilya Tocar <ilya.tocar@intel.com>
16251 Andrey Turetskiy <andrey.turetskiy@intel.com>
16252 Ilya Verbin <ilya.verbin@intel.com>
16253 Kirill Yukhin <kirill.yukhin@intel.com>
16254 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16256 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
16259 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
16260 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16261 Anna Tikhonova <anna.tikhonova@intel.com>
16262 Ilya Tocar <ilya.tocar@intel.com>
16263 Andrey Turetskiy <andrey.turetskiy@intel.com>
16264 Ilya Verbin <ilya.verbin@intel.com>
16265 Kirill Yukhin <kirill.yukhin@intel.com>
16266 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16268 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
16270 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
16271 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
16272 xmm/ymm16+ when availble.
16273 * config/i386/i386.h
16274 (HARD_REGNO_NREGS): Add mask regs.
16275 (VALID_AVX512F_REG_MODE): Ditto.
16276 (VALID_AVX512F_REG_MODE) : Define.
16277 (VALID_MASK_AVX512BW_MODE): Ditto.
16278 (reg_class) (MASK_REG_P(X)): Define.
16279 * config/i386/i386.md: Do not split long moves with mask register,
16280 use kmovb if avx512bw is availible.
16281 (movdi_internal): Handle mask registers.
16283 2014-08-14 Richard Biener <rguenther@suse.de>
16285 PR tree-optimization/62081
16286 * tree-ssa-loop.c (pass_fix_loops): New pass.
16287 (pass_tree_loop::gate): Do not fixup loops here.
16288 * tree-pass.h (make_pass_fix_loops): Declare.
16289 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
16291 2014-08-14 Richard Biener <rguenther@suse.de>
16293 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
16294 (type_hash_canon): ... this and avoid 2nd lookup for the add.
16296 2014-08-14 Richard Biener <rguenther@suse.de>
16298 PR tree-optimization/62090
16299 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
16300 (fold_builtin_2): Do not fold sprintf.
16301 (fold_builtin_3): Likewise.
16302 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
16303 moved from builtins.c.
16304 (gimple_fold_builtin): Fold sprintf.
16306 2014-08-14 Richard Biener <rguenther@suse.de>
16308 PR rtl-optimization/62079
16309 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
16312 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
16314 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
16315 current_function_decl.
16317 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
16319 * cgraph.c (cgraph_node::function_symbol): Fix wrong
16320 cgraph_function_node to cgraph_node::function_symbol
16323 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
16325 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
16326 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
16328 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
16330 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
16333 2014-08-13 Roman Gareev <gareevroman@gmail.com>
16335 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
16338 2014-08-12 Jakub Jelinek <jakub@redhat.com>
16341 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
16342 any registers that are used in mem_insn.
16344 2014-08-12 Steve Ellcey <sellcey@mips.com>
16346 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
16348 2014-08-12 Steve Ellcey <sellcey@mips.com>
16350 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
16351 (MULTILIB_DIRNAMES): Ditto.
16352 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
16353 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
16354 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
16355 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
16356 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
16357 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
16359 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16362 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
16363 of __ARM_SIZEOF_WCHAR_T.
16365 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16368 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
16369 Remove unnecessary attributes.
16371 2014-08-12 Yury Gribov <y.gribov@samsung.com>
16373 * internal-fn.c (init_internal_fns): Fix off-by-one.
16375 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
16376 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16377 Anna Tikhonova <anna.tikhonova@intel.com>
16378 Ilya Tocar <ilya.tocar@intel.com>
16379 Andrey Turetskiy <andrey.turetskiy@intel.com>
16380 Ilya Verbin <ilya.verbin@intel.com>
16381 Kirill Yukhin <kirill.yukhin@intel.com>
16382 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16384 * config/i386/i386.c (standard_sse_constant_opcode): Use
16385 vpxord/vpternlog if avx512 is availible.
16387 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
16389 PR middle-end/62103
16390 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
16391 bitfields, that is when size doesn't match the size of type or the
16392 size of the constructor.
16394 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
16396 * config/rs6000/constraints.md (wh constraint): New constraint,
16397 for FP registers if direct move is available.
16398 (wi constraint): New constraint, for VSX/FP registers that can
16399 handle 64-bit integers.
16400 (wj constraint): New constraint for VSX/FP registers that can
16401 handle 64-bit integers for direct moves.
16402 (wk constraint): New constraint for VSX/FP registers that can
16403 handle 64-bit doubles for direct moves.
16404 (wy constraint): Make documentation match implementation.
16406 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
16407 scalar_in_vmx_p field to simplify tests of whether SFmode or
16408 DFmode can go in the Altivec registers.
16409 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
16410 (rs6000_setup_reg_addr_masks): Likewise.
16411 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16412 field, and wh/wi/wj/wk constraints.
16413 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16414 the wh/wi/wj/wk constraints.
16415 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16416 upper registers, prefer VSX registers unless the operation is a
16417 memory operation with REG+OFFSET addressing.
16419 * config/rs6000/vsx.md (VSr mode attribute): Add support for
16420 DImode. Change SFmode to use ww constraint instead of d to allow
16421 SF registers in the upper registers.
16424 (VSr5): Fix thinko in comment.
16425 (VSa): New mode attribute that is an alternative to wa, that
16426 returns the VSX register class that a mode can go in, but may not
16427 be the preferred register class.
16428 (VS_64dm): New mode attribute for appropriate register classes for
16429 referencing 64-bit elements of vectors for direct moves and normal
16431 (VS_64reg): Likewise.
16432 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16433 register allocator to only registers the data type can handle.
16434 (vsx_le_perm_load_<mode>): Likewise.
16435 (vsx_le_perm_store_<mode>): Likewise.
16436 (vsx_xxpermdi2_le_<mode>): Likewise.
16437 (vsx_xxpermdi4_le_<mode>): Likewise.
16438 (vsx_lxvd2x2_le_<mode>): Likewise.
16439 (vsx_lxvd2x4_le_<mode>): Likewise.
16440 (vsx_stxvd2x2_le_<mode>): Likewise.
16441 (vsx_add<mode>3): Likewise.
16442 (vsx_sub<mode>3): Likewise.
16443 (vsx_mul<mode>3): Likewise.
16444 (vsx_div<mode>3): Likewise.
16445 (vsx_tdiv<mode>3_internal): Likewise.
16446 (vsx_fre<mode>2): Likewise.
16447 (vsx_neg<mode>2): Likewise.
16448 (vsx_abs<mode>2): Likewise.
16449 (vsx_nabs<mode>2): Likewise.
16450 (vsx_smax<mode>3): Likewise.
16451 (vsx_smin<mode>3): Likewise.
16452 (vsx_sqrt<mode>2): Likewise.
16453 (vsx_rsqrte<mode>2): Likewise.
16454 (vsx_tsqrt<mode>2_internal): Likewise.
16455 (vsx_fms<mode>4): Likewise.
16456 (vsx_nfma<mode>4): Likewise.
16457 (vsx_eq<mode>): Likewise.
16458 (vsx_gt<mode>): Likewise.
16459 (vsx_ge<mode>): Likewise.
16460 (vsx_eq<mode>_p): Likewise.
16461 (vsx_gt<mode>_p): Likewise.
16462 (vsx_ge<mode>_p): Likewise.
16463 (vsx_xxsel<mode>): Likewise.
16464 (vsx_xxsel<mode>_uns): Likewise.
16465 (vsx_copysign<mode>3): Likewise.
16466 (vsx_float<VSi><mode>2): Likewise.
16467 (vsx_floatuns<VSi><mode>2): Likewise.
16468 (vsx_fix_trunc<mode><VSi>2): Likewise.
16469 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16470 (vsx_x<VSv>r<VSs>i): Likewise.
16471 (vsx_x<VSv>r<VSs>ic): Likewise.
16472 (vsx_btrunc<mode>2): Likewise.
16473 (vsx_b2trunc<mode>2): Likewise.
16474 (vsx_floor<mode>2): Likewise.
16475 (vsx_ceil<mode>2): Likewise.
16476 (vsx_<VS_spdp_insn>): Likewise.
16477 (vsx_xscvspdp): Likewise.
16478 (vsx_xvcvspuxds): Likewise.
16479 (vsx_float_fix_<mode>2): Likewise.
16480 (vsx_set_<mode>): Likewise.
16481 (vsx_extract_<mode>_internal1): Likewise.
16482 (vsx_extract_<mode>_internal2): Likewise.
16483 (vsx_extract_<mode>_load): Likewise.
16484 (vsx_extract_<mode>_store): Likewise.
16485 (vsx_splat_<mode>): Likewise.
16486 (vsx_xxspltw_<mode>): Likewise.
16487 (vsx_xxspltw_<mode>_direct): Likewise.
16488 (vsx_xxmrghw_<mode>): Likewise.
16489 (vsx_xxmrglw_<mode>): Likewise.
16490 (vsx_xxsldwi_<mode>): Likewise.
16491 (vsx_xscvdpspn): Tighten constraints to only use register classes
16493 (vsx_xscvspdpn): Likewise.
16494 (vsx_xscvdpspn_scalar): Likewise.
16496 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16497 wj, and wk constraints.
16498 (GPR_REG_CLASS_P): New helper macro for register classes targeting
16499 general purpose registers.
16501 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16503 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16504 DImode instead of wm. Use wk constraint for direct move of DFmode
16506 (extendsidi2_lfiwax): Likewise.
16507 (lfiwax): Likewise.
16508 (lfiwzx): Likewise.
16509 (movdi_internal64): Likewise.
16511 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16512 wk constraints. Make the wy constraint documentation match them
16515 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
16517 Replacement of isl_int by isl_val
16518 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16519 (compute_bounds_for_param): use isl_val instead of isl_int
16520 (compute_bounds_for_loop): likewise
16521 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16522 (build_linearized_memory_access): use isl_val instead of isl_int
16523 (pdr_stride_in_loop): likewise
16524 * graphite-optimize-isl.c:
16525 (getPrevectorMap): use isl_val instead of isl_int
16527 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16528 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16529 (extern the_isl_ctx): declare
16530 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16531 (extract_affine_gmp): likewise
16533 (build_loop_iteration_domains): likewise
16534 (add_param_constraints): likewise
16536 2014-08-11 Richard Biener <rguenther@suse.de>
16538 PR tree-optimization/62075
16539 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16540 handle uses in patterns.
16542 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16543 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16544 Anna Tikhonova <anna.tikhonova@intel.com>
16545 Ilya Tocar <ilya.tocar@intel.com>
16546 Andrey Turetskiy <andrey.turetskiy@intel.com>
16547 Ilya Verbin <ilya.verbin@intel.com>
16548 Kirill Yukhin <kirill.yukhin@intel.com>
16549 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16551 * common/config/i386/i386-common.c
16552 (OPTION_MASK_ISA_AVX512VL_SET): Define.
16553 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16554 (ix86_handle_option): Handle OPT_mavx512vl.
16555 * config/i386/cpuid.h (bit_AVX512VL): Define.
16556 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16557 set -mavx512vl accordingly.
16558 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16559 OPTION_MASK_ISA_AVX512VL.
16560 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16561 (ix86_option_override_internal): Define PTA_AVX512VL, handle
16562 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16563 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16564 * config/i386/i386.h (TARGET_AVX512VL): Define.
16565 (TARGET_AVX512VL_P(x)): Ditto.
16566 * config/i386/i386.opt: Add mavx512vl.
16568 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
16570 PR tree-optimization/62073
16571 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16574 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
16575 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16576 Anna Tikhonova <anna.tikhonova@intel.com>
16577 Ilya Tocar <ilya.tocar@intel.com>
16578 Andrey Turetskiy <andrey.turetskiy@intel.com>
16579 Ilya Verbin <ilya.verbin@intel.com>
16580 Kirill Yukhin <kirill.yukhin@intel.com>
16581 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16583 * common/config/i386/i386-common.c
16584 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16585 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16586 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16587 (ix86_handle_option): Handle OPT_mavx512bw.
16588 * config/i386/cpuid.h (bit_AVX512BW): Define.
16589 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16590 set -mavx512bw accordingly.
16591 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16592 OPTION_MASK_ISA_AVX512BW.
16593 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16594 (ix86_option_override_internal): Define PTA_AVX512BW, handle
16595 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16596 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16597 * config/i386/i386.h (TARGET_AVX512BW): Define.
16598 (TARGET_AVX512BW_P(x)): Ditto.
16599 * config/i386/i386.opt: Add mavx512bw.
16601 2014-08-11 Richard Biener <rguenther@suse.de>
16603 PR tree-optimization/62070
16604 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16605 Remove SSA checking.
16607 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16609 * asan.c (asan_check_flags): New enum.
16610 (build_check_stmt_with_calls): Removed function.
16611 (build_check_stmt): Split inlining logic to
16612 asan_expand_check_ifn.
16613 (instrument_derefs): Rename parameter.
16614 (instrument_mem_region_access): Rename parameter.
16615 (instrument_strlen_call): Likewise.
16616 (asan_expand_check_ifn): New function.
16617 (asan_instrument): Remove old code.
16618 (pass_sanopt::execute): Change handling of
16619 asan-instrumentation-with-call-threshold.
16620 (asan_clear_shadow): Fix formatting.
16621 (asan_function_start): Likewise.
16622 (asan_emit_stack_protection): Likewise.
16623 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16624 Update description.
16625 * internal-fn.c (expand_ASAN_CHECK): New function.
16626 * internal-fn.def (ASAN_CHECK): New internal function.
16627 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16628 Update description.
16629 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16630 * tree.c: Small comment fix.
16632 2014-08-11 Yury Gribov <y.gribov@samsung.com>
16634 * gimple.c (gimple_call_fnspec): Support internal functions.
16635 (gimple_call_return_flags): Use const.
16636 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16637 * internal-fn.def: Add fnspec information.
16638 * internal-fn.h (internal_fn_fnspec): New function.
16639 (init_internal_fns): Declare new function.
16640 * internal-fn.c (internal_fn_fnspec_array): New global variable.
16641 (init_internal_fns): New function.
16642 * tree-core.h: Update macro call.
16643 * tree.c (build_common_builtin_nodes): Initialize internal fns.
16645 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
16647 * lto-streamer.h (struct output_block::symbol): Change from
16648 struct symtab_node to plain symtab_node.
16649 (referenced_from_this_partition_p): Change first parameter
16650 from struct symtab_node to plain symtab_node.
16652 2014-08-10 Marek Polacek <polacek@redhat.com>
16655 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16657 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
16659 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16660 DECL correctly; do not give up on types in static storage.
16662 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
16664 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16666 2014-08-09 Roman Gareev <gareevroman@gmail.com>
16668 * graphite-isl-ast-to-gimple.c:
16669 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16671 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16673 2014-08-08 Guozhi Wei <carrot@google.com>
16675 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16677 2014-08-08 Cary Coutant <ccoutant@google.com>
16679 * dwarf2out.c (get_skeleton_type_unit): Remove.
16680 (output_skeleton_debug_sections): Remove skeleton type units.
16681 (output_comdat_type_unit): Likewise.
16682 (dwarf2out_finish): Likewise.
16684 2014-08-07 Yi Yang <ahyangyi@google.com>
16686 * predict.c (expr_expected_value_1): Remove the redundant assignment.
16688 2014-08-08 Richard Biener <rguenther@suse.de>
16690 * lto-streamer.h (struct lto_input_block): Make it a class
16691 with a constructor.
16692 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16693 (struct lto_function_header, struct lto_simple_header,
16694 struct lto_simple_header_with_strings,
16695 struct lto_decl_header, struct lto_function_header): Make
16696 a simple inheritance hieararchy. Remove unused fields.
16697 (struct lto_asm_header): Remove.
16698 * lto-streamer-out.c (produce_asm): Adjust.
16699 (lto_output_toplevel_asms): Likewise.
16700 (produce_asm_for_decls): Likewise.
16701 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16702 * data-streamer-in.c (string_for_index): Likewise.
16703 * ipa-inline-analysis.c (inline_read_section): Likewise.
16704 * ipa-prop.c (ipa_prop_read_section): Likewise.
16705 (read_replacements_section): Likewise.
16706 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16707 * lto-section-in.c (lto_create_simple_input_block): Likewise.
16708 (lto_destroy_simple_input_block): Likewise.
16709 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16710 (lto_input_toplevel_asms): Likewise.
16712 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
16713 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
16714 Anna Tikhonova <anna.tikhonova@intel.com>
16715 Ilya Tocar <ilya.tocar@intel.com>
16716 Andrey Turetskiy <andrey.turetskiy@intel.com>
16717 Ilya Verbin <ilya.verbin@intel.com>
16718 Kirill Yukhin <kirill.yukhin@intel.com>
16719 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
16721 * common/config/i386/i386-common.c
16722 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16723 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16724 (ix86_handle_option): Handle OPT_mavx512dq.
16725 * config/i386/cpuid.h (bit_AVX512DQ): Define.
16726 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16727 set -mavx512dq accordingly.
16728 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16729 OPTION_MASK_ISA_AVX512DQ.
16730 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16731 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16732 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16733 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16734 * config/i386/i386.h (TARGET_AVX512DQ): Define.
16735 (TARGET_AVX512DQ_P(x)): Ditto.
16736 * config/i386/i386.opt: Add mavx512dq.
16738 2014-08-08 Richard Biener <rguenther@suse.de>
16740 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16741 target_percent, target_percent_s): Export.
16742 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16743 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16744 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16745 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16746 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16747 Move to gimple-fold.c.
16748 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16750 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16751 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16752 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16753 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16754 (rewrite_call_expr_array): Remove.
16755 (fold_builtin_sprintf_chk): Likewise.
16756 (fold_builtin_snprintf_chk): Likewise.
16757 (fold_builtin_varargs): Remove handling of sprintf_chk,
16758 vsprintf_chk, snprintf_chk and vsnprintf_chk.
16759 (gimple_fold_builtin_sprintf_chk): Remove.
16760 (gimple_fold_builtin_snprintf_chk): Likewise.
16761 (gimple_fold_builtin_varargs): Likewise.
16762 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16763 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16764 * gimple.c (gimple_seq_add_seq_without_update): New function.
16765 * gimple.h (gimple_seq_add_seq_without_update): Declare.
16766 * gimple-fold.c: Include output.h.
16767 (gsi_replace_with_seq_vops): New function, split out from ...
16768 (gimplify_and_update_call_from_tree): ... here.
16769 (replace_call_with_value): New function.
16770 (replace_call_with_call_and_fold): Likewise.
16771 (var_decl_component_p): Moved from builtins.c.
16772 (gimple_fold_builtin_memory_op): Moved from builtins.c
16773 fold_builtin_memory_op and rewritten to GIMPLE.
16774 (gimple_fold_builtin_memset): Likewise.
16775 (gimple_fold_builtin_strcpy): Likewise.
16776 (gimple_fold_builtin_strncpy): Likewise.
16777 (gimple_fold_builtin_strcat): Likewise.
16778 (gimple_fold_builtin_fputs): Likewise.
16779 (gimple_fold_builtin_memory_chk): Likewise.
16780 (gimple_fold_builtin_stxcpy_chk): Likewise.
16781 (gimple_fold_builtin_stxncpy_chk): Likewise.
16782 (gimple_fold_builtin_snprintf_chk): Likewise.
16783 (gimple_fold_builtin_sprintf_chk): Likewise.
16784 (gimple_fold_builtin_strlen): New function.
16785 (gimple_fold_builtin_with_strlen): New function split out from
16786 gimple_fold_builtin.
16787 (gimple_fold_builtin): Change signature and handle
16788 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16789 here. Call gimple_fold_builtin_with_strlen.
16790 (gimple_fold_call): Adjust.
16792 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16794 * calls.c (precompute_arguments): Check
16795 promoted_for_signed_and_unsigned_p and set the promoted mode.
16796 (promoted_for_signed_and_unsigned_p): New function.
16797 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16798 and set the promoted mode.
16799 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16800 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16801 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16804 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
16806 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16807 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16808 (expand_call): Likewise.
16809 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16810 to get promoted mode.
16811 * combine.c (record_promoted_value): Skip > 0 comparison with
16812 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16813 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16814 of SUBREG_PROMOTED_UNSIGNED_P.
16815 (convert_modes): Likewise.
16816 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16817 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16818 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16819 SUBREG_PROMOTED_UNSIGNED_SET.
16820 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16821 instead of SUBREG_PROMOTED_UNSIGNED_SET.
16822 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16823 SUBREG_PROMOTED_SET.
16824 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16825 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16826 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16827 of SUBREG_PROMOTED_UNSIGNED_P.
16828 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16829 (SUBREG_PROMOTED_SET): New define.
16830 (SUBREG_PROMOTED_GET): Likewise.
16831 (SUBREG_PROMOTED_SIGN): Likewise.
16832 (SUBREG_PROMOTED_SIGNED_P): Likewise.
16833 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16834 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16835 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16836 instead of SUBREG_PROMOTED_UNSIGNED_GET.
16837 (nonzero_bits1): Skip > 0 comparison with the results as
16838 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16839 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16840 of !SUBREG_PROMOTED_UNSIGNED_P.
16841 * simplify-rtx.c (simplify_unary_operation_1): Use new
16842 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16843 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16844 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16845 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16847 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
16849 * ipa-devirt.c: Include gimple-pretty-print.h
16850 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16852 (decl_maybe_in_construction_p): Fix conditional on cdtor check
16853 (get_polymorphic_call_info): Fix return value
16854 (type_change_info): New sturcture based on ipa-prop
16856 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16857 based on ipa-prop variant.
16858 (extr_type_from_vtbl_ptr_store): New function
16859 based on ipa-prop variant.
16860 (record_known_type): New function.
16861 (check_stmt_for_type_change): New function.
16862 (get_dynamic_type): New function.
16863 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16864 * tree-ssa-pre.c: ipa-utils.h
16865 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16866 machinery; sanity check with ipa-prop devirtualization.
16867 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16870 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16872 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16873 * alias.c, cfgexpand.c, cgraphbuild.c,
16874 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16875 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16876 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16877 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16878 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16879 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16880 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16881 dse.c, except.c, gengtype.c, gimple-expr.c,
16882 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16883 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16884 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16885 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16886 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16887 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16889 * pointer-set.c: Remove file.
16890 * pointer-set.h: Remove file.
16892 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16894 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16895 * config/arm/types.md (f_sels, f_seld): Delete.
16897 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16899 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16900 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16901 (aarch64_movdi_<mode>high): Likewise.
16902 (aarch64_mov<mode>high_di): Likewise.
16903 (aarch64_movdi_<mode>low): Likewise.
16904 (aarch64_mov<mode>low_di): Likewise.
16905 (aarch64_movtilow_tilow): Likewise.
16906 Add comment explaining usage of fp,simd attributes and of
16907 TARGET_FLOAT and TARGET_SIMD.
16909 2014-08-07 Ian Bolton <ian.bolton@arm.com>
16910 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16912 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16913 Use MOVN when one of the half-words is 0xffff.
16915 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16917 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16919 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16921 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
16922 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16923 (rfs_str): String corresponding to RFS_* constants.
16924 (rank_for_schedule_stats_t): New typedef.
16925 (rank_for_schedule_stats): New static variable.
16926 (rfs_result): New static function.
16927 (rank_for_schedule): Track statistics for deciding heuristics.
16928 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16930 (ready_sort): Use them for debug printouts.
16931 (schedule_block): Init statistics state. Print statistics on
16932 rank_for_schedule decisions.
16934 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
16936 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16938 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
16940 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16943 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
16945 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16946 function to not conflict.
16947 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16948 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16949 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16950 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16951 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16954 2014-08-07 Marek Polacek <polacek@redhat.com>
16956 * fold-const.c (fold_binary_loc): Add folding of
16957 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16959 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
16961 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16962 instead of type size.
16963 (ASM_FINISH_DECLARE_OBJECT): Likewise.
16965 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
16967 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16968 (*thumb1_movqi_insn): Likewise.
16969 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16971 2014-08-07 Tom de Vries <tom@codesourcery.com>
16973 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16974 (glibc_2_11_or_earlier): Remove effective-target keywords.
16976 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
16978 * config/arm/arm.c (bdesc_2arg): Fix typo.
16979 (arm_atomic_assign_expand_fenv): Remove The default implementation.
16981 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
16983 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16985 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
16988 * haifa-sched.c (advance_one_cycle): Fix dump.
16989 (schedule_block): Don't advance cycle if we are already at the
16990 beginning of the cycle.
16992 2014-08-06 Martin Jambor <mjambor@suse.cz>
16995 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16997 2014-08-06 Richard Biener <rguenther@suse.de>
17000 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
17002 (lto_input_tree): Pop SCCs here.
17004 2014-08-06 Richard Biener <rguenther@suse.de>
17006 PR tree-optimization/61320
17007 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
17008 handle misaligned loads.
17010 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
17012 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
17013 (aarch64_expand_vec_perm_const): Check for dup before zip.
17015 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17017 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
17018 CONST_INT_P instead of GET_CODE and compare.
17019 (aarch64_select_cc_mode): Likewise.
17020 (aarch64_print_operand): Likewise.
17021 (aarch64_rtx_costs): Likewise.
17022 (aarch64_simd_valid_immediate): Likewise.
17023 (aarch64_simd_check_vect_par_cnst_half): Likewise.
17024 (aarch64_simd_emit_pair_result_insn): Likewise.
17026 2014-08-05 David Malcolm <dmalcolm@redhat.com>
17028 * gdbhooks.py (find_gcc_source_dir): New helper function.
17029 (class PassNames): New class, locating and parsing passes.def.
17030 (class BreakOnPass): New command "break-on-pass".
17032 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
17034 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
17037 2014-08-05 Richard Biener <rguenther@suse.de>
17039 PR rtl-optimization/61672
17040 * emit-rtl.h (mem_attrs_eq_p): Declare.
17041 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
17042 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
17043 * cfgcleanup.c (merge_memattrs): Likewise.
17044 Include emit-rtl.h.
17046 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17048 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
17049 rather than singleton vectors.
17050 (vqdmlsls_lane_s32): Likewise.
17052 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17054 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
17055 Use VSDQ_HSI mode iterator.
17056 (aarch64_sqrdmulh_laneq<mode>): Likewise.
17057 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
17058 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
17059 Use BUILTIN_VDQHS macro.
17060 (sqrdmulh_laneq): Likewise.
17061 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
17062 (vqdmlals_laneq_s32): Likewise.
17063 (vqdmlslh_laneq_s16): Likewise.
17064 (vqdmlsls_laneq_s32): Likewise.
17065 (vqdmulhh_laneq_s16): Likewise.
17066 (vqdmulhs_laneq_s32): Likewise.
17067 (vqrdmulhh_laneq_s16): Likewise.
17068 (vqrdmulhs_laneq_s32): Likewise.
17070 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17072 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
17073 (vmuld_laneq_f64): Likewise.
17074 (vmuls_laneq_f32): Likewise.
17075 (vmul_n_f64): Likewise.
17076 (vmuld_lane_f64): Reimplement in C.
17077 (vmuls_lane_f32): Likewise.
17079 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17081 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
17083 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
17085 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17087 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
17088 (rbitsi2): Likewise.
17089 (*arm_rev): Set predicable and predicable_short_it attributes.
17091 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17093 * convert.c (convert_to_integer): Guard transformation to lrint by
17096 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
17098 * config/aarch64/aarch64-builtins.c
17099 (aarch64_simd_builtin_type_mode): Delete.
17100 (v8qi_UP): Remap to V8QImode.
17101 (v4hi_UP): Remap to V4HImode.
17102 (v2si_UP): Remap to V2SImode.
17103 (v2sf_UP): Remap to V2SFmode.
17104 (v1df_UP): Remap to V1DFmode.
17105 (di_UP): Remap to DImode.
17106 (df_UP): Remap to DFmode.
17107 (v16qi_UP):V16QImode.
17108 (v8hi_UP): Remap to V8HImode.
17109 (v4si_UP): Remap to V4SImode.
17110 (v4sf_UP): Remap to V4SFmode.
17111 (v2di_UP): Remap to V2DImode.
17112 (v2df_UP): Remap to V2DFmode.
17113 (ti_UP): Remap to TImode.
17114 (ei_UP): Remap to EImode.
17115 (oi_UP): Remap to OImode.
17116 (ci_UP): Map to CImode.
17117 (xi_UP): Remap to XImode.
17118 (si_UP): Remap to SImode.
17119 (sf_UP): Remap to SFmode.
17120 (hi_UP): Remap to HImode.
17121 (qi_UP): Remap to QImode.
17122 (aarch64_simd_builtin_datum): Make mode a machine_mode.
17123 (VAR1): Build builtin name.
17124 (aarch64_init_simd_builtins): Remove dead code.
17126 2014-08-05 Roman Gareev <gareevroman@gmail.com>
17128 * graphite-isl-ast-to-gimple.c:
17129 (set_options): New function.
17130 (scop_to_isl_ast): Add calling of set_options.
17132 2014-08-05 Jakub Jelinek <jakub@redhat.com>
17134 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
17135 (analyze_iv_to_split_insn): Don't initialize them.
17136 (get_ivts_expr): Removed.
17137 (allocate_basic_variable, insert_base_initialization): Use
17138 SET_SRC instead of *get_ivts_expr.
17139 (split_iv): Use &SET_SRC instead of get_ivts_expr.
17141 2014-08-05 Roman Gareev <gareevroman@gmail.com>
17143 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
17144 (translate_isl_ast_for_loop): Add checking of the
17145 flag_loop_parallelize_all.
17146 (ast_build_before_for): New function.
17147 (scop_to_isl_ast): Add checking of the
17148 flag_loop_parallelize_all.
17149 * graphite-dependences.c: Move the defenition of the
17150 scop_get_dependences from graphite-optimize-isl.c to this file.
17151 (apply_schedule_on_deps): Add checking of the ux's emptiness.
17152 (carries_deps): Add checking of the x's value.
17153 * graphite-optimize-isl.c: Move the defenition of the
17154 scop_get_dependences to graphite-dependences.c.
17155 * graphite-poly.h: Add declarations of scop_get_dependences
17158 2014-08-04 Rohit <rohitarulraj@freescale.com>
17161 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
17163 (alt_reg_names): Likewise.
17164 (rs6000_dwarf_register_span): For SPE high registers, replace
17165 dwarf register numbers with GCC hard register numbers.
17166 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
17167 (rs6000_dbx_register_number): For SPE high registers, return dwarf
17168 register number for the corresponding GCC hard register number.
17169 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
17170 newly added GCC hard register numbers for SPE high registers.
17171 (DWARF_FRAME_REGISTERS): Likewise.
17172 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
17173 (DWARF_FRAME_REGNUM): Likewise.
17174 (FIXED_REGISTERS): Likewise.
17175 (CALL_USED_REGISTERS): Likewise.
17176 (CALL_REALLY_USED_REGISTERS): Likewise.
17177 (REG_ALLOC_ORDER): Likewise.
17178 (enum reg_class): Likewise.
17179 (REG_CLASS_NAMES): Likewise.
17180 (REG_CLASS_CONTENTS): Likewise.
17181 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
17183 2014-08-04 Richard Biener <rguenther@suse.de>
17185 * gimple-fold.h (gimple_fold_builtin): Remove.
17186 * gimple-fold.c (gimple_fold_builtin): Make static.
17187 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
17188 fold_stmt, not gimple_fold_builtin.
17190 2014-08-04 Martin Liska <mliska@suse.cz>
17192 * cgraph.h (csi_end_p): Removed.
17193 (csi_next): Likewise.
17194 (csi_node): Likewise.
17195 (csi_start): Likewise.
17196 (cgraph_node_in_set_p): Likewise.
17197 (cgraph_node_set_size): Likewise.
17198 (vsi_end_p): Likewise.
17199 (vsi_next): Likewise.
17200 (vsi_node): Likewise.
17201 (vsi_start): Likewise.
17202 (varpool_node_set_size): Likewise.
17203 (cgraph_node_set_nonempty_p): Likewise.
17204 (varpool_node_set_nonempty_p): Likewise.
17205 * cgraphunit.c (cgraph_process_new_functions): vec replaces
17207 * ipa-inline-transform.c: Likewise.
17208 * ipa-utils.c (cgraph_node_set_new): Removed.
17209 (cgraph_node_set_add): Likewise.
17210 (cgraph_node_set_remove): Likewise.
17211 (cgraph_node_set_find): Likewise.
17212 (dump_cgraph_node_set): Likewise.
17213 (debug_cgraph_node_set): Likewise.
17214 (free_cgraph_node_set): Likewise.
17215 (varpool_node_set_new): Likewise.
17216 (varpool_node_set_add): Likewise.
17217 (varpool_node_set_remove): Likewise.
17218 (varpool_node_set_find): Likewise.
17219 (dump_varpool_node_set): Likewise.
17220 (free_varpool_node_set): Likewise.
17221 (debug_varpool_node_set): Likewise.
17222 * tree-emutls.c (struct tls_var_data):
17223 (emutls_index): Removed.
17224 (emutls_decl): Likewise.
17225 (gen_emutls_addr): Function implementation uses newly added
17226 hash_map<varpool_node *, tls_var_data>.
17227 (clear_access_vars): Likewise.
17228 (create_emultls_var): Likewise.
17229 (ipa_lower_emutls): Likewise.
17230 (reset_access): New function.
17232 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17234 * config/i386/i386.c (ix86_option_override_internal): Add
17235 PTA_RDRND and PTA_MOVBE for bdver4.
17237 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17238 James Greenhalgh <james.greenhalgh@arm.com>
17240 * doc/md.texi (clrsb): Document.
17241 (clz): Change reference to x into operand 1.
17243 (popcount): Likewise.
17245 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17248 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
17249 move to subtarget in serial version if result is ignored.
17251 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17252 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17254 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
17255 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
17256 (sched_analyze_insn): Update use of try_group_insn to
17257 sched_macro_fuse_insns.
17258 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
17259 arguments that are not conditional jumps.
17261 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
17263 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
17264 family information. Handle BTVER2 cpu with cpuid family value.
17266 2014-08-04 Tom de Vries <tom@codesourcery.com>
17268 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17269 (glibc_2_11_or_earlier): Document effective-target keywords.
17271 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
17273 * ipa-devirt.c (odr_type_warn_count): Add type.
17274 (possible_polymorphic_call_targets): Set it.
17275 (ipa_devirt): Use it.
17277 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
17279 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
17281 * ipa-devirt.c: Include hash-map.h
17282 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
17283 (clear_speculation): Break out of ...
17284 (get_class_context): ... here; speed up handling obviously useless
17286 (odr_type_warn_count, decl_warn_count): New structures.
17287 (final_warning_record): New structure.
17288 (final_warning_records): New static variable.
17289 (possible_polymorphic_call_targets): Cleanup handling of
17290 speculative info; do not build speculation when user do not care;
17291 record info about warnings when asked for.
17292 (add_decl_warning): New function.
17293 (type_warning_cmp): New function.
17294 (decl_warning_cmp): New function.
17295 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
17296 (gate): Enable pass when warnings are requested.
17297 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
17300 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
17302 * hash-map.h (default_hashmap_traits::mark_key_deleted):
17304 (hash_map::remove): New method.
17305 (hash_map::traverse): New method.
17306 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
17307 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
17308 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
17309 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
17310 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
17311 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
17314 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
17316 * hash-set.h: new File.
17317 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
17318 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
17319 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
17320 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
17321 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
17322 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
17323 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
17324 varpool.c: Use hash_set instead of pointer_set.
17326 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
17328 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
17330 2014-08-01 Jiong Wang <jiong.wang@arm.com>
17332 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
17333 for frame access when strict_p is false.
17335 2014-08-01 Renlin Li <renlin.li@arm.com>
17336 2014-08-01 Jiong Wang <jiong.wang@arm.com>
17338 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
17339 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
17340 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
17342 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
17344 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
17345 aarch64_mem_pair_offset.
17347 2014-08-01 Jiong Wang <jiong.wang@arm.com>
17349 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
17351 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
17352 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
17354 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
17356 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
17358 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
17360 PR regression/61510
17361 * cgraphunit.c (analyze_functions): Use get_create rather than get
17362 for decls which are clones of abstract functions.
17364 2014-08-01 Martin Liska <mliska@suse.cz>
17366 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
17367 * ipa-prop.h (count_formal_params): Global function created from static.
17368 * ipa-prop.c (count_formal_params): Likewise.
17369 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
17370 profiles for semantically equivalent functions.
17371 * passes.c (do_per_function): If we load body of a function
17372 during WPA, this condition should behave same.
17373 * varpool.c (ctor_for_folding): More tolerant assert for variable
17374 aliases created during WPA.
17376 2014-08-01 Martin Liska <mliska@suse.cz>
17378 * doc/invoke.texi (Options That Control Optimization): Documentation
17379 for -foptimize-strlen introduced. Optimization levels default options
17382 2014-08-01 Jakub Jelinek <jakub@redhat.com>
17384 * opts.c (common_handle_option): Handle -fsanitize=alignment.
17385 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
17386 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
17388 * stor-layout.h (min_align_of_type): New prototype.
17389 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
17390 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
17392 * ubsan.c: Include builtins.h.
17393 (ubsan_expand_bounds_ifn): Change return type to bool,
17394 always return true.
17395 (ubsan_expand_null_ifn): Change return type to bool, change
17396 argument to gimple_stmt_iterator *. Handle both null and alignment
17397 sanitization, take type from ckind argument's type rather than
17399 (instrument_member_call): Removed.
17400 (instrument_mem_ref): Remove t argument, add mem and base arguments.
17401 Handle both null and alignment sanitization, don't say whole
17402 struct access is member access. Build 3 argument IFN_UBSAN_NULL
17403 call instead of 2 argument.
17404 (instrument_null): Adjust instrument_mem_ref caller. Don't
17405 instrument calls here.
17406 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
17407 like SANITIZE_NULL.
17408 * stor-layout.c (min_align_of_type): New function.
17409 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
17410 Or it into SANITIZE_UNDEFINED.
17411 * doc/invoke.texi (-fsanitize=alignment): Document.
17413 2014-07-31 Andi Kleen <ak@linux.intel.com>
17415 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17417 2014-07-31 Andi Kleen <ak@linux.intel.com>
17419 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17421 (vn_reference_compute_hash): Dito.
17422 (vn_nary_op_compute_hash): Dito.
17423 (vn_phi_compute_hash): Dito.
17424 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17426 2014-07-31 Andi Kleen <ak@linux.intel.com>
17428 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17429 Rename to inchash:add_expr_commutative. Convert to inchash.
17430 (iterative_hash_hashable_expr): Rename to
17431 inchash:add_hashable_expr. Convert to inchash.
17432 (avail_expr_hash): Dito.
17434 2014-07-31 Andi Kleen <ak@linux.intel.com>
17436 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17437 Convert to inchash.
17439 2014-07-31 Andi Kleen <ak@linux.intel.com>
17441 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17443 2014-07-31 Andi Kleen <ak@linux.intel.com>
17445 * Makefile.in (OBJS): Add rtlhash.o
17446 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17447 (loc_checksum): Dito.
17448 (loc_checksum_ordered): Dito.
17449 (hash_loc_operands): Dito.
17451 (hash_loc_list): Dito.
17452 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17453 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17454 * rtlhash.c: New file.
17455 * rtlhash.h: New file.
17457 2014-07-31 Andi Kleen <ak@linux.intel.com>
17459 * inchash.h (inchash): Change inchash class to namespace.
17460 (class hash): ... Rename from inchash.
17461 (add_object): Move from macro to class template.
17462 * lto-streamer-out.c (hash_tree): Change inchash
17464 * tree.c (build_type_attribute_qual_variant): Dito.
17465 (type_hash_list): Dito.
17466 (attribute_hash_list): Dito.
17467 (iterative_hstate_expr): Rename to inchash::add_expr
17468 (build_range_type_1): Change inchash to inchash::hash
17469 and use hash::add_expr.
17470 (build_array_type_1): Dito.
17471 (build_function_type): Dito
17472 (build_method_type_directly): Dito.
17473 (build_offset_type): Dito.
17474 (build_complex_type): Dito.
17475 (make_vector_type): Dito.
17476 * tree.h (iterative_hash_expr): Dito.
17478 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
17480 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17482 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17484 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17485 correct alphabetical position.
17486 (vpaddd_f64): Rewrite using builtins.
17487 (vpaddd_s64): Move to correct alphabetical position.
17490 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
17493 * config/sh/sh.c (sh_legitimate_address_p,
17494 sh_legitimize_reload_address): Handle reg+reg address modes when
17495 ALLOW_INDEXED_ADDRESS is false.
17496 * config/sh/predicates.md (general_movsrc_operand,
17497 general_movdst_operand): Likewise.
17499 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17501 * config/aarch64/aarch64-builtins.c
17502 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17505 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
17507 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17508 the generated mask based on BYTES_BIG_ENDIAN.
17509 (aarch64_simd_check_vect_par_cnst_half): New.
17510 * config/aarch64/aarch64-protos.h
17511 (aarch64_simd_check_vect_par_cnst_half): New.
17512 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17513 the check out to aarch64_simd_check_vect_par_cnst_half.
17514 (vect_par_cnst_lo_half): Likewise.
17515 * config/aarch64/aarch64-simd.md
17516 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17517 (move_hi_quad_<mode>): Always generate a low mask.
17519 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17521 * doc/invoke.texi (AVR Options): Add documentation about
17522 __AVR_DEVICE_NAME__ built-in macro.
17524 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
17527 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17528 constraints are satisfied.
17529 (<shift>di3_neon): Likewise.
17531 2014-07-31 Richard Biener <rguenther@suse.de>
17533 PR tree-optimization/61964
17534 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17535 by structural equality.
17537 2014-07-31 Yury Gribov <y.gribov@samsung.com>
17539 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17540 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17541 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17543 * gcc.c (sanitize_spec_function): Support new option.
17544 (SANITIZER_SPEC): Remove now redundant check.
17545 * opts.c (common_handle_option): Support new option.
17546 (finish_options): Check for incompatibilities.
17547 * toplev.c (process_options): Split userspace-specific checks.
17549 2014-07-31 Richard Biener <rguenther@suse.de>
17551 * lto-streamer.h (struct output_block): Remove global.
17552 (struct data_in): Remove labels, num_named_labels and
17553 num_unnamed_labels.
17554 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17555 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17557 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
17560 * common.opt (-Wreturn-local-addr): Moved from c.opt.
17561 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17562 (isolate_path): New argument to avoid inserting a trap.
17563 (find_implicit_erroneous_behaviour): Handle returning the address
17564 of a local variable.
17565 (find_explicit_erroneous_behaviour): Likewise.
17567 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
17570 * toplev.c (init_random_seed): Move piece of code never called to
17572 (set_random_seed): see above.
17574 2014-07-31 Tom de Vries <tom@codesourcery.com>
17576 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17578 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
17580 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17581 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17583 2014-07-31 Richard Biener <rguenther@suse.de>
17585 * data-streamer.h (streamer_write_data_stream): Declare here,
17587 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
17588 * lto-cgraph.c (lto_output_node): Adjust.
17589 (lto_output_varpool_node): Likewise.
17590 * data-streamer-out.c (streamer_string_index): Likewise.
17591 (streamer_write_data_stream, lto_append_block): Move from ...
17592 * lto-section-out.c (lto_output_data_stream,
17593 lto_append_block): ... here.
17595 2014-07-30 Mike Stump <mikestump@comcast.net>
17597 * configure.ac: Also check for popen.
17598 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17599 * configure: Regenerate.
17600 * config.in: Regenerate.
17602 2014-07-30 Martin Jambor <mjambor@suse.cz>
17604 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17605 parameter to gimple.
17607 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17609 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17610 address as second parameter to __tpf_eh_return routine.
17612 2014-07-30 Jiong Wang <jiong.wang@arm.com>
17614 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17617 2014-07-30 Tom Tromey <tromey@redhat.com>
17620 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17621 * doc/extend.texi (Type Attributes): Document designated_init
17624 2014-07-30 Roman Gareev <gareevroman@gmail.com>
17626 * graphite-isl-ast-to-gimple.c:
17627 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17628 (gcc_expression_from_isl_expression): Pass type to
17629 gcc_expression_from_isl_ast_expr_id.
17631 2014-07-30 Richard Biener <rguenther@suse.de>
17633 * lto-streamer.h (lto_write_data): New function.
17634 * langhooks.c (lhd_append_data): Do not free block.
17635 * lto-section-out.c (lto_write_data): New function writing
17636 raw data to the current section.
17637 (lto_write_stream): Adjust for langhook semantic change.
17638 (lto_destroy_simple_output_block): Write header directly.
17639 * lto-opts.c (lto_write_options): Write options directly.
17640 * lto-streamer-out.c (produce_asm): Write heaeder directly.
17641 (lto_output_toplevel_asms): Likewise.
17642 (copy_function_or_variable): Copy data directly.
17643 (write_global_references): Output index table directly.
17644 (lto_output_decl_state_refs): Likewise.
17645 (write_symbol): Write data directly.
17646 (produce_symtab): Adjust.
17647 (produce_asm_for_decls): Output header and refs directly.
17649 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17651 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17652 to speculative_targets
17653 (get_class_context): Fix handling of contextes without outer type;
17654 avoid matching non-polymorphic types in LTO.
17655 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17656 parameter to speculative_targetsp; handle speculation.
17657 (dump_possible_polymorphic_call_targets): Update dumping.
17659 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
17661 * common.opt (Wodr): Enable by default.
17663 2014-07-29 Olivier Hainque <hainque@adacore.com>
17665 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17667 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
17670 * gengtype.c (strtoken): New function.
17671 (create_user_defined_type): Replace strtok with strtoken.
17673 2014-07-29 Nathan Sidwell <nathan@acm.org>
17675 * gcov-io.c (gcov_var): Make hidden.
17676 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17677 (gcov_do_dump): Declare.
17678 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17680 2014-07-29 Martin Jambor <mjambor@suse.cz>
17682 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17683 parameter to gimple.
17684 (sra_modify_assign): Likewise.
17686 2014-07-29 Richard Biener <rguenther@suse.de>
17688 PR middle-end/52478
17689 * expr.c (expand_expr_real_2): Revert last change.
17691 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17693 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17694 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17695 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17697 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17698 (contains_type_p): Forward declare.
17699 (polymorphic_call_target_hasher::hash): Hash speculative info.
17700 (polymorphic_call_target_hasher::equal): Compare speculative info.
17701 (get_class_context): Handle speuclation.
17702 (contains_type_p): Update.
17703 (get_polymorphic_call_info_for_decl): Update.
17704 (walk_ssa_copies): Break out from ...
17705 (get_polymorphic_call_info): ... here; set speculative context
17707 * ipa-prop.c (ipa_write_indirect_edge_info,
17708 ipa_read_indirect_edge_info): Stream speculative context.
17709 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17710 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17711 SPECULATIVE_MAYBE_DERIVED_TYPE).
17712 (possible_polymorphic_call_targets overriders): Update.
17713 (dump_possible_polymorphic_call_targets overriders): Update.
17714 (dump_possible_polymorphic_call_target_p overriders): Update.
17716 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
17718 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17719 ipa-devirt path; fix thinko there.
17721 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
17723 * config/i386/i386.c (ix86_return_in_memory): Replace one
17724 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17726 2014-07-28 Marek Polacek <polacek@redhat.com>
17728 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
17730 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
17732 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17733 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17734 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17735 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17736 (USE_LD_AS_NEEDED): Likewise.
17737 (ASM_APP_ON): Likewise.
17738 (ASM_APP_OFF): Likewise.
17739 (TARGET_POSIX_IO): Likewise.
17740 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17741 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17742 (USE_LD_AS_NEEDED): Likewise.
17743 (ASM_APP_ON): Likewise.
17744 (ASM_APP_OFF): Likewise.
17745 (TARGET_POSIX_IO): Likewise.
17747 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
17749 PR middle-end/61734
17750 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17751 operators other than the equality operators.
17753 2014-07-28 Richard Biener <rguenther@suse.de>
17755 PR middle-end/52478
17756 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17757 sure to register SImode ones, not only >= word_mode ones.
17758 * expr.c (expand_expr_real_2): When expanding -ftrapv
17759 binops do not use OPTAB_LIB_WIDEN.
17761 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
17763 PR middle-end/61919
17764 * tree-outof-ssa.c (insert_partition_copy_on_edge)
17765 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17766 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17767 inserting them in the insn stream.
17769 2014-07-28 Marek Polacek <polacek@redhat.com>
17771 PR middle-end/61913
17772 * common.opt (Wodr): Add Var.
17774 2014-07-28 Richard Biener <rguenther@suse.de>
17776 PR tree-optimization/61921
17777 * tree-ssa-structalias.c (create_variable_info_for_1): Check
17778 if there is a varpool node before dereferencing it.
17780 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17782 * graphite-sese-to-poly.c:
17783 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17784 id of the pbb), which contains pointer to the pbb1.
17786 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17788 2014-07-28 Roman Gareev <gareevroman@gmail.com>
17790 * graphite-isl-ast-to-gimple.c:
17791 (graphite_create_new_guard): New function.
17792 (translate_isl_ast_node_if): New function.
17793 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17795 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17797 2014-07-27 Anthony Green <green@moxielogic.com>
17799 * config.gcc: Add moxie-*-moxiebox* configuration.
17800 * config/moxie/moxiebox.h: New file.
17802 2014-07-26 Andrew Pinski <apinski@cavium.com>
17804 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17805 from the read only register.
17807 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17809 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17810 as the allocation class if it isn't likely to be spilled.
17812 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
17814 * rtl.h (tls_referenced_p): Declare.
17815 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17816 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17817 (mips_cannot_force_const_mem): Use tls_referenced_p.
17818 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17819 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17820 instead of pa_tls_referenced_p.
17821 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17822 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17823 (pa_legitimate_constant_p): Likewise.
17824 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17825 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17826 (rs6000_cannot_force_const_mem, rs6000_emit_move)
17827 (rs6000_address_for_altivec): Use tls_referenced_p instead of
17828 rs6000_tls_referenced_p.
17829 (rs6000_tls_symbol_ref_1): Delete.
17831 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
17834 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17835 Optimize inverse of a VEC_CONCAT.
17837 2014-07-25 Xinliang David Li <davidxl@google.com>
17839 * params.def: New parameter.
17840 * coverage.c (get_coverage_counts): Check new flag.
17841 (coverage_compute_profile_id): Check new flag.
17842 (coverage_begin_function): Check new flag.
17843 (coverage_end_function): Check new flag.
17844 * value-prof.c (coverage_node_map_initialized_p): New function.
17845 (init_node_map): Populate map with all functions.
17846 * doc/invoke.texi: Document new parameter.
17848 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
17849 Richard Biener <rguenther@suse.de>
17851 * lto-streamer-out.c (struct sccs): Turn to ...
17852 (class DFS): ... this one; refactor the DFS walk so it can
17853 be re-done on per-SCC basis.
17854 (DFS::DFS): New constructor.
17855 (DFS::~DFS): New destructor.
17856 (hash_tree): Add new MAP argument holding in-SCC hash values;
17857 remove POINTER_TYPE hashing hack.
17858 (scc_entry_compare): Rename to ...
17859 (DFS::scc_entry_compare): ... this one.
17860 (hash_scc): Rename to ...
17861 (DFS::hash_scc): ... this one; pass output_block instead
17862 of streamer_cache; work harder to get unique and stable SCC
17864 (DFS_write_tree): Rename to ...
17865 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17866 (lto_output_tree): Update.
17868 2014-07-25 Andi Kleen <ak@linux.intel.com>
17870 * lto-streamer-out.c (hash_tree): Convert to inchash.
17872 2014-07-25 Andi Kleen <ak@linux.intel.com>
17874 * tree.c (build_type_attribute_qual_variant): Use inchash.
17875 (type_hash_list): Dito.
17876 (attribute_hash_list): Dito
17877 (iterative_hstate_expr): Dito.
17878 (iterative_hash_expr): Dito.
17879 (build_range_type_1): Dito.
17880 (build_array_type_1): Dito.
17881 (build_function_type): Dito.
17882 (build_method_type_directly): Dito.
17883 (build_offset_type): Dito.
17884 (build_complex_type): Dito.
17885 (make_vector_type): Dito.
17886 * tree.h (iterative_hash_expr): Add compat wrapper.
17887 (iterative_hstate_expr): Add.
17889 2014-07-25 Andi Kleen <ak@linux.intel.com>
17891 * Makefile.in (OBJS): Add inchash.o.
17892 (PLUGIN_HEADERS): Add inchash.h.
17893 * ipa-devirt.c: Include inchash.h.
17894 * lto-streamer-out.c: Dito.
17895 * tree-ssa-dom.c: Dito.
17896 * tree-ssa-pre.c: Dito.
17897 * tree-ssa-sccvn.c: Dito.
17898 * tree-ssa-tail-merge.c: Dito.
17900 * tree.c (iterative_hash_hashval_t): Move to ...
17901 (iterative_hash_host_wide_int): Move to ...
17902 * inchash.c: Here. New file.
17903 * tree.h (iterative_hash_hashval_t): Move to ...
17904 (iterative_hash_host_wide_int): Move to ...
17905 * inchash.h: Here. New file.
17907 2014-07-25 Richard Biener <rguenther@suse.de>
17909 PR middle-end/61762
17910 PR middle-end/61894
17911 * fold-const.c (native_encode_int): Add and handle offset
17912 parameter to do partial encodings of expr.
17913 (native_encode_fixed): Likewise.
17914 (native_encode_real): Likewise.
17915 (native_encode_complex): Likewise.
17916 (native_encode_vector): Likewise.
17917 (native_encode_string): Likewise.
17918 (native_encode_expr): Likewise.
17919 * fold-const.c (native_encode_expr): Add offset parameter
17921 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17922 (fold_ctor_reference): Handle all reads from tcc_constant
17925 2014-07-25 Richard Biener <rguenther@suse.de>
17927 * tree-inline.c (estimate_move_cost): Mark speed_p argument
17928 as possibly unused.
17930 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17932 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17934 2014-07-24 Kyle McMartin <kyle@redhat.com>
17936 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17938 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17940 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17942 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17944 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17945 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17946 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17948 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17950 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17951 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17952 aggregate types. Instead, *all* aggregate types, except for single-
17953 element or homogeneous float/vector aggregates, are quadword-aligned
17954 if required by their type alignment. Issue -Wpsabi note when a type
17955 is now treated differently than before.
17957 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17959 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17960 does not fit fully into floating-point registers, and there is still
17961 space in the register parameter area, use GPRs to pass those parts
17962 of the argument. Issue -Wpsabi note if any parameter is now treated
17963 differently than before.
17964 (rs6000_arg_partial_bytes): Update.
17966 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
17968 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17970 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17972 * rtl.h (target_rtl): Remove lang_dependent_initialized.
17973 * toplev.c (initialize_rtl): Don't use it. Move previously
17974 "language-dependent" calls to...
17975 (backend_init): ...here.
17976 (lang_dependent_init_target): Don't set lang_dependent_initialized.
17977 Assert that RTL initialization hasn't happend yet.
17979 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17981 PR rtl-optimization/61629
17982 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17983 they have already been initialized.
17985 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
17987 PR middle-end/61268
17988 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17989 DECL_INCOMING_RTL and entry_parm.
17990 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17991 * calls.c (load_register_parameters): Likewise argument values.
17992 (emit_library_call_value_1, store_one_arg): Likewise argument
17994 * config/i386/i386.c (assign_386_stack_local): Likewise the local
17996 * explow.c (validize_mem): Modify the argument in-place.
17998 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18000 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
18001 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
18003 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18005 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
18006 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
18008 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18010 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
18011 (aarch64_save_callee_saves): New parameter "skip_wb".
18012 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
18014 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18016 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
18018 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
18020 2014-07-24 Roman Gareev <gareevroman@gmail.com>
18022 * graphite-isl-ast-to-gimple.c:
18023 (graphite_create_new_loop): Add calling of isl_id_free to properly
18024 decrement reference counts.
18026 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
18028 2014-07-24 Martin Liska <mliska@suse.cz>
18029 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
18031 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
18032 (rs6000_code_end): Likewise.
18034 2014-07-24 Martin Liska <mliska@suse.cz>
18036 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
18037 symtab_node funtion used.
18038 (rs6000_xcoff_declare_object_name): Likewise.
18040 2014-07-24 Martin Liska <mliska@suse.cz>
18042 * cgraphunit.c (compile): Correct function used.
18044 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
18046 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
18049 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
18052 * varasm.c (bss_initializer_p): Handle offlined ctors.
18053 (align_variable, get_variable_align): Likewise.
18054 (make_decl_one_only): Likewise.
18055 (default_binds_local_p_1): Likewise.
18056 (decl_binds_to_current_def_p): Likewise.
18057 (get_variable_section): Get constructor if it is offlined.
18058 (assemble_variable_contents): Sanity check that the caller
18059 streamed in the ctor in LTO.
18061 2014-07-24 Roman Gareev <gareevroman@gmail.com>
18063 * graphite-isl-ast-to-gimple.c:
18064 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
18065 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
18066 isl_ast_op_pdiv_r to the different case.
18068 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
18070 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18072 PR middle-end/61876
18073 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
18074 when flag_errno_math is on.
18076 2014-07-24 Martin Liska <mliska@suse.cz>
18078 * cgraph.h (varpool_node):
18079 (availability get_availability (void)):
18080 created from cgraph_variable_initializer_availability
18081 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
18082 created from: cgraph_variable_initializer_availability
18083 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
18084 (void finalize_named_section_flags (void)):
18085 created from varpool_finalize_named_section_flags
18086 (bool assemble_decl (void)): created from varpool_assemble_decl
18087 (void analyze (void)): created from varpool_analyze_node
18088 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
18089 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
18090 (void remove_initializer (void)): created from varpool_remove_initializer
18091 (tree get_constructor (void)): created from varpool_get_constructor
18092 (bool externally_visible_p (void)): created from varpool_externally_visible_p
18093 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
18094 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
18095 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
18096 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
18097 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
18098 (static bool output_variables (void)): created from varpool_output_variables
18099 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
18100 created from varpool_extra_name_alias
18101 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
18102 (static void dump_varpool (FILE *f)): created from dump_varpool
18103 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
18104 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
18105 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
18106 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
18107 (void assemble_aliases (void)): created from assemble_aliases
18109 2014-07-24 Martin Liska <mliska@suse.cz>
18111 * cgraph.h (symtab_node):
18112 (void register_symbol (void)): created from symtab_register_node
18113 (void remove (void)): created from symtab_remove_node
18114 (void dump (FILE *f)): created from dump_symtab_node
18115 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
18116 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
18117 (struct ipa_ref *add_reference (symtab_node *referred_node,
18118 enum ipa_ref_use use_type)): created from add_reference
18119 (struct ipa_ref *add_reference (symtab_node *referred_node,
18120 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
18121 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
18122 gimple stmt)): created from maybe_add_reference
18123 (bool semantically_equivalent_p (symtab_node *target)): created from
18124 symtab_semantically_equivalent_p
18125 (void remove_from_same_comdat_group (void)): created from
18126 remove_from_same_comdat_group
18127 (void add_to_same_comdat_group (symtab_node *old_node)): created from
18128 symtab_add_to_same_comdat_group
18129 (void dissolve_same_comdat_group_list (void)): created from
18130 symtab_dissolve_same_comdat_group_list
18131 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
18132 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
18133 created from symtab_alias_ultimate_target
18134 (inline symtab_node *next_defined_symbol (void)): created from
18135 symtab_next_defined_symbol
18136 (bool resolve_alias (symtab_node *target)): created from
18137 symtab_resolve_alias
18138 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
18139 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
18140 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
18141 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
18142 (void set_section (const char *section)): created from set_section_1
18143 (enum availability get_availability (void)): created from symtab_node_availability
18144 (void make_decl_local (void)): created from symtab_make_decl_local
18145 (bool real_symbol_p (void)): created from symtab_read_node
18146 (can_be_discarded_p (void)): created from symtab_can_be_discarded
18147 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
18148 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
18149 symtab_in_same_comdat_p;
18150 (bool address_taken_from_non_vtable_p (void)): created from
18151 address_taken_from_non_vtable_p
18152 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
18153 (static void dump_table (FILE *)): created from dump_symtab
18154 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
18155 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
18156 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
18157 symtab_used_from_object_file_p
18158 (void dump_base (FILE *)): created from dump_symtab_base
18159 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
18160 (void unregister (void)): created from symtab_unregister_node
18161 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
18162 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
18163 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
18164 symtab_nonoverwritable_alias_1
18165 * cgraph.h (cgraph_node):
18166 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
18167 created from cgraph_remove_node_and_inline_clones
18168 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
18169 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
18170 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
18171 (cgraph_node *function_symbol (enum availability *avail = NULL)):
18172 created from cgraph_function_node
18173 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
18174 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
18175 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
18176 created from cgraph_create_clone
18177 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
18178 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
18179 created from cgraph_create_virtual_clone
18180 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
18181 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
18182 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
18183 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
18184 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
18185 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
18186 created from cgraph_function_version_info
18187 (struct cgraph_function_version_info *insert_new_function_version (void)):
18188 created from insert_new_cgraph_node_version
18189 (struct cgraph_function_version_info *function_version (void)): created from
18190 get_cgraph_node_version
18191 (void analyze (void)): created from analyze_function
18192 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
18193 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
18194 tree real_alias) cgraph_add_thunk
18195 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
18196 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
18197 created from cgraph_function_or_thunk_node
18198 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
18199 created from expand_thunk
18200 (void reset (void)): created from cgraph_reset_node
18201 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
18202 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
18203 (void remove (void)): created from cgraph_remove_node
18204 (void dump (FILE *f)): created from dump_cgraph_node
18205 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
18206 (bool get_body (void)): created from cgraph_get_body
18207 (void release_body (void)): created from cgraph_release_function_body
18208 (void unnest (void)): created from cgraph_unnest_node
18209 (void make_local (void)): created from cgraph_make_node_local
18210 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
18211 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
18212 gcov_type count, int freq)): created from cgraph_create_edge
18213 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
18214 gcov_type count, int freq)): created from cgraph_create_indirect_edge
18215 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
18216 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
18217 created from cgraph_create_edge_including_clones
18218 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
18219 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
18220 (void remove_callers (void)): created from cgraph_node_remove_callers
18221 (void remove_callees (void)): created from cgraph_node_remove_callees
18222 (enum availability get_availability (void)): created from cgraph_function_body_availability
18223 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
18224 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
18225 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
18226 (void call_duplication_hooks (cgraph_node *node2)): created from
18227 cgraph_call_node_duplication_hooks
18228 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
18229 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
18230 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
18231 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
18232 (void call_function_insertion_hooks (void)):
18233 created from cgraph_call_function_insertion_hooks
18234 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
18235 (bool local_p (void)): created from cgraph_local_node
18236 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
18237 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
18238 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
18239 (inline bool only_called_directly_or_aliased_p (void)):
18240 created from cgraph_only_called_directly_or_aliased_p
18241 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
18242 created from cgraph_will_be_removed_from_program_if_no_direct_calls
18243 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
18244 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
18245 (bool can_remove_if_no_direct_calls_p (void)):
18246 created from cgraph_can_remove_if_no_direct_calls_p
18247 (inline bool has_gimple_body_p (void)):
18248 created from cgraph_function_with_gimple_body_p
18249 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
18250 (static void dump_cgraph (FILE *f)): created from dump_cgraph
18251 (static inline void debug_cgraph (void)): created from debug_cgraph
18252 (static void record_function_versions (tree decl1, tree decl2)):
18253 created from record_function_versions
18254 (static void delete_function_version (tree decl)):
18255 created from delete_function_version
18256 (static void add_new_function (tree fndecl, bool lowered)):
18257 created from cgraph_add_new_function
18258 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
18259 (static cgraph_node * create (tree decl)): created from cgraph_create_node
18260 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
18261 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
18262 (static cgraph_node *get_for_asmname (tree asmname)):
18263 created from cgraph_node_for_asm
18264 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
18265 created from cgraph_same_body_alias
18266 (static bool used_from_object_file_p_worker (cgraph_node *node,
18267 void *): new function
18268 (static bool non_local_p (cgraph_node *node, void *)):
18269 created from cgraph_non_local_node_p_1
18270 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
18271 created from verify_cgraph
18272 (static bool make_local (cgraph_node *node, void *)):
18273 created from cgraph_make_node_local
18274 (static cgraph_node *create_alias (tree alias, tree target)):
18275 created from cgraph_create_function_alias
18276 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
18277 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
18278 created from cgraph_create_edge_1
18279 * cgraph.h (varpool_node):
18280 (void remove (void)): created from varpool_remove_node
18281 (void dump (FILE *f)): created from dump_varpool_node
18283 2014-07-24 Richard Biener <rguenther@suse.de>
18286 * tree-ssa-structalias.c (create_variable_info_for_1):
18287 Use varpool_get_constructor.
18288 (create_variable_info_for): Likewise.
18290 2014-07-24 Jiong Wang <jiong.wang@arm.com>
18292 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
18293 subtract outgoing area size when restoring stack_pointer_rtx.
18295 2014-07-24 Nick Clifton <nickc@redhat.com>
18297 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
18298 that operations are taking place in parallel.
18299 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
18301 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
18303 * omp-low.c (extract_omp_for_data): Add missing break statement.
18305 2014-07-24 Richard Biener <rguenther@suse.de>
18307 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
18308 * tree-inline.c (estimate_move_cost): Add speed_p parameter
18309 and adjust MOVE_RATIO query accordingly.
18310 (estimate_num_insns): Adjust callers.
18311 * ipa-prop.c (ipa_populate_param_decls): Likewise.
18312 * ipa-cp.c (gather_context_independent_values,
18313 estimate_local_effects): Likewise.
18314 * ipa-split.c (consider_split): Likewise.
18316 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
18318 * config/i386/driver-i386.c: Remove names of unused arguments and
18319 unnecessary unused attributes.
18320 * config/i386/host-mingw32.c: Likewise.
18321 * config/i386/i386.c: Likewise.
18322 * config/i386/winnt-stubs.c: Likewise.
18323 * config/i386/winnt.c: Likewise.
18325 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18327 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
18328 (aarch64_gen_loadwb_pair): New helper function.
18329 (aarch64_expand_epilogue): Simplify code using new helper functions.
18330 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
18332 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18334 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
18335 (aarch64_gen_storewb_pair): New helper function.
18336 (aarch64_expand_prologue): Simplify code using new helper functions.
18337 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
18339 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18341 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
18342 Rename to aarch64_save_callee_saves, remove restore code.
18343 (aarch64_restore_callee_saves): New function.
18345 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18347 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
18348 (aarch64_save_callee_saves): New function to handle reg save
18349 for both core and vectore regs.
18351 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18353 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
18354 (aarch64_gen_store_pair): New helper function.
18355 (aarch64_save_or_restore_callee_save_registers)
18356 (aarch64_save_or_restore_fprs): Use new helper functions.
18358 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18360 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
18361 (aarch64_save_or_restore_callee_save_registers)
18362 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
18364 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18366 * config/aarch64/aarch64.c
18367 (aarch64_save_or_restore_callee_save_registers)
18368 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
18370 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18372 * config/aarch64/aarch64.c
18373 (aarch64_save_or_restore_callee_save_registers)
18374 (aarch64_save_or_restore_fprs): Remove 'increment'.
18376 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18378 * config/aarch64/aarch64.c
18379 (aarch64_save_or_restore_callee_save_registers)
18380 (aarch64_save_or_restore_fprs): Use register offset in
18381 cfun->machine->frame.reg_offset.
18383 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18385 * config/aarch64/aarch64.c
18386 (aarch64_save_or_restore_callee_save_registers)
18387 (aarch64_save_or_restore_fprs): Remove base_rtx.
18389 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18391 * config/aarch64/aarch64.c
18392 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
18393 to 'start_offset'. Remove local variable 'start_offset'.
18395 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18397 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
18398 type to HOST_WIDE_INT.
18400 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18402 * config/aarch64/aarch64.c (aarch64_expand_prologue)
18403 (aarch64_save_or_restore_fprs)
18404 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
18406 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
18408 * config/arm/t-rtems-eabi: Add
18409 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
18410 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
18411 mbig-endian/mthumb/march=armv7-r, and
18412 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18415 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
18416 Chris Johns <chrisj@rtems.org>
18417 Joel Sherrill <joel.sherrill@oarcorp.com>
18419 * config.gcc: Add nios2-*-rtems*.
18420 * config/nios2/rtems.h: New file.
18421 * gcc/config/nios2/t-rtems: New file.
18423 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
18426 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18427 constant numbers, not general constants.
18428 (rs6000_expand_vector_init): Ditto.
18430 2014-07-23 Nathan Sidwell <nathan@acm.org>
18432 * gcov-tool.c (gcov_list): Declare here.
18433 (set_gcov_list): Remove.
18434 (gcov_output_files): Set gcov_list directly.
18436 2014-07-23 Host Schirmeier <horst@schirmeier.com>
18438 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18440 2014-07-23 Jiong Wang <jiong.wang@arm.com>
18442 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18443 callee-saved registers are available for padding purpose
18444 and r3 is not mandatory, then prefer use those callee-saved
18447 2014-07-23 Richard Biener <rguenther@suse.de>
18449 * params.def (PARAM_MAX_COMBINE_INSNS): New.
18450 * combine.c: Include statistics.h and params.h.
18451 (combine_instructions): Guard three and four insn combines
18452 with max-combine-insns value. Record statistics for combines
18454 * doc/invoke.texi (max-combine-insns): Document new param.
18456 2014-07-23 Roman Gareev <gareevroman@gmail.com>
18458 * graphite-isl-ast-to-gimple.c:
18459 (translate_isl_ast_node_block): New function.
18460 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18462 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18463 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18465 2014-07-23 Roman Gareev <gareevroman@gmail.com>
18467 * graphite-isl-ast-to-gimple.c:
18468 (get_max_schedule_dimensions): New function.
18469 (extend_schedule): Likewise.
18470 (generate_isl_schedule): Add calling of extend_schedule and
18471 get_max_schedule_dimensions.
18473 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18475 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18476 (case UNSPEC): Handle UNSPEC_RBIT.
18478 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18480 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18481 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18483 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18485 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18487 2014-07-22 Roman Gareev <gareevroman@gmail.com>
18489 * graphite-isl-ast-to-gimple.c:
18490 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18491 (ivs_params_clear):
18492 (build_iv_mapping): New function.
18493 (translate_isl_ast_node_user): Likewise.
18494 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18496 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18497 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18498 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18500 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18503 * config/arm/arm.md (setmem): New pattern.
18504 * config/arm/arm-protos.h (struct tune_params): New fields.
18505 (arm_gen_setmem): New prototype.
18506 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18507 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18508 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18509 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18510 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18511 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18512 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18513 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18514 (arm_const_inline_cost): New function.
18515 (arm_block_set_max_insns): New function.
18516 (arm_block_set_non_vect_profit_p): New function.
18517 (arm_block_set_vect_profit_p): New function.
18518 (arm_block_set_unaligned_vect): New function.
18519 (arm_block_set_aligned_vect): New function.
18520 (arm_block_set_unaligned_non_vect): New function.
18521 (arm_block_set_aligned_non_vect): New function.
18522 (arm_block_set_vect, arm_gen_setmem): New functions.
18524 2014-07-21 Bin Cheng <bin.cheng@arm.com>
18526 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18528 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
18531 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18532 out of #ifdef __OPTIMIZE__.
18534 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18536 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18537 different trapping status if -fnon-call-exceptions is enabled.
18539 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
18541 * expr.c (store_field): Handle VOIDmode for calls that return values
18542 in multiple locations.
18544 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18546 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
18547 (altivec_vsldoi_<mode>): Likewise.
18549 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18551 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18552 to the number of characters in the line.
18554 2014-07-20 Roman Gareev <gareevroman@gmail.com>
18556 * graphite-isl-ast-to-gimple.c: Add using of
18557 build_nonstandard_integer_type instead of int128_integer_type_node.
18559 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
18561 * toplev.c (output_stack_usage): Adjust the location of the warning.
18563 2014-07-19 Daniel Cederman <cederman@gaisler.com>
18565 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18566 (*membar_storeload): Disable for LEON3.
18568 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
18570 PR rtl-optimization/61461
18571 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18573 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
18576 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18577 Fix instruction constraint.
18578 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18580 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
18582 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18584 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
18586 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18587 GNU coding standards.
18588 (nds32_register_move_cost): Likewise.
18589 (nds32_memory_move_cost): Likewise.
18590 (nds32_address_cost): Likewise.
18592 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
18594 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18596 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
18598 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18599 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18600 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18601 (HAVE_sync_compare_and_swapqi): Define.
18602 (HAVE_sync_compare_and_swaphi): Likewise.
18603 (HAVE_sync_compare_and_swapsi): Likewise.
18605 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
18607 * config/mips/p5600.md: Add missing cpu tests.
18609 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18611 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18612 (vmla_f64): Likewise.
18613 (vfms_f64): Likewise.
18614 (vmls_f64): Likewise.
18616 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18618 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18619 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18621 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18623 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18624 (vmlal_high_lane_s32): Likewise.
18625 (vmlal_high_lane_u16): Likewise.
18626 (vmlal_high_lane_u32): Likewise.
18627 (vmlsl_high_lane_s16): Likewise.
18628 (vmlsl_high_lane_s32): Likewise.
18629 (vmlsl_high_lane_u16): Likewise.
18630 (vmlsl_high_lane_u32): Likewise.
18632 2014-07-17 Terry Guo <terry.guo@arm.com>
18634 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18635 (alus_reg): Renamed to alus_sreg.
18636 * config/arm/arm-fixed.md: Change type of non-dsp instructions
18637 from alu_reg to alu_sreg. Change type of dsp instructions from
18638 alu_reg to alu_dsp_reg.
18639 * config/arm/thumb1.md: Likewise.
18640 * config/arm/thumb2.md: Likewise.
18641 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18642 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18643 with alu_sreg and alus_sreg.
18644 * config/arm/arm1026ejs.md (alu_op): Likewise.
18645 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18646 * config/arm/arm926ejs.md (9_alu_op): Likewise.
18647 * config/arm/fa526.md (526_alu_op): Likewise.
18648 * config/arm/fa606te.md (606te_alu_op): Likewise.
18649 * config/arm/fa626te.md (626te_alu_op): Likewise.
18650 * config/arm/fa726te.md (726te_alu_op): Likewise.
18651 * config/arm/fmp626.md (mp626_alu_op): Likewise.
18652 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18653 alu_sreg, alu_dsp_reg and alus_sreg.
18654 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18655 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18656 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18657 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18658 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18659 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18660 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18661 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18662 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18663 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18664 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18665 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18666 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18667 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18668 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18669 alus_reg to alus_sreg.
18671 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
18673 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18676 2014-07-17 Richard Biener <rguenther@suse.de>
18678 PR rtl-optimization/61801
18679 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18680 don't set reg_pending_barrier if it appears in a debug-insn.
18682 2014-07-16 DJ Delorie <dj@redhat.com>
18684 * config/rx/rx.c (rx_option_override): Fix alignment values.
18685 (rx_align_for_label): Likewise.
18687 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
18690 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18691 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18692 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18694 (cris_print_index, cris_print_operand, cris_constant_index_p)
18695 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18696 (cris_address_cost): Ditto last CONSTANT_P.
18697 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
18698 callers changed. Yield cris_offsettable_symbol for non-PIC
18699 constant symbolic expressions including labels. Yield cris_unspec
18701 (cris_expand_pic_call_address): New parameter MARKERP. Set its
18702 target to pic_offset_table_rtx for calls that will likely go
18703 through PLT, const0_rtx when they can't. All callers changed.
18704 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18705 symbolic expressions to be PICified. Remove second, redundant,
18706 assert on can_create_pseudo_p returning non-zero. Use
18707 replace_equiv_address_nv, not replace_equiv_address, for final
18709 * config/cris/cris.md ("movsi"): Move variable t to pattern
18710 toplevel. Adjust assert for new cris_symbol_type member. Use
18711 CONSTANT_P instead of CONSTANT_ADDRESS_P.
18712 ("*movsi_internal") <case 9>: Make check for valid unspec operands
18714 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18715 ("call", "call_value"): Use second incoming operand as a marker
18716 for pic-offset-table-register being used.
18717 ("*expanded_call_non_v32", "*expanded_call_v32")
18718 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18719 second incoming operand to CALL, match cris_call_type_marker.
18720 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
18721 ("*expanded_call_side"): Ditto. Fix typo in comment.
18722 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18724 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18725 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18726 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
18727 users changed. Add members cris_offsettable_symbol and cris_unspec.
18728 (cris_symbol_type): Rename from cris_pic_symbol_type.
18729 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18731 * config/cris/cris-protos.h (cris_symbol_type_of,
18732 cris_expand_pic_call_address): Adjust prototypes.
18733 (cris_legitimate_constant_p): New prototype.
18735 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18736 an existing tmake_file. Don't add t-slibgcc and t-linux.
18738 2014-07-17 Jason Merrill <jason@redhat.com>
18741 * symtab.c (symtab_remove_from_same_comdat_group): Also
18742 set_comdat_group to NULL_TREE.
18743 (verify_symtab): Fix diagnostic.
18745 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
18748 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18750 2014-07-16 Dodji Seketeli <dodji@redhat.com>
18752 Support location tracking for built-in macro tokens
18753 * input.h (is_location_from_builtin_token): New function declaration.
18754 * input.c (is_location_from_builtin_token): New function definition.
18755 * toplev.c (general_init): Tell libcpp what the pre-defined
18756 spelling location for built-in tokens is.
18758 2014-07-16 Jakub Jelinek <jakub@redhat.com>
18760 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18761 on the FUNCTION_DECL.
18763 2014-07-16 Richard Biener <rguenther@suse.de>
18766 * doc/extend.texi (always_inline): Clarify.
18768 2014-07-15 Eric Christopher <echristo@gmail.com>
18770 * doc/invoke.texi (Link Options): Document -z option.
18772 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
18774 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18775 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18777 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
18779 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18781 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
18783 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18784 varpool_assemble_decl.
18785 * varpool.c (varpool_assemble_decl): Assert that node->definition is
18788 2014-07-15 Michael Matz <matz@suse.de>
18790 PR rtl-optimization/61772
18791 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18793 2014-07-15 Richard Biener <rguenther@suse.de>
18795 * opts.c (default_options_table): Disable bit-ccp at -Og.
18797 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18799 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18801 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
18803 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18804 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18805 call langhook for unknown declaration.
18806 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18807 * tree.h (DECL_ARGUMENTS): Update.
18808 * print-tree.c (print_node): Update.
18809 * tree-core.h (tree_decl_non_common): Remove arguments.
18810 (tree_function_decl): Add arguments.
18812 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
18814 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18816 2014-07-14 Richard Biener <rguenther@suse.de>
18818 PR tree-optimization/61779
18819 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18820 simplifying a condition.
18822 2014-07-14 Richard Biener <rguenther@suse.de>
18824 * builtins.c (c_strlen): Make only_value == 2 really only
18825 affect warning generation.
18827 2014-07-14 Richard Biener <rguenther@suse.de>
18829 PR tree-optimization/61757
18830 PR tree-optimization/61783
18831 PR tree-optimization/61787
18832 * tree-ssa-dom.c (record_equality): Revert canonicalization
18833 change and add comment.
18834 (propagate_rhs_into_lhs): Revert previous fix, removing
18835 loop depth restriction again.
18837 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18839 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18840 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18841 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18842 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18843 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18844 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18845 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18847 2014-07-14 Richard Biener <rguenther@suse.de>
18849 * cgraph.h (decl_in_symtab_p): Make inline.
18851 2014-07-14 Jakub Jelinek <jakub@redhat.com>
18853 PR middle-end/61294
18854 * doc/invoke.texi (-Wmemset-transposed-args): Document.
18857 * config/i386/i386.c (classify_argument): Don't merge classes above
18860 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
18862 * cgraph.h (symtab_node): Add nonzero_address.
18863 (decl_in_symtab_p): Break out from ...
18864 (symtab_get_node): ... here.
18865 * fold-const.c: Include cgraph.h
18866 (tree_single_nonzero_warnv_p): Use symtab to determine
18867 if symbol is non-zero.
18868 * symtab.c (symtab_node::nonzero_address): New method.
18870 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18872 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18873 forgotten in previous commit.
18875 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18877 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18879 * ipa-devirt.c: Include stor-layout.h and intl.h
18880 (odr_subtypes_equivalent_p): New function.
18881 (warn_odr): New function.
18882 (warn_type_mismatch): New function.
18883 (odr_types_equivalent_p): New function.
18884 (add_type_duplicate): Use it.
18885 * common.opt (Wodr): New flag.
18886 * doc/invoke.texi (Wodr): Document new warning.
18888 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
18890 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18891 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18892 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18893 (varpool_get_constructor): Push CTORS_IN timevar.
18894 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18896 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
18898 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18899 Remove VOID_FTYPE_PUSHORT.
18900 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18901 Change code to USHORT_FTYPE_VOID.
18902 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18903 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18904 (ix86_atomic_assign_expand_fenv): Update for
18905 __builtin_ia32_fnstsw changes.
18906 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18907 (fnstsw): Change operand 0 to nonimmediate operand.
18909 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18911 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18912 (varpool_get_constructor): New function.
18913 (varpool_ctor_useable_for_folding_p): Break out from ...
18914 (ctor_for_folding): ... here; use varpool_get_constructor.
18915 (varpool_assemble_decl): Likewise.
18916 * lto-streamer.h (struct output_block): Turn cgraph_node
18918 (lto_input_variable_constructor): Declare.
18919 * ipa-visibility.c (function_and_variable_visibility): Use
18920 varpool_get_constructor.
18921 * cgraph.h (varpool_get_constructor): Declare.
18922 (varpool_ctor_useable_for_folding_p): New function.
18923 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18924 parameter; return error_mark_node for non-trivial constructors.
18925 (lto_write_tree_1, DFS_write_tree): Update use of
18926 get_symbol_initial_value.
18927 (output_function): Update initialization of symbol.
18928 (output_constructor): New function.
18929 (copy_function): Rename to ..
18930 (copy_function_or_variable): ... this one; handle vars too.
18931 (lto_output): Output variable sections.
18932 * lto-streamer-in.c (input_constructor): New function.
18933 (lto_read_body): Rename from ...
18934 (lto_read_body_or_constructor): ... this one; handle vars too.
18935 (lto_input_variable_constructor): New function.
18936 * ipa-prop.c (ipa_prop_write_jump_functions,
18937 ipa_prop_write_all_agg_replacement): Update.
18938 * lto-cgraph.c (compute_ltrans_boundary): Use it.
18939 (output_cgraph_opt_summary): Set symbol to NULL.
18941 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
18943 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18944 non-polymorphic types.
18945 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18946 * ipa-devirt.c (types_same_for_odr): Do not explode when one
18947 of types is not polymorphic.
18949 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
18951 * lra-constraints.c (remove_inheritance_pseudos): Process
18952 destination pseudo too.
18954 2014-07-11 Rong Xu <xur@google.com>
18956 * gcov-tool.c (gcov_output_files): Fix build error introduced in
18959 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18961 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18962 * config/avr/avr-devices.c (AVR_MCU): Same.
18963 (avr_mcu_types): add text start value to end of device list.
18964 * config/avr/avr-mcus.def: Add text section start for all devices.
18965 (ata5782): Add new avr5 device.
18967 * config/avr/avr-tables.opt: Regenerate.
18968 * config/avr/avr.h: Add declaration for text section start handler.
18969 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18971 (LINK_SPEC): Include text section start handler to linker spec.
18972 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18973 pass -Ttext option to linker if the text section start for the device
18975 * config/avr/t-multilib: Regenerate.
18976 * doc/avr-mmcu.texi: Regenerate.
18978 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
18980 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18981 * config/rs6000/aix52.h (LINK_SPEC): Same.
18982 * config/rs6000/aix53.h (LINK_SPEC): Same.
18983 * config/rs6000/aix61.h (LINK_SPEC): Same.
18984 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18986 2014-07-11 Roman Gareev <gareevroman@gmail.com>
18988 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18989 (graphite_verify): New function.
18990 (ivs_params_clear): New function.
18991 (gcc_expression_from_isl_ast_expr_id): New function.
18992 (gcc_expression_from_isl_expr_int): New function.
18993 (binary_op_to_tree): New function.
18994 (ternary_op_to_tree): New function.
18995 (unary_op_to_tree): New function.
18996 (nary_op_to_tree): New function.
18997 (gcc_expression_from_isl_expr_op): New function.
18998 (gcc_expression_from_isl_expression): New function.
18999 (graphite_create_new_loop): New function.
19000 (translate_isl_ast_for_loop): New function.
19001 (get_upper_bound): New function.
19002 (graphite_create_new_loop_guard): New function.
19003 (translate_isl_ast_node_for): New function.
19004 (translate_isl_ast): New function.
19005 (add_parameters_to_ivs_params): New function.
19006 (scop_to_isl_ast): New parameter ip.
19007 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
19009 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
19011 * config/xtensa/predicates.md (call expander): Update for
19012 DECL_SECTION_NAME being string.
19014 2014-07-11 Richard Biener <rguenther@suse.de>
19016 PR middle-end/61473
19017 * builtins.c (fold_builtin_memory_op): Inline memory moves that
19018 can be implemented with a single load followed by a single store.
19019 (c_strlen): Only warn when only_value is not 2.
19021 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
19023 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
19025 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
19028 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
19029 (*movhi_bytes): Likewise.
19030 (*arm_movqi_insn): Likewise.
19032 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
19035 * config/alpha/alpha.c: Include tree-pass.h, context.h
19036 and pass_manager.h.
19037 (pass_data_handle_trap_shadows): New pass.
19038 (pass_handle_trap_shadows::gate): New pass gate function.
19039 (make_pass_handle_trap_shadows): New function.
19040 (rest_of_handle_trap_shadows): Ditto.
19042 (alpha_align_insns_1): Rename from alpha_align_insns.
19043 (pass_data_align_insns): New pass.
19044 (pass_align_insns::gate): New pass gate function.
19045 (make_pass_aling_insns): New function.
19046 (rest_of_align_insns): Ditto.
19047 (alpha_align_insns): Ditto.
19049 (alpha_option_override): Declare handle_trap_shadows info
19050 and align_insns_info. Register handle_trap_shadows and align_insns
19052 (alpha_reorg): Do not call alpha_trap_shadows and
19053 alpha_align_insn from here.
19055 (alpha_pad_function_end): Do not skip BARRIERs.
19057 2014-07-10 Rong Xu <xur@google.com>
19059 Add gcov-tool: an offline gcda profile processing tool support.
19060 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
19061 (gcov_is_error): Ditto.
19062 (gcov_read_string): Ditto.
19063 (gcov_read_sync): Ditto.
19064 * gcov-io.h: Move counter defines to gcov-counter.def.
19065 * gcov-dump.c (tag_counters): Use gcov-counter.def.
19066 * coverage.c: Ditto.
19067 * gcov-tool.c: Offline gcda profile processing tool.
19068 (unlink_gcda_file): Remove one gcda file.
19069 (unlink_profile_dir): Remove gcda files from the profile path.
19070 (gcov_output_files): Output gcda files to an output dir.
19071 (profile_merge): Merge two profiles in directory.
19072 (print_merge_usage_message): Print merge usage.
19073 (merge_usage): Print merge usage and exit.
19074 (do_merge): Driver for profile merge sub-command.
19075 (profile_rewrite): Rewrite profile.
19076 (print_rewrite_usage_message): Print rewrite usage.
19077 (rewrite_usage): Print rewrite usage and exit.
19078 (do_rewrite): Driver for profile rewrite sub-command.
19079 (print_usage): Print gcov-info usage and exit.
19080 (print_version): Print gcov-info version.
19081 (process_args): Process arguments.
19082 (main): Main routine for gcov-tool.
19083 * Makefile.in: Build and install gcov-tool.
19084 * gcov-counter.def: New file split from gcov-io.h.
19085 * doc/gcc.texi: Include gcov-tool.texi.
19086 * doc/gcov-tool.texi: Document for gcov-tool.
19088 2014-07-10 Richard Biener <rguenther@suse.de>
19090 PR tree-optimization/61757
19091 * tree-ssa-dom.c (loop_depth_of_name): Restore.
19092 (propagate_rhs_into_lhs): Revert part of last change.
19094 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
19096 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
19099 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
19101 PR middle-end/53590
19102 * function.c (allocate_struct_function): Revert r188667 change.
19104 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
19106 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
19108 * doc/install.texi: Remove links to defunct package providers for
19111 2014-07-09 Tom de Vries <tom@codesourcery.com>
19113 * final.c (get_call_fndecl): Declare.
19114 (self_recursive_call_p): New function.
19115 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
19117 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19119 * ipa-devirt.c (record_node): Walk through aliases.
19121 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19123 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
19125 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19128 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19130 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19132 * ipa-visibility.c (function_and_variable_visibility): Remove
19133 temporary hack disabling local aliases on AIX.
19135 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19137 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
19138 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
19140 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19142 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
19143 * rs6000/rs6000.c: Inline output of .set instruction.
19144 (declare_alias_data): New struct.
19145 (rs6000_declare_alias): New function.
19146 (rs6000_xcoff_declare_function_name): Use it.
19147 (rs6000_xcoff_declare_object_name): New function.
19148 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
19149 (ASM_OUTPUT_DEF): Turn to empty definition.
19151 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
19154 * hash-table.h: use hash_table::value_type instead of
19155 Descriptor::value_type in the return types of several methods.
19157 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
19159 * tree-pass.h (pass_data): Remove has_execute member.
19160 * passes.c (execute_one_pass): Don't check pass->has_execute.
19161 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19162 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19163 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19164 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19165 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19166 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19167 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19168 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19169 gimple-low.c, gimple-ssa-isolate-paths.c,
19170 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19171 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
19172 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
19173 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
19174 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
19175 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19176 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
19177 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
19178 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
19179 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
19180 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
19181 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19182 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19183 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19184 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19185 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19186 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19187 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19188 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19189 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19190 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19191 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19192 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
19193 web.c: Remove initializer for pass_data::has_execute.
19195 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
19197 * graphite-htab.h: Use hash_map instead of hash_table.
19198 * graphite-clast-to-gimple.c: Adjust.
19199 * passes.c: Use hash_map instead of hash_table.
19200 * sese.c: Likewise.
19201 * sese.h: Remove now unused code.
19203 2014-07-08 Sriraman Tallam <tmsriram@google.com>
19206 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
19209 2014-07-08 Jakub Jelinek <jakub@redhat.com>
19211 PR rtl-optimization/61673
19212 * combine.c (simplify_comparison): Test just mode's sign bit
19213 in tmode rather than the sign bit and any bits above it.
19215 2014-07-08 Roman Gareev <gareevroman@gmail.com>
19217 * graphite-isl-ast-to-gimple.c (generate_isl_context):
19218 Add __isl_give to the declaration.
19219 (generate_isl_schedule): Likewise.
19220 (scop_to_isl_ast): Likewise.
19222 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19224 * config/arm/arm.c (cortexa5_extra_costs): New table.
19225 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
19227 2014-07-08 Jakub Jelinek <jakub@redhat.com>
19229 PR tree-optimization/61725
19230 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
19231 range, use range_includes_zerop_p instead of integer_zerop on
19232 vr0->min, only use log2 of max if min is not negative.
19234 2014-07-08 Richard Biener <rguenther@suse.de>
19236 * tree-ssa-dom.h (loop_depth_of_name): Remove.
19237 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
19238 restriction on loop depth difference.
19239 (record_equality): Likewise.
19240 (propagate_rhs_into_lhs): Likewise. Simplify condition.
19241 (loop_depth_of_name): Remove.
19242 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
19243 restriction on loop depth difference.
19244 (init_copy_prop): Likewise.
19246 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
19248 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
19250 (walk_aliased_vdefs): Likewise.
19251 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
19252 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
19253 (detect_type_change_from_memory_writes): Check if entry was reached.
19255 2014-07-08 Richard Biener <rguenther@suse.de>
19257 PR tree-optimization/61681
19258 * tree-ssa-structalias.c (find_what_var_points_to): Expand
19259 NONLOCAL inside ESCAPED.
19261 2014-07-08 Richard Biener <rguenther@suse.de>
19263 PR tree-optimization/61680
19264 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19265 Handle properly all read-write dependences with group accesses.
19267 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
19269 PR tree-optimization/61576
19270 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
19271 block containing reduction statement is predecessor of phi basi block.
19273 2014-07-08 Marek Polacek <polacek@redhat.com>
19276 * fold-const.c (round_up_loc): Change the parameter type.
19278 * fold-const.h (round_up_loc): Adjust declaration.
19279 * stor-layout.c (finalize_record_size): Check for too large types.
19281 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
19283 * symtab.c: Include calls.h.
19284 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
19286 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
19288 * config/rs6000/rs6000.c (output_vec_const_move): Handle
19289 little-endian code generation.
19290 * config/rs6000/spe.md (spe_evmergehi): Rename to...
19291 (vec_perm00_v2si): ... this. Handle little-endian code generation.
19292 (spe_evmergehilo): Rename to...
19293 (vec_perm01_v2si): ... this. Handle little-endian code generation.
19294 (spe_evmergelo): Rename to...
19295 (vec_perm11_v2si): ... this. Handle little-endian code generation.
19296 (spe_evmergelohi): Rename to...
19297 (vec_perm10_v2si): ... this. Handle little-endian code generation.
19298 (spe_evmergehi, spe_evmergehilo): New expanders.
19299 (spe_evmergelo, spe_evmergelohi): Likewise.
19300 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
19301 (*frob_tf_ti): Likewise.
19302 (*frob_<mode>_di_2): Likewise.
19303 (*frob_tf_di_8_2): Likewise.
19304 (*frob_di_<mode>): Likewise.
19305 (*frob_ti_tf): Likewise.
19306 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
19307 (*frob_ti_<mode>_8_2): Likewise.
19308 (*frob_ti_tf_2): Likewise.
19309 (mov_si<mode>_e500_subreg0): Rename to...
19310 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
19312 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
19313 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
19314 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
19315 the big endianness only.
19316 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
19317 (*mov_si<mode>_e500_subreg0_2): Rename to...
19318 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
19319 big big endianness only.
19320 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
19321 (*mov_si<mode>_e500_subreg4): Rename to...
19322 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
19324 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
19325 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
19326 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
19327 the big endianness only.
19328 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
19330 (*mov_si<mode>_e500_subreg4_2): Rename to...
19331 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
19333 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
19334 (*mov_sitf_e500_subreg8): Rename to...
19335 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
19337 (*mov_sitf_e500_subreg8_le): New instruction pattern.
19338 (*mov_sitf_e500_subreg8_2): Rename to...
19339 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
19341 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
19342 (*mov_sitf_e500_subreg12): Rename to...
19343 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
19345 (*mov_sitf_e500_subreg12_le): New instruction pattern.
19346 (*mov_sitf_e500_subreg12_2): Rename to...
19347 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
19349 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
19351 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
19353 * asan.c (instrument_strlen_call): Do not instrument first byte
19354 in strlen if already instrumented.
19356 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19358 * config/arm/arm.opt (mwords-little-endian): Delete.
19359 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
19360 of TARGET_LITTLE_WORDS.
19361 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
19362 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
19364 * doc/invoke.texi: Remove references to -mwords-little-endian.
19366 2014-07-07 Jakub Jelinek <jakub@redhat.com>
19368 * expmed.c (struct init_expmed_rtl): Change all fields but
19369 pow2 and cint from struct rtx_def to rtx.
19370 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
19371 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
19374 2014-07-06 Marek Polacek <polacek@redhat.com>
19377 * doc/invoke.texi: Document -Wsizeof-array-argument.
19379 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
19381 * wide-int.h (wide_int_storage): Change declaration from struct
19384 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
19386 * cgraph.c (cgraph_create_indirect_edge): Update call of
19387 get_polymorphic_call_info.
19388 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
19389 (possible_polymorphic_call_targets): Add parameter call.
19390 (decl_maybe_in_construction_p): New predicate.
19391 (get_polymorphic_call_info): Add parameter call;
19392 use decl_maybe_in_construction_p.
19393 * gimple-fold.c (fold_gimple_assign): Update use of
19394 possible_polymorphic_call_targets.
19395 (gimple_fold_call): Likewise.
19396 * ipa-prop.c: Inlcude calls.h
19397 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
19398 (param_type_may_change_p): New predicate.
19399 (detect_type_change_from_memory_writes): Break out from ...
19400 (detect_type_change): ... this one; use param_type_may_change_p.
19401 (detect_type_change_ssa): Use param_type_may_change_p.
19402 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
19404 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
19407 * config/arm/arm-protos.h (arm_legitimate_address_p,
19408 arm_is_constant_pool_ref): Add prototypes.
19409 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
19410 (arm_is_constant_pool_ref) New function.
19411 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19412 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19413 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19414 operand. Remove pool_range and neg_pool_range attributes.
19415 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19416 pool_range and neg_pool_range attributes.
19417 * config/arm/constraints.md (Uh): New constraint.
19418 (Uq): Don't allow constant pool references.
19420 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
19422 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19423 (move_lo_quad_internal_be_<mode>): Likewise.
19424 (move_lo_quad_<mode>): Convert to define_expand.
19425 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19426 (aarch64_simd_move_hi_quad_be_<mode>): New.
19427 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19428 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19429 (aarch64_combinez_be<mode>): New.
19430 (aarch64_combine<mode>): Convert to define_expand.
19431 (aarch64_combine_internal<mode>): New.
19432 (aarch64_simd_combine<mode>): Remove bogus RTL description.
19434 2014-07-04 Tom de Vries <tom@codesourcery.com>
19436 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19437 combination of earlyclobber and read/write modifiers.
19439 2014-07-04 Tom de Vries <tom@codesourcery.com>
19441 * config/aarch64/aarch64-simd.md
19442 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19444 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
19447 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19449 2014-07-04 Jakub Jelinek <jakub@redhat.com>
19451 PR middle-end/61654
19452 * cgraphunit.c (expand_thunk): Call free_dominance_info.
19454 PR tree-optimization/61684
19455 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19456 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19458 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19459 Kito Cheng <kito@0xlab.org>
19460 Monk Chiang <sh.chiang04@gmail.com>
19462 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19463 (nds32_symbol_load_store_p): Move to ...
19464 (nds32_fp_as_gp_check_available): Move to ...
19465 * config/nds32/nds32-fp-as-gp.c: ... here.
19466 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19467 extern declaration.
19469 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19470 Kito Cheng <kito@0xlab.org>
19471 Monk Chiang <sh.chiang04@gmail.com>
19473 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19474 (nds32_expand_store_multiple): Move to ...
19475 (nds32_expand_movmemqi): Move to ...
19476 * config/nds32/nds32-memory-manipulation.c: ... here.
19478 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19479 Kito Cheng <kito@0xlab.org>
19480 Monk Chiang <sh.chiang04@gmail.com>
19482 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19483 (nds32_output_casesi_pc_relative): Move to ...
19484 (nds32_output_casesi): Move to ...
19485 (nds32_mem_format): Move to ...
19486 (nds32_output_16bit_store): Move to ...
19487 (nds32_output_16bit_load): Move to ...
19488 (nds32_output_32bit_store): Move to ...
19489 (nds32_output_32bit_load): Move to ...
19490 (nds32_output_32bit_load_s): Move to ...
19491 (nds32_output_stack_push): Move to ...
19492 (nds32_output_stack_pop): Move to ...
19493 * config/nds32/nds32-md-auxiliary.c: ... here.
19495 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19496 Ling-Hua Tseng <uranus@tinlans.org>
19498 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19499 the purpose of this file.
19501 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19502 Kito Cheng <kito@0xlab.org>
19503 Monk Chiang <sh.chiang04@gmail.com>
19505 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19506 (nds32_address_cost): Move implementation to ...
19507 * config/nds32/nds32-cost.c: ... here.
19508 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19509 (nds32_address_cost_impl): Declare.
19511 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19512 Kito Cheng <kito@0xlab.org>
19513 Monk Chiang <sh.chiang04@gmail.com>
19515 * config/nds32/nds32.c
19516 (nds32_consecutive_registers_load_store_p): Move to ...
19517 (nds32_valid_multiple_load_store): Move to ...
19518 (nds32_valid_stack_push_pop): Move to ...
19519 (nds32_can_use_bclr_p): Move to ...
19520 (nds32_can_use_bset_p): Move to ...
19521 (nds32_can_use_btgl_p): Move to ...
19522 (nds32_can_use_bitci_p): Move to ...
19523 * config/nds32/nds32-predicates.c: ... here.
19525 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19526 Kito Cheng <kito@0xlab.org>
19527 Monk Chiang <sh.chiang04@gmail.com>
19529 * config/nds32/nds32.c
19530 (nds32_expand_builtin_null_ftype_reg): Move to ...
19531 (nds32_expand_builtin_reg_ftype_imm): Move to ...
19532 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19533 (nds32_init_builtins): Move implementation to ...
19534 (nds32_expand_builtin): Move implementation to ...
19535 * config/nds32/nds32-intrinsic.c: ... here.
19536 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19537 (nds32_expand_builtin_impl): Declare.
19539 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19540 Kito Cheng <kito@0xlab.org>
19541 Monk Chiang <sh.chiang04@gmail.com>
19543 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19544 (nds32_emit_section_tail_template): Move to ...
19545 (nds32_emit_isr_jmptbl_section): Move to ...
19546 (nds32_emit_isr_vector_section): Move to ...
19547 (nds32_emit_isr_reset_conten): Move to ...
19548 (nds32_check_isr_attrs_conflict): Move to ...
19549 (nds32_construct_isr_vectors_information): Move to ...
19550 (nds32_asm_file_start): Move implementation to ...
19551 (nds32_asm_file_end): Move implementation to ...
19552 * config/nds32/nds32-isr.c: ... here.
19553 * config/nds32/nds32-protos.h
19554 (nds32_check_isr_attrs_conflict): Declare.
19555 (nds32_construct_isr_vectors_information): Declare.
19556 (nds32_asm_file_start_for_isr): Declare.
19557 (nds32_asm_file_end_for_isr): Declare.
19559 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
19560 Kito Cheng <kito@0xlab.org>
19561 Monk Chiang <sh.chiang04@gmail.com>
19563 * config.gcc (nds32*): Add new modules to extra_objs.
19564 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19565 (nds32be-*-*): Likewise.
19566 * config/nds32/nds32-cost.c: New file.
19567 * config/nds32/nds32-fp-as-gp.c: New file.
19568 * config/nds32/nds32-intrinsic.c: New file.
19569 * config/nds32/nds32-isr.c: New file.
19570 * config/nds32/nds32-md-auxiliary.c: New file.
19571 * config/nds32/nds32-memory-manipulation.c: New file.
19572 * config/nds32/nds32-pipelines-auxiliary.c: New file.
19573 * config/nds32/nds32-predicates.c: New file.
19574 * config/nds32/t-nds32: New file.
19576 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19578 PR tree-optimization/61682
19579 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19580 using cases and when one of the operands is equal to 1.
19582 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
19584 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19585 ashr<mode>3): Correct mode of operands[2].
19586 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19587 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19588 Correct mode of operands[2]. Fix split condition.
19590 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
19592 * arm.md (arch): Add armv6_or_vfpv3.
19593 (arch_enabled): Add test for the above.
19594 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19596 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19598 2014-07-03 Jakub Jelinek <jakub@redhat.com>
19600 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19601 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19602 HWI 1 and negate the unsigned value.
19603 * expmed.c (expand_sdiv_pow2): For modes wider than word always
19604 use AND instead of shift.
19605 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19607 2014-07-03 Marek Polacek <polacek@redhat.com>
19609 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19610 (-fsanitize=float-divide-by-zero): Move to the table with
19611 -fsanitize=undefined suboptions.
19612 (-fsanitize=float-cast-overflow): Likewise.
19614 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
19616 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19617 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19620 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19622 * loop-invariant.c (struct invariant): Add a new member: eqno;
19623 (find_identical_invariants): Update eqno;
19624 (create_new_invariant): Init eqno;
19625 (get_inv_cost): Compute comp_cost with eqno;
19627 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19629 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19630 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19631 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19632 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19633 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19635 2014-07-02 Christian Bruel <christian.bruel@st.com>
19639 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19640 (make_preds_opaque): Delete.
19641 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19642 (commit_mode_sets): New function.
19643 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19644 Process all modes at once.
19645 * basic-block.h (pre_edge_lcm_avs): Declare.
19646 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19647 Call clear_aux_for_edges. Fix comments.
19648 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19649 (pre_edge_rev_lcm): Idem.
19650 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19652 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19653 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19655 * config/i386/i386.c (x96_emit_mode_set): Idem.
19656 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19657 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
19658 (fpscr_toggle) Disallow from delay slot.
19659 * target.def (emit_mode_set): Add prev_mode parameter.
19660 * doc/tm.texi: Regenerate.
19662 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19664 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19667 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19669 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19670 vtable_pointer_value_to_vtable): Constify.
19671 (contains_polymorphic_type_p): Declare.
19672 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19673 vtable_pointer_value_to_vtable): Constify.
19674 (contains_polymorphic_type_p): New predicate.
19675 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19677 (ipa_set_ancestor_jf): Likewise.
19678 (detect_type_change): Return false in easy cases.
19679 (compute_complex_assign_jump_func): Require type to contain
19681 (compute_known_type_jump_func): Likewise.
19683 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
19685 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19687 (type_in_anonymous_namespace_p): Constify argument.
19688 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19689 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19690 (main_odr_variant): New function.
19691 (hash_type_name): Make static; update assert; do not ICE on
19693 (types_same_for_odr): Bring here from tree.c; simplify and remove
19694 old structural comparing code that doesn't work for templates.
19695 (odr_hasher::equal): Update assert.
19696 (add_type_duplicate): Return true when bases should be computed;
19697 replace incomplete loader by complete; do not output duplicated
19698 warnings; do not ICE on non-records; set odr_violated flag.
19699 (get_odr_type): Be ready to replace incomplete type by complete
19700 one; work on ODR variants instead of main variants; reorder item
19701 in array so bases have still smaller indexes.
19702 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19703 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19705 2014-07-01 Cary Coutant <ccoutant@google.com>
19707 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19709 (resolve_addr_in_expr): When replacing the rtx in a location list
19710 entry, get a new address table entry.
19711 (dwarf2out_finish): Call index_location_lists even if there are no
19712 addr_index_table entries yet.
19714 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19716 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19717 change for not being obvious.
19719 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
19721 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19724 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19726 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19727 (vcagt_f64): Likewise.
19728 (vcale_f64): Likewise.
19729 (vcaled_f64): Likewise.
19730 (vcales_f32): Likewise.
19731 (vcalt_f64): Likewise.
19732 (vcaltd_f64): Likewise.
19733 (vcalts_f32): Likewise.
19735 2014-07-01 Marek Polacek <polacek@redhat.com>
19737 * doc/invoke.texi: Document -Wint-conversion.
19739 2014-07-01 Marek Polacek <polacek@redhat.com>
19742 * doc/invoke.texi: Document -Wincompatible-pointer-types.
19744 2014-07-01 Martin Liska <mliska@suse.cz>
19746 IPA REF alias refactoring
19747 * cgraph.h (iterate_direct_aliases): New function.
19748 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19749 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19750 FOR_EACH_ALIAS added.
19751 (cgraph_for_node_and_aliases): Likewise.
19752 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19753 * ipa-inline.c (reset_edge_caches): Likewise.
19754 (update_caller_keys): Likewise.
19755 * trans-mem.c (ipa_tm_execute): Likewise.
19756 *varpool.c (varpool_analyze_node): Likewise.
19757 (varpool_for_node_and_aliases): Likewise.
19758 * ipa-ref.h (first_alias): New function.
19759 (last_alias): Likewise.
19760 (has_aliases_p): Likewise.
19761 * ipa-ref.c (ipa_ref::remove_reference): Removal function
19762 is sensitive to IPA_REF_ALIASes.
19763 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19764 are put at the beginning of the list.
19765 (symtab_node::iterate_direct_aliases): New function.
19767 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19770 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19772 (write_ts_type_common_tree_pointers): Do not stream fields not set
19773 for incomplete types; do not stream duplicated fields for variants;
19774 sanity check that variant and type match.
19775 (write_ts_type_non_common_tree_pointers): Likewise.
19776 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19777 TYPE_SIZE whether type is complete.
19778 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19779 write_ts_type_common_tree_pointers
19780 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19782 2014-06-30 Joseph Myers <joseph@codesourcery.com>
19784 * var-tracking.c (add_stores): Return instead of asserting if old
19785 and new values for conditional store are the same.
19787 2014-06-30 Richard Henderson <rth@redhat.com>
19791 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19792 the cfg if there were any changes.
19793 * passes.def: Revert move of peephole2 after reorder_blocks;
19794 move duplicate_computed_gotos before peephole2.
19796 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
19798 * except.c (emit_note_eh_region_end): New helper function.
19799 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19800 emit EH_REGION_END note.
19801 * jump.c (cleanup_barriers): Do not split a call and its
19802 corresponding CALL_ARG_LOCATION note.
19804 2014-06-30 Jeff Law <law@redhat.com>
19806 PR tree-optimization/61607
19807 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19808 deeper into the SSA_NAME_VALUE chain.
19810 2014-06-30 Marek Polacek <polacek@redhat.com>
19812 * convert.c (convert_to_integer): Don't instrument conversions if the
19813 function has no_sanitize_undefined attribute.
19814 * ubsan.c: Don't run the ubsan pass if the function has
19815 no_sanitize_undefined attribute.
19817 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19819 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19820 -fsanitize=undefined suboptions.
19822 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
19824 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19825 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19826 against bigendian and adjust indices.
19828 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19830 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
19832 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
19835 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19836 Add alternative; make early clobber. Adjust both split patterns
19837 to use operand 0 as the working register.
19839 2014-06-30 Jakub Jelinek <jakub@redhat.com>
19841 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19842 as ira_object_id_map might be NULL, or 1.
19844 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19846 * loop-invariant.c (get_inv_cost): Handle register class.
19847 (gain_for_invariant): Check the register pressure of the inv
19848 and its overlapped register class, other than all.
19850 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
19852 * doc/invoke.texi (Optimize Options): Fix descriptions of
19853 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19855 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
19857 * doc/extend.texi (Function Attributes): Update 'naked' attribute
19860 2014-06-29 Tobias Grosser <tobias@grosser.es>
19863 * graphite-isl-ast-to-gimple.c: Add missing guards.
19865 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19867 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19868 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19869 * flag-types.h: Add new enum fgraphite_generator.
19870 * graphite-isl-ast-to-gimple.c: New.
19871 * graphite-isl-ast-to-gimple.h: New.
19872 * graphite.c (graphite_transform_loops): Add choice of Graphite
19873 code generator, which depends on flag_graphite_code_gen.
19875 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19877 * graphite-dependences.c (subtract_commutative_associative_deps):
19878 Add NULL checking of the following variables: must_raw_no_source,
19879 may_raw_no_source, must_war_no_source, may_war_no_source,
19880 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19881 must_war, may_war, must_waw, may_waw.
19883 2014-06-29 Roman Gareev <gareevroman@gmail.com>
19885 * graphite-clast-to-gimple.c: gloog is renamed to
19886 graphite_regenerate_ast_cloog. gloog_error is renamed to
19887 graphite_regenerate_error.
19888 * graphite-clast-to-gimple.h: The definition of the struct
19889 bb_pbb_def is moved to graphite-htab.h.
19890 Add inclusion of the hash-table.h.
19891 * graphite-htab.h: The declaration of the function gloog is moved
19892 to graphite-clast-to-gimple.h and renamed to
19893 graphite_regenerate_ast_cloog.
19894 * graphite.c (graphite_transform_loops): gloog is renamed
19895 to graphite_regenerate_ast_cloog.
19897 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19899 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19901 (write_ts_type_common_tree_pointers): Do not stream fields not set
19902 for incomplete types; do not stream duplicated fields for variants;
19903 sanity check that variant and type match.
19904 (write_ts_type_non_common_tree_pointers): Likewise.
19905 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19906 TYPE_SIZE whether type is complete.
19907 (lto_input_ts_type_common_tree_pointers): Do same changes as in
19908 write_ts_type_common_tree_pointers
19909 (lto_input_ts_type_non_common_tree_pointers): Likewise.
19911 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19913 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19915 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19917 * tree-inline.c (remap_type_1): Do not duplicate fields
19918 that are shared in between type and its main variant.
19920 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19922 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19924 (ipa_set_ancestor_jf) Likewise.
19925 (check_stmt_for_type_change): Check that we work on main variant.
19926 (detect_type_change): Look into main variant.
19927 (compute_known_type_jump_func): Check that main variant has BINFO.
19929 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19931 * ipa-devirt.c (set_type_binfo): New function.
19932 (add_type_duplicate): Use it.
19933 (get_odr_type): Sanity check that binfos points to main variants.
19934 (get_class_context): Be sure the context's outer_type is main variant.
19935 (contains_type_p): Walk main variant.
19936 (get_polymorphic_call_info_for_decl): Set outer_type to be
19938 (get_polymorphic_call_info): Likewise.
19939 (possible_polymorphic_call_targets): Sanity check that we operate
19942 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
19944 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19946 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
19948 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19949 accidental change due to wide-int branch merge.
19951 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19953 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19954 compressed debug support.
19955 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19956 * configure: Regenerate.
19957 * config.in: Regenerate.
19958 * common.opt (compressed_debug_sections): New enum.
19959 (gz, gz=): New options.
19960 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19961 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19962 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19963 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19964 LINK_COMPRESS_DEBUG_SPEC.
19965 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19966 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19967 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19968 (Debugging Options): Document -gz[=type].
19970 2014-06-27 Martin Jambor <mjambor@suse.cz>
19973 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19974 args_to_skip, use those from node instead. Copy args_to_skip and
19975 combined_args_to_skip from node to the new thunk.
19976 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19977 (cgraph_create_virtual_clone): Moved computation of
19978 combined_args_to_skip...
19979 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19981 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
19983 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19984 redundant diagnostic machinary.
19986 2014-06-27 Richard Biener <rguenther@suse.de>
19988 * tree-ssa-math-opts.c (bswap_replace): Fix
19989 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19991 2014-06-27 Martin Liska <mliska@suse.cz>
19993 * gimple.h (gimple_location_safe): New function introduced.
19994 * cgraphunit.c (walk_polymorphic_call_targets): Usage
19995 of gimple_location_safe replaces gimple_location.
19996 (gimple_fold_call): Likewise.
19997 * ipa-devirt.c (ipa_devirt): Likewise.
19998 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19999 * ipa.c (walk_polymorphic_call_targets): Likewise.
20000 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
20002 2014-06-27 Jakub Jelinek <jakub@redhat.com>
20004 PR tree-optimization/57233
20005 PR tree-optimization/61299
20006 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
20008 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
20009 would be lowered to scalar shifts, check if corresponding
20010 shifts and vector BIT_IOR_EXPR are supported and don't lower
20011 or lower just to narrower vector type in that case.
20012 * expmed.c (expand_shift_1): Fix up handling of vector
20013 shifts and rotates.
20015 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
20018 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
20020 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
20022 * doc/invoke.texi (-fsemantic-interposition): Document.
20023 * common.opt (fsemantic-interposition): New flag.
20024 * varasm.c (decl_replaceable_p): Use it.
20026 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20029 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
20030 extraction other than index 3.
20032 2014-06-26 Teresa Johnson <tejohnson@google.com>
20034 * doc/invoke.texi: Fix typo.
20035 * dumpfile.c: Add support for documented -fdump-* options
20036 optimized/missed/note/optall.
20038 2014-06-26 Martin Jambor <mjambor@suse.cz>
20040 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
20041 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
20042 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
20043 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
20044 * opts.c (default_options_optimization): Set
20045 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
20046 * doc/invoke.texi (allow-load-data-races)
20047 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
20048 (allow-store-data-races): Document the new default.
20050 2014-06-26 Martin Jambor <mjambor@suse.cz>
20052 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
20053 renamed to ipa_impossible_devirt_target. Fix typo.
20054 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
20055 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
20056 ipa_impossible_devirt_target.
20058 2014-06-26 Richard Biener <rguenther@suse.de>
20060 PR tree-optimization/61607
20061 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
20062 explaining why we restrict copies on loop depth.
20063 * tree-ssa-dom.c (cprop_operand): Remove restriction on
20065 (record_equivalences_from_phis): Instead add it here.
20067 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
20069 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
20070 (LTO_WRAPPER_OBJS): New variable.
20071 (lto-wrapper$(exeext)): Use it.
20072 * collect2.c: Include "collect-utils.h".
20073 (verbose, debug): Remove variables.
20074 (at_file_supplied): No longer static.
20075 (tool_name): New variable.
20076 (do_wait, fork_execute, maybe_unlink): Don't declare.
20077 (tool_cleanup): No longer static.
20078 (notice): Remove function.
20079 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
20080 fork_execute calls.
20081 (collect_wait, do_wait, collect_execute): Remove functions.
20082 (maybe_unlink): No longer static.
20083 * collect2.h (verbose, debug): Don't declare.
20084 (at_file_supplied): Declare.
20085 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
20087 (collect_execute): Replace with implementation from collect2, plus a
20088 new arg use_atfile. All callers changed.
20089 (collect_wait): Replace with implementation from collect2.
20090 (maybe_unlink_file): Remove function.
20091 (fork_execute): Replace with implementation from collect2, plus a
20092 new arg use_atfile. All callers changed.
20093 (do_wait): Add call to utils_cleanup to the error path.
20094 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
20095 (tool_cleanup): Adjust declarations.
20096 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
20097 * tlink.c: Include "collect-utils.h".
20098 (tlink_execute): New arg use_atfile. All callers changed.
20099 (tlink_init, tlink_execute): Remove declarations.
20101 * collect-utils.c (save_temps): New variable.
20102 (do_wait): Use it instead of debug. Use fatal_error.
20103 * collect-utils.h (save_temps): Declare.
20104 * collect2.c (verbose): Rename from vflag. All uses changed.
20105 (tool_cleanup): New function, copied from collect_atexit.
20106 (collect_atexit, handler): Just call it.
20107 * collect2.h (verbose): Declaration renamed from vflag.
20108 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
20111 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
20112 (lto-wrapper$(exeext)): Link with collect-utils.o.
20113 * collect-utils.c: New file.
20114 * collect-utils.h: New file.
20115 * lto-wrapper.c: Include "collect-utils.h".
20116 (args_name): Delete variable.
20117 (tool_name): New variable.
20118 (tool_cleanup): New function.
20119 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
20120 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
20121 (fork_execute): Remove functions.
20123 2014-06-26 Nick Clifton <nickc@redhat.com>
20125 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
20127 * doc/extend.texi (Function Attributes): Fix typo in description
20128 of RX vector attribute.
20130 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20132 * config.gcc (supported_defaults): Error when passing either
20133 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
20135 2014-06-26 Richard Biener <rguenther@suse.de>
20137 * tree-ssa-dom.c (cprop_operand): Remove restriction on
20138 propagating volatile pointers.
20140 2014-06-26 Richard Biener <rguenther@suse.de>
20142 PR tree-optimization/61607
20143 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
20144 loop if we redirected its latch edge.
20145 (thread_block_1): Do not cancel loops prematurely.
20147 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
20149 * toplev.c (backend_init_target): Move init_emit_regs and
20151 (backend_init) ... here; skip ira_init_once and backend_init_target.
20152 (target_reinit) ... and here; clear
20153 this_target_rtl->lang_dependent_initialized.
20154 (lang_dependent_init_target): Clear
20155 this_target_rtl->lang_dependent_initialized;
20156 break out rtl initialization to ...
20157 (initialize_rtl): ... here; call also backend_init_target
20159 * toplev.h (initialize_rtl): New function.
20160 * function.c: Include toplev.h
20161 (init_function_start): Call initialize_rtl.
20162 * rtl.h (target_rtl): Add target_specific_initialized,
20163 lang_dependent_initialized.
20165 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
20166 Jakub Jelinek <jakub@redhat.com>
20168 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
20170 2014-06-25 Tom de Vries <tom@codesourcery.com>
20172 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
20174 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
20176 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
20177 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
20178 Issue a strict overflow warning if appropriate.
20180 2014-06-25 Martin Liska <mliska@suse.cz>
20182 IPA REF refactoring
20183 * Makefile.in: Removed header file (ipa-ref-inline.h).
20184 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
20186 (cgraph_speculative_call_info): Likewise.
20187 (cgraph_for_node_thunks_and_aliases): Likewise.
20188 (cgraph_for_node_and_aliases): Likewise.
20189 (verify_cgraph_node): Likewise.
20190 * cgraph.h: Batch of IPA REF functions become member functions of
20191 symtab_node: add_reference, maybe_add_reference, clone_references,
20192 clone_referring, clone_reference, find_reference,
20193 remove_stmt_references, remove_all_references,
20194 remove_all_referring, dump_references, dump_referring,
20195 has_alias_p, iterate_reference, iterate_referring.
20196 * cgraphbuild.c (record_reference): New IPA REF function used.
20197 (record_type_list): Likewise.
20198 (record_eh_tables): Likewise.
20199 (mark_address): Likewise.
20200 (mark_load): Likewise.
20201 (mark_store): Likewise.
20202 (pass_build_cgraph_edges): Likewise.
20203 (rebuild_cgraph_edge): Likewise.
20204 (cgraph_rebuild_references): Likewise.
20205 (pass_remove_cgraph_callee_edges): Likewise.
20206 * cgraphclones.c (cgraph_clone_node): Likewise.
20207 (cgraph_create_virtual_clone): Likewise.
20208 (cgraph_materialize_clone): Likewise.
20209 (cgraph_materialize_all_clones): Likewise.
20210 * cgraphunit.c (cgraph_reset_node): Likewise.
20211 (cgraph_reset_node): Likewise.
20212 (analyze_function): Likewise.
20213 (assemble_thunks_and_aliases): Likewise.
20214 (expand_function): Likewise.
20215 * ipa-comdats.c (propagate_comdat_group): Likewise.
20216 (enqueue_references): Likewise.
20217 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
20218 (create_specialized_node): Likewise.
20219 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
20220 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
20221 * ipa-inline.c (reset_edge_caches): Likewise.
20222 (update_caller_keys): Likewise.
20223 (execute): Likewise.
20224 * ipa-prop.c (remove_described_reference): Likewise.
20225 (propagate_controlled_uses): Likewise.
20226 (ipa_edge_duplication_hook): Likewise.
20227 (ipa_modify_call_arguments): Likewise.
20228 * ipa-pure-const.c (propagate_pure_const): Likewise.
20229 * ipa-ref-inline.h: Header file removed, functions moved
20230 to symtab_node class.
20231 * ipa-ref.c (remove_reference): New class member function.
20232 (cannot_lead_to_return): New class member function.
20233 (referring_ref_list): Likewise.
20234 (referred_ref_list): Likewise.
20235 Rest of functions moved to symtab_node class.
20236 * ipa-ref.h: New member functions remove_reference,
20237 cannot_lead_to_return, referring_ref_list, referred_ref_list added
20239 ipa_ref_list class has new member functions: first_reference,
20240 first_referring, clear, nreferences.
20241 * ipa-reference.c (analyze_function): New IPA REF function used.
20242 (write_node_summary_p): Likewise.
20243 (ipa_reference_write_optimization_summary): Likewise.
20244 * ipa-split.c (split_function): Likewise.
20245 * ipa-utils.c (ipa_reverse_postorder): Likewise.
20246 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
20247 (function_and_variable_visibility): Likewise.
20248 * ipa.c (has_addr_references_p): Likewise.
20249 (process_references): Argument type changed.
20250 (symtab_remove_unreachable_nodes): New IPA REF function used.
20251 (process_references): Likewise.
20252 (set_writeonly_bit): Likewise.
20253 * lto-cgraph.c: Implementation of new symtab_node member functions
20254 that uses new IPA REF functions.
20255 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
20257 * lto-streamer-out.c (output_symbol_p): Likewise.
20258 * lto-streamer.h (referenced_from_this_partition_p): Argument type
20260 * symtab.c: Implementation of new IPA REF API.
20261 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
20262 (ipa_tm_create_version): Likewise.
20263 (ipa_tm_execute): Likewise.
20264 * tree-emutls.c (gen_emutls_addr): Likewise.
20265 * tree-inline.c (copy_bb): Likewise.
20266 (delete_unreachable_blocks_update_callgraph): Likewise.
20267 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
20268 (varpool_for_node_and_aliases): Likewise.
20270 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
20272 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
20274 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
20277 * fold-const.c (fold_checksum_tree): Use a hash_table of const
20278 tree_node * instead of tree_node *.
20280 (print_fold_checksum): Likewise.
20281 (fold_check_failed): Likewise.
20282 (debug_fold_checksum): Likewise.
20283 (fold_build1_stat_loc): Likewise.
20284 (fold_build2_stat_loc): Likewise.
20285 (fold_build3_stat_loc): Likewise.
20286 (fold_build_call_array_loc): Likewise.
20288 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
20290 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
20291 implementation with call to...
20292 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
20294 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
20297 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
20299 PR tree-optimization/57742
20300 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
20301 after replacing the statement.
20303 2014-06-25 Nick Clifton <nickc@redhat.com>
20305 * config/v850/v850.c (GHS_default_section_names): Change to const
20307 (GHS_current_section_names): Likewise.
20308 (v850_insert_attributes): Do not build strings, just assign the
20309 names directly. Change the type of 'chosen_section' to const
20311 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
20312 directly to the array entry.
20313 * config/v850/v850.h (GHS_default_section_names): Change to const
20315 (GHS_current_section_names): Likewise.
20317 2014-06-25 Jakub Jelinek <jakub@redhat.com>
20319 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
20320 (LANG_HOOKS_DECLS): Add it.
20321 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
20323 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
20324 * langhooks.h (struct lang_hooks_for_decls): Add
20325 omp_clause_linear_ctor hook.
20326 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
20327 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
20328 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
20329 combined simd loop use omp_clause_linear_ctor hook.
20331 2014-06-24 Cong Hou <congh@google.com>
20333 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
20334 pattern recognition.
20335 (type_conversion_p): PROMOTION is true if it's a type promotion
20336 conversion, and false otherwise. Return true if the given expression
20337 is a type conversion one.
20338 * tree-vectorizer.h: Adjust the number of patterns.
20339 * tree.def: Add SAD_EXPR.
20340 * optabs.def: Add sad_optab.
20341 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
20342 * expr.c (expand_expr_real_2): Likewise.
20343 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20344 * gimple.c (get_gimple_rhs_num_ops): Likewise.
20345 * optabs.c (optab_for_tree_code): Likewise.
20346 * tree-cfg.c (estimate_operator_cost): Likewise.
20347 * tree-ssa-operands.c (get_expr_operands): Likewise.
20348 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
20349 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
20350 * doc/generic.texi: Add document for SAD_EXPR.
20351 * doc/md.texi: Add document for ssad and usad.
20353 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20355 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
20356 qualification in cast.
20358 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
20360 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
20361 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
20362 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
20363 (tree_function_decl): ... here.
20364 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
20365 streaming of vindex to ...
20366 (write_ts_function_decl_tree_pointers): ... here.
20367 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20368 Do not stream DECL_VINDEX.
20369 (lto_input_ts_function_decl_tree_pointers): Stream it here.
20371 2014-06-24 Catherine Moore <clm@codesourcery.com>
20372 Sandra Loosemore <sandra@codesourcery.com>
20374 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
20375 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
20376 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
20378 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
20380 * doc/invoke.texi (Warning Options): Remove duplicated
20381 -Wmaybe-uninitialized.
20383 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
20385 PR tree-optimization/57742
20386 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
20387 (handle_builtin_malloc, handle_builtin_memset): New functions.
20388 (strlen_optimize_stmt): Call them.
20389 * passes.def: Move strlen after loop+dom but before vrp.
20391 2014-06-24 Jakub Jelinek <jakub@redhat.com>
20394 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
20395 model family 6 CPU with has_longmode never use a CPU without
20398 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
20401 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
20404 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20406 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
20407 * dominance.c (iterate_fix_dominators): Use hash_map instead of
20409 * hash-map.h: New file.
20410 * ipa-comdats.c: Use hash_map instead of pointer_map.
20412 * lto-section-out.c: Adjust.
20413 * lto-streamer.h: Replace pointer_map with hash_map.
20414 * symtab.c (verify_symtab): Likewise.
20415 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20416 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20417 * tree-streamer.h: Likewise.
20418 * tree-streamer.c: Adjust.
20419 * pointer-set.h: Remove pointer_map.
20421 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20423 * hash-table.h: Add a template arg to choose between storing values
20424 and storing pointers to values, and then provide partial
20425 specializations for both.
20426 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20427 should store, not the type values should point to.
20428 * tree-into-ssa.c (var_info_hasher): Likewise.
20429 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20430 * tree-complex.c: Adjust.
20431 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20432 table instead of int_tree_map *.
20433 * tree-parloops.c: Adjust.
20434 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20435 type is being stored.
20436 * tree-vectorizer.c: Adjust.
20438 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
20440 * hash-table.h: Remove a layer of indirection from hash_table so that
20441 it contains the hash table's data instead of a pointer to the data.
20442 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20443 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20444 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20445 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20446 fold-const.c, gcse.c, ggc-common.c,
20447 gimple-ssa-strength-reduction.c, gimplify.c,
20448 graphite-clast-to-gimple.c, graphite-dependences.c,
20449 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20450 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20451 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20452 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20453 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20454 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20455 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20456 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20457 tree-ssa-live.c, tree-ssa-loop-im.c,
20458 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20459 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20460 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20461 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20462 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20463 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20464 vtable-verify.c, vtable-verify.h: Adjust.
20466 2014-06-24 Richard Biener <rguenther@suse.de>
20468 PR tree-optimization/61572
20469 * tree-ssa-sink.c (statement_sink_location): Do not sink
20470 loads from hard registers.
20472 2014-06-24 Jakub Jelinek <jakub@redhat.com>
20474 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20475 not mentioned in clauses use private clause if the iterator is
20476 declared in #pragma omp for simd, and when adding lastprivate
20477 instead, add it to the outer #pragma omp for too. Diagnose
20478 if the variable is private in outer context. For simd collapse > 1
20479 loops, replace all iterators with temporaries.
20480 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20481 same even in collapse > 1 loops.
20483 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20484 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20486 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20487 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20489 (gimplify_adjust_omp_clauses): Likewise.
20490 * omp-low.c (lower_rec_simd_input_clauses,
20491 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20492 safelen the same as safelen(1).
20493 * tree-nested.c (convert_nonlocal_omp_clauses,
20494 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
20495 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20496 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20497 Fixup handling of GIMPLE_OMP_TARGET.
20498 (convert_tramp_reference_stmt, convert_gimple_call): Handle
20501 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
20503 PR tree-optimization/61554
20504 * tree-ssa-propagate.c: Include "bitmap.h".
20505 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20506 properly update constructor/destructor.
20507 (substitute_and_fold_dom_walker::before_dom_children):
20508 Remove call to gimple_purge_dead_eh_edges, add bb->index to
20509 need_eh_cleaup instead.
20510 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20513 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20515 * varpool.c (dump_varpool_node): Dump used_by_single_function.
20516 * tree-pass.h (make_pass_ipa_single_use): New pass.
20517 * cgraph.h (used_by_single_function): New flag.
20518 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20520 * passes.def (pass_ipa_single_use): Scedule.
20521 * ipa.c (BOTTOM): New macro.
20522 (meet): New function
20523 (propagate_single_user): New function.
20524 (ipa_single_use): New function.
20525 (pass_data_ipa_single_use): New pass.
20526 (pass_ipa_single_use): New pass.
20527 (pass_ipa_single_use::gate): New gate.
20528 (make_pass_ipa_single_use): New function.
20530 2014-06-23 Kai Tietz <ktietz@redhat.com>
20533 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20534 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20536 2014-06-23 Richard Biener <rguenther@suse.de>
20538 * tree-ssa-loop.c (gate_loop): New function.
20539 (pass_tree_loop::gate): Call it.
20540 (pass_data_tree_no_loop, pass_tree_no_loop,
20541 make_pass_tree_no_loop): New.
20542 * tree-vectorizer.c: Include tree-scalar-evolution.c
20543 (pass_slp_vectorize::execute): Initialize loops and SCEV if
20545 (pass_slp_vectorize::clone): New method.
20546 * timevar.def (TV_TREE_NOLOOP): New.
20547 * tree-pass.h (make_pass_tree_no_loop): Declare.
20548 * passes.def (pass_tree_no_loop): New pass group with
20551 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
20554 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20555 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20557 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20559 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20560 "yes" where needed.
20562 2014-06-23 Alan Modra <amodra@gmail.com>
20565 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20566 to zero on debug statements.
20568 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20571 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20572 Ignore third operand if present by marking qualifier_internal.
20574 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20576 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20578 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20579 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20580 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20581 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20582 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20583 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20584 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20585 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20586 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20587 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20588 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20589 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20590 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20591 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20592 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20593 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20594 logic in GCC vector extensions
20596 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20597 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20598 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20599 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20600 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20601 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20602 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20603 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20604 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20605 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20607 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20609 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20612 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20613 (vget_low_s64): Use __GET_LOW macro.
20614 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20615 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20616 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20617 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20618 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20620 (vcombine_s64): Use GCC vector extensions; remove cast.
20621 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20622 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20623 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20624 Fix type signature; remove cast.
20626 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
20629 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20631 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20633 (BUILTIN_VD1): New.
20634 (BUILTIN_VD_RE): Remove.
20635 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20636 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20637 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20638 variant but not df.
20639 (vreinterpretv1df*, vreinterpret*v1df): New.
20640 (vreinterpretdf*, vreinterpret*df): Remove.
20641 * config/aarch64/aarch64-simd.md (aarch64_create,
20642 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20643 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20645 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20646 (vcreate_f64): Remove cast, use v1df builtin.
20647 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20648 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20649 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20650 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20651 vmov_n_f64, vst1_f64): Use gcc vector extensions.
20652 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20653 add range check using __builtin_aarch64_im_lane_boundsi.
20654 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20655 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20656 type signature, use gcc vector extensions.
20657 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20658 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20659 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20660 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20661 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20662 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20663 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20664 vreinterpret_u64_f64): Use v1df builtin not df.
20666 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
20668 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20671 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
20673 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20676 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20678 * loop-invariant.c (pre_check_invariant_p): New function.
20679 (find_invariant_insn): Call pre_check_invariant_p.
20681 2014-06-22 Richard Henderson <rth@redhat.com>
20684 * compare-elim.c (struct comparison): Add eh_note.
20685 (find_comparison_dom_walker::before_dom_children): Don't eliminate
20686 a redundant comparison in a different EH region. Purge EH edges if
20689 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20691 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20692 (var_shift): Use it.
20693 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20694 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20695 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20696 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20697 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20698 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20699 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20700 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20701 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20702 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20703 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20704 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20705 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20706 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20707 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20708 *rotldi3_internal15be): Use the new attribute. Merge register and
20709 integer alternatives.
20711 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20713 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20714 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20715 split, *ashrdi3_internal3 and split): Delete, merge into...
20716 (ashr<mode>3): New expander.
20717 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20718 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
20720 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20722 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20723 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20724 *rotldi3_internal3 and split): Delete, merge into...
20725 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20726 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
20727 Use "rotlw" extended mnemonic.
20729 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20731 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20732 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20733 and split, *ashldi3_internal3 and split): Delete, merge into...
20734 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20735 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
20737 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20739 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20740 (lshrsi3, two anonymous define_insns and define_splits,
20741 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20742 *lshrdi3_internal3 and split): Delete, merge into...
20743 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20744 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
20746 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
20748 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20749 Remove "O" alternative.
20751 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
20753 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20754 (mips_move_from_gpr_cost): Likewise.
20755 (mips_register_move_cost): Update accordingly.
20756 (mips_secondary_reload_class): Remove name of in_p.
20758 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
20761 * config/i386/i386.md (x86_64_shrd, x86_shrd,
20762 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20764 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
20766 * config/nios2/nios2.c: Include "builtins.h".
20768 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20770 * cgraph.h (tls_model_names): New variable.
20771 * print-tree.c (print_node): Simplify.
20772 * varpool.c (tls_model_names): New variable.
20773 (dump_varpool_node): Output tls model.
20775 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20777 * ipa-visibility.c (function_and_variable_visibility): Disable
20778 temporarily local aliases for some targets.
20780 2014-06-20 Marek Polacek <polacek@redhat.com>
20782 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20783 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20784 into SANITIZE_UNDEFINED.
20785 * doc/invoke.texi: Describe -fsanitize=bounds.
20786 * gimplify.c (gimplify_call_expr): Add gimplification of internal
20787 functions created in the FEs.
20788 * internal-fn.c: Move "internal-fn.h" after "tree.h".
20789 (expand_UBSAN_BOUNDS): New function.
20790 * internal-fn.def (UBSAN_BOUNDS): New internal function.
20791 * internal-fn.h: Don't define internal functions here.
20792 * opts.c (common_handle_option): Add -fsanitize=bounds.
20793 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20794 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20795 * tree-core.h: Define internal functions here.
20796 (struct tree_base): Add ifn field.
20797 * tree-pretty-print.c: Include "internal-fn.h".
20798 (dump_generic_node): Handle functions without CALL_EXPR_FN.
20799 * tree.c (get_callee_fndecl): Likewise.
20800 (build_call_expr_internal_loc): New function.
20801 * tree.def (CALL_EXPR): Update description.
20802 * tree.h (CALL_EXPR_IFN): Define.
20803 (build_call_expr_internal_loc): Declare.
20804 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20806 (ubsan_type_descriptor): Change bool parameter to enum
20807 ubsan_print_style. Adjust the code. Add handling of
20809 (ubsan_expand_bounds_ifn): New function.
20810 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20811 (ubsan_build_overflow_builtin): Likewise.
20812 (instrument_bool_enum_load): Likewise.
20813 (ubsan_instrument_float_cast): Likewise.
20814 * ubsan.h (enum ubsan_print_style): New enum.
20815 (ubsan_expand_bounds_ifn): Declare.
20816 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
20818 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
20820 * config/rs6000/rs6000.md: Append `DONE' to preparation
20821 statements of `bswap' pattern splitters.
20823 2014-06-20 Tom de Vries <tom@codesourcery.com>
20825 * target.def (call_fusage_contains_non_callee_clobbers): Update
20827 * doc/tm.texi: Regenerate.
20829 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20830 Max Ostapenko <m.ostapenko@partner.samsung.com>
20833 * asan.c (instrument_strlen_call): Fixed instrumentation of
20836 2014-06-20 Martin Jambor <mjambor@suse.cz>
20839 * ipa-prop.c (impossible_devirt_target): New function.
20840 (try_make_edge_direct_virtual_call): Use it, also instead of
20843 2014-06-20 Yury Gribov <y.gribov@samsung.com>
20844 Max Ostapenko <m.ostapenko@partner.samsung.com>
20847 * asan.c (build_check_stmt): Add condition.
20849 2014-06-20 Martin Jambor <mjambor@suse.cz>
20852 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20855 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20857 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20859 (VCONQ): Make comment more helpful.
20861 * config/aarch64/aarch64-simd.md
20862 (aarch64_sqdmulh_lane<mode>):
20863 Use VCOND for operands 2. Update lane checking and flipping logic.
20864 (aarch64_sqrdmulh_lane<mode>): Likewise.
20865 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20866 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20867 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20868 attribute of operand 3 to VCOND.
20869 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20870 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20871 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20872 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20873 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20874 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20876 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20877 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20878 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20879 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20880 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20881 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20882 operand to VCOND. Update lane flipping and bounds checking logic.
20883 (aarch64_sqdmlal2_lane<mode>): Likewise.
20884 (aarch64_sqdmlsl_lane<mode>): Likewise.
20885 (aarch64_sqdmull_lane<mode>): Likewise.
20886 (aarch64_sqdmull2_lane<mode>): Likewise.
20887 (aarch64_sqdmlal_laneq<mode>):
20888 Replace VCON usage with VCONQ.
20889 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20890 (aarch64_sqdmlal2_laneq<mode>): Emit
20891 aarch64_sqdmlal2_laneq<mode>_internal insn.
20892 Replace VCON with VCONQ.
20893 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20894 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20895 (aarch64_sqdmull_laneq<mode>): Emit
20896 aarch64_sqdmull_laneq<mode>_internal insn.
20897 Replace VCON with VCONQ.
20898 (aarch64_sqdmull2_laneq<mode>): Emit
20899 aarch64_sqdmull2_laneq<mode>_internal insn.
20900 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20901 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20902 of 3rd argument to int16x4_t.
20903 (vqdmlalh_lane_s16): Likewise.
20904 (vqdmlslh_lane_s16): Likewise.
20905 (vqdmull_high_lane_s16): Likewise.
20906 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20907 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20908 (vqdmlsl_lane_s16): Likewise.
20909 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20910 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20911 (vqdmlals_lane_s32): Likewise.
20912 (vqdmlsls_lane_s32): Likewise.
20913 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20914 (vqdmulls_lane_s32): Likewise.
20915 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20916 (vqdmlsl_lane_s32): Likewise.
20917 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20918 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20919 (vqrdmulhh_lane_s16): Likewise.
20920 (vqdmlsl_high_lane_s16): Likewise.
20921 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20922 (vqdmlsl_high_lane_s32): Likewise.
20923 (vqrdmulhs_lane_s32): Likewise.
20925 2014-06-20 Tom de Vries <tom@codesourcery.com>
20927 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20928 get_call_reg_set_usage.
20930 2014-06-20 Tom de Vries <tom@codesourcery.com>
20932 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20933 it contains all call_used_regs.
20935 2014-06-20 Tom de Vries <tom@codesourcery.com>
20937 * final.c (collect_fn_hard_reg_usage): Add and use variable
20938 function_used_regs.
20940 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
20942 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20943 (set_init_priority, get_init_priority, set_fini_priority,
20944 get_fini_priority): New methods.
20945 * tree.c (init_priority_for_decl): Remove.
20946 (init_ttree): Do not initialize init priority.
20947 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20948 (decl_priority_info): Remove.
20949 (decl_init_priority_insert): Rewrite.
20950 (decl_fini_priority_insert): Rewrite.
20951 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20952 tree_priority_map_marked_p): Remove.
20953 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20954 * lto-streamer-out.c (hash_tree): Do not hash priorities.
20955 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20956 not output priorities.
20957 (pack_ts_function_decl_value_fields): Likewise.
20958 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20959 not input priorities.
20960 (unpack_ts_function_decl_value_fields): Likewise.
20961 * symtab.c (symbol_priority_map): Declare.
20962 (init_priority_hash): Declare.
20963 (symtab_unregister_node): Unregister from priority hash, too.
20964 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20966 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20967 (symbol_priority_info): New function.
20968 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20970 * tree-core.h (tree_priority_map): Remove.
20972 2014-06-20 Jakub Jelinek <jakub@redhat.com>
20974 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20975 0xff to uint64_t before shifting it up.
20977 2014-06-20 Julian Brown <julian@codesourcery.com>
20978 Chung-Lin Tang <cltang@codesourcery.com>
20980 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20981 TARGET_THUMB1_ONLY. Add comments.
20983 2014-06-19 Tom de Vries <tom@codesourcery.com>
20985 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20986 return type to void.
20987 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20989 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20991 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20992 as "move", from depends_on.
20994 2014-06-19 Terry Guo <terry.guo@arm.com>
20996 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20999 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
21001 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
21003 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
21005 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
21008 * config/sh/sh.c (prepare_move_operands): Don't process TLS
21009 addresses here if reload in progress or completed.
21011 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
21013 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
21014 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
21015 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
21016 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
21017 (mips_register_priority): New function that implements the target
21018 hook TARGET_REGISTER_PRIORITY.
21019 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
21020 (mips_lra_p): Likewise for TARGET_LRA_P.
21021 (TARGET_REGISTER_PRIORITY): Define macro.
21022 (TARGET_SPILL_CLASS): Likewise.
21023 (TARGET_LRA_P): Likewise.
21024 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
21026 (REG_CLASS_NAMES): Likewise.
21027 (REG_CLASS_CONTENTS): Likewise.
21028 (BASE_REG_CLASS): Use M16_SP_REGS.
21029 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
21030 New set attribute to enable alternatives depending on the register
21032 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
21033 (*lea64): Disable pattern for MIPS16.
21034 * config/mips/mips.opt (mlra): New option.
21036 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
21038 * lra-constraints.c (base_to_reg): New function.
21039 (process_address): Use new function.
21041 2014-06-18 Tom de Vries <tom@codesourcery.com>
21043 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
21044 * config/aarch64/aarch64.c
21045 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
21046 (aarch64_emit_call_insn): New function.
21047 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
21049 * config/aarch64/aarch64.md (define_expand "call_internal")
21050 (define_expand "call_value_internal", define_expand "sibcall_internal")
21051 (define_expand "sibcall_value_internal"): New.
21052 (define_expand "call", define_expand "call_value")
21053 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
21054 expand variant and aarch64_emit_call_insn.
21056 2014-06-18 Radovan Obradovic <robradovic@mips.com>
21057 Tom de Vries <tom@codesourcery.com>
21059 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
21060 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21062 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
21063 clobbers to CALL_INSN_FUNCTION_USAGE.
21064 (define_expand "sibcall_internal")
21065 (define_expand "sibcall_value_internal"): New.
21066 (define_expand "call", define_expand "call_value"): Add argument to
21067 arm_emit_call_insn.
21068 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
21069 (define_expand "sibcall_value"): Use sibcall_value_internal and
21070 arm_emit_call_insn.
21072 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21074 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
21076 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21078 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
21081 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21083 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
21084 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
21085 annotations. Fix DWARF information.
21087 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21089 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
21090 __udivmoddi4, and fixups for negative operands.
21092 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21094 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
21096 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21098 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
21101 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21103 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
21106 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21108 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
21109 describing register usage on function entry and exit.
21111 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21113 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
21114 (__aeabi_ldivmod): Fix whitespace.
21116 2014-06-18 Andreas Schwab <schwab@suse.de>
21118 * doc/md.texi (Standard Names): Use @itemx for grouped items.
21119 Remove blank line after @item.
21121 2014-06-18 Richard Henderson <rth@redhat.com>
21124 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
21126 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
21128 * config/arm/arm.c (neon_vector_mem_operand): Allow register
21129 POST_MODIFY for neon loads and stores.
21130 (arm_print_operand): Output post-index register for neon loads and
21133 2014-06-18 Richard Biener <rguenther@suse.de>
21135 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
21137 2014-06-18 Richard Biener <rguenther@suse.de>
21139 * tree-pass.h (make_pass_dce_loop): Remove.
21140 * passes.def: Replace pass_dce_loop with pass_dce.
21141 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
21142 changed free niter estimates and reset the scev cache.
21143 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
21144 make_pass_dce_loop): Remove.
21145 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
21146 (fini_copy_prop): Return whether something changed. Always
21147 let substitute_and_fold perform DCE and free niter estimates
21148 and reset the scev cache if so.
21149 (execute_copy_prop): If sth changed schedule cleanup-cfg.
21150 (pass_data_copy_prop): Do not unconditionally schedule
21151 cleanup-cfg or update-ssa.
21153 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
21155 PR tree-optimization/61518
21156 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21157 reduction var is used in reduction stmt or phi-function only.
21159 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21161 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
21163 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
21165 PR tree-optimization/61517
21166 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
21167 whose rhs's first tree is the source expression instead of the
21169 (find_bswap_or_nop): Likewise.
21170 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
21171 gimple stmt whose rhs's first tree is the source. In the memory source
21172 case, move the stmt to be replaced close to one of the original load to
21173 avoid the problem of a store between the load and the stmt's original
21175 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
21178 2014-06-18 Andreas Schwab <schwab@suse.de>
21180 PR rtl-optimization/54555
21181 * postreload.c (move2add_use_add2_insn): Substitute
21182 STRICT_LOW_PART only if it is cheaper.
21184 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
21186 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
21187 Do not use unspec as call operand. Use memory_operand instead of
21188 memory_nox32_operand and add "m" operand constraint. Disable
21189 pattern for TARGET_X32.
21190 (*sibcall_pop_memory): Ditto.
21191 (*sibcall_value_memory): Ditto.
21192 (*sibcall_value_pop_memory): Ditto.
21193 (sibcall peepholes): Merge SImode and DImode patterns using
21194 W mode iterator. Use memory_operand instead of memory_nox32_operand.
21195 Disable pattern for TARGET_X32. Check if eliminated register is
21196 really dead after call insn. Generate call RTX without unspec operand.
21197 (sibcall_value peepholes): Ditto.
21198 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
21199 instead of memory_nox32_operand. Check if eliminated register is
21200 really dead after call insn. Generate call RTX without unspec operand.
21201 (sibcall_value_pop peepholes): Ditto.
21202 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
21204 2014-06-18 Terry Guo <terry.guo@arm.com>
21207 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
21210 2014-06-18 Olivier Hainque <hainque@adacore.com>
21212 * tree-core.h (tree_block): Add an "end_locus" field, allowing
21213 memorization of the end of block source location.
21214 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
21215 * gimplify.c (gimplify_bind_expr): Propagate the block start and
21216 end source location info we have on the block entry/exit code we
21219 2014-06-18 Richard Biener <rguenther@suse.de>
21221 * common.opt (fssa-phiopt): New option.
21222 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
21224 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
21225 * doc/invoke.texi (-fssa-phiopt): Document.
21227 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21229 * genattrtab.c (n_bypassed): New variable.
21230 (process_bypasses): Initialise n_bypassed.
21231 Count number of bypassed reservations.
21232 (make_automaton_attrs): Allocate space for bypassed reservations
21233 rather than number of bypasses.
21235 2014-06-18 Richard Biener <rguenther@suse.de>
21237 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
21238 we propagated anything.
21239 (substitute_and_fold_dom_walker::before_dom_children): Something
21240 changed if we propagated into PHI arguments.
21241 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
21244 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
21246 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
21248 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
21249 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
21250 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
21251 Introduces alternative way of loads group permutaions.
21252 (vect_transform_grouped_load): Try alternative way of permutations.
21254 2014-06-18 Jakub Jelinek <jakub@redhat.com>
21256 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
21257 changed in ORT_TARGET region, don't jump to do_outer.
21258 (struct gimplify_adjust_omp_clauses_data): New type.
21259 (gimplify_adjust_omp_clauses_1): Adjust for data being
21260 a struct gimplify_adjust_omp_clauses_data pointer instead
21261 of tree *. Pass pre_p as a new argument to
21262 lang_hooks.decls.omp_finish_clause hook.
21263 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
21264 splay_tree_foreach to pass both list_p and pre_p.
21265 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
21266 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
21267 gimplify_adjust_omp_clauses callers.
21268 * langhooks.c (lhd_omp_finish_clause): New function.
21269 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
21270 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
21271 * langhooks.h (struct lang_hooks_for_decls): Add a new
21272 gimple_seq * argument to omp_finish_clause hook.
21273 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
21274 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
21275 (scan_omp_parallel, lower_omp_for): When adding
21276 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
21277 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
21278 * tree-nested.c (convert_nonlocal_omp_clauses,
21279 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
21280 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
21282 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
21284 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
21285 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
21287 2014-06-17 Xinliang David Li <davidxl@google.com>
21289 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
21290 * passes.c (pass_init_dump_file): Do not set initialize
21291 flag to false unconditionally.
21293 2014-06-17 Richard Biener <rguenther@suse.de>
21295 * genopinit.c (main): Use vec<>::qsort method.
21296 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
21298 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
21300 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
21302 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
21303 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
21304 (mips_move_to_gpr_cost): Remove ST_REGS case.
21305 (mips_move_from_gpr_cost): Likewise.
21306 (mips_register_move_cost): Likewise.
21307 (mips_secondary_reload_class): Likewise.
21309 2014-06-17 Richard Biener <rguenther@suse.de>
21311 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
21312 (pass_all_optimizations): Move 3rd copy-prop pass from after
21313 fre to before ifcombine/phiopt.
21315 2014-06-17 Richard Biener <rguenther@suse.de>
21317 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
21318 and allow all blocks to be forwarders.
21320 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
21323 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
21324 variable 'size'; calculate 'size' right in the front; use
21325 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
21326 pcum->aapcs_stack_words.
21328 2014-06-17 Nick Clifton <nickc@redhat.com>
21330 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
21331 (umulhi3, mulsidi3, umulsidi3): Likewise.
21333 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
21335 PR middle-end/61508
21336 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
21337 check for section name.
21339 2014-06-17 Richard Biener <rguenther@suse.de>
21341 * tree-ssa-propagate.c: Include domwalk.h.
21342 (substitute_and_fold): Outline main worker into a domwalker ...
21343 (substitute_and_fold_dom_walker::before_dom_children): ... here.
21344 Schedule stmts we can fully propagate for removal. Remove
21346 (substitute_and_fold): Apply a dominator walk to perform
21347 substitution. Process stmts scheduled for removal here.
21349 2014-06-17 Richard Biener <rguenther@suse.de>
21351 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
21352 of PHI node moving.
21354 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
21356 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
21357 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
21358 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21359 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
21360 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
21362 (get_fpscr) : Likewise.
21364 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
21366 PR rtl-optimization/61325
21367 * lra-constraints.c (valid_address_p): Add forward declaration.
21368 (simplify_operand_subreg): Check address validity before and after
21369 alter_reg of memory subreg.
21371 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
21373 * config/i386/i386.c (decide_alg): Correctly handle
21374 maximum size of stringop algorithm.
21376 2014-06-16 Yury Gribov <y.gribov@samsung.com>
21378 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
21380 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
21382 PR rtl-optimization/61522
21383 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
21385 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
21388 * symtab.c (symtab_node::reset_section): New method.
21389 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21391 * cgraph.h (reset_section): Declare.
21392 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21393 do not consider comdat locals.
21394 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21396 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21397 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21398 reset sections of symbols dragged out of the comdats.
21399 (function_and_variable_visibility): Reset sections of
21402 2014-06-16 Richard Biener <rguenther@suse.de>
21404 PR tree-optimization/61482
21405 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
21406 [-INF(OVF), +INF(OVF)] range.
21408 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21410 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
21411 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21412 handling 32-bit multiplication.
21414 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
21416 PR middle-end/61430
21417 * lra-lives.c (process_bb_lives): Skip creating copy during
21418 insn scan when src/dest has constrained to same regno.
21420 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
21422 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21423 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21425 2014-06-16 Yury Gribov <y.gribov@samsung.com>
21427 * asan.c (check_func): New function.
21428 (maybe_create_ssa_name): Likewise.
21429 (build_check_stmt_with_calls): Likewise.
21430 (use_calls_p): Likewise.
21431 (report_error_func): Change interface.
21432 (build_check_stmt): Allow non-integer lengths; add support
21434 (asan_instrument): Likewise.
21435 (instrument_mem_region_access): Moved code to build_check_stmt.
21436 (instrument_derefs): Likewise.
21437 (instrument_strlen_call): Likewise.
21438 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21439 * doc/invoke.texi: Describe new parameter.
21440 * params.def: Define new parameter.
21441 * params.h: Likewise.
21442 * sanitizer.def: Describe new builtins.
21444 2014-06-16 Richard Biener <rguenther@suse.de>
21446 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21447 Make all defs available at the end.
21448 (eliminate): If we remove a PHI node schedule cfg-cleanup.
21450 2014-06-18 Jakub Jelinek <jakub@redhat.com>
21453 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21455 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
21458 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21459 initialization. Replace remaining use of uid.
21461 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
21463 * c-family/c-common.c (handle_tls_model_attribute): Use
21464 set_decl_tls_model.
21465 * c-family/c-common.c (handle_tls_model_attribute): Use
21466 set_decl_tls_model.
21467 * cgraph.h (struct varpool_node): Add tls_model.
21468 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21469 * tree.h (DECL_TLS_MODEL): Update.
21470 (DECL_THREAD_LOCAL_P): Check that variable is static.
21471 (decl_tls_model): Declare.
21472 (set_decl_tls_model): Declare.
21473 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21474 set symbol prorperties.
21475 (get_emutls_init_templ_addr): Cleanup.
21476 (new_emutls_decl): Update.
21477 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21478 (lto_input_varpool_node): Likewise.
21479 * lto-streamer-out.c (hash_tree): Likewise.
21480 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21481 not stream DECL_TLS_MODEL.
21482 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21483 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21485 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21487 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21489 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21491 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21492 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21494 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21495 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21496 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21497 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21498 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21499 (df_get_artificial_defs, df_get_artificial_uses)
21500 (df_single_def, df_single_use): Update accordingly.
21501 (df_refs_chain_dump): Take the first element in a linked list as
21502 parameter, rather than a pointer to an array of pointers.
21503 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21504 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21505 (df_chain_create_bb_process_use): Likewise.
21506 (df_md_bb_local_compute_process_def): Likewise.
21507 * fwprop.c (process_defs, process_uses): Likewise.
21508 (register_active_defs, update_uses): Likewise.
21509 (forward_propagate_asm): Update for new df_ref linking.
21510 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21511 (df_null_ref_rec, df_null_mw_rec): Likewise.
21512 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21514 (df_scan_free_bb_info): Remove check for null artificial_defs.
21515 (df_install_ref_incremental): Adjust for new df_ref linking.
21516 Use a single-element insertion rather than a full sort.
21517 (df_ref_chain_delete_du_chain): Take the first element
21518 in a linked list as parameter, rather than a pointer to an array of
21520 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21521 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21522 (df_insn_info_delete): Remove check for null defs and call to
21523 df_scan_free_mws_vec.
21524 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21525 null rather than df_null_*_rec.
21526 (df_insn_rescan_debug_internal): Likewise, and update null
21527 checks in the same way. Remove check for null defs.
21528 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21529 Move a single element rather doing a full sort.
21530 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21532 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
21533 Initialize df_ref and df_mw_hardreg lists to null rather than
21535 (df_ref_compare): Take df_refs as parameter, transferring the
21536 old interface to...
21537 (df_ref_ptr_compare): ...this new function.
21538 (df_sort_and_compress_refs): Update accordingly.
21539 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21540 old interface to...
21541 (df_mw_ptr_compare): ...this new function.
21542 (df_sort_and_compress_mws): Update accordingly.
21543 (df_install_refs, df_install_mws): Return a linked list rather than
21544 an array of pointers.
21545 (df_refs_add_to_chains): Assert that old lists are empty rather
21547 (df_insn_refs_verify): Don't handle null defs speciailly.
21548 * web.c (union_match_dups): Update for new df_ref linking.
21550 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21552 * df.h (df_ref_create, df_ref_remove): Delete.
21553 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21554 (df_ref_remove): Likewise.
21556 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21558 * df.h (df_single_def, df_single_use): New functions.
21559 * ira.c (find_moveable_pseudos): Use them.
21561 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21563 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21564 * df-problems.c (df_note_bb_compute): Use it.
21565 * regstat.c (regstat_bb_compute_ri): Likewise.
21567 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21569 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21570 * cse.c (cse_extended_basic_block): Use them.
21571 * dce.c (mark_artificial_use): Likewise.
21572 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21573 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21574 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21575 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21576 (df_simulate_initialize_backwards): Likewise.
21577 (df_simulate_finalize_backwards): Likewise.
21578 (df_simulate_initialize_forwards): Likewise.
21579 (df_md_simulate_artificial_defs_at_top): Likewise.
21580 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21581 * regrename.c (init_rename_info): Likewise.
21582 * regstat.c (regstat_bb_compute_ri): Likewise.
21583 (regstat_bb_compute_calls_crossed): Likewise.
21585 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
21587 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21588 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21589 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21590 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21591 * combine.c (create_log_links): Likewise.
21592 * compare-elim.c (find_flags_uses_in_insn): Likewise.
21593 (try_eliminate_compare): Likewise.
21594 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21595 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21596 (remove_reg_equal_equiv_notes_for_defs): Likewise.
21597 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21598 (word_dce_process_block, dce_process_block): Likewise.
21599 * ddg.c (def_has_ccmode_p): Likewise.
21600 * df-core.c (df_bb_regno_first_def_find): Likewise.
21601 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21602 * df-problems.c (df_rd_simulate_one_insn): Likewise.
21603 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21604 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21605 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21606 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21607 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21608 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21609 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21610 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21611 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21612 * fwprop.c (local_ref_killed_between_p): Likewise.
21613 (all_uses_available_at, free_load_extend): Likewise.
21614 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21615 * hw-doloop.c (scan_loop): Likewise.
21616 * ifcvt.c (dead_or_predicable): Likewise.
21617 * init-regs.c (initialize_uninitialized_regs): Likewise.
21618 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21619 (process_bb_node_lives): Likewise.
21620 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21621 (find_moveable_pseudos): Likewise.
21622 * loop-invariant.c (check_dependencies, record_uses): Likewise.
21623 * recog.c (peep2_find_free_register): Likewise.
21624 * ree.c (get_defs): Likewise.
21625 * regstat.c (regstat_bb_compute_ri): Likewise.
21626 (regstat_bb_compute_calls_crossed): Likewise.
21627 * sched-deps.c (find_inc, find_mem): Likewise.
21628 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21629 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21630 * shrink-wrap.c (requires_stack_frame_p): Likewise.
21631 (prepare_shrink_wrap): Likewise.
21632 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21633 * web.c (union_defs, pass_web::execute): Likewise.
21634 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21635 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21637 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
21639 * lra-assign.c (assign_by_spills): Add code to assign vector regs
21640 to inheritance pseudos.
21641 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21643 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
21646 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21647 (BU_MISC_2): Rename to ...
21648 (BU_LDBL128_2): ... this.
21649 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21650 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21651 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21652 RS6000_BTM_LDBL128.
21653 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21654 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21655 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21656 (unpacktf_1): Likewise.
21657 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21658 (__builtin_longdouble_dw1): Likewise.
21659 * doc/sourcebuild.texi (longdouble128): Document.
21661 2014-06-13 Jeff Law <law@redhat.com>
21663 PR rtl-optimization/61094
21664 PR rtl-optimization/61446
21665 * ree.c (combine_reaching_defs): Get the mode for the copy from
21666 the extension insn rather than the defining insn.
21668 2014-06-13 Dehao Chen <dehao@google.com>
21670 * dwarf2out.c (add_linkage_name): Emit more linkage name.
21672 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
21674 * doc/install.texi (--enable-linker-plugin-configure-flags)
21675 (--enable-linker-plugin-flags): Document new flags.
21677 2014-06-13 Martin Jambor <mjambor@suse.cz>
21680 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21681 cache_token if returning early.
21683 2014-06-13 Nick Clifton <nickc@redhat.com>
21685 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21686 requested alignment is active.
21687 (LABEL_ALIGN): Likewise.
21688 (LOOP_ALIGN): Likewise.
21690 2014-06-13 Richard Biener <rguenther@suse.de>
21692 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21693 Rewrite to propagate the VN result into all uses where
21694 possible and to remove stmts becoming dead because of that.
21695 (eliminate): Generalize stmt removal handling, remove in
21696 reverse dominator order to support proper debug stmt
21697 generation. Update stmts before removing stmts.
21698 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21700 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
21702 PR tree-optimization/61375
21703 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21704 symbolic number cannot be represented in an uint64_t.
21705 (find_bswap_or_nop_1): Likewise.
21707 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21709 * symtab.c (symtab_node::reset_section): New method.
21710 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21712 * cgraph.h (reset_section): Declare.
21713 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21714 do not consider comdat locals.
21715 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21717 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21718 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21719 reset sections of symbols dragged out of the comdats.
21720 (function_and_variable_visibility): Reset sections of
21723 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
21725 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21726 to use symtab and decl_binds_to_current_def_p
21727 * tree-vectorizer.c (increase_alignment): Increase alignment
21728 of alias target, too.
21730 2014-06-12 Jakub Jelinek <jakub@redhat.com>
21732 PR middle-end/61486
21733 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21734 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21735 if outer combined construct is distribute.
21736 (gimplify_omp_for): For OMP_DISTRIBUTE set
21737 gimplify_omp_ctxp->distribute.
21738 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21739 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21740 mapping into decl map.
21742 2014-06-12 Jason Merrill <jason@redhat.com>
21744 * common.opt (fabi-version): Change default to 0.
21746 2014-06-12 Jason Merrill <jason@redhat.com>
21748 * toplev.c (process_options): Reject -fabi-version=1.
21750 2014-06-12 Jeff Law <law@redhat.com>
21752 PR tree-optimization/61009
21753 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21754 value when we stop processing a block due to problematic PHIs.
21756 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
21758 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21759 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21760 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21761 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21762 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21763 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21764 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21765 are not in the spec.
21767 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
21770 * config/aarch64/aarch64-modes.def: Add V1DFmode.
21771 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21774 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
21776 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21778 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
21781 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21782 loading from address spaces.
21784 2014-06-12 Martin Liska <mliska@suse.cz>
21787 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21788 statement is reachable.
21790 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
21792 * symtab.c (section_hash): New hash.
21793 (symtab_unregister_node): Clear section before freeing.
21794 (hash_section_hash_entry): New haser.
21795 (eq_sections): New function.
21796 (symtab_node::set_section_for_node): New method.
21797 (set_section_1): Update.
21798 (symtab_node::set_section): Take string instead of tree as parameter.
21799 (symtab_resolve_alias): Update.
21800 * cgraph.h (section_hash_entry_d): New structure.
21801 (section_hash_entry): New typedef.
21802 (cgraph_node): Change comdat_group_ to x_comdat_group,
21803 change section_ to x_section and turn into section_hash_entry;
21804 update accestors; put set_section_for_node offline.
21805 * tree.c (decl_section_name): Turn into string.
21806 (set_decl_section_name): Change parameter to be string.
21807 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21808 * sdbout.c (sdbout_one_type): Update.
21809 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21810 * varasm.c (IN_NAMED_SECTION, get_named_section,
21811 resolve_unique_section, hot_function_section, get_named_text_section,
21812 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21813 make_decl_rtl, default_unique_section): Update.
21814 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21815 (c6x_elf_unique_section): Update.
21816 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21817 * config/pa/pa.c (pa_function_section): Update.
21818 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21819 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21820 * config/arc/arc.c (arc_in_small_data_p): Update.
21821 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21822 * config/mcore/mcore.c (mcore_unique_section): Update.
21823 * config/mips/mips.c (mips16_build_function_stub): Update.
21824 (mips16_build_call_stub): Update.
21825 (mips_function_rodata_section): Update.
21826 (mips_in_small_data_p): Update.
21827 * config/score/score.c (score_in_small_data_p): Update.
21828 * config/rx/rx.c (rx_in_small_data): Update.
21829 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21830 (rs6000_xcoff_asm_named_section): Update.
21831 (rs6000_xcoff_unique_section): Update.
21832 * config/frv/frv.c (frv_string_begins_with): Update.
21833 (frv_in_small_data_p): Update.
21834 * config/v850/v850.c (v850_encode_data_area): Update.
21835 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21836 (bfin_handle_l1_data_attribute): Update.
21837 (bfin_handle_l2_attribute): Update.
21838 * config/mep/mep.c (mep_unique_section): Update.
21839 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21841 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21842 (h8300_handle_tiny_data_attribute): Update.
21843 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21844 (m32r_in_small_data_p): Update.
21845 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21846 * config/i386/i386.c (ix86_in_large_data_p): Update.
21847 * config/i386/winnt.c (i386_pe_unique_section): Update.
21848 * config/darwin.c (darwin_function_section): Update.
21849 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21850 * tree-emutls.c (get_emutls_init_templ_addr): Update.
21851 (new_emutls_decl): Update.
21852 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21853 input_varpool_node): Update.
21854 (ead_string_cst): Turn to ...
21855 (read_string): ... this one.
21856 * dwarf2out.c (secname_for_decl): Update.
21857 * asan.c (asan_protect_global): Update.
21859 2014-06-11 DJ Delorie <dj@redhat.com>
21861 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21863 * config/rx/rx.c (rx_option_override): Likewise.
21864 (rx_align_for_label): Likewise.
21866 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21868 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
21870 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21873 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21875 * common.md: New file.
21876 * doc/md.texi: Update description of generic, machine-independent
21878 * config/s390/constraints.md (e): Delete.
21879 * Makefile.in (md_file): Include common.md.
21880 * config/m32c/t-m32c (md_file): Likewise.
21881 * genpreds.c (general_mem): New array.
21882 (generic_constraint_letters): Remove constraints now defined by
21884 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21885 Allow the first character to be '<' or '>' as well.
21886 * genoutput.c (general_mem): New array.
21887 (indep_constraints): Remove constraints now defined by common.md.
21888 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21889 Remove special handling of 'm'.
21890 * ira-costs.c (record_reg_classes): Remove special handling of
21891 constraints now defined by common.md.
21892 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21893 * ira-lives.c (single_reg_class): Likewise.
21894 (ira_implicitly_set_insn_hard_regs): Likewise.
21895 * lra-constraints.c (reg_class_from_constraints): Likewise.
21896 (process_alt_operands, process_address, curr_insn_transform): Likewise.
21897 * postreload.c (reload_cse_simplify_operands): Likewise.
21898 * reload.c (push_secondary_reload, scratch_reload_class)
21899 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21900 * reload1.c (maybe_fix_stack_asms): Likewise.
21901 * targhooks.c (default_secondary_reload): Likewise.
21902 * stmt.c (parse_output_constraint): Likewise.
21903 * recog.c (preprocess_constraints): Likewise.
21904 (constrain_operands, peep2_find_free_register): Likewise.
21905 (asm_operand_ok): Likewise, but add a comment saying why 'o'
21906 must be handled specially.
21908 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21910 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21911 * genpreds.c (have_const_dbl_constraints): Delete.
21912 (add_constraint): Don't set it.
21913 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21914 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21915 constraints using the lookup_constraint logic.
21916 * ira-lives.c (single_reg_class): Likewise.
21917 * ira.c (ira_setup_alts): Likewise.
21918 * lra-constraints.c (process_alt_operands): Likewise.
21919 * recog.c (asm_operand_ok, constrain_operands): Likewise.
21920 * reload.c (find_reloads): Likewise.
21922 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21924 * genpreds.c (const_int_start, const_int_end): New variables.
21925 (choose_enum_order): Output CONST_INT constraints before memory
21927 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21929 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21930 * ira.c (ira_setup_alts): Likewise.
21931 * lra-constraints.c (process_alt_operands): Likewise.
21932 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21933 * reload.c (find_reloads): Likewise.
21935 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21937 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21938 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
21939 * recog.c (preprocess_constraints): Update accordingly.
21941 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21943 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21944 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21945 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21946 * genpreds.c (print_type_tree): New function.
21947 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21948 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21949 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21950 Write out enum constraint_type and get_constraint_type.
21951 * lra-constraints.c (satisfies_memory_constraint_p): Take a
21952 constraint_num rather than a constraint string.
21953 (satisfies_address_constraint_p): Likewise.
21954 (reg_class_from_constraints): Avoid old constraint macros.
21955 (process_alt_operands, process_address_1): Likewise.
21956 (curr_insn_transform): Likewise.
21957 * ira-costs.c (record_reg_classes): Likewise.
21958 (record_operand_costs): Likewise.
21959 * ira-lives.c (single_reg_class): Likewise.
21960 (ira_implicitly_set_insn_hard_regs): Likewise.
21961 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21962 * postreload.c (reload_cse_simplify_operands): Likewise.
21963 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21964 (constrain_operands, peep2_find_free_register): Likewise.
21965 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21966 (find_reloads, alternative_allows_const_pool_ref): Likewise.
21967 * reload1.c (maybe_fix_stack_asms): Likewise.
21968 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21969 * targhooks.c (default_secondary_reload): Likewise.
21970 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21971 to EXTRA_CONSTRAINT_STR.
21972 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21974 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21976 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21977 (write_constraint_satisfied_p_array): ...this new function.
21978 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21980 (write_insn_preds_c): Update accordingly.
21982 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21984 * genpreds.c (write_lookup_constraint): Rename to...
21985 (write_lookup_constraint_1): ...this.
21986 (write_lookup_constraint_array): New function.
21987 (write_tm_preds_h): Define lookup_constraint as an inline function
21988 that uses write_lookup_constraint_array where possible.
21989 (write_insn_preds_c): Update for the changes above.
21991 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
21993 * doc/md.texi (regclass_for_constraint): Rename to...
21994 (reg_class_for_constraint): ...this.
21995 * genpreds.c (num_constraints, enum_order, register_start)
21996 (register_end, satisfied_start, memory_start, memory_end)
21997 (address_start, address_end): New variables.
21998 (add_constraint): Count the number of constraints.
21999 (choose_enum_order): New function.
22000 (write_enum_constraint_num): Iterate over enum_order.
22001 (write_regclass_for_constraint): Rename to...
22002 (write_reg_class_for_constraint_1): ...this and update output
22004 (write_constraint_satisfied_p): Rename to...
22005 (write_constraint_satisfied_p_1): ...this and update output
22006 accordingly. Do nothing if all extra constraints are register
22008 (write_insn_extra_memory_constraint): Delete.
22009 (write_insn_extra_address_constraint): Delete.
22010 (write_range_function): New function.
22011 (write_tm_preds_h): Define constraint_satisfied_p and
22012 reg_class_for_constraint as inline functions that do a range check
22013 before calling the out-of-line function. Use write_range_function
22014 to implement insn_extra_{register,memory,address}_constraint,
22015 the first of which is new.
22016 (write_insn_preds_c): Update after above changes to write_* functions.
22017 (main): Call choose_enum_order.
22019 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
22021 PR tree-optimization/61306
22022 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
22023 expression instead of its size.
22024 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
22025 false to prevent optimization when the result is unpredictable due to
22026 arithmetic right shift of signed type with highest byte is set.
22027 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
22028 (init_symbolic_number): Likewise.
22029 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
22030 when the result is unpredictable due to sign extension.
22032 2014-06-11 Terry Guo <terry.guo@arm.com>
22034 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
22035 (*thumb1_addsi3): Ditto.
22036 (*thumb_subdi3): Ditto.
22037 (thumb1_subsi3_insn): Ditto.
22038 (*thumb_mulsi3): Ditto.
22039 (*thumb_mulsi3_v6): Ditto.
22040 (*thumb1_andsi3_insn): Ditto.
22041 (thumb1_bicsi3): Ditto.
22042 (*thumb1_iorsi3_insn): Ditto.
22043 (*thumb1_xorsi3_insn): Ditto.
22044 (*thumb1_ashlsi3): Ditto.
22045 (*thumb1_ashrsi3): Ditto.
22046 (*thumb1_lshrsi3): Ditto.
22047 (*thumb1_rotrsi3): Ditto.
22048 (*thumb1_negdi2): Ditto.
22049 (*thumb1_negsi2): Ditto.
22050 (*thumb1_abssi2): Ditto.
22051 (*thumb1_neg_abssi2): Ditto.
22052 (*thumb1_one_cmplsi2): Ditto.
22053 (*thumb1_zero_extendhisi2): Ditto.
22054 (*thumb1_zero_extendqisi2): Ditto.
22055 (*thumb1_zero_extendqisi2_v6): Ditto.
22056 (thumb1_extendhisi2): Ditto.
22057 (thumb1_extendqisi2): Ditto.
22058 (*thumb1_movdi_insn): Ditto.
22059 (*thumb1_movsi_insn): Ditto.
22060 (*thumb1_movhi_insn): Ditto.
22061 (thumb_movhi_clobber): Ditto.
22062 (*thumb1_movqi_insn): Ditto.
22063 (*thumb1_movhf): Ditto.
22064 (*thumb1_movsf_insn): Ditto.
22065 (*thumb_movdf_insn): Ditto.
22066 (movmem12b): Ditto.
22068 (cbranchqi4): Ditto.
22069 (cbranchsi4_insn): Ditto.
22070 (cbranchsi4_scratch): Ditto.
22071 (*negated_cbranchsi4): Ditto.
22072 (*tbit_cbranch): Ditto.
22073 (*tlobits_cbranch): Ditto.
22074 (*tstsi3_cbranch): Ditto.
22075 (*cbranchne_decr1): Ditto.
22076 (*addsi3_cbranch): Ditto.
22077 (*addsi3_cbranch_scratch): Ditto.
22078 (*thumb_cmpdi_zero): Ditto.
22079 (cstoresi_eq0_thumb1): Ditto.
22080 (cstoresi_ne0_thumb1): Ditto.
22081 (*cstoresi_eq0_thumb1_insn): Ditto.
22082 (*cstoresi_ne0_thumb1_insn): Ditto.
22083 (cstoresi_nltu_thumb1): Ditto.
22084 (cstoresi_ltu_thumb1): Ditto.
22085 (thumb1_addsi3_addgeu): Ditto.
22086 (*thumb_jump): Ditto.
22087 (*call_reg_thumb1_v5): Ditto.
22088 (*call_reg_thumb1): Ditto.
22089 (*call_value_reg_thumb1_v5): Ditto.
22090 (*call_value_reg_thumb1): Ditto.
22091 (*call_insn): Ditto.
22092 (*call_value_insn): Ditto.
22093 (thumb1_casesi_internal_pic): Ditto.
22094 (thumb1_casesi_dispatch): Ditto.
22095 (*thumb1_indirect_jump): Ditto.
22096 (prologue_thumb1_interwork): Ditto.
22097 (*epilogue_insns): Ditto.
22098 (consttable_1): Ditto.
22099 (consttable_2): Ditto.
22100 (tablejump): Ditto.
22101 (*thumb1_tablejump): Ditto.
22102 (thumb_eh_return): Ditto.
22103 (define_peephole2): Two of them are thumb1 only and got moved into
22104 new file thumb1.md.
22105 (define_split): Six of them are thumb1 only and got moved into new
22107 * config/arm/thumb1.md: New file comprised of above thumb1 only
22110 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22112 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
22113 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
22115 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
22116 (aarch64_crc_builtin_datum): New struct.
22117 (aarch64_crc_builtin_data): New.
22118 (aarch64_init_crc32_builtins): New function.
22119 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
22120 (aarch64_crc32_expand_builtin): New.
22121 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
22122 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
22123 __ARM_FEATURE_CRC32 when appropriate.
22124 (TARGET_CRC32): Define.
22125 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
22126 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
22127 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
22128 (aarch64_<crc_variant>): New pattern.
22129 * config/aarch64/arm_acle.h: New file.
22130 * config/aarch64/iterators.md (CRC): New int iterator.
22131 (crc_variant, crc_mode): New int attributes.
22132 * doc/aarch64-acle-intrinsics.texi: New file.
22133 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
22134 Include aarch64-acle-intrinsics.texi.
22136 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
22138 * tree-vect-data-refs.c (vect_grouped_store_supported): New
22139 check for stores group of length 3.
22140 (vect_permute_store_chain): New permutations for stores group of
22142 * tree-vect-stmts.c (vect_model_store_cost): Change cost
22143 of vec_perm_shuffle for the new permutations.
22145 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
22147 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
22148 table rewriting temporarily on targets not supporting ONE_ONLY.
22150 2014-06-11 Richard Biener <rguenther@suse.de>
22152 PR middle-end/61437
22154 2014-06-04 Richard Biener <rguenther@suse.de>
22156 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22157 TREE_PUBLIC and DECL_EXTERNAL decls.
22159 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
22161 * varasm.c (set_implicit_section): New function.
22162 (resolve_unique_section): Use it to set implicit section
22164 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
22165 (default_function_section): Likewise.
22166 (decl_binds_to_current_def_p): Constify argument.
22167 * varasm.h (decl_binds_to_current_def_p): Update prototype.
22168 * asan.c (asan_protect_global): Use
22169 symtab_get_node (decl)->implicit_section.
22170 * symtab.c (dump_symtab_base): Dump implicit sections.
22171 (verify_symtab_base): Verify sanity of sectoins and comdats.
22172 (symtab_resolve_alias): Alias share the section of its target.
22173 (set_section_1): New function.
22174 (symtab_node::set_section): Move here, recurse to aliases.
22175 (verify_symtab): Check for duplicated symtab lists.
22176 * tree-core.h (implicit_section_name_p): Remove.
22177 * tree-vect-data-refs.c: Include varasm.h.
22178 (vect_can_force_dr_alignment_p): Fix conditional on when
22179 decl bints to current definition; use
22180 symtab_get_node (decl)->implicit_section.
22181 * cgraph.c (cgraph_make_node_local_1): Fix section set.
22182 * cgraph.h (struct symtab_node): Add implicit_section.
22183 (set_section): Rename to ...
22184 (set_section_for_node): ... this one.
22185 (set_section): Declare.
22186 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
22187 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22188 input_overwrite_node, input_varpool_node): Stream implicit_section.
22189 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
22190 removal; it will fail in LTO.
22192 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22194 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
22195 Change second alternative type to f_mcr.
22196 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
22197 and 12th alternatives' types to f_mcr and f_mrc.
22198 (*movdi_aarch64): Same for 12th and 13th alternatives.
22199 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
22200 (aarch64_movtilow_tilow): Change type to fmov.
22202 2014-06-10 Jiong Wang <jiong.wang@arm.com>
22204 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
22205 (aarch64_save_or_restore_callee_save_registers): Fix layout.
22207 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22209 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
22211 (aarch64_sqrdmulh_lane<mode>): Likewise.
22212 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22213 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22214 (aarch64_sqdmulh_laneq<mode>): New expander.
22215 (aarch64_sqrdmulh_laneq<mode>): Likewise.
22216 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
22217 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
22218 (aarch64_sqdmulh_lane<mode>): New expander.
22219 (aarch64_sqrdmulh_lane<mode>): Likewise.
22220 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22221 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22222 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
22223 (aarch64_sqdmlal_laneq<mode>): Likewise.
22224 (aarch64_sqdmlsl_lane<mode>): Likewise.
22225 (aarch64_sqdmlsl_laneq<mode>): Likewise.
22226 (aarch64_sqdmlal2_lane<mode>): Likewise.
22227 (aarch64_sqdmlal2_laneq<mode>): Likewise.
22228 (aarch64_sqdmlsl2_lane<mode>): Likewise.
22229 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
22230 (aarch64_sqdmull_lane<mode>): Likewise.
22231 (aarch64_sqdmull_laneq<mode>): Likewise.
22232 (aarch64_sqdmull2_lane<mode>): Likewise.
22233 (aarch64_sqdmull2_laneq<mode>): Likewise.
22235 2014-06-10 Richard Biener <rguenther@suse.de>
22237 PR tree-optimization/61438
22238 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
22239 (eliminate_dom_walker::before_dom_children): Only try to inhibit
22240 insertion of IVs if running PRE.
22241 (eliminate): Adjust.
22242 (pass_pre::execute): Likewise.
22243 (pass_fre::execute): Likewise.
22245 2014-06-10 Richard Biener <rguenther@suse.de>
22247 PR middle-end/61456
22248 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22249 Do not use the main variant for the type comparison.
22250 (ncr_compar): Likewise.
22251 (nonoverlapping_component_refs_p): Likewise.
22253 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
22255 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
22256 REG_CFA_RESTORE mode.
22258 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
22260 * config/i386/i386.c (expand_vec_perm_pblendv): New.
22261 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
22262 expand_vec_perm_pblendv.
22264 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22266 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
22268 Simplify description of __crc32d and __crc32cd intrinsics.
22269 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
22272 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
22275 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
22276 * config.in: Regenerate.
22277 * configure: Likewise.
22279 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
22281 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
22283 (intersect_static_var_sets): Remove.
22284 (propagate): Do not prune local statics.
22286 2014-06-10 Jakub Jelinek <jakub@redhat.com>
22289 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
22290 Set lastprivate_firstprivate even if omp_private_outer_ref
22291 langhook returns true.
22292 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
22293 langhook, call unshare_expr on new_var and call
22294 build_outer_var_ref to get the last argument.
22296 2014-06-10 Marek Polacek <polacek@redhat.com>
22299 * doc/extend.texi: Add cindex for transparent_union.
22301 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
22303 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
22304 init_symbolic_number ().
22306 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
22308 PR middle-end/61141
22309 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
22310 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
22311 (verify_rtl_sharing): Likewise.
22313 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
22316 * tree.c (build_qualified_type): Use a canonical type for
22319 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22321 * config/arm/arm-modes.def: Remove XFmode.
22323 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
22326 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
22327 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
22328 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
22329 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
22330 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
22331 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
22332 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
22333 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
22334 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
22336 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
22338 * tree-core.h (tree_decl_with_vis): Remove section_name.
22340 2014-06-09 Kito Cheng <kito@0xlab.org>
22342 * ira.c (ira): Don't call init_caller_save if LRA enabled
22343 since LRA use its own infrastructure to handle that.
22345 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22347 * symtab.c (dump_symtab_base): Update dumping.
22348 (symtab_make_decl_local): Clear only DECL_COMDAT.
22349 * tree-vect-data-refs.c (Check that variable is static before
22350 tampering with sections.
22351 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
22352 (cgraph_create_virtual_clone): Likewise.
22353 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
22354 (decl_section_name, set_decl_section_name): New accessors.
22355 (find_decls_types_r): Do not walk section name
22356 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
22357 (decl_comdat_group, decl_comdat_group_id): Constify.
22358 (decl_section_name, set_decl_section_name): Update.
22359 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
22360 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
22361 (cgraph_make_node_local_1): Clear section and comdat group.
22362 * cgraph.h (set_comdat_group): Sanity check.
22363 (get_section, set_section): New.
22364 * ipa-comdats.c (ipa_comdats): Use get_section.
22365 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
22366 * lto-streamer-out.c: Do not follow section names.
22367 * c-family/c-common.c (handle_section_attribute): Update.
22368 * lto-cgraph.c (lto_output_node): Output section.
22369 (lto_output_varpool_node): Likewise.
22370 (read_comdat_group): Rename to ...
22371 (read_identifier): ... this one.
22372 (read_string_cst): New function.
22373 (input_node, input_varpool_node): Input section names.
22374 * tree-emutls.c (get_emutls_init_templ_addr): Update.
22375 (new_emutls_decl): Update.
22376 (secname_for_decl): Check section names only of static vars.
22377 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
22378 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
22379 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22380 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22381 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
22382 * config/mcore/mcore.c (mcore_unique_section): Likewise.
22383 * config/mips/mips.c (mips16_build_function_stub): Likewise.
22384 * config/v850/v850.c (v850_insert_attributes): Likewise.
22385 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
22387 (h8300_handle_tiny_data_attribute): Likewise.
22388 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
22389 (bfin_handle_l2_attribute): Likewise.
22391 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22393 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
22394 remove static initializer.
22396 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22398 * varasm.c (use_blocks_for_decl_p): Check symbol table
22399 instead of alias attribute.
22400 (place_block_symbol): Recurse on aliases.
22402 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22404 * ipa-visibility.c: Include varasm.h
22405 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
22407 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
22409 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
22410 outputting aliases.
22412 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
22414 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22415 from test_insn into GGC space escape via SET_SRC.
22417 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
22419 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22420 call statement, if any.
22421 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22422 statements, if any. Tidy up.
22424 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
22427 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22428 iterators, VSX_D that handles 64-bit types, and VSX_LE that
22429 handles swapping the two 64-bit double words on little endian
22430 systems. Include V1TImode and optionally TImode in VSX_LE so that
22431 these types are properly swapped. Change all of the insns and
22432 splits that do the 64-bit swaps to use VSX_LE.
22433 (vsx_le_perm_load_<mode>): Likewise.
22434 (vsx_le_perm_store_<mode>): Likewise.
22435 (splitters for little endian memory operations): Likewise.
22436 (vsx_xxpermdi2_le_<mode>): Likewise.
22437 (vsx_lxvd2x2_le_<mode>): Likewise.
22438 (vsx_stxvd2x2_le_<mode>): Likewise.
22440 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
22443 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22444 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22445 and corresponding splitters. Zero extend general register
22446 or memory input operand to XMM temporary. Enable for
22447 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22448 (floatunssi<mode>2): Update expander predicate.
22450 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
22452 PR rtl-optimization/61325
22453 * lra-constraints.c (process_address_1): Check scale equal to one
22454 to prevent transformation: base + scale * index => base + new_reg.
22456 2014-06-06 Richard Biener <rguenther@suse.de>
22458 PR tree-optimization/59299
22459 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22461 (nearest_common_dominator_of_uses): Likewise.
22462 (statement_sink_location): Adjust. Support sinking loads.
22464 2014-06-06 Martin Jambor <mjambor@suse.cz>
22466 * ipa-prop.c (get_place_in_agg_contents_list): New function.
22467 (build_agg_jump_func_from_list): Likewise.
22468 (determine_known_aggregate_parts): Renamed to
22469 determine_locally_known_aggregate_parts. Moved some functionality
22470 to the two functions above, removed bound checks.
22472 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
22474 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22475 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22476 (aarch64_progress_pointer): Likewise.
22477 (aarch64_copy_one_part_and_move_pointers): Likewise.
22478 (aarch64_expand_movmen): Likewise.
22479 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22480 * config/aarch64/aarch64.md (movmem<mode>): New.
22482 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
22484 * targhooks.c (default_add_stmt_cost): Call target specific
22485 hook instead of default one.
22487 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
22489 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22490 endianness instead of host endianness.
22491 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22494 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22497 * function.c (instantiate_decls): Process the saved static chain.
22498 (expand_function_start): If not optimizing, save the static chain
22500 * tree-nested.c (convert_all_function_calls): Always create the static
22501 chain for nested functions if not optimizing.
22503 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22505 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22507 2014-06-06 Richard Biener <rguenther@suse.de>
22509 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22510 (construct_init_block): Likewise.
22511 (construct_exit_block): Likewise.
22512 (pass_expand::execute): Likewise.
22513 * graphite.c (graphite_transforms): Replace check for current_loops
22514 with a check for > 1 loops.
22515 (pass_graphite_transforms::execute): Adjust.
22516 * ipa-split.c (split_function): Remove check for current_loops.
22517 * omp-low.c (expand_parallel_call): Likewise.
22518 (expand_omp_for_init_counts): Likewise.
22519 (extract_omp_for_update_vars): Likewise.
22520 (expand_omp_for_generic): Likewise.
22521 (expand_omp_sections): Likewise.
22522 (expand_omp_target): Likewise.
22523 * tracer.c (tail_duplicate): Likewise.
22524 (pass_tracer::execute): Likewise.
22525 * trans-mem.c (expand_transaction): Likewise.
22526 * tree-complex.c (expand_complex_div_wide): Likewise.
22527 * tree-eh.c (lower_resx): Likewise.
22528 (cleanup_empty_eh_merge_phis): Likewise.
22529 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22530 current_loops with a check for > 1 loops.
22531 (pass_predcom::execute): Adjust.
22532 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22533 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22534 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22535 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22536 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22537 * tree-switch-conversion.c (process_switch): Likewise.
22538 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22539 * tree-vrp.c (vrp_visit_phi_node): Likewise.
22540 (execute_vrp): Likewise.
22541 * ubsan.c (ubsan_expand_null_ifn): Likewise.
22543 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
22545 * rtl.h (insn_location): Declare.
22546 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22547 with UNKNOWN_LOCATION.
22548 * emit-rtl.c (insn_location): New function.
22549 * final.c (notice_source_line): Check that the instruction has a
22550 location before retrieving it and use insn_location.
22551 * modulo-sched.c (loop_single_full_bb_p): Likewise.
22552 * print-rtl.c (print_rtx): Likewise.
22554 2014-06-06 Richard Biener <rguenther@suse.de>
22556 * passes.def: Move 2nd VRP pass before phi-only-cprop.
22558 2014-06-06 Christian Bruel <christian.bruel@st.com>
22560 PR tree-optimization/43934
22561 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22564 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
22566 * ira-lives.c (single_reg_class): Add missing break. Explicitly
22567 return NO_REGS for extra address and memory constraints. Handle
22568 operands that match (or are equivalent to something that matches)
22569 extra constant constraints. Ignore other non-register operands.
22571 2014-06-06 Alan Modra <amodra@gmail.com>
22574 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22575 * doc/tm.texi: Regenerate.
22576 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22577 Use throughout in place of REG_PARM_STACK_SPACE.
22578 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22579 "incoming" param. Pass to rs6000_function_parms_need_stack.
22580 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22581 prototype_p when incoming. Use function decl when incoming
22582 to handle K&R style functions.
22583 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22584 (INCOMING_REG_PARM_STACK_SPACE): Define.
22586 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
22589 * cfgexpand.c (expand_debug_expr): Use address space of nested
22590 TREE_TYPE for ADDR_EXPR and MEM_REF.
22592 2014-06-05 Jeff Law <law@redhat.com>
22594 PR tree-optimization/61289
22595 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22596 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
22597 looking for those which match LHS. All callers changed.
22598 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22599 parameters and code which manipulated them. All callers changed.
22600 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22601 and DST_MAP parameters. Simplify invalidation code by just calling
22602 invalidate_equivalences. All callers changed.
22603 (thread_across_edge): Simplify now that we don't need to maintain
22604 the map of equivalences to invalidate.
22606 2014-06-05 Kai Tietz <ktietz@redhat.com>
22607 Richard Henderson <rth@redhat.com>
22610 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22611 checking for !TARGET_X32.
22612 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22613 (sibcall_intern): New define_insn, plus required peepholes.
22614 (sibcall_pop_intern): Likewise.
22615 (sibcall_value_intern): Likewise.
22616 (sibcall_value_pop_intern): Likewise.
22618 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
22620 * tree-inline.c (tree_function_versioning): Check DF info existence
22621 before accessing it.
22623 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22625 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22627 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22628 aarch64_frame hard_fp_offset and frame_size.
22629 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22630 frame_size; remove original_frame_size.
22631 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22632 (aarch64_initial_elimination_offset): Remove frame_size and
22633 offset. Use aarch64_frame frame_size.
22635 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22636 Jiong Wang <jiong.wang@arm.com>
22637 Renlin <renlin.li@arm.com>
22639 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22640 initialization of R30 offset. Update offset. Iterate core
22641 regisers upto X30. Remove X29, X30 specific code.
22643 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22644 Jiong Wang <jiong.wang@arm.com>
22646 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22647 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22648 (aarch64_register_saved_on_entry): Adjust test.
22650 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22652 * config/aarch64/aarch64.h (machine_function): Move
22653 saved_varargs_size from here...
22654 (aarch64_frame): ... to here.
22656 * config/aarch64/aarch64.c (aarch64_expand_prologue)
22657 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22658 (aarch64_initial_elimination_offset)
22659 (aarch64_setup_incoming_varargs): Adjust location of
22660 saved_varargs_size.
22662 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
22664 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22667 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
22668 Prachi Godbole <Prachi.Godbole@imgtec.com>
22670 * config/mips/mips-cpus.def: Add definition for p5600. Updated
22671 mips32r5 entry to use PROCESSOR_P5600.
22672 * config/mips/mips-tables.opt: Regenerate.
22673 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22674 * config/mips/mips.c (mips_fmadd_bypass): New function.
22675 (mips_rtx_cost_data): Add costs for p5600.
22676 (mips_issue_rate): Add support for p5600.
22677 (mips_multipass_dfa_lookahead): Likewise.
22678 * config/mips/mips.h (TUNE_P5600): New define.
22679 (TUNE_MACC_CHAINS): Add TUNE_P5600.
22680 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22681 * config/mips/mips.md: Include p5600.md.
22682 (processor): Add p5600.
22683 * config/mips/p5600.md: New file.
22685 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
22687 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22688 * config/i386/predicates.md (palignr_operand): New.
22689 Indicates if permutation is suitable for palignr instruction.
22691 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
22693 PR tree-optimization/61319
22694 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22695 stmt belongs to loop.
22697 2014-06-05 Richard Biener <rguenther@suse.de>
22699 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22700 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22701 (lookup_tmp_var): Adjust.
22702 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22704 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22706 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22708 2014-06-05 Marek Polacek <polacek@redhat.com>
22711 * doc/invoke.texi: Document -Wlogical-not-parentheses.
22713 2014-06-04 Tom de Vries <tom@codesourcery.com>
22715 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22718 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
22720 PR tree-optimization/61385
22721 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22723 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
22725 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
22726 changed to use fatal_error.
22727 (main): Ensure lto_wrapper_cleanup is run atexit.
22729 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22731 * lra-constraints.c (valid_address_p): Move earlier in file.
22732 (address_eliminator): New structure.
22733 (satisfies_memory_constraint_p): New function.
22734 (satisfies_address_constraint_p): Likewise.
22735 (process_alt_operands, process_address, curr_insn_transform): Use them.
22737 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22739 * lra-int.h (lra_static_insn_data): Make operand_alternative a
22741 (target_lra_int, default_target_lra_int, this_target_lra_int)
22742 (op_alt_data): Delete.
22743 * lra.h (lra_init): Delete.
22744 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22745 (init_insn_code_data_once): Remove op_alt_data handling.
22746 (finish_insn_code_data_once): Likewise.
22747 (init_op_alt_data): Delete.
22748 (get_static_insn_data): Initialize operand_alternative to null.
22749 (free_insn_recog_data): Cast operand_alternative before freeing it.
22750 (setup_operand_alternative): Take the operand_alternative as
22751 parameter and assume it isn't already cached in the static
22753 (lra_set_insn_recog_data): Update accordingly.
22754 (lra_init): Delete.
22755 * ira.c (ira_init): Don't call lra_init.
22756 * target-globals.h (this_target_lra_int): Declare.
22757 (target_globals): Remove lra_int.
22758 (restore_target_globals): Update accordingly.
22759 * target-globals.c: Don't include lra-int.h.
22760 (default_target_globals, save_target_globals): Remove lra_int.
22762 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22764 * recog.h (operand_alternative): Convert reg_class, reject,
22765 matched and matches into bitfields.
22766 (preprocess_constraints): New overload.
22767 (preprocess_insn_constraints): New function.
22768 (preprocess_constraints): Take the insn as parameter.
22769 (recog_op_alt): Change into a pointer.
22770 (target_recog): Add x_op_alt.
22771 * recog.c (asm_op_alt): New variable.
22772 (recog_op_alt): Change into a pointer.
22773 (preprocess_constraints): New overload, replacing the old function
22774 definition with one that doesn't use global state.
22775 (preprocess_insn_constraints): New function.
22776 (preprocess_constraints): Use them. Take the insn as parameter.
22777 Use asm_op_alt for asms.
22778 (recog_init): Free existing x_op_alt entries.
22779 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22781 (make_early_clobber_and_input_conflicts): Likewise.
22782 (process_bb_node_lives): Pass the insn to process_constraints.
22783 * reg-stack.c (check_asm_stack_operands): Likewise.
22784 (subst_asm_stack_regs): Likewise.
22785 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22786 * regrename.c (build_def_use): Likewise.
22787 * sched-deps.c (sched_analyze_insn): Likewise.
22788 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22789 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22790 (note_invalid_constants): Likewise.
22791 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22792 (ix86_legitimate_combined_insn): Make operand_alternative pointer
22795 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22797 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22798 * ira-lives.c (check_and_make_def_conflict): Check for disabled
22800 (make_early_clobber_and_input_conflicts): Likewise.
22801 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22803 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22805 * recog.h (alternative_class): New function.
22806 (which_op_alt): Return a const recog_op_alt.
22807 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22808 (subst_asm_stack_regs): Likewise.
22809 * config/arm/arm.c (note_invalid_constants): Likewise.
22810 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
22811 the operand_alternative; use alternative class instead.
22812 * sel-sched.c (get_reg_class): Likewise.
22813 * regrename.c (build_def_use): Likewise.
22814 (hide_operands, restore_operands, record_out_operands): Update type
22817 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
22819 * recog.h (recog_op_alt): Convert to a flat array.
22820 (which_op_alt): New function.
22821 * recog.c (recog_op_alt): Convert to a flat array.
22822 (preprocess_constraints): Update accordingly, grouping all
22823 operands of the same alternative together, rather than the
22825 * ira-lives.c (check_and_make_def_conflict): Likewise.
22826 (make_early_clobber_and_input_conflicts): Likewise.
22827 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22828 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22829 (subst_asm_stack_regs): Likewise.
22830 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22831 * regrename.c (hide_operands, record_out_operands): Likewise.
22832 (build_def_use): Likewise.
22833 * sel-sched.c (get_reg_class): Likewise.
22834 * config/arm/arm.c (note_invalid_constants): Likewise.
22836 2014-06-04 Jason Merrill <jason@redhat.com>
22840 * gimplify.c (gimplify_arg): Non-static.
22841 * gimplify.h: Declare it.
22843 2014-06-04 Richard Biener <rguenther@suse.de>
22845 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22846 TREE_PUBLIC and DECL_EXTERNAL decls.
22848 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
22850 * regcprop.c (copyprop_hardreg_forward_1): Account for
22851 HARD_REGNO_CALL_PART_CLOBBERED.
22853 2014-06-04 Richard Biener <rguenther@suse.de>
22855 * configure.ac: Check whether the underlying type of int64_t
22856 is long or long long.
22857 * configure: Regenerate.
22858 * config.in: Likewise.
22859 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22860 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22862 2014-06-04 Richard Biener <rguenther@suse.de>
22864 PR tree-optimization/60098
22865 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22867 (dse_optimize_stmt): Simplify, now that we found a kill
22870 2014-06-04 Richard Biener <rguenther@suse.de>
22872 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22873 of accesses with non-invariant address.
22875 2014-06-04 Martin Liska <mliska@suse.cz>
22877 * cgraph.h (cgraph_make_wrapper): New function introduced.
22878 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22879 * ipa-inline.h (inline_analyze_function): The function is global.
22880 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22882 2014-06-04 Martin Liska <mliska@suse.cz>
22884 * tree.h (private_lookup_attribute_starting): New function.
22885 (lookup_attribute_starting): Likewise.
22886 * tree.c (private_lookup_attribute_starting): Likewise.
22888 2014-06-04 Martin Liska <mliska@suse.cz>
22890 * cgraph.h (expand_thunk): New argument added.
22891 (address_taken_from_non_vtable_p): New global function.
22892 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22893 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22894 * cgraphunit.c (analyze_function): Likewise.
22895 (assemble_thunks_and_aliases): Argument added to call.
22896 (expand_thunk): New argument forces to produce GIMPLE thunk.
22898 2014-06-04 Martin Liska <mliska@suse.cz>
22900 * coverage.h (coverage_compute_cfg_checksum): Argument added.
22901 * coverage.c (coverage_compute_cfg_checksum): Likewise.
22902 * profile.c (branch_prob): Likewise.
22904 2014-06-04 Martin Jambor <mjambor@suse.cz>
22907 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22908 handler for switch on an ipa_ref_use enum.
22909 * ipa-reference.c (analyze_function): Likewise.
22911 2014-06-04 Kai Tietz <ktietz@redhat.com>
22913 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22914 from old call-instruction.
22916 2014-06-04 Bin Cheng <bin.cheng@arm.com>
22918 * config/aarch64/aarch64.c (aarch64_classify_address)
22919 (aarch64_legitimize_reload_address): Support full addressing modes
22921 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22922 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22924 2014-06-03 Andrew Pinski <apinski@cavium.com>
22926 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22929 2014-06-03 Andrew Pinski <apinski@cavium.com>
22931 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22932 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22934 2014-06-03 Kai Tietz <ktietz@redhat.com>
22936 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22939 2014-06-03 Dehao Chen <dehao@google.com>
22941 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22944 2014-06-03 Marek Polacek <polacek@redhat.com>
22947 * doc/invoke.texi: Document -Wswitch-bool.
22948 * function.c (stack_protect_epilogue): Cast controlling expression of
22950 * gengtype.c (walk_type): Generate switch expression with its
22951 controlling expression cast to int.
22953 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
22955 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22957 * config/avr/avr-tables.opt: Regenerate.
22958 * config/avr/t-multilib: Regenerate.
22959 * doc/avr-mmcu.texi: Regenerate.
22961 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
22962 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22964 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22965 (ata6617c, ata664251): Add new avr35 devices.
22966 (ata6612c): Add new avr4 device.
22967 (ata6613c, ata6614q): Add new avr5 devices.
22968 * config/avr/avr-tables.opt: Regenerate.
22969 * config/avr/t-multilib: Regenerate.
22970 * doc/avr-mmcu.texi: Regenerate.
22972 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22974 * gcc/config/aarch64/aarch64-builtins.c
22975 (aarch64_types_binop_ssu_qualifiers): New static data.
22976 (TYPES_BINOP_SSU): Define.
22977 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22978 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22979 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22980 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22981 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22982 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22983 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22984 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22985 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22986 suffix to builtin function name, remove cast.
22987 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22988 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22989 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22991 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
22993 * gcc/config/aarch64/aarch64-builtins.c
22994 (aarch64_types_binop_uus_qualifiers,
22995 aarch64_types_shift_to_unsigned_qualifiers,
22996 aarch64_types_unsigned_shiftacc_qualifiers): Define.
22997 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22998 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22999 sqshlu_n, uqshl_n): Update qualifiers.
23000 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
23001 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
23002 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
23003 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
23004 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
23005 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
23006 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
23007 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
23008 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
23009 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
23010 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
23011 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
23012 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
23013 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
23014 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
23015 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
23016 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
23017 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
23018 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
23019 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
23020 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
23021 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
23022 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
23023 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
23024 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
23025 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
23026 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
23028 2014-06-03 Teresa Johnson <tejohnson@google.com>
23030 * tree-sra.c (modify_function): Record caller nodes after rebuild.
23032 2014-06-02 Jason Merrill <jason@redhat.com>
23035 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
23037 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
23039 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
23042 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
23044 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
23046 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
23047 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
23048 * config/aarch64/iterators.md (REVERSE): New iterator.
23049 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
23050 (rev_op): New int_attribute.
23051 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
23052 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
23053 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
23054 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
23055 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
23056 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
23057 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
23058 Replace temporary __asm__ with __builtin_shuffle.
23060 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23062 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
23064 * config/mips/mips-tables.opt: Regenerate.
23065 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
23066 to use mips_isa_rev rather than ISA_MIPS32R2.
23067 * config/mips/mips.h (ISA_MIPS32R3): New define.
23068 (ISA_MIPS32R5): New define.
23069 (ISA_MIPS64R3): New define.
23070 (ISA_MIPS64R5): New define.
23071 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
23072 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
23073 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
23075 (MIPS_ISA_SYNCI_SPEC): Likewise.
23076 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
23077 (LINK_SPEC): Added mips32r3 and mips32r5.
23078 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
23079 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
23080 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
23081 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
23082 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
23083 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
23084 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
23086 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
23088 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
23090 * config/mips/mips.opt (mxpa): New option.
23091 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
23094 2014-06-03 Martin Jambor <mjambor@suse.cz>
23097 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
23100 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
23102 PR tree-optimization/61328
23103 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
23104 initialization from find_bswap_or_nop_1.
23105 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
23106 in source_expr2 before using the size value the function sets. Also
23107 make use of init_symbolic_number () in both the old place and
23108 find_bswap_or_nop_load () to avoid reading uninitialized memory when
23109 doing recursion in the GIMPLE_BINARY_RHS case.
23111 2014-06-03 Richard Biener <rguenther@suse.de>
23113 PR tree-optimization/61383
23114 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
23117 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
23119 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
23120 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
23121 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
23122 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
23124 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
23125 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
23126 * system.h: ...here and make it unconditional.
23127 * target.def (conditional_register_usage): Mention
23128 define_register_constraint instead of old-style constraint macros.
23129 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
23130 * doc/tm.texi: Regenerate.
23131 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
23132 protected by !USE_MD_CONSTRAINTS.
23133 * config/frv/frv.md: Remove quote from old version of documentation.
23134 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
23135 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
23136 CONST_DOUBLE_OK_FOR_LETTER.
23137 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
23139 2014-06-02 Andrew Pinski <apinski@cavium.com>
23141 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
23142 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
23143 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
23144 file whose name depends on -mabi= and -mbig-endian.
23145 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
23146 Handle LP64 better and handle ilp32 too.
23147 (MULTILIB_OPTIONS): Delete.
23148 (MULTILIB_DIRNAMES): Delete.
23150 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
23152 * expr.h: Remove prototypes of functions defined in builtins.c.
23153 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
23154 Remove prototypes of functions defined in builtins.c.
23155 * builtins.h: Update prototype list to include all exported functions.
23156 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
23157 no_c99_libc_has_function): Move to targhooks.c
23158 (build_string_literal, build_call_expr_loc_array,
23159 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
23161 (expand_builtin_object_size, fold_builtin_object_size): Make static.
23162 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
23163 no_c99_libc_has_function): Relocate from builtins.c.
23164 * tree.c: Include builtins.h.
23165 (build_call_expr_loc_array, build_call_expr_loc_vec,
23166 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
23168 * fold-const.h (fold_fma): Move prototype to builtins.h.
23169 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
23170 * asan.c: Include builtins.h.
23171 * cfgexpand.c: Likewise.
23172 * convert.c: Likewise.
23173 * emit-rtl.c: Likewise.
23174 * except.c: Likewise.
23175 * expr.c: Likewise.
23176 * fold-const.c: Likewise.
23177 * gimple-fold.c: Likewise.
23178 * gimple-ssa-strength-reduction.c: Likewise.
23179 * gimplify.c: Likewise.
23180 * ipa-inline.c: Likewise.
23181 * ipa-prop.c: Likewise.
23182 * lto-streamer-out.c: Likewise.
23183 * stmt.c: Likewise.
23184 * tree-inline.c: Likewise.
23185 * tree-object-size.c: Likewise.
23186 * tree-sra.c: Likewise.
23187 * tree-ssa-ccp.c: Likewise.
23188 * tree-ssa-forwprop.c: Likewise.
23189 * tree-ssa-loop-ivcanon.c: Likewise.
23190 * tree-ssa-loop-ivopts.c: Likewise.
23191 * tree-ssa-math-opts.c: Likewise.
23192 * tree-ssa-reassoc.c: Likewise.
23193 * tree-ssa-threadedge.c: Likewise.
23194 * tree-streamer-in.c: Likewise.
23195 * tree-vect-data-refs.c: Likewise.
23196 * tree-vect-patterns.c: Likewise.
23197 * tree-vect-stmts.c: Likewise.
23198 * config/aarch64/aarch64.c: Likewise.
23199 * config/alpha/alpha.c: Likewise.
23200 * config/arc/arc.c: Likewise.
23201 * config/arm/arm.c: Likewise.
23202 * config/avr/avr.c: Likewise.
23203 * config/bfin/bfin.c: Likewise.
23204 * config/c6x/c6x.c: Likewise.
23205 * config/cr16/cr16.c: Likewise.
23206 * config/cris/cris.c: Likewise.
23207 * config/epiphany/epiphany.c: Likewise.
23208 * config/fr30/fr30.c: Likewise.
23209 * config/frv/frv.c: Likewise.
23210 * config/h8300/h8300.c: Likewise.
23211 * config/i386/i386.c: Likewise.
23212 * config/i386/winnt.c: Likewise.
23213 * config/ia64/ia64.c: Likewise.
23214 * config/iq2000/iq2000.c: Likewise.
23215 * config/lm32/lm32.c: Likewise.
23216 * config/m32c/m32c.c: Likewise.
23217 * config/m32r/m32r.c: Likewise.
23218 * config/m68k/m68k.c: Likewise.
23219 * config/mcore/mcore.c: Likewise.
23220 * config/mep/mep.c: Likewise.
23221 * config/microblaze/microblaze.c: Likewise.
23222 * config/mips/mips.c: Likewise.
23223 * config/mmix/mmix.c: Likewise.
23224 * config/mn10300/mn10300.c: Likewise.
23225 * config/moxie/moxie.c: Likewise.
23226 * config/msp430/msp430.c: Likewise.
23227 * config/nds32/nds32.c: Likewise.
23228 * config/pa/pa.c: Likewise.
23229 * config/pdp11/pdp11.c: Likewise.
23230 * config/picochip/picochip.c: Likewise.
23231 * config/rl78/rl78.c: Likewise.
23232 * config/rs6000/rs6000.c: Likewise.
23233 * config/rx/rx.c: Likewise.
23234 * config/s390/s390.c: Likewise.
23235 * config/score/score.c: Likewise.
23236 * config/sh/sh.c: Likewise.
23237 * config/sparc/sparc.c: Likewise.
23238 * config/spu/spu.c: Likewise.
23239 * config/stormy16/stormy16.c: Likewise.
23240 * config/tilegx/tilegx.c: Likewise.
23241 * config/tilepro/tilepro.c: Likewise.
23242 * config/v850/v850.c: Likewise.
23243 * config/vax/vax.c: Likewise.
23244 * config/xtensa/xtensa.c: Likewise.
23246 2014-06-02 Jeff Law <law@redhat.com>
23248 PR rtl-optimization/61094
23249 * ree.c (combine_reaching_defs): Do not reextend an insn if it
23250 was marked as do_no_reextend. If a copy is needed to eliminate
23251 an extension, then mark it as do_not_reextend.
23253 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
23255 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
23257 2014-06-02 Richard Henderson <rth@redhat.com>
23260 * config/alpha/alpha.c (print_operand_address): Allow symbolic
23261 addresses inside asms. Use output_operand_lossage instead of
23264 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
23267 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
23268 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
23270 2014-06-02 Tom de Vries <tom@codesourcery.com>
23272 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
23273 case that x has VOIDmode.
23275 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
23277 * varasm.c (copy_constant): Delete function.
23278 (build_constant_desc): Don't call it.
23280 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23283 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
23284 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
23285 with immediate_operand.
23287 2014-06-02 Andreas Schwab <schwab@suse.de>
23289 * config/ia64/ia64.c
23290 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
23291 pending_data_specs first.
23293 2014-06-02 Richard Biener <rguenther@suse.de>
23295 PR tree-optimization/61378
23296 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
23297 valueized_anything.
23299 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
23301 * config/i386/constraints.md (Bw): Rename from 'w'.
23302 (Bz): Rename from 'z'.
23303 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
23305 2014-06-01 Kai Tietz <ktietz@redhat.com>
23308 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
23309 * config/i386/i386.md (sibcall_insn_operand): Use Bs
23310 instead of m constraint.
23312 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
23314 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
23315 a separate alternative where the scratch operand 2 is marked as
23318 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
23320 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
23321 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
23322 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
23323 and __builtins_arm_get_fpscr.
23324 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
23325 __builtins_arm_get_fpscr.
23326 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
23327 __builtins_arm_ldfpscr.
23328 (arm_atomic_assign_expand_fenv): New function.
23329 * config/arm/vfp.md (set_fpscr): New pattern.
23330 (get_fpscr) : Likewise.
23331 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
23333 * doc/extend.texi (AARCH64 Built-in Functions) : Document
23334 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
23336 2014-05-30 Jakub Jelinek <jakub@redhat.com>
23338 * asan.c (report_error_func): Add SLOW_P argument, use
23339 BUILT_IN_ASAN_*_N if set.
23340 (build_check_stmt): Likewise.
23341 (instrument_derefs): If T has insufficient alignment,
23342 force same handling as for odd sizes.
23344 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
23345 BUILT_IN_ASAN_REPORT_STORE_N): New.
23346 * asan.c (struct asan_mem_ref): Change access_size type to
23348 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
23349 update_mem_ref_hash_table): Likewise.
23350 (asan_mem_ref_hasher::hash): Hash in a HWI.
23351 (report_error_func): Change size_in_bytes argument to HWI.
23352 Use *_N builtins if size_in_bytes is larger than 16 or not power of
23354 (build_shadow_mem_access): New function.
23355 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
23356 Handle size_in_bytes not power of two or larger than 16.
23357 (instrument_derefs): Don't give up if size_in_bytes is not
23358 power of two or is larger than 16.
23360 2014-05-30 Kai Tietz <ktietz@redhat.com>
23363 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
23364 for sibling-tail-calls.
23365 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
23367 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
23368 (sibcall_insn_operand): Add check for sibcall_memory_operand.
23370 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23372 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
23373 * config/avr/avr-tables.opt: Regenerate.
23374 * config/avr/t-multilib: Regenerate.
23375 * doc/avr-mmcu.texi: Regenerate.
23377 2014-05-30 Ian Lance Taylor <iant@google.com>
23379 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
23382 2014-05-30 Tom de Vries <tom@codesourcery.com>
23384 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23387 2014-05-30 Tom de Vries <tom@codesourcery.com>
23389 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23390 * lra.c (initialize_lra_reg_info_element): Add init of
23391 actual_call_used_reg_set field.
23392 (lra): Call lra_create_live_ranges before lra_inheritance for
23394 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23396 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
23397 instead of call_used_reg_set for -fuse-caller-save.
23398 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23400 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23402 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
23404 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
23406 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
23408 * ira.c (ira_get_dup_out_num): Check for output operands at
23409 the start of the loop. Handle cases where an included alternative
23410 follows an excluded one.
23412 2014-05-29 Mike Stump <mikestump@comcast.net>
23415 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23416 post ld passes when lto is used.
23418 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
23420 PR rtl-optimization/61325
23421 * lra-constraints.c (process_address): Rename to process_address_1.
23422 (process_address): New function.
23424 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
23426 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23427 TYPES_BINOPV): New static data.
23428 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23430 * config/aarch64/aarch64-simd.md (aarch64_ext,
23431 aarch64_im_lane_boundsi): New patterns.
23432 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23434 (aarch64_evpc_ext): New function.
23436 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23438 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23439 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23440 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23441 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23442 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23444 2014-05-29 Tom de Vries <tom@codesourcery.com>
23446 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23448 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
23449 Richard Sandiford <rdsandiford@googlemail.com>
23451 * arm/iterators.md (shiftable_ops): New code iterator.
23452 (t2_binop0, arith_shift_insn): New code attributes.
23453 * arm/predicates.md (shift_nomul_operator): New predicate.
23454 * arm/arm.md (insn_enabled): Delete.
23455 (enabled): Remove insn_enabled test.
23456 (*arith_shiftsi): Delete. Replace with ...
23457 (*<arith_shift_insn>_multsi): ... new pattern.
23458 (*<arith_shift_insn>_shiftsi): ... new pattern.
23459 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23461 2014-05-29 Radovan Obradovic <robradovic@mips.com>
23462 Tom de Vries <tom@codesourcery.com>
23464 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23465 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23467 (mips_split_call): Use POST_CALL_TMP_REG.
23468 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23470 2014-05-29 Tom de Vries <tom@codesourcery.com>
23472 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23473 with #ifdef STACK_REGS.
23475 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
23477 * varasm.c (get_variable_section): Walk aliases.
23478 (place_block_symbol): Walk aliases.
23480 2014-05-28 Tom de Vries <tom@codesourcery.com>
23483 2014-05-28 Tom de Vries <tom@codesourcery.com>
23485 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23486 * lra.c (initialize_lra_reg_info_element): Add init of
23487 actual_call_used_reg_set field.
23488 (lra): Call lra_create_live_ranges before lra_inheritance for
23490 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23492 * lra-constraints.c (need_for_call_save_p): Use
23493 actual_call_used_reg_set instead of call_used_reg_set for
23495 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23497 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23499 * doc/md.texi: Document that the % constraint character must
23500 be at the beginning of the string.
23501 * genoutput.c (validate_insn_alternatives): Check that '=',
23502 '+' and '%' only appear at the beginning of a constraint.
23503 * ira.c (commutative_constraint_p): Delete.
23504 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23505 at the start of the string.
23506 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23508 * config/arm/neon.md (bicdi3_neon): Likewise.
23509 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23510 (slt_si, sltu_si): Likewise.
23511 * config/vax/vax.md (sbcdi3): Likewise.
23512 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23513 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23514 (mul64): Move '%' to beginning of constraint.
23515 * config/arm/arm.md (*xordi3_insn): Likewise.
23516 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23517 (xorsi3): Likewise.
23519 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23521 * doc/md.texi: Document the restrictions on the "enabled" attribute.
23523 2014-05-28 Jason Merrill <jason@redhat.com>
23526 * cgraph.h (symtab_node::get_comdat_group_id): New.
23527 * cgraphunit.c (analyze_functions): Call it.
23528 * symtab.c (dump_symtab_node): Likewise.
23529 * tree.c (decl_comdat_group_id): New.
23530 * tree.h: Declare it.
23531 * lto-streamer-out.c (write_symbol): Use it.
23532 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23534 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
23536 PR bootstrap/PR61146
23537 * wide-int.cc: Do not include longlong.h when compiling with clang.
23539 2014-05-28 Richard Biener <rguenther@suse.de>
23541 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23542 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23543 (vrp_visit_assignment_or_call): Print less vertical space.
23544 (vrp_visit_stmt): Likewise.
23545 (vrp_visit_phi_node): Likewise. For a PHI argument with
23546 VR_VARYING range consider recording it as copy.
23548 2014-05-28 Richard Biener <rguenther@suse.de>
23551 2014-05-28 Richard Biener <rguenther@suse.de>
23553 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23555 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23557 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23558 sufficiently aligned and an offset is used at the same time.
23559 (expand_expr_real_1): Likewise.
23561 2014-05-28 Richard Biener <rguenther@suse.de>
23563 PR middle-end/61045
23564 * fold-const.c (fold_comparison): When folding
23565 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23566 the sign of the remaining constant operand stays the same.
23568 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
23570 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23571 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23572 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23574 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23575 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23576 (m32bit-doubles) Likewise.
23577 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23578 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23581 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23583 * configure.ac ($gcc_cv_ld_clearcap): New test.
23584 * configure: Regenerate.
23585 * config.in: Regenerate.
23586 * config/sol2.opt (mclear-hwcap): New option.
23587 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23588 * config/sol2-clearcap.map: Moved here from
23589 testsuite/gcc.target/i386/clearcap.map.
23590 * config/sol2-clearcapv2.map: Move here from
23591 gcc.target/i386/clearcapv2.map.
23592 * config/t-sol2 (install): Depend on install-clearcap-map.
23593 (install-clearcap-map): New target.
23594 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23597 2014-05-28 Richard Biener <rguenther@suse.de>
23599 * hwint.h (*_HALF_WIDE_INT*): Move to ...
23600 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23601 ... here and remove the rest.
23602 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23604 2014-05-28 Richard Biener <rguenther@suse.de>
23606 PR tree-optimization/61335
23607 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23608 new range fails, drop to varying.
23610 2014-05-28 Olivier Hainque <hainque@adacore.com>
23612 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23613 (CPP_SPEC): Add entry for -mcpu=8548.
23614 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23615 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23617 2014-05-28 Tom de Vries <tom@codesourcery.com>
23619 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23620 * lra.c (initialize_lra_reg_info_element): Add init of
23621 actual_call_used_reg_set field.
23622 (lra): Call lra_create_live_ranges before lra_inheritance for
23624 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23626 * lra-constraints.c (need_for_call_save_p): Use
23627 actual_call_used_reg_set instead of call_used_reg_set for
23629 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23631 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23632 Tom de Vries <tom@codesourcery.com>
23634 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23636 (@item -fuse-caller-save): New item.
23638 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23639 Tom de Vries <tom@codesourcery.com>
23641 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23642 OPT_fuse_caller_save.
23644 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23645 Tom de Vries <tom@codesourcery.com>
23647 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23648 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23649 get_call_reg_set_usage.
23650 * resource.c (mark_set_resources, mark_target_live_regs): Use
23651 get_call_reg_set_usage.
23652 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23654 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23655 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23656 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23657 * ira-build.c (ira_create_allocno): Init
23658 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23659 (create_cap_allocno, propagate_allocno_info)
23660 (propagate_some_info_from_allocno)
23661 (copy_info_to_removed_store_destinations): Handle
23662 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23663 * ira-costs.c (ira_tune_allocno_costs): Use
23664 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23666 2014-05-28 Radovan Obradovic <robradovic@mips.com>
23667 Tom de Vries <tom@codesourcery.com>
23669 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23670 and function_used_regs_valid fields.
23671 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23672 find_all_hard_reg_sets.
23673 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23674 (get_call_reg_set_usage): New function.
23675 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23676 * regs.h (get_call_reg_set_usage): Declare.
23678 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23681 * config/dbx.h (License): Add Runtime Library Exception.
23682 * config/newlib-stdint.h (License): Same.
23683 * config/rtems.h (License): Same
23684 * config/initfini-array.h (License): Same
23685 * config/v850/v850.h (License): Same.
23686 * config/v850/v850-opts.h (License): Same
23687 * config/v850/rtems.h (License): Same.
23689 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
23692 * doc/extend.texi (Local Labels): Note that label differences are
23693 not supported for AVR.
23695 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
23696 Olivier Hainque <hainque@adacore.com>
23698 * rtl.h (set_for_reg_notes): Declare.
23699 * emit-rtl.c (set_for_reg_notes): New function.
23700 (set_unique_reg_note): Use it.
23701 * optabs.c (add_equal_note): Likewise
23703 2014-05-27 Andrew Pinski <apinski@cavium.com>
23705 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23706 Use <w> for the register in assembly template.
23707 (stack_protect_test): Use the mode of operands[0] for the result.
23708 (stack_protect_test_<mode>): Use <w> for the register
23709 in assembly template.
23711 2014-05-27 DJ Delorie <dj@redhat.com>
23713 * config/rx/rx.c (add_vector_labels): New.
23714 (rx_output_function_prologue): Call it.
23715 (rx_handle_func_attribute): Don't require empty arguments.
23716 (rx_handle_vector_attribute): New.
23717 (rx_attribute_table): Add "vector" attribute.
23718 * doc/extend.texi (interrupt, vector): Document new/changed
23719 RX-specific attributes.
23721 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23723 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23725 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23726 predicate to detect a negative quotient.
23728 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
23730 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23731 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23732 Add X - Y CMP 0 to X CMP Y transformation.
23733 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23735 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
23737 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23740 2014-05-27 Steve Ellcey <sellcey@mips.com>
23742 * config/mips/mips.c: Add include of cgraph.h.
23744 2014-05-27 Richard Biener <rguenther@suse.de>
23746 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23748 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23751 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23752 * config/arm/arm-cores.def (License): Same.
23753 * config/arm/arm-opts.h (License): Same.
23754 * config/arm/aout.h (License): Same.
23755 * config/arm/bpabi.h (License): Same.
23756 * config/arm/elf.h (License): Same.
23757 * config/arm/linux-elf.h (License): Same.
23758 * config/arm/linux-gas.h (License): Same.
23759 * config/arm/netbsd-elf.h (License): Same.
23760 * config/arm/uclinux-eabi.h (License): Same.
23761 * config/arm/uclinux-elf.h (License): Same.
23762 * config/arm/vxworks.h (License): Same.
23764 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23766 * config/arm/neon.md (neon_bswap<mode>): New pattern.
23767 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23768 (arm_init_neon_builtins): Handle NEON_BSWAP.
23769 Define required type nodes.
23770 (arm_expand_neon_builtin): Handle NEON_BSWAP.
23771 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23772 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23773 * config/arm/iterators.md (VDQHSD): New mode iterator.
23775 2014-05-27 Richard Biener <rguenther@suse.de>
23777 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23778 Try using literal operands when comparing value-ranges failed.
23780 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23782 * ira.c (commutative_operand): Adjust for change to recog_data.
23783 [Missing from previous commit.]
23785 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23787 * system.h (TEST_BIT): New macro.
23788 * recog.h (alternative_mask): New type.
23789 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23790 (recog_data_d): Replace alternative_enabled_p array with
23791 enabled_alternatives.
23792 (target_recog): New structure.
23793 (default_target_recog, this_target_recog): Declare.
23794 (get_enabled_alternatives, recog_init): Likewise.
23795 * recog.c (default_target_recog, this_target_recog): New variables.
23796 (get_enabled_alternatives): New function.
23797 (extract_insn): Use it.
23798 (recog_init): New function.
23799 (preprocess_constraints, constrain_operands): Adjust for change to
23801 * postreload.c (reload_cse_simplify_operands): Likewise.
23802 * reload.c (find_reloads): Likewise.
23803 * ira-costs.c (record_reg_classes): Likewise.
23804 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
23805 all alternatives after a disabled one would be skipped.
23806 (ira_implicitly_set_insn_hard_regs): Likewise.
23807 * ira.c (ira_setup_alts): Adjust for change to recog_data.
23808 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23809 with enabled_alternatives.
23810 * lra.c (free_insn_recog_data): Update accordingly.
23811 (lra_update_insn_recog_data): Likewise.
23812 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
23813 * lra-constraints.c (process_alt_operands): Likewise. Handle
23814 only_alternative as part of the enabled mask.
23815 * target-globals.h (this_target_recog): Declare.
23816 (target_globals): Add a recog field.
23817 (restore_target_globals): Restore this_target_recog.
23818 * target-globals.c: Include recog.h.
23819 (default_target_globals): Initialize recog field.
23820 (save_target_globals): Likewise.
23821 * reginfo.c (reinit_regs): Call recog_init.
23822 * toplev.c (backend_init_target): Likewise.
23824 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
23826 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23827 rather than any named insn's code.
23829 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
23832 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23833 * config/arm/arm-cores.def (License): Same.
23835 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
23837 * tree.h (decl_comdat_group): Declare.
23838 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23839 * tree.c (decl_comdat_group): Here.
23841 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
23843 PR rtl-optimization/61222
23844 * combine.c (simplify_shift_const_1): When moving a PLUS outside
23845 the shift, truncate the PLUS operand to the result mode.
23847 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
23850 * config/i386/i386.c (ix86_rtx_costs)
23851 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23854 2014-05-26 Martin Jambor <mjambor@suse.cz>
23856 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23859 2014-05-26 Richard Biener <rguenther@suse.de>
23861 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23862 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23863 Provide specializations.
23864 (wi::int_traits <HOST_WIDE_INT>,
23865 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23867 2014-05-26 Alan Modra <amodra@gmail.com>
23870 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23871 params and return a bool. Remove dead code. Update comment.
23872 Assert we have a const_int source. Remove bogus code from
23873 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
23874 handling of constants > 2G and reg_equal note, from..
23875 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
23876 return value. Update comment. If we can, use a new pseudo
23877 for intermediate calculations.
23878 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23880 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23881 call to rs6000_emit_set_const in splitter.
23882 (movdi_internal64+2, +3): Likewise.
23884 2014-05-26 Richard Biener <rguenther@suse.de>
23886 * system.h: Define __STDC_FORMAT_MACROS before
23887 including inttypes.h.
23888 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23889 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23890 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23891 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23892 HOST_WIDEST_INT_C): Remove.
23893 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23894 if C99 inttypes.h is not available.
23895 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23896 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23897 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23898 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23899 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23900 (struct output_info): Likewise.
23901 (print_statistics): Adjust.
23902 (dump_bitmap_statistics): Likewise.
23903 * bt-load.c (migrate_btr_defs): Print with PRId64.
23904 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23905 (MAX_SAFE_MULTIPLIER): Adjust.
23906 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23907 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23908 dump_cgraph_node): Likewise.
23909 * final.c (dump_basic_block_info): Likewise.
23910 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23911 * gcov.c (format_gcov): Likewise.
23912 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
23914 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23915 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23916 (inline_small_functions, dump_overall_stats, dump_inline_stats):
23917 Use PRId64 for dumping.
23918 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23919 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23920 (add_allocno_hard_regs): Adjust.
23921 * loop-doloop.c (doloop_modify): Print using PRId64.
23922 * loop-iv.c (inverse): Compute in uint64_t.
23923 (determine_max_iter, iv_number_of_iterations): Likewise.
23924 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23925 Print using PRId64.
23926 * lto-streamer-out.c (write_symbol): Use uint64_t.
23927 * mcf.c (CAP_INFINITY): Use int64_t maximum.
23928 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23929 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23930 * modulo-sched.c (const_iteration_count): Use int64_t.
23931 (sms_schedule): Dump using PRId64.
23932 * predict.c (dump_prediction): Likewise.
23933 * pretty-print.h (pp_widest_integer): Remove.
23934 * profile.c (get_working_sets, is_edge_inconsistent,
23935 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23936 * tree-pretty-print.c (pp_double_int): Remove case handling
23937 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23938 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23940 (pass_optimize_bswap::execute): Remove restriction on hosts.
23941 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23942 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23943 * tree.c (widest_int_cst_value): Remove.
23944 * tree.h (widest_int_cst_value): Likewise.
23945 * value-prof.c (dump_histogram_value): Print using PRId64.
23946 * gengtype.c (main): Also inject int64_t.
23947 * ggc-page.c (struct max_alignment): Use int64_t.
23948 * alloc-pool.c (struct allocation_object_def): Likewise.
23949 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23951 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23952 * doc/tm.texi: Regenerated.
23953 * gengtype-lex.l (IWORD): Handle [u]int64_t.
23954 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23955 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23956 mmix_output_register_setting): Use [u]int64_t in prototypes.
23957 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23958 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23959 mmix_output_octa, mmix_output_shifted_value): Adjust.
23960 (mmix_intval): Adjust. Remove unreachable case.
23961 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23963 2014-05-26 Richard Biener <rguenther@suse.de>
23965 * configure.ac: Drop __int64 type check. Insist that we
23966 found uint64_t and int64_t.
23967 * hwint.h (HOST_BITS_PER___INT64): Remove.
23968 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23969 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23970 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23971 (HOST_WIDEST_FAST_INT): Remove __int64 case.
23972 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23973 for dst_q_src_df_rms_cdt.
23974 * configure: Regenerate.
23975 * config.in: Likewise.
23977 2014-05-26 Michael Tautschnig <mt@debian.org>
23980 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23981 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23983 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23985 PR rtl-optimization/61278
23986 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23988 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
23990 PR rtl-optimization/61220
23991 Part of PR rtl-optimization/61225
23992 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23993 insn; skip split_edge for a block with only one successor.
23995 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
23997 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
24000 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24002 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
24003 (update_vtable_references): New function.
24004 (function_and_variable_visibility): Rewrite also vtable initializers.
24005 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
24007 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24009 * ggc.h (ggc_grow): New function.
24010 * ggc-none.c (ggc_grow): New function.
24011 * ggc-page.c (ggc_grow): Likewise.
24013 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24015 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
24016 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
24017 comdat_can_be_unshared_p, cgraph_externally_visible_p,
24018 varpool_externally_visible_p, can_replace_by_local_alias,
24019 update_visibility_by_resolution_info, function_and_variable_visibility,
24020 pass_data_ipa_function_and_variable_visibility,
24021 make_pass_ipa_function_and_variable_visibility,
24022 whole_program_function_and_variable_visibility,
24023 pass_data_ipa_whole_program_visibility,
24024 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
24025 * cgraph.h (cgraph_local_node_p): Declare.
24026 * ipa-visibility.c: New file.
24027 * Makefile.in (OBJS): Add ipa-visiblity.o
24029 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24031 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
24032 that var decl is available.
24034 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24036 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
24037 symtab_node pointer.
24038 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
24039 (find_decls_types_r): Do not walk COMDAT_GROUP.
24040 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
24041 * varasm.c (make_decl_one_only): Use set_comdat_group;
24042 create node if needed.
24043 * ipa-inline-transform.c (save_inline_function_body): Update
24044 way we decl->symtab mapping.
24045 * symtab.c (symtab_hash, hash_node, eq_node
24046 symtab_insert_node_to_hashtable): Remove.
24047 (symtab_register_node): Update.
24048 (symtab_unregister_node): Update.
24049 (symtab_get_node): Reimplement as inline function.
24050 (symtab_add_to_same_comdat_group): Update.
24051 (symtab_dissolve_same_comdat_group_list): Update.
24052 (dump_symtab_base): Update.
24053 (verify_symtab_base): Update.
24054 (symtab_make_decl_local): Update.
24055 (fixup_same_cpp_alias_visibility): Update.
24056 (symtab_nonoverwritable_alias): Update.
24057 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
24058 * ipa.c (update_visibility_by_resolution_info): UPdate.
24059 * bb-reorder.c: Include cgraph.h
24060 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
24061 with comdat groups.
24062 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
24063 * cgraph.c (cgraph_get_create_node): Update.
24064 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
24066 (symtab_get_node): Make inline.
24067 (symtab_insert_node_to_hashtable): Remove.
24068 (symtab_can_be_discarded): Update.
24069 (decl_comdat_group): New function.
24070 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
24072 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
24074 (read_comdat_group): New function.
24075 (input_node, input_varpool_node): Use it.
24076 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
24078 * mips.c (mips_start_unique_function): Likewise.
24079 (ix86_code_end): Likewise.
24080 (rs6000_code_end): Likweise.
24081 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
24083 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24085 * gengtype-state.c (fatal_reading_state): Bring offline.
24086 * optabs.c (widening_optab_handler): Bring offline.
24087 * optabs.h (widening_optab_handler): Likewise.
24088 * final.c (get_attr_length_1): Likewise.
24090 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
24092 * sched-int.h (sd_iterator_cond): Manually tail recurse.
24094 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24096 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
24097 (ppc440-compare): Include shift with dot.
24098 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
24099 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
24101 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
24103 (e6500_sfx2): Include it.
24104 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
24105 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
24106 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
24107 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
24108 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
24109 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
24110 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
24111 *lshiftrt_internal1le, *lshiftrt_internal1be,
24112 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
24113 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
24114 *rotldi3_internal10le, *rotldi3_internal10be,
24115 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
24116 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
24117 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
24118 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
24119 define_insns): Use type "shift" in the appropriate alternatives.
24121 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24123 * config/rs6000/rs6000.md (type): Add "logical". Delete
24125 (dot): Adjust comment.
24126 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
24127 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
24128 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
24129 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
24130 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
24131 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
24132 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
24133 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24135 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24136 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24137 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24138 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24139 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24140 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24141 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24142 * config/rs6000/8540.md (ppc8540_su): Adjust.
24143 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24144 cell-cmp-microcoded): Adjust.
24145 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24146 * config/rs6000/e500mc.md (e500mc_su): Adjust.
24147 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24148 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24149 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24150 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24151 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24152 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24153 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24155 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24156 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
24157 Adjust. Adjust comment.
24158 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24159 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24161 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24163 * config/rs6000/rs6000.md (type): Add "add".
24164 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
24165 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
24166 define_insns): Use it.
24167 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24169 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24170 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24171 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24172 * config/rs6000/601.md (ppc601-integer): Adjust.
24173 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24174 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24175 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24176 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24177 * config/rs6000/8540.md (ppc8540_su): Adjust.
24178 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24179 cell-cmp-microcoded): Adjust.
24180 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24181 * config/rs6000/e500mc.md (e500mc_su): Adjust.
24182 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24183 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24184 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24185 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24186 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24187 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24188 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24190 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24191 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
24192 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24193 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24195 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24197 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
24198 "delayed_compare", "var_delayed_compare".
24199 (var_shift): New attribute.
24200 (cell_micro): Adjust.
24201 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
24202 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
24203 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
24204 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
24205 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
24206 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
24207 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
24208 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
24209 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
24210 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24211 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
24212 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
24213 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
24214 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
24215 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
24216 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
24217 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
24218 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
24219 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
24220 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
24221 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
24222 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
24223 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
24224 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24225 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24227 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24228 * config/rs6000/440.md (ppc440-integer): Adjust.
24229 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24230 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
24231 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24232 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24233 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24234 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24235 * config/rs6000/8540.md (ppc8540_su): Adjust.
24236 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24237 cell-cmp-microcoded): Adjust.
24238 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
24239 * config/rs6000/e500mc.md (e500mc_su): Adjust.
24240 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
24241 e500mc64_delayed): Adjust.
24242 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
24243 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
24244 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24245 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
24246 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
24247 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
24248 power6-delayed-compare, power6-var-delayed-compare): Adjust.
24249 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
24250 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
24252 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24253 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24255 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24257 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
24258 (bits): New mode_attr.
24259 (idiv_ldiv): Delete mode_attr.
24260 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
24261 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24262 rs6000_adjust_priority, is_nonpipeline_insn,
24263 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24265 * config/rs6000/40x.md (ppc403-idiv): Adjust.
24266 * config/rs6000/440.md (ppc440-idiv): Adjust.
24267 * config/rs6000/476.md (ppc476-idiv): Adjust.
24268 * config/rs6000/601.md (ppc601-idiv): Adjust.
24269 * config/rs6000/603.md (ppc603-idiv): Adjust.
24270 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
24271 ppc620-ldiv): Adjust.
24272 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
24273 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
24274 * config/rs6000/8540.md (ppc8540_divide): Adjust.
24275 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
24276 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
24277 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
24278 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
24279 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
24280 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
24281 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
24282 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
24283 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
24284 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
24285 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
24286 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
24287 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
24288 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
24289 * config/rs6000/titan.md (titan_fxu_div): Adjust.
24291 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24293 * config/rs6000/rs6000.md (type): Delete "insert_word",
24294 "insert_dword". Add "insert".
24295 (size): Update comment.
24296 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24297 insn_must_be_first_in_group): Adjust.
24298 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
24299 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
24300 *insvsi_internal6, insvdi_internal): Adjust.
24302 * config/rs6000/40x.md (ppc403-integer): Adjust.
24303 * config/rs6000/440.md (ppc440-integer): Adjust.
24304 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
24305 * config/rs6000/601.md (ppc601-integer): Adjust.
24306 * config/rs6000/603.md (ppc603-integer): Adjust.
24307 * config/rs6000/6xx.md (ppc604-integer): Adjust.
24308 * config/rs6000/7450.md (ppc7450-integer): Adjust.
24309 * config/rs6000/7xx.md (ppc750-integer): Adjust.
24310 * config/rs6000/8540.md (ppc8540_su): Adjust.
24311 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
24312 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
24313 * config/rs6000/e500mc.md (e500mc_su): Adjust.
24314 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
24315 * config/rs6000/e5500.md (e5500_sfx): Adjust.
24316 * config/rs6000/e6500.md (e6500_sfx): Adjust.
24317 * config/rs6000/mpc.md (mpccore-integer): Adjust.
24318 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
24319 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
24320 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
24321 * config/rs6000/power7.md (power7-integer): Adjust.
24322 * config/rs6000/power8.md (power8-1cyc): Adjust.
24323 * config/rs6000/rs64.md (rs64a-integer): Adjust.
24324 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24326 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24328 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
24329 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
24330 (size): New attribute.
24331 (dot): New attribute.
24332 (cell_micro): Adjust.
24333 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
24334 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
24335 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
24336 umuldi3_highpart): Adjust.
24337 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24338 rs6000_adjust_priority, is_nonpipeline_insn,
24339 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24341 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
24342 ppc405-imul3): Adjust.
24343 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
24344 * config/rs6000/476.md (ppc476-imul): Adjust.
24345 * config/rs6000/601.md (ppc601-imul): Adjust.
24346 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
24347 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
24348 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
24349 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
24350 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
24352 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
24353 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
24354 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
24355 cell-imul): Adjust.
24356 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
24357 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
24358 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
24359 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
24360 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
24361 * config/rs6000/mpc.md (mpccore-imul): Adjust.
24362 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
24363 power4-lmul, power4-imul, power4-imul3): Adjust.
24364 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
24365 power5-lmul, power5-imul, power5-imul3): Adjust.
24366 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
24367 power6-lmul, power6-imul, power6-imul3): Adjust.
24368 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
24369 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
24371 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
24372 rs64a-lmul): Adjust.
24373 * config/rs6000/titan.md (titan_imul): Adjust.
24375 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24377 * config/rs6000/rs6000.md (type): Add new value "halfmul".
24378 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
24379 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
24380 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
24381 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
24382 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
24383 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
24384 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
24385 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
24386 * config/rs6000/titan.md: Delete nonsensical comment.
24387 (titan_imul): Add type imul3.
24388 (titan_mulhw): Remove type imul3; add type halfmul.
24390 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
24392 * config/rs6000/rs6000.md (type): Reorder, reformat.
24394 2014-05-23 Martin Jambor <mjambor@suse.cz>
24396 PR tree-optimization/53787
24397 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
24398 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
24399 analysis_done, update all uses.
24400 * ipa-prop.c: Include domwalk.h
24401 (param_analysis_info): Removed.
24402 (param_aa_status): New type.
24403 (ipa_bb_info): Likewise.
24404 (func_body_info): Likewise.
24405 (ipa_get_bb_info): New function.
24406 (aa_overwalked): Likewise.
24407 (find_dominating_aa_status): Likewise.
24408 (parm_bb_aa_status_for_bb): Likewise.
24409 (parm_preserved_before_stmt_p): Changed to use new param AA info.
24410 (load_from_unmodified_param): Accept func_body_info as a parameter
24411 instead of parms_ainfo.
24412 (parm_ref_data_preserved_p): Changed to use new param AA info.
24413 (parm_ref_data_pass_through_p): Likewise.
24414 (ipa_load_from_parm_agg_1): Likewise. Update callers.
24415 (compute_complex_assign_jump_func): Changed to use new param AA info.
24416 (compute_complex_ancestor_jump_func): Likewise.
24417 (ipa_compute_jump_functions_for_edge): Likewise.
24418 (ipa_compute_jump_functions): Removed.
24419 (ipa_compute_jump_functions_for_bb): New function.
24420 (ipa_analyze_indirect_call_uses): Likewise, moved variable
24422 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24423 and info, moved variable declarations down.
24424 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24426 (ipa_analyze_stmt_uses): Likewise.
24427 (ipa_analyze_params_uses): Removed.
24428 (ipa_analyze_params_uses_in_bb): New function.
24429 (ipa_analyze_controlled_uses): Likewise.
24430 (free_ipa_bb_info): Likewise.
24431 (analysis_dom_walker): New class.
24432 (ipa_analyze_node): Handle node-specific forbidden analysis,
24433 initialize and free func_body_info, use dominator walker.
24434 (ipcp_modif_dom_walker): New class.
24435 (ipcp_transform_function): Create and free func_body_info, use
24436 ipcp_modif_dom_walker, moved a lot of functionality there.
24438 2014-05-23 Marek Polacek <polacek@redhat.com>
24439 Jakub Jelinek <jakub@redhat.com>
24441 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24442 * gcc.c (sanitize_spec_function): Likewise.
24443 * convert.c (convert_to_integer): Include "ubsan.h". Add
24444 floating-point to integer instrumentation.
24445 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24446 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24447 SANITIZE_NONDEFAULT.
24448 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24449 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24450 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24451 * ubsan.c: Include "realmpfr.h" and "dfp.h".
24452 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24453 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24454 float/double/long double.
24455 (ubsan_instrument_float_cast): New function.
24456 * ubsan.h (ubsan_instrument_float_cast): Declare.
24458 2014-05-23 Jiong Wang <jiong.wang@arm.com>
24460 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24462 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
24463 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24464 Adjust for tailcalling through registers.
24465 * config/aarch64/aarch64.h (enum reg_class): New caller save
24467 (REG_CLASS_NAMES): Likewise.
24468 (REG_CLASS_CONTENTS): Likewise.
24469 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24470 Allow tailcalling without decls.
24472 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
24474 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24475 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24477 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24478 gsi, and variables v_* to v*.
24480 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
24482 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24484 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
24486 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24487 * omp-low.c: Update accordingly.
24489 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24490 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24491 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24492 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24493 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24494 GF_OMP_TARGET_KIND_UPDATE.
24496 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24497 Explicitly enumerate the expected region types.
24499 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
24502 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
24503 documentation; the old documentation didn't clearly state the
24504 constraints on the contents of the pointed-to storage.
24506 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24508 Fix bootstrap error on ia64
24509 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24510 Return default value.
24512 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
24514 PR tree-optimization/54733
24515 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24517 (find_bswap_or_nop_load): New.
24518 (find_bswap_1): Renamed to ...
24519 (find_bswap_or_nop_1): This. Also add support for memory source.
24520 (find_bswap): Renamed to ...
24521 (find_bswap_or_nop): This. Also add support for memory source and
24522 detection of bitwise operations equivalent to load in target
24524 (execute_optimize_bswap): Likewise. Also move its leading comment back
24525 in place and split statement transformation into ...
24526 (bswap_replace): This.
24528 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24530 PR rtl-optimization/61215
24531 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24532 simplify_gen_subreg until final substitution.
24534 2014-05-23 Alan Modra <amodra@gmail.com>
24537 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24538 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24539 Use "Y" constraint rather than "m".
24541 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24543 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24545 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24546 New function declaration.
24547 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24548 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24549 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24550 (aarch64_init_builtins) : Initialize builtins
24551 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24552 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24553 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24554 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24555 and __builtins_aarch64_set_fpsr.
24556 (aarch64_atomic_assign_expand_fenv): New function.
24557 * config/aarch64/aarch64.md (set_fpcr): New pattern.
24558 (get_fpcr) : Likewise.
24559 (set_fpsr) : Likewise.
24560 (get_fpsr) : Likewise.
24561 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24562 and UNSPECV_SET_FPSR.
24563 * doc/extend.texi (AARCH64 Built-in Functions) : Document
24564 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24565 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24567 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
24569 PR rtl-optimization/60969
24570 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24571 constraints. Set up mem cost for NO_REGS case.
24573 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
24575 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24577 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
24579 * config/darwin.c: Include "lto-section-names.h".
24580 (LTO_SEGMENT_NAME): Don't define.
24581 * config/i386/winnt.c: Include "lto-section-names.h".
24582 * lto-streamer.c: Include "lto-section-names.h".
24583 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24584 * lto-wrapper.c: Include "lto-section-names.h".
24585 (LTO_SECTION_NAME_PREFIX): Don't define.
24586 * lto-section-names.h: New file.
24587 * cgraphunit.c: Include "lto-section-names.h".
24589 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
24591 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24593 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
24596 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24598 2014-05-22 Nick Clifton <nickc@redhat.com>
24600 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24602 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
24604 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24605 -> (T)A transformation to integer types.
24607 2014-05-22 Teresa Johnson <tejohnson@google.com>
24609 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24610 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24611 (gcov_rewrite): Use gcov_nonruntime_assert.
24612 (gcov_open): Ditto.
24613 (gcov_write_words): Ditto.
24614 (gcov_write_length): Ditto.
24615 (gcov_read_words): Use gcov_nonruntime_assert, and remove
24616 gcc_assert from IN_LIBGCOV code.
24617 (gcov_read_summary): Use gcov_error to flag profile corruption.
24618 (gcov_sync): Use gcov_nonruntime_assert.
24619 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24620 (gcov_histo_index): Use gcov_nonruntime_assert.
24621 (static void gcov_histogram_merge): Ditto.
24622 (compute_working_sets): Ditto.
24623 * gcov-io.h (gcov_nonruntime_assert): Define.
24624 (gcov_error): Define for !IN_LIBGCOV
24626 2014-05-22 Richard Biener <rguenther@suse.de>
24628 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24629 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24630 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24631 and deallocation site.
24632 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24633 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24634 passing through the incoming points-to set.
24635 (handle_lhs_call): Use flags argument instead of recomputing it.
24636 (find_func_aliases_for_call): Call handle_lhs_call with proper
24639 2014-05-22 Jakub Jelinek <jakub@redhat.com>
24641 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24642 all padding bits in REAL_VALUE_TYPE are cleared.
24644 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24646 Cleanup and improve multipass_dfa_lookahead_guard
24647 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24648 (core2i7_first_cycle_multipass_begin,)
24649 (core2i7_first_cycle_multipass_issue,)
24650 (core2i7_first_cycle_multipass_backtrack): Update signature.
24651 * config/ia64/ia64.c
24652 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24653 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24654 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24656 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24657 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
24659 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24661 * doc/tm.texi: Regenerate.
24663 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24664 * haifa-sched.c (ready_try): Make signed to allow negative values.
24665 (rebug_ready_list_1): Update.
24666 (choose_ready): Simplify.
24667 (sched_extend_ready_list): Update.
24669 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24671 Remove IA64 speculation tweaking flags
24672 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24673 speculation tuning flags.
24674 (msched-prefer-non-data-spec-insns,)
24675 (msched-prefer-non-control-spec-insns): Obsolete options.
24676 * haifa-sched.c (choose_ready): Remove handling of
24677 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24678 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24679 and PREFER_NON_DATA_SPEC.
24680 * sel-sched.c (process_spec_exprs): Remove handling of
24681 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24683 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24685 Improve scheduling debug output
24686 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24687 (advance_one_cycle): Update.
24688 (schedule_insn, queue_to_ready): Add debug printouts.
24689 (debug_ready_list_1): New static function.
24690 (debug_ready_list): Update.
24691 (max_issue): Add debug printouts.
24692 (dump_insn_stream): New static function.
24693 (schedule_block): Use it. Also better indent printouts.
24695 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
24697 Fix sched_insn debug counter
24698 * haifa-sched.c (schedule_insn): Update.
24699 (struct haifa_saved_data): Add nonscheduled_insns_begin.
24700 (save_backtrack_point, restore_backtrack_point): Update.
24701 (first_nonscheduled_insn): New static function.
24702 (queue_to_ready, choose_ready): Use it.
24703 (schedule_block): Init nonscheduled_insns_begin.
24704 (sched_emit_insn): Update.
24707 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
24709 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24711 (aarch64_secondary_reload) : LikeWise.
24712 (aarch64_class_max_nregs) : Remove CORE_REGS.
24713 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24714 (REG_CLASS_NAMES) : Likewise.
24715 (REG_CLASS_CONTENTS) : LikeWise.
24716 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24718 2014-05-21 Guozhi Wei <carrot@google.com>
24721 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24723 (vqdmulhq_n_s16): Likewise.
24725 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24727 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24729 2014-05-21 Marek Polacek <polacek@redhat.com>
24732 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24734 2014-05-21 Martin Jambor <mjambor@suse.cz>
24736 * doc/invoke.texi (Optimize Options): Document parameters
24737 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24738 ipa-cp-array-index-hint-bonus.
24740 2014-05-21 Mark Wielaard <mjw@redhat.com>
24743 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24744 version >= 3 or not strict DWARF.
24745 * langhooks.h (struct lang_hooks_for_types): Add
24746 enum_underlying_base_type.
24747 * langhooks.c (lhd_enum_underlying_base_type): New function.
24748 * gcc/langhooks.h (struct lang_hooks_for_types): Add
24749 enum_underlying_base_type.
24750 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24751 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24752 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24754 2014-05-21 Richard Biener <rguenther@suse.de>
24756 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24758 2014-05-21 John Marino <gnugcc@marino.st>
24760 * config.gcc (*-*-dragonfly*): New target.
24761 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24762 * configure: Regenerate.
24763 * config/dragonfly-stdint.h: New.
24764 * config/dragonfly.h: New.
24765 * config/dragonfly.opt: New.
24766 * config/i386/dragonfly.h: New.
24767 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24769 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
24771 * tree.def (VOID_CST): New.
24772 * tree-core.h (TI_VOID): New.
24773 * tree.h (void_node): New.
24774 * tree.c (tree_node_structure_for_code, tree_code_size)
24775 (iterative_hash_expr): Handle VOID_CST.
24776 (build_common_tree_nodes): Initialize void_node.
24778 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
24780 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24782 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24784 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24787 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24788 flag_reorder_blocks_and_partition.
24789 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24791 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24794 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
24796 (*addc_r_t): Add new insn_and_split.
24798 2014-05-21 Jakub Jelinek <jakub@redhat.com>
24800 PR middle-end/61252
24801 * omp-low.c (handle_simd_reference): New function.
24802 (lower_rec_input_clauses): Use it. Defer adding reference
24803 initialization even for reduction without placeholder if in simd,
24804 handle it properly later on.
24806 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24808 PR tree-optimization/60899
24809 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24810 assume all static symbols will have definition wile parsing and
24811 check the do have definition later in compilation; check that
24812 variable referring symbol will be output before concluding that
24813 reference is safe; be conservative for referring local statics;
24814 be more precise about when comdat is output in other partition.
24816 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24819 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24821 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24822 (ipa_inline): Loop inline_to_all_callers until no more aliases
24825 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24827 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24828 set writeonly flag only for vars actually written to.
24830 2014-05-20 Dehao Chen <dehao@google.com>
24832 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24833 and callee count to get clone count.
24834 * tree-inline.c (expand_call_inline): Use callee count instead of bb
24835 count in copy_body.
24837 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
24839 PR rtl-optimization/61243
24840 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24842 2014-05-20 Xinliang David Li <davidxl@google.com>
24844 * cgraphunit.c (walk_polymorphic_call_targets): Add
24845 dbgcnt and fopt-info support.
24846 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24847 * ipa-devirt.c (ipa_devirt): Ditto.
24848 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24849 * ipa.c (walk_polymorphic_call_targets): Ditto.
24850 * gimple-fold.c (fold_gimple_assign): Ditto.
24851 (gimple_fold_call): Ditto.
24852 * dbgcnt.def: New counter.
24854 2014-05-20 DJ Delorie <dj@redhat.com>
24856 * config/msp430/msp430.md (split): Don't allow subregs when
24857 splitting SImode adds.
24858 (andneghi): Fix subtraction logic.
24859 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24861 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
24863 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24865 * except.c (switch_to_exception_section, resolve_unique_section,
24866 get_named_text_section, default_function_rodata_section,
24867 align_variable, get_block_for_decl, default_section_type_flags):
24868 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24869 * symtab.c (symtab_add_to_same_comdat_group,
24870 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24871 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24873 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24874 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24875 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24876 (c6x_function_in_section_p): Likewise.
24877 * config/darwin.c (machopic_select_section): Likewise.
24878 * config/arm/arm.c (arm_function_in_section_p): Likewise.
24879 * config/mips/mips.c (mips_function_rodata_section): Likewise.
24880 * config/mep/mep.c (mep_select_section): LIkewise.
24881 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24883 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
24885 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24886 EH region of calls to pure functions that can throw an exception.
24887 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24888 (copy_reference_ops_from_call): Also copy the EH region of the call if
24889 it can throw an exception.
24891 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24893 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24894 nested VEC_SELECTs that are inverses of each other.
24896 2014-05-20 Richard Biener <rguenther@suse.de>
24898 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24899 (extract_and_process_scc_for_name): not here.
24900 (cond_dom_walker::before_dom_children): Only process
24901 stmts that end the BB in interesting ways.
24902 (run_scc_vn): Mark param uses as visited.
24904 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24906 * config/arm/arm.md (arith_shiftsi): Do not predicate for
24909 2014-05-20 Nick Clifton <nickc@redhat.com>
24911 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24912 (msp430_gimplify_va_arg_expr): New function.
24913 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24915 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24916 operand 0 in order to prevent confusion about the number of
24917 registers involved.
24919 2014-05-20 Richard Biener <rguenther@suse.de>
24921 PR tree-optimization/61221
24922 * tree-ssa-pre.c (el_to_update): Remove.
24923 (eliminate_dom_walker::before_dom_children): Handle released
24924 VDEFs by value-numbering them to the associated VUSE. Update
24925 stmt immediately for substituted call address.
24926 (eliminate): Remove delayed stmt updating code.
24927 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24928 possibly late re-numbered vuses.
24929 (vn_reference_lookup_2): Adjust.
24930 (vn_reference_lookup_pieces): Likewise.
24931 (vn_reference_lookup): Likewise.
24933 2014-05-20 Richard Biener <rguenther@suse.de>
24935 * config.gcc: Remove need_64bit_hwint.
24936 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24937 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24939 * config.in: Regenerate.
24940 * configure: Likewise.
24942 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
24944 * doc/extend.texi: Create Label Attributes section,
24945 move all label attributes into it and reference it.
24947 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
24949 * arm.c (thumb1_reorg): When scanning backwards skip anything
24950 that's not a proper insn.
24952 2014-05-19 Richard Biener <rguenther@suse.de>
24954 PR tree-optimization/61221
24955 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24956 Do nothing for unreachable blocks.
24957 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24958 Improve unreachability detection.
24960 2014-05-19 Richard Biener <rguenther@suse.de>
24962 PR tree-optimization/61209
24963 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24965 2014-05-19 Nick Clifton <nickc@redhat.com>
24967 * except.c (init_eh): Fix computation of builtin setjmp buffer
24968 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24970 2014-05-19 Richard Biener <rguenther@suse.de>
24972 PR tree-optimization/61184
24973 * tree-vrp.c (is_negative_overflow_infinity): Use
24974 TREE_OVERFLOW_P and do that check first.
24975 (is_positive_overflow_infinity): Likewise.
24976 (is_overflow_infinity): Likewise.
24977 (vrp_operand_equal_p): Properly treat operands with
24978 differing overflow as not equal.
24980 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
24982 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24983 shift simplification where it was intended.
24985 2014-05-19 Christian Bruel <christian.bruel@st.com>
24988 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24990 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
24993 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24996 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
24998 * reg-notes.def (CROSSING_JUMP): Likewise.
24999 * rtl.h (rtx_def): Update comment for jump flag.
25000 (CROSSING_JUMP_P): Define.
25001 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
25002 of a REG_CROSSING_JUMP note.
25003 * cfghooks.c (tidy_fallthru_edges): Likewise.
25004 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
25005 * emit-rtl.c (try_split): Likewise.
25006 * haifa-sched.c (sched_create_recovery_edges): Likewise.
25007 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
25008 * jump.c (redirect_jump_2): Likewise.
25009 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
25010 (relax_delay_slots): Likewise.
25011 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
25012 (bbit_di): Likewise.
25013 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
25014 * config/sh/sh.md (jump_compact): Likewise.
25015 * bb-reorder.c (rotate_loop): Likewise.
25016 (pass_duplicate_computed_gotos::execute): Likewise.
25017 (add_reg_crossing_jump_notes): Rename to...
25018 (update_crossing_jump_flags): ...this.
25019 (pass_partition_blocks::execute): Update accordingly.
25021 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
25023 * tree.h: Remove extraneous template <>.
25025 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
25027 * ipa.c (symtab_remove_unreachable_nodes): Remove
25028 symbol from comdat group if its body was eliminated.
25029 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
25030 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
25031 (symtab_unregister_node): ... this one.
25032 (verify_symtab_base): More strict checking of comdats.
25033 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
25035 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
25037 * tree-pass.h (make_pass_ipa_comdats): New pass.
25038 * timevar.def (TV_IPA_COMDATS): New timevar.
25039 * passes.def (pass_ipa_comdats): Add.
25040 * Makefile.in (OBJS): Add ipa-comdats.o
25041 * ipa-comdats.c: New file.
25043 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
25045 * ipa.c (update_visibility_by_resolution_info): New function.
25046 (function_and_variable_visibility): Use it.
25048 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
25050 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
25052 (FOR_EACH_DEFINED_SYMBOL): New macro.
25053 (varpool_first_static_initializer, varpool_next_static_initializer,
25054 varpool_first_defined_variable, varpool_next_defined_variable):
25056 (symtab_in_same_comdat_p): Correctly deal with inline functions.
25058 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25060 * ggc-page.c (ggc_handle_finalizers): Add comment.
25062 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25064 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
25065 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
25066 (ggc_internal_cleared_alloc): Likewise.
25067 * ggc-page.c (finalizer): New class.
25068 (vec_finalizer): Likewise.
25069 (globals::finalizers): New member.
25070 (globals::vec_finalizers): Likewise.
25071 (ggc_internal_alloc): Record the finalizer if any for the block being
25073 (ggc_handle_finalizers): New function.
25074 (ggc_collect): Call ggc_handle_finalizers.
25075 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
25077 (ggc_internal_cleared_alloc): Likewise.
25078 (finalize): New function.
25079 (need_finalization_p): Likewise.
25080 (ggc_alloc): Install the type's destructor as the finalizer if it
25081 might do something.
25082 (ggc_cleared_alloc): Likewise.
25083 (ggc_vec_alloc): Likewise.
25084 (ggc_cleared_vec_alloc): Likewise.
25086 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25088 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
25090 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25092 * alias.c (record_alias_subset): Adjust.
25093 * bitmap.c (bitmap_element_allocate): Likewise.
25094 (bitmap_gc_alloc_stat): Likewise.
25095 * cfg.c (init_flow): Likewise.
25096 (alloc_block): Likewise.
25097 (unchecked_make_edge): Likewise.
25098 * cfgloop.c (alloc_loop): Likewise.
25099 (flow_loops_find): Likewise.
25100 (rescan_loop_exit): Likewise.
25101 * cfgrtl.c (init_rtl_bb_info): Likewise.
25102 * cgraph.c (insert_new_cgraph_node_version): Likewise.
25103 (cgraph_allocate_node): Likewise.
25104 (cgraph_create_edge_1): Likewise.
25105 (cgraph_allocate_init_indirect_info): Likewise.
25106 * cgraphclones.c (cgraph_clone_edge): Likewise.
25107 * cgraphunit.c (add_asm_node): Likewise.
25108 (init_lowered_empty_function): Likewise.
25109 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
25110 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25111 (alpha_use_linkage): Likewise.
25112 * config/arc/arc.c (arc_init_machine_status): Likewise.
25113 * config/arm/arm.c (arm_init_machine_status): Likewise.
25114 * config/avr/avr.c (avr_init_machine_status): Likewise.
25115 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25116 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
25117 * config/cris/cris.c (cris_init_machine_status): Likewise.
25118 * config/darwin.c (machopic_indirection_name): Likewise.
25119 (darwin_build_constant_cfstring): Likewise.
25120 (darwin_enter_string_into_cfstring_table): Likewise.
25121 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
25122 * config/frv/frv.c (frv_init_machine_status): Likewise.
25123 * config/i386/i386.c (get_dllimport_decl): Likewise.
25124 (ix86_init_machine_status): Likewise.
25125 (assign_386_stack_local): Likewise.
25126 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25127 (i386_pe_maybe_record_exported_symbol): Likewise.
25128 (i386_pe_record_stub): Likewise.
25129 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25130 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25131 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25132 (m32c_note_pragma_address): Likewise.
25133 * config/mep/mep.c (mep_init_machine_status): Likewise.
25134 (mep_note_pragma_flag): Likewise.
25135 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25136 (mips16_local_alias): Likewise.
25137 (mips_init_machine_status): Likewise.
25138 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25139 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25140 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
25141 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
25142 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
25143 * config/pa/pa.c (pa_init_machine_status): Likewise.
25144 (pa_get_deferred_plabel): Likewise.
25145 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
25146 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25147 (rs6000_init_machine_status): Likewise.
25148 (output_toc): Likewise.
25149 * config/s390/s390.c (s390_init_machine_status): Likewise.
25150 * config/score/score.c (score_output_external): Likewise.
25151 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25152 * config/spu/spu.c (spu_init_machine_status): Likewise.
25153 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
25154 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
25155 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25156 * coverage.c (coverage_end_function): Likewise.
25157 * dbxout.c (dbxout_init): Likewise.
25158 * doc/gty.texi: Don't mention variable_size attribute.
25159 * dwarf2cfi.c (new_cfi): Adjust.
25160 (new_cfi_row): Likewise.
25161 (copy_cfi_row): Likewise.
25162 (create_cie_data): Likewise.
25163 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
25164 (new_loc_descr): Likewise.
25165 (find_AT_string_in_table): Likewise.
25166 (add_addr_table_entry): Likewise.
25167 (new_die): Likewise.
25168 (add_var_loc_to_decl): Likewise.
25169 (clone_die): Likewise.
25170 (clone_as_declaration): Likewise.
25171 (break_out_comdat_types): Likewise.
25172 (new_loc_list): Likewise.
25173 (add_loc_descr_to_each): Likewise.
25174 (add_location_or_const_value_attribute): Likewise.
25175 (add_linkage_name): Likewise.
25176 (lookup_filename): Likewise.
25177 (dwarf2out_var_location): Likewise.
25178 (new_line_info_table): Likewise.
25179 (dwarf2out_init): Likewise.
25180 (mem_loc_descriptor): Likewise.
25181 (loc_descriptor): Likewise.
25182 (add_const_value_attribute): Likewise.
25183 (tree_add_const_value_attribute): Likewise.
25184 (comp_dir_string): Likewise.
25185 (dwarf2out_vms_debug_main_pointer): Likewise.
25186 (string_cst_pool_decl): Likewise.
25187 * emit-rtl.c (set_mem_attrs): Likewise.
25188 (get_reg_attrs): Likewise.
25189 (start_sequence): Likewise.
25190 (init_emit): Likewise.
25191 (init_emit_regs): Likewise.
25192 * except.c (init_eh_for_function): Likewise.
25193 (gen_eh_region): Likewise.
25194 (gen_eh_region_catch): Likewise.
25195 (gen_eh_landing_pad): Likewise.
25196 (add_call_site): Likewise.
25197 * function.c (add_frame_space): Likewise.
25198 (insert_temp_slot_address): Likewise.
25199 (assign_stack_temp_for_type): Likewise.
25200 (get_hard_reg_initial_val): Likewise.
25201 (allocate_struct_function): Likewise.
25202 (prepare_function_start): Likewise.
25203 (types_used_by_var_decl_insert): Likewise.
25204 * gengtype.c (variable_size_p): Remove function.
25205 (enum alloc_quantity): Remove enum.
25206 (write_typed_alloc_def): Remove function.
25207 (write_typed_struct_alloc_def): Likewise.
25208 (write_typed_typedef_alloc_def): Likewise.
25209 (write_typed_alloc_defns): Likewise.
25211 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
25212 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
25213 * ggc.h (ggc_alloc): new function.
25214 (ggc_cleared_alloc): Likewise.
25215 (ggc_vec_alloc): Template on type of vector element, and remove
25216 element size argument.
25217 (ggc_cleared_vec_alloc): Likewise.
25218 * gimple.c (gimple_build_omp_for): Adjust.
25219 (gimple_copy): Likewise.
25220 * ipa-cp.c (get_replacement_map): Likewise.
25221 (find_aggregate_values_for_callers_subset): Likewise.
25222 (known_aggs_to_agg_replacement_list): Likewise.
25223 * ipa-devirt.c (get_odr_type): Likewise.
25224 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
25225 (read_agg_replacement_chain): Likewise.
25226 * loop-iv.c (get_simple_loop_desc): Likewise.
25227 * lto-cgraph.c (input_node_opt_summary): Likewise.
25228 * lto-section-in.c (lto_new_in_decl_state): Likewise.
25229 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25230 (input_eh_region): Likewise.
25231 (input_eh_lp): Likewise.
25232 (input_cfg): Likewise.
25233 * optabs.c (set_optab_libfunc): Likewise.
25234 (init_tree_optimization_optabs): Likewise.
25235 (set_conv_libfunc): Likewise.
25236 * passes.c (do_per_function_toporder): Likewise.
25237 * rtl.h: Don't use variable_size gty attribute.
25238 * sese.c (if_region_set_false_region): Adjust.
25239 * stringpool.c (gt_pch_save_stringpool): Likewise.
25240 * target-globals.c (save_target_globals): Likewise.
25241 * toplev.c (general_init): Likewise.
25242 * trans-mem.c (record_tm_replacement): Likewise.
25243 (split_bb_make_tm_edge): Likewise.
25244 * tree-cfg.c (move_sese_region_to_fn): Likewise.
25245 * tree-data-ref.h (lambda_vector_new): Likewise.
25246 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25247 * tree-iterator.c (tsi_link_before): Likewise.
25248 (tsi_link_after): Likewise.
25249 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25250 * tree-ssa-loop-niter.c (record_estimate): Likewise.
25251 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25252 * tree-ssa-operands.h: Don't use variable_size gty attribute.
25253 * tree-ssa.c (init_tree_ssa): Adjust.
25254 * tree-ssanames.c (set_range_info): Likewise.
25255 (get_ptr_info): Likewise.
25256 (duplicate_ssa_name_ptr_info): Likewise.
25257 (duplicate_ssa_name_range_info): Likewise.
25258 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
25259 (unpack_ts_fixed_cst_value_fields): Likewise.
25260 * tree.c (build_fixed): Likewise.
25261 (build_real): Likewise.
25262 (build_string): Likewise.
25263 (decl_priority_info): Likewise.
25264 (decl_debug_expr_insert): Likewise.
25265 (decl_value_expr_insert): Likewise.
25266 (decl_debug_args_insert): Likewise.
25267 (type_hash_add): Likewise.
25268 (build_omp_clause): Likewise.
25269 * ubsan.c (decl_for_type_insert): Likewise.
25270 * varasm.c (get_unnamed_section): Likewise.
25271 (get_noswitch_section): Likewise.
25272 (get_section): Likewise.
25273 (get_block_for_section): Likewise.
25274 (create_block_symbol): Likewise.
25275 (build_constant_desc): Likewise.
25276 (create_constant_pool): Likewise.
25277 (force_const_mem): Likewise.
25278 (record_tm_clone_pair): Likewise.
25279 * varpool.c (varpool_create_empty_node): Likewise.
25281 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
25283 * dwarf2out.c (tree_add_const_value_attribute): Call
25284 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
25285 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
25286 instead of ggc_internal_<x>alloc_stat.
25287 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
25288 (ggc_realloc): Likewise.
25289 * ggc-none.c (ggc_internal_alloc): Likewise.
25290 (ggc_internal_cleared_alloc): Likewise.
25291 * ggc-page.c: Likewise.
25292 * ggc.h (ggc_internal_alloc_stat): Likewise.
25293 (ggc_internal_alloc): Remove macro.
25294 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
25295 (ggc_internal_cleared_alloc): Remove macro.
25296 (GGC_RESIZEVEC): Adjust.
25297 (ggc_resizevar): Remove macro.
25298 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
25299 (ggc_internal_cleared_vec_alloc_stat): Likewise.
25300 (ggc_internal_vec_cleared_alloc): Remove macro.
25301 (ggc_alloc_atomic_stat): Drop _stat suffix.
25302 (ggc_alloc_atomic): Remove macro.
25303 (ggc_alloc_cleared_atomic): Remove macro.
25304 (ggc_alloc_string_stat): Drop _stat suffix.
25305 (ggc_alloc_string): Remove macro.
25306 (ggc_alloc_rtx_def_stat): Adjust.
25307 (ggc_alloc_tree_node_stat): Likewise.
25308 (ggc_alloc_cleared_tree_node_stat): Likewise.
25309 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
25310 (ggc_alloc_cleared_simd_clone_stat): Likewise.
25311 * gimple.c (gimple_build_omp_for): Likewise.
25312 (gimple_copy): Likewise.
25313 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
25314 * toplev.c (realloc_for_line_map): Adjust.
25315 * tree-data-ref.h (lambda_vector_new): Likewise.
25316 * tree-phinodes.c (allocate_phi_node): Likewise.
25317 * tree.c (grow_tree_vec_stat): Likewise.
25318 * vec.h (va_gc::reserve): Adjust.
25320 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
25322 * config/microblaze/microblaze.c (break_handler): New Declaration.
25323 (microblaze_break_function_p,microblaze_is_break_handler): New.
25324 (compute_frame_size): Use microblaze_break_function_p.
25325 Add the test of break_handler.
25326 (microblaze_function_prologue) : Add the test of variable
25327 break_handler. Check the fnname by BREAK_HANDLER_NAME.
25328 (microblaze_function_epilogue) : Add the test of break_handler.
25329 (microblaze_globalize_label) : Add the test of break_handler.
25330 Check the name by BREAK_HANDLER_NAME.
25332 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
25334 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
25335 microblaze_is_break_handler test.
25336 (call_internal1,call_value_intern): Use microblaze_break_function_p.
25337 Use SYMBOL_REF_DECL.
25339 * config/microblaze/microblaze-protos.h
25340 (microblaze_break_function_p,microblaze_is_break_handler):
25343 * doc/extend.texi (MicroBlaze break_handler Functions): Document
25344 new MicroBlaze break_handler functions.
25346 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
25348 * doc/extend.texi (Size of an asm): Move node text according
25349 to its @menu entry position.
25351 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
25353 PR tree-optimization/61140
25354 PR tree-optimization/61150
25355 PR tree-optimization/61197
25356 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
25358 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
25360 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
25362 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
25364 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
25365 __SIZEOF_INT128__ is defined.
25367 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25369 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
25370 (rs6000_delegitimize_address): Use it.
25372 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
25374 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
25375 inplace argument. Store the new address in the original MEM when true.
25376 * emit-rtl.c (change_address_1): Likewise.
25377 (adjust_address_1, adjust_automodify_address_1, offset_address):
25378 Update accordingly.
25379 * rtl.h (plus_constant): Add an inplace argument.
25380 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
25381 when true. Avoid generating (plus X (const_int 0)).
25382 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
25383 in-place. Pass true to plus_constant.
25384 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
25386 2014-05-16 Dehao Chen <dehao@google.com>
25388 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
25390 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25393 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
25395 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
25397 2014-05-16 Dehao Chen <dehao@google.com>
25399 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
25400 optimize_function_for_size_p.
25401 * regs.h (REG_FREQ_FROM_BB): Likewise.
25403 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25406 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
25407 negt_reg_operand cases.
25408 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
25410 * config/sh/predicates.md (cbranch_treg_value): Simplify.
25412 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
25414 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25417 2014-05-16 David Malcolm <dmalcolm@redhat.com>
25420 2014-04-29 David Malcolm <dmalcolm@redhat.com>
25422 * tree-cfg.c (dump_function_to_file): Dump the return type of
25423 functions, in a line to itself before the function body, mimicking
25424 the layout of a C function.
25426 2014-05-16 Dehao Chen <dehao@google.com>
25428 * cfghooks.c (make_forwarder_block): Use direct computation to
25429 get fall-through edge's count and frequency.
25431 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
25433 * config/arc/arc.c (arc_init): Fix typo in error message.
25434 * config/i386/i386.c (ix86_expand_builtin): Likewise.
25435 (split_stack_prologue_scratch_regno): Likewise.
25436 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25437 word from error message.
25439 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25441 * ira-costs.c: Fix typo in comment.
25443 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
25445 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25447 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
25449 * varpool.c (dump_varpool_node): Dump write-only flag.
25450 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25452 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25453 write-only variables.
25454 * ipa.c (process_references): New function.
25455 (set_readonly_bit): New function.
25456 (set_writeonly_bit): New function.
25457 (clear_addressable_bit): New function.
25458 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25459 fix handling of aliases.
25460 * cgraph.h (struct varpool_node): Add writeonly flag.
25462 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
25464 PR rtl-optimization/60969
25465 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25466 Calculate costs for this case.
25468 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
25470 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25471 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25473 2014-05-16 Richard Biener <rguenther@suse.de>
25475 PR tree-optimization/61194
25476 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25477 bool patterns ending in a COND_EXPR.
25479 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25481 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25483 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25485 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25486 where we were unable to cost an RTX.
25488 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25490 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25493 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25494 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25496 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25498 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25499 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25501 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25502 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25504 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25505 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25507 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25510 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25511 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25513 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25516 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25517 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25519 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25520 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25522 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25523 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25525 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25526 rotates and shifts.
25528 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25529 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25531 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25532 ZERO_EXTEND and SIGN_EXTEND better.
25534 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25535 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25537 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25538 logical operations.
25540 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25541 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25543 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25544 costs when costing loads and stores to memory.
25546 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25547 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
25549 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25552 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25554 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25556 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25557 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25559 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25561 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25563 (aarch64_rtx_mult_cost): New.
25564 (aarch64_rtx_costs): Use it, refactor as appropriate.
25566 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25567 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
25569 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25570 emit instructions, return number of instructions which would
25572 (aarch64_add_constant): Update call to aarch64_build_constant.
25573 (aarch64_output_mi_thunk): Likewise.
25574 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25577 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25579 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25580 (TARGET_RTX_COSTS): Call it.
25582 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25584 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25585 (cortexa57_vector_cost): Likewise.
25586 (cortexa57_tunings): Use them.
25588 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
25590 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25591 (cpu_addrcost_table): Use it.
25592 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25593 (aarch64_address_cost): Rewrite using aarch64_classify_address,
25596 2014-05-16 Richard Biener <rguenther@suse.de>
25598 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25599 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25600 (visit_phi): Ignore edges marked as not executable.
25601 (class cond_dom_walker): New.
25602 (cond_dom_walker::before_dom_children): Value-number
25603 control statements and mark successor edges as not
25604 executable if possible.
25605 (run_scc_vn): First walk all control statements in
25606 dominator order, marking edges as not executable.
25607 * tree-inline.c (copy_edges_for_bb): Be not confused
25608 about random edge flags.
25610 2014-05-16 Richard Biener <rguenther@suse.de>
25612 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25614 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
25617 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25618 (__TM_simple_begin): Use it.
25619 (__TM_begin): Likewise.
25621 2014-05-15 Martin Jambor <mjambor@suse.cz>
25624 * ipa-prop.c (update_indirect_edges_after_inlining): Check
25625 type_preserved flag when the indirect edge is polymorphic.
25627 2014-05-15 Martin Jambor <mjambor@suse.cz>
25629 PR tree-optimization/61090
25630 * tree-sra.c (sra_modify_expr): Pass the current gsi to
25631 build_ref_for_model.
25633 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25635 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25636 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25638 2014-05-15 Jakub Jelinek <jakub@redhat.com>
25640 PR tree-optimization/61158
25641 * fold-const.c (fold_binary_loc): If X is zero-extended and
25642 shiftc >= prec, make sure zerobits is all ones instead of
25643 invoking undefined behavior.
25645 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25647 * regcprop.h: New file.
25648 * regcprop.c (skip_debug_insn_p): New decl.
25649 (replace_oldest_value_reg): Check skip_debug_insn_p.
25650 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25651 * shrink-wrap.c: Include regcprop.h.
25652 (prepare_shrink_wrap): Call
25653 copyprop_hardreg_forward_bb_without_debug_insn.
25655 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25657 * shrink-wrap.h: Update comment.
25658 * shrink-wrap.c: Update comment.
25659 (next_block_for_reg): Rename to live_edge_for_reg.
25660 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25661 (move_insn_for_shrink_wrap): Split live_edge.
25662 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25664 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25666 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25668 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25669 * config/sparc/sparc.md (fptype_ut699): New attribute.
25670 (in_branch_delay): Return false if -mfix-ut699 is specified and
25671 fptype_ut699 is set to single.
25672 (truncdfsf2): Add fptype_ut699 attribute.
25673 (fix_truncdfsi2): Likewise.
25674 (floatsisf2): Change fptype attribute.
25675 (fix_truncsfsi2): Likewise.
25676 (negtf2_notv9): Delete.
25677 (negtf2_v9): Likewise.
25678 (negtf2_hq): New instruction.
25679 (negtf2): New instruction and splitter.
25680 (negdf2_notv9): Rewrite.
25681 (abstf2_notv9): Delete.
25682 (abstf2_hq_v9): Likewise.
25683 (abstf2_v9): Likewise.
25684 (abstf2_hq): New instruction.
25685 (abstf2): New instruction and splitter.
25686 (absdf2_notv9): Rewrite.
25688 2014-05-14 Cary Coutant <ccoutant@google.com>
25691 * opts.c (common_handle_option): Don't special-case "-g".
25692 (set_debug_level): Default to at least level 2 with "-g".
25694 2014-05-14 DJ Delorie <dj@redhat.com>
25696 * config/msp430/msp430.c (msp430_builtin): Add
25697 MSP430_BUILTIN_DELAY_CYCLES.
25698 (msp430_init_builtins): Register void __delay_cycles(long long).
25699 (msp430_builtin_decl): Add it.
25700 (cg_magic_constant): New.
25701 (msp430_expand_delay_cycles): New.
25702 (msp430_expand_builtin): Call it.
25703 (msp430_print_operand_raw): Change integer printing from "int" to
25705 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25706 (delay_cycles_start): New.
25707 (delay_cycles_end): New.
25708 (delay_cycles_32): New.
25709 (delay_cycles_32x): New.
25710 (delay_cycles_16): New.
25711 (delay_cycles_16x): New.
25712 (delay_cycles_2): New.
25713 (delay_cycles_1): New.
25714 * doc/extend.texi: Document __delay_cycles().
25716 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
25718 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25719 length attribute computation.
25721 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
25724 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25726 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
25729 * config/sparc/sparc.md: Fix types of low and high in DI constant
25730 splitter. Use gen_int_mode in some other splitters.
25732 2014-05-14 Martin Jambor <mjambor@suse.cz>
25735 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25737 2014-05-14 James Norris <jnorris@codesourcery.com>
25739 * omp-low.c (expand_parallel_call): Remove shadow variable.
25740 (expand_omp_taskreg): Likewise.
25742 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
25744 * common/config/i386/i386-common.c
25745 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25746 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25747 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25748 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25749 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25750 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25751 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25752 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25753 xsavecintrin.h, xsavesintrin.h.
25754 (x86_64-*-*): Ditto.
25755 * config/i386/clflushoptintrin.h: New.
25756 * config/i386/xsavecintrin.h: Ditto.
25757 * config/i386/xsavesintrin.h: Ditto.
25758 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25759 (bit_XSAVES): Ditto.
25760 (bit_XSAVES): Ditto.
25761 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25762 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25764 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25765 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25766 OPTION_MASK_ISA_XSAVES.
25767 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25768 -mxsavec, -mxsaves.
25769 (PTA_CLFLUSHOPT) Define.
25770 (PTA_XSAVEC): Ditto.
25771 (PTA_XSAVES): Ditto.
25772 (ix86_option_override_internal): Handle new options.
25773 (ix86_valid_target_attribute_inner_p): Ditto.
25774 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25775 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25776 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25777 (bdesc_special_args): Add __builtin_ia32_xsaves,
25778 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25779 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25780 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25781 (ix86_expand_builtin): Handle new builtins.
25782 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25783 (TARGET_CLFLUSHOPT_P): Ditto.
25784 (TARGET_XSAVEC): Ditto.
25785 (TARGET_XSAVEC_P): Ditto.
25786 (TARGET_XSAVES): Ditto.
25787 (TARGET_XSAVES_P): Ditto.
25788 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25789 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25790 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25792 (ANY_XRSTOR64): Ditto.
25794 (xrstor): Change into <xrstor>.
25795 (xrstor_rex64): Change into <xrstor>_rex64.
25796 (xrstor64): Change into <xrstor>64
25798 * config/i386/i386.opt (mclflushopt): New.
25801 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25803 * doc/invoke.texi: Document new options.
25805 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25807 PR rtl-optimization/60866
25808 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25809 Default it to -1. Pass it down to init_simplejump_data.
25810 (init_simplejump_data): New parameter old_seqno. Pass it down
25811 to get_seqno_for_a_jump.
25812 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
25813 initializing new jump seqno as a last resort. Add comment.
25814 (sel_redirect_edge_and_branch): Save old seqno of the conditional
25815 jump and pass it down to sel_init_new_insn.
25816 (sel_redirect_edge_and_branch_force): Likewise.
25818 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
25820 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25821 shifted values to avoid build warning.
25823 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
25825 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25826 * cfgrtl.c (rtl_merge_blocks): Fix comment.
25827 (cfg_layout_merge_blocks): Likewise.
25828 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25830 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
25832 PR rtl-optimization/60901
25833 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25834 bb predecessor belongs to the same scheduling region. Adjust comment.
25836 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
25838 * doc/sourcebuild.texi: (dfp_hw): Document.
25839 (p8vector_hw): Likewise.
25840 (powerpc_eabi_ok): Likewise.
25841 (powerpc_elfv2): Likewise.
25842 (powerpc_htm_ok): Likewise.
25843 (ppc_recip_hw): Likewise.
25844 (vsx_hw): Likewise.
25846 2014-05-13 Cary Coutant <ccoutant@google.com>
25848 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25850 2014-05-13 David Malcolm <dmalcolm@redhat.com>
25852 * gengtype-parse.c (require3): Eliminate in favor of...
25854 (require_template_declaration): Update to support optional single *
25857 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25858 (create_user_defined_type): Handle a single level of explicit
25859 pointerness within template arguments.
25860 (struct write_types_data): Add field "kind".
25861 (filter_type_name): Handle "*" character.
25862 (write_user_func_for_structure_ptr): Require a write_types_data
25863 rather than just a prefix string, so that we can look up the kind
25864 of the wtd and use it as an index into wrote_user_func_for_ptr,
25865 ensuring that such functions are written at most once. Support
25866 subclasses by invoking the marking function of the ultimate base class.
25867 (write_user_func_for_structure_body): Require a write_types_data
25868 rather than just a prefix string, so that we can pass this to
25869 write_user_func_for_structure_ptr.
25870 (write_func_for_structure): Likewise.
25871 (ggc_wtd): Add initializer of new "kind" field.
25872 (pch_wtd): Likewise.
25874 * gengtype.h (enum write_types_kinds): New.
25875 (struct type): Add field wrote_user_func_for_ptr to the "s"
25878 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25880 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25881 instead of const_binop.
25882 (fold_binary_loc): Likewise.
25884 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
25886 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25887 calculation to match get_ref_base_and_extent.
25889 2014-05-13 Catherine Moore <clm@codesourcery.com>
25890 Sandra Loosemore <sandra@codesourcery.com>
25892 * configure.ac: Fix assembly for explicit JALR relocation check.
25893 * configure: Regenerate.
25895 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25897 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25898 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25899 Remove associated type declarations and initialisations.
25900 (arm_expand_neon_builtin): Likewise.
25901 (neon_emit_pair_result_insn): Delete.
25902 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25903 * config/arm/neon.md (neon_vtrn<mode>): Delete.
25904 (neon_vzip<mode>): Likewise.
25905 (neon_vuzp<mode>): Likewise.
25907 2014-05-13 Richard Biener <rguenther@suse.de>
25910 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25911 it needs revisiting whether the call still may be tail-called.
25913 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25915 * rtl.def (SYMBOL_REF): Remove middle "0" field.
25916 * rtl.h (block_symbol): Reduce number of fields to 2.
25917 (rtx_def): Add u2.symbol_ref_flags.
25918 (SYMBOL_REF_FLAGS): Use it.
25919 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25920 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25921 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25922 Lower index of SYMBOL_REF_DATA.
25923 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25924 Print SYMBOL_REF_FLAGS at the same time.
25925 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25927 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25929 * rtl.def (VAR_LOCATION): Remove "i" field.
25930 * rtl.h (rtx_def): Add u2.var_location_status.
25931 (PAT_VAR_LOCATION_STATUS): Use it.
25932 (gen_rtx_VAR_LOCATION): Declare.
25933 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25934 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25935 * var-tracking.c (emit_note_insn_var_location): Remove casts.
25937 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25939 * rtl.def (scratch): Fix outdated comment and remove "0" field.
25940 * gengtype.c (adjust_field_rtx_def): Update accordingly.
25942 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25944 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25945 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25946 * rtl.h (rtx_def): Add insn_uid to u2 field.
25947 (RTX_FLAG_CHECK8): Delete in favor of...
25948 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25949 (INSN_DELETED_P): Update accordingly.
25950 (INSN_UID): Use u2.insn_uid.
25951 (INSN_CHAIN_CODE_P): Define.
25952 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25953 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25954 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25955 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25956 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25957 indices accordingly.
25958 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25959 Update indices for insn-chain rtxes.
25960 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25961 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25962 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25963 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25964 * combine.c (try_combine): Likewise.
25965 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25967 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25969 * rtl.def (REG): Remove middle field.
25970 * rtl.h (rtx_def): Add orignal_regno to u2.
25971 (ORIGINAL_REGNO): Use it instead of field 1.
25972 (REG_ATTRS): Lower field index accordingly.
25973 * gengtype.c (adjust_field_rtx_def): Remove handling of
25974 ORIGINAL_REGNO. Move REG_ATTRS index down.
25975 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25976 code that prints the REGNO.
25978 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25980 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25983 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
25985 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25987 2014-05-13 Bin Cheng <bin.cheng@arm.com>
25989 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25990 (alloc_iv): Lower base expressions containing ADDR_EXPR.
25992 2014-05-13 Ian Bolton <ian.bolton@arm.com>
25994 * config/aarch64/aarch64-protos.h
25995 (aarch64_hard_regno_caller_save_mode): New prototype.
25996 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25998 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
26000 2014-05-13 Christian Bruel <christian.bruel@st.com>
26002 * target.def (mode_switching): New hook vector.
26003 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
26004 (mode_exit, modepriority_to_mode): Likewise.
26005 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
26006 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26007 * target.h: Include tm.h and hard-reg-set.h.
26008 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
26009 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
26010 * doc/tm.texi Regenerate.
26011 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26012 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26013 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
26014 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
26015 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
26016 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26017 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
26018 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
26019 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
26020 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
26021 (ix86_emit_mode_set): Hookify.
26022 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
26024 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26025 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
26026 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
26027 (epiphany_mode_priority_to_mode): Remove declaration.
26028 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
26029 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
26030 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
26032 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
26033 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
26034 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
26036 2014-05-13 Jakub Jelinek <jakub@redhat.com>
26039 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
26040 is const0_rtx, return immediately. Don't test count == 0 when
26043 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26045 * Makefile.in: add shrink-wrap.o.
26046 * config/i386/i386.c: include "shrink-wrap.h"
26047 * function.c: Likewise.
26048 (requires_stack_frame_p, next_block_for_reg,
26049 move_insn_for_shrink_wrap, prepare_shrink_wrap,
26050 dup_block_and_redirect): Move to shrink-wrap.c
26051 (thread_prologue_and_epilogue_insns): Extract three code segments
26052 as functions in shrink-wrap.c
26053 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
26055 * shrink-wrap.c: New file.
26056 * shrink-wrap.h: New file.
26058 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
26060 * doc/extend.texi: Reflect current numbers of pragmas. Remove
26061 reference to Solaris.
26063 2014-05-12 Mike Stump <mikestump@comcast.net>
26066 * genattrtab.c (filename): Add.
26067 (convert_set_attr_alternative): Improve error message.
26068 (check_defs): Restore read_md_filename for error messages.
26069 (gen_insn): Save filename.
26071 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
26073 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
26074 -fno-local-ivars and -fivar-visibility.
26075 * c-family/c.opt: Make -Wshadow also implicitly enable
26078 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
26080 * doc/tm.texi: Remove reference to deleted macro.
26081 * doc/tm.texi.in: Likewise.
26083 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26086 * config/avr/avr.c (avr_out_store_psi): Use correct constant
26089 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
26092 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
26093 * config/arm/aout.h (License): Same.
26094 * config/arm/bpabi.h (License): Same.
26095 * config/arm/elf.h (License): Same.
26096 * config/arm/linux-elf.h (License): Same.
26097 * config/arm/linux-gas.h (License): Same.
26098 * config/arm/netbsd-elf.h (License): Same.
26099 * config/arm/uclinux-eabi.h (License): Same.
26100 * config/arm/uclinux-elf.h (License): Same.
26101 * config/arm/vxworks.h (License): Same.
26103 2014-05-11 Jakub Jelinek <jakub@redhat.com>
26105 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
26106 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
26107 number of operands to 3.
26108 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
26109 * tree-nested.c (convert_nonlocal_omp_clauses,
26110 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
26111 * gimplify.c (gimplify_scan_omp_clauses): Handle
26112 OMP_CLAUSE_LINEAR_STMT.
26113 * omp-low.c (lower_rec_input_clauses): Fix typo.
26114 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
26115 cast between Fortran boolean_type_node and C _Bool if
26118 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
26120 PR tree-optimization/61136
26121 * wide-int.h (multiple_of_p): Define a version that doesn't return
26123 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
26124 integer_zerop/const_binop pair.
26125 (multiple_of_p): Likewise, converting both operands to widest_int
26128 2014-05-09 Teresa Johnson <tejohnson@google.com>
26130 * cgraphunit.c (analyze_functions): Use correct dump file.
26132 2014-05-09 Florian Weimer <fweimer@redhat.com>
26134 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
26136 (stack_protect_return_slot_p): New function.
26137 (expand_used_vars): Call stack_protect_decl_p and
26138 stack_protect_return_slot_p for -fstack-protector-strong.
26140 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
26141 Andrew Haley <aph@redhat.com>
26142 Richard Sandiford <rdsandiford@googlemail.com>
26144 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
26147 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
26149 PR middle-end/61111
26150 * fold-const.c (fold_binary_loc): Changed width of mask.
26152 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
26154 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
26155 unsigned int initializers for regno_in, regno_out.
26157 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
26160 * config/avr/avr.md (cc): Add new attribute set_vzn.
26161 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
26162 Set cc insn attribute to set_vzn instead of set_zn for alternatives
26163 with INC, DEC or NEG.
26164 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
26165 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
26166 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
26168 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26171 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26173 * wide-int.cc (UTItype): Define.
26174 (UDWtype): Define for appropriate W_TYPE_SIZE.
26176 2014-05-09 Richard Biener <rguenther@suse.de>
26178 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
26179 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
26180 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
26181 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
26182 ssa_propagate): Adjust.
26184 2014-05-08 Jeff Law <law@redhat.com>
26186 PR tree-optimization/61009
26187 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
26188 tri-state rather than a boolean. When a block is too big to
26189 thread through, inform caller via negative return value.
26190 (thread_across_edge): If a block was too big for normal threading,
26191 then it's too big for a joiner too, so remove temporary equivalences
26192 and return immediately.
26194 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
26195 Matthias Klose <doko@ubuntu.com>
26198 * optc-gen.awk: Fix option handling for -Wunused-parameter.
26200 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
26203 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
26205 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
26208 * config/alpha/alpha.c: Include gimple-iterator.h.
26209 (alpha_gimple_fold_builtin): New function. Move
26210 ALPHA_BUILTIN_UMULH folding from ...
26211 (alpha_fold_builtin): ... here.
26212 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
26214 2014-05-08 Wei Mi <wmi@google.com>
26217 * config/i386/i386.c (ix86_compute_frame_layout): Update
26218 preferred_stack_boundary for call, expanded from tls descriptor.
26219 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
26220 to depend on SP register.
26221 (*tls_local_dynamic_base_32_gnu): Ditto.
26222 (*tls_local_dynamic_32_once): Ditto.
26223 (tls_global_dynamic_64_<mode>): Set
26224 ix86_tls_descriptor_calls_expanded_in_cfun.
26225 (tls_local_dynamic_base_64_<mode>): Ditto.
26226 (tls_global_dynamic_32): Set
26227 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
26228 to depend on SP register.
26229 (tls_local_dynamic_base_32): Ditto.
26231 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26233 * config/arm/arm_neon.h: Update comment.
26234 * config/arm/neon-docgen.ml: Delete.
26235 * config/arm/neon-gen.ml: Delete.
26236 * doc/arm-neon-intrinsics.texi: Update comment.
26238 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26240 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
26242 (vand, vorr, veor, vorn, vbic): Remove.
26243 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
26245 (neon_vsub_unspec): Likewise.
26246 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
26248 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26250 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
26251 (vadd_s16): Likewise.
26252 (vadd_s32): Likewise.
26253 (vadd_f32): Likewise.
26254 (vadd_u8): Likewise.
26255 (vadd_u16): Likewise.
26256 (vadd_u32): Likewise.
26257 (vadd_s64): Likewise.
26258 (vadd_u64): Likewise.
26259 (vaddq_s8): Likewise.
26260 (vaddq_s16): Likewise.
26261 (vaddq_s32): Likewise.
26262 (vaddq_s64): Likewise.
26263 (vaddq_f32): Likewise.
26264 (vaddq_u8): Likewise.
26265 (vaddq_u16): Likewise.
26266 (vaddq_u32): Likewise.
26267 (vaddq_u64): Likewise.
26268 (vmul_s8): Likewise.
26269 (vmul_s16): Likewise.
26270 (vmul_s32): Likewise.
26271 (vmul_f32): Likewise.
26272 (vmul_u8): Likewise.
26273 (vmul_u16): Likewise.
26274 (vmul_u32): Likewise.
26275 (vmul_p8): Likewise.
26276 (vmulq_s8): Likewise.
26277 (vmulq_s16): Likewise.
26278 (vmulq_s32): Likewise.
26279 (vmulq_f32): Likewise.
26280 (vmulq_u8): Likewise.
26281 (vmulq_u16): Likewise.
26282 (vmulq_u32): Likewise.
26283 (vsub_s8): Likewise.
26284 (vsub_s16): Likewise.
26285 (vsub_s32): Likewise.
26286 (vsub_f32): Likewise.
26287 (vsub_u8): Likewise.
26288 (vsub_u16): Likewise.
26289 (vsub_u32): Likewise.
26290 (vsub_s64): Likewise.
26291 (vsub_u64): Likewise.
26292 (vsubq_s8): Likewise.
26293 (vsubq_s16): Likewise.
26294 (vsubq_s32): Likewise.
26295 (vsubq_s64): Likewise.
26296 (vsubq_f32): Likewise.
26297 (vsubq_u8): Likewise.
26298 (vsubq_u16): Likewise.
26299 (vsubq_u32): Likewise.
26300 (vsubq_u64): Likewise.
26301 (vand_s8): Likewise.
26302 (vand_s16): Likewise.
26303 (vand_s32): Likewise.
26304 (vand_u8): Likewise.
26305 (vand_u16): Likewise.
26306 (vand_u32): Likewise.
26307 (vand_s64): Likewise.
26308 (vand_u64): Likewise.
26309 (vandq_s8): Likewise.
26310 (vandq_s16): Likewise.
26311 (vandq_s32): Likewise.
26312 (vandq_s64): Likewise.
26313 (vandq_u8): Likewise.
26314 (vandq_u16): Likewise.
26315 (vandq_u32): Likewise.
26316 (vandq_u64): Likewise.
26317 (vorr_s8): Likewise.
26318 (vorr_s16): Likewise.
26319 (vorr_s32): Likewise.
26320 (vorr_u8): Likewise.
26321 (vorr_u16): Likewise.
26322 (vorr_u32): Likewise.
26323 (vorr_s64): Likewise.
26324 (vorr_u64): Likewise.
26325 (vorrq_s8): Likewise.
26326 (vorrq_s16): Likewise.
26327 (vorrq_s32): Likewise.
26328 (vorrq_s64): Likewise.
26329 (vorrq_u8): Likewise.
26330 (vorrq_u16): Likewise.
26331 (vorrq_u32): Likewise.
26332 (vorrq_u64): Likewise.
26333 (veor_s8): Likewise.
26334 (veor_s16): Likewise.
26335 (veor_s32): Likewise.
26336 (veor_u8): Likewise.
26337 (veor_u16): Likewise.
26338 (veor_u32): Likewise.
26339 (veor_s64): Likewise.
26340 (veor_u64): Likewise.
26341 (veorq_s8): Likewise.
26342 (veorq_s16): Likewise.
26343 (veorq_s32): Likewise.
26344 (veorq_s64): Likewise.
26345 (veorq_u8): Likewise.
26346 (veorq_u16): Likewise.
26347 (veorq_u32): Likewise.
26348 (veorq_u64): Likewise.
26349 (vbic_s8): Likewise.
26350 (vbic_s16): Likewise.
26351 (vbic_s32): Likewise.
26352 (vbic_u8): Likewise.
26353 (vbic_u16): Likewise.
26354 (vbic_u32): Likewise.
26355 (vbic_s64): Likewise.
26356 (vbic_u64): Likewise.
26357 (vbicq_s8): Likewise.
26358 (vbicq_s16): Likewise.
26359 (vbicq_s32): Likewise.
26360 (vbicq_s64): Likewise.
26361 (vbicq_u8): Likewise.
26362 (vbicq_u16): Likewise.
26363 (vbicq_u32): Likewise.
26364 (vbicq_u64): Likewise.
26365 (vorn_s8): Likewise.
26366 (vorn_s16): Likewise.
26367 (vorn_s32): Likewise.
26368 (vorn_u8): Likewise.
26369 (vorn_u16): Likewise.
26370 (vorn_u32): Likewise.
26371 (vorn_s64): Likewise.
26372 (vorn_u64): Likewise.
26373 (vornq_s8): Likewise.
26374 (vornq_s16): Likewise.
26375 (vornq_s32): Likewise.
26376 (vornq_s64): Likewise.
26377 (vornq_u8): Likewise.
26378 (vornq_u16): Likewise.
26379 (vornq_u32): Likewise.
26380 (vornq_u64): Likewise.
26382 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26384 * wide-int.cc (UTItype): Define.
26385 (UDWtype): Define for appropriate W_TYPE_SIZE.
26387 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
26389 PR tree-optimization/59100
26390 * tree-ssa-phiopt.c: Include tree-inline.h.
26391 (neutral_element_p, absorbing_element_p): New functions.
26392 (value_replacement): Handle conditional binary operations with a
26393 neutral or absorbing element.
26395 2014-05-08 Richard Biener <rguenther@suse.de>
26397 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
26398 folding the expression.
26399 (valueize_expr): Remove.
26400 (visit_reference_op_load): Do not valueize the result of
26402 (simplify_binary_expression): Likewise.
26403 (simplify_unary_expression): Likewise.
26405 2014-05-08 Richard Biener <rguenther@suse.de>
26407 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
26408 looking at TYPE_ARG_TYPES.
26410 2014-05-08 Richard Biener <rguenther@suse.de>
26412 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26413 pointer propagation special-case.
26415 2014-05-08 Bin Cheng <bin.cheng@arm.com>
26417 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26418 core part of address expressions.
26420 2014-05-08 Alan Modra <amodra@gmail.com>
26423 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26424 loads and stores when -mno-strict-align at any alignment.
26425 (expand_block_clear): Similarly. Also correct calculation of
26428 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
26430 PR middle-end/39246
26431 * tree-complex.c (expand_complex_move): Keep line info when expanding
26433 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26434 of complex expression. Use new argument to display correct location
26435 for values coming from phi statement.
26436 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26437 (warn_uninitialized_phi): Pass location of phi argument to
26439 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26440 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26442 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26444 * config/rs6000/predicates.md (indexed_address_mem): New.
26445 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26446 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26447 fpstore_ux, fpstore_u.
26448 (sign_extend, indexed, update): New.
26449 (cell_micro): Adjust.
26450 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26451 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26452 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26453 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26454 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26455 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26456 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26457 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26458 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26459 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26460 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26461 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26462 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26463 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26464 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26466 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26467 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26468 *vsx_extract_<mode>_store): Adjust.
26469 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26470 is_cracked_insn, insn_must_be_first_in_group,
26471 insn_must_be_last_in_group): Adjust.
26473 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26475 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26476 ppc440-fpstore): Adjust.
26477 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26478 ppc476-fpstore): Adjust.
26479 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26480 ppc601-fpstore): Adjust.
26481 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26483 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26485 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26486 ppc7450-fpstore): Adjust.
26487 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26488 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26489 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26491 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26492 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26493 cell-fpstore, cell-fpstore-update): Adjust.
26494 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26495 ppce300c3_store, ppce300c3_fpstore): Adjust.
26496 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26497 e500mc_fpstore): Adjust.
26498 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26499 e500mc64_store, e500mc64_fpstore): Adjust.
26500 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26501 e5500_fpstore): Adjust.
26502 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26503 e6500_fpstore): Adjust.
26504 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26506 * config/rs6000/power4.md (power4-load, power4-load-ext,
26507 power4-load-ext-update, power4-load-ext-update-indexed,
26508 power4-load-update-indexed, power4-load-update, power4-fpload,
26509 power4-fpload-update, power4-store, power4-store-update,
26510 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26512 * config/rs6000/power5.md (power5-load, power5-load-ext,
26513 power5-load-ext-update, power5-load-ext-update-indexed,
26514 power5-load-update-indexed, power5-load-update, power5-fpload,
26515 power5-fpload-update, power5-store, power5-store-update,
26516 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26518 * config/rs6000/power6.md (power6-load, power6-load-ext,
26519 power6-load-update, power6-load-update-indexed,
26520 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26521 power6-fpload-update, power6-store, power6-store-update,
26522 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26524 * config/rs6000/power7.md (power7-load, power7-load-ext,
26525 power7-load-update, power7-load-update-indexed,
26526 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26527 power7-fpload-update, power7-store, power7-store-update,
26528 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26530 * config/rs6000/power8.md (power8-load, power8-load-update,
26531 power8-load-ext, power8-load-ext-update, power8-fpload,
26532 power8-fpload-update, power8-store, power8-store-update-indexed,
26533 power8-fpstore, power8-fpstore-update): Adjust.
26534 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26536 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26537 titan_lsu_store, titan_lsu_fpstore): Adjust.
26538 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26540 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
26543 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26544 unrolled byte insns. Emit address increments after move insns.
26546 2014-05-07 David Malcolm <dmalcolm@redhat.com>
26548 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26549 const_gimple, rather than a gimple.
26550 (gimple_call_builtin_p): Likewise, for the three variants.
26552 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26553 (gimple_call_builtin_p): Likewise, for the three variants.
26555 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
26557 PR tree-optimization/61095
26558 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26560 2014-05-07 Richard Biener <rguenther@suse.de>
26562 PR tree-optimization/61034
26563 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26564 (maybe_skip_until): Use translate to take into account
26565 lattices when trying to do disambiguations.
26566 (get_continuation_for_phi_1): Likewise.
26567 (get_continuation_for_phi): Adjust for added translate arguments.
26568 (walk_non_aliased_vuses): Likewise.
26569 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26570 (walk_non_aliased_vuses): Likewise.
26571 (call_may_clobber_ref_p_1): Declare.
26572 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26573 calls. Stop early if we are only supposed to disambiguate.
26574 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26576 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
26578 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26579 Emit an error when the function has arguments.
26581 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26583 * cfgloop.h (unswitch_loops): Remove.
26584 * doc/passes.texi: Remove references to loop-unswitch.c
26585 * timevar.def (TV_LOOP_UNSWITCH): Remove.
26587 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
26589 * tree-vect-data-refs.c (vect_grouped_load_supported): New
26590 check for loads group of length 3.
26591 (vect_permute_load_chain): New permutations for loads group of
26593 * tree-vect-stmts.c (vect_model_load_cost): Change cost
26594 of vec_perm_shuffle for the new permutations.
26596 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
26598 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26599 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26600 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26601 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26602 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26603 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26604 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26605 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26607 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
26609 * loop-unswitch.c: Delete.
26611 2014-05-07 Richard Biener <rguenther@suse.de>
26613 * config.gcc: Always set need_64bit_hwint to yes.
26615 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
26617 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26618 of using optimize_size.
26620 2014-05-06 Mike Stump <mikestump@comcast.net>
26622 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26624 2014-05-06 Joseph Myers <joseph@codesourcery.com>
26626 * config/i386/sse.md (*mov<mode>_internal)
26627 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26628 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26629 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26630 (*<code><mode>3, *andnot<mode>3<mask_name>)
26631 (<mask_codefor><code><mode>3<mask_name>): Only consider
26632 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26634 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26637 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
26639 * lra-constraints.c (valid_address_p): Move earlier in file.
26640 Add a constraint argument to the address_info version.
26641 (satisfies_memory_constraint_p): New function.
26642 (satisfies_address_constraint_p): Likewise.
26643 (process_alt_operands, curr_insn_transform): Use them.
26644 (process_address): Pass the constraint to valid_address_p when
26645 checking address operands.
26647 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
26649 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26650 to their respective blocks. Fix inadvertent use of "node".
26652 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
26654 * emit-rtl.c (init_derived_machine_modes): New functionm, split
26656 (init_emit_once): ...here.
26657 * rtl.h (init_derived_machine_modes): Declare.
26658 * toplev.c (do_compile): Call it even if no_backend.
26660 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
26661 Mike Stump <mikestump@comcast.net>
26662 Richard Sandiford <rdsandiford@googlemail.com>
26663 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26665 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26666 (rtx_equal_for_memref_p): Update comment.
26667 (adjust_offset_for_component_ref): Use wide-int interfaces.
26668 * builtins.c (get_object_alignment_2): Likewise.
26669 (c_readstr): Likewise.
26670 (target_char_cast): Add comment.
26671 (determine_block_size): Use wide-int interfaces.
26672 (expand_builtin_signbit): Likewise.
26673 (fold_builtin_int_roundingfn): Likewise.
26674 (fold_builtin_bitop): Likewise.
26675 (fold_builtin_bswap): Likewise.
26676 (fold_builtin_logarithm): Use signop.
26677 (fold_builtin_pow): Likewise.
26678 (fold_builtin_memory_op): Use wide-int interfaces.
26679 (fold_builtin_object_size): Likewise.
26680 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26681 nb_iterations_estimate.
26682 (record_niter_bound): Use wide-int interfaces.
26683 (get_estimated_loop_iterations_int): Likewise.
26684 (get_estimated_loop_iterations): Likewise.
26685 (get_max_loop_iterations): Likewise.
26686 * cfgloop.h: Include wide-int.h.
26687 (struct nb_iter_bound): Change bound to widest_int.
26688 (struct loop): Change nb_iterations_upper_bound and
26689 nb_iterations_estimate to widest_int.
26690 (record_niter_bound): Switch to use widest_int.
26691 (get_estimated_loop_iterations): Likewise.
26692 (get_max_loop_iterations): Likewise.
26693 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26694 update for wide-int.
26695 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26696 * combine.c (try_combine): Likewise.
26697 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26698 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26700 (aarch64_float_const_representable_p): Likewise.
26701 * config/arc/arc.c: Include wide-int.h.
26702 (arc_can_use_doloop_p): Use wide-int interfaces.
26703 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26704 (vfp3_const_double_index): Likewise.
26705 * config/avr/avr.c (avr_out_round): Likewise.
26706 (avr_fold_builtin): Likewise.
26707 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26708 (bfin_can_use_doloop_p): Likewise.
26709 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26710 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26711 * config/i386/i386.c: Include wide-int.h.
26712 (ix86_data_alignment): Use wide-int interfaces.
26713 (ix86_local_alignment): Likewise.
26714 (ix86_emit_swsqrtsf): Update real_from_integer.
26715 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26716 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26717 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26718 (zero_constant): Likewise.
26719 (input_operand): Likewise.
26720 (splat_input_operand): Likewise.
26721 (non_logical_cint_operand): Change const_double to const_wide_int.
26722 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26723 (easy_altivec_constant): Remove comment.
26724 (paired_expand_vector_init): Use CONSTANT_P.
26725 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26726 (rs6000_emit_move): Update checks.
26727 (rs6000_aggregate_candidate): Use wide-int interfaces.
26728 (rs6000_expand_ternop_builtin): Likewise.
26729 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26730 (rs6000_assemble_integer): Likewise.
26731 (rs6000_hash_constant): Likewise.
26732 (output_toc): Likewise.
26733 (rs6000_rtx_costs): Likewise.
26734 (rs6000_emit_swrsqrt); Update call to real_from_integer.
26735 * config/rs6000/rs6000-c.c: Include wide-int.h.
26736 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26737 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26738 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26739 Handle CONST_WIDE_INT.
26740 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26741 Use tree_fits_uhwi_p.
26742 * config/sparc/sparc.c: Include wide-int.h.
26743 (sparc_fold_builtin): Use wide-int interfaces.
26744 * config/vax/vax.c: Include wide-int.h.
26745 (vax_float_literal): Use real_from_integer.
26746 * coretypes.h (struct hwivec_def): New.
26748 (const_hwivec): New.
26749 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26750 (equiv_constant): Handle CONST_WIDE_INT.
26751 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26752 (cselib_hash_rtx): Handle CONST_WIDE_INT.
26753 * dbxout.c (stabstr_U): Use wide-int interfaces.
26754 (dbxout_type): Update to use cst_fits_shwi_p.
26755 * defaults.h (LOG2_BITS_PER_UNIT): Define.
26756 (TARGET_SUPPORTS_WIDE_INT): Add default.
26757 * dfp.c: Include wide-int.h.
26758 (decimal_real_to_integer2): Use wide-int interfaces and rename to
26759 decimal_real_to_integer.
26760 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26761 decimal_real_to_integer.
26762 * doc/generic.texi (Constant expressions): Update for wide_int.
26763 * doc/rtl.texi (const_double): Likewise.
26764 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26765 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26766 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26767 (REAL_VALUE_FROM_INT): Remove.
26768 (TARGET_SUPPORTS_WIDE_INT): New.
26769 * doc/tm.texi: Regenerate.
26770 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26771 * double-int.h: Include wide-int.h.
26772 (struct wi::int_traits): New.
26773 * dwarf2out.c (get_full_len): New.
26774 (dw_val_equal_p): Add case dw_val_class_wide_int.
26775 (size_of_loc_descr): Likewise.
26776 (output_loc_operands): Likewise.
26777 (insert_double): Remove.
26778 (insert_wide_int): New.
26779 (add_AT_wide): New.
26780 (print_die): Add case dw_val_class_wide_int.
26781 (attr_checksum): Likewise.
26782 (attr_checksum_ordered): Likewise.
26783 (same_dw_val_p): Likewise.
26784 (size_of_die): Likewise.
26785 (value_format): Likewise.
26786 (output_die): Likewise.
26787 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26789 (clz_loc_descriptor): Use wide-int interfaces.
26790 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
26791 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
26792 (round_up_to_align): Use wide-int interfaces.
26793 (field_byte_offset): Likewise.
26794 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
26795 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
26796 CONST_DOUBLE handling. Use wide-int interfaces.
26797 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
26798 (gen_enumeration_type_die): Use add_AT_wide.
26799 (hash_loc_operands): Add case dw_val_class_wide_int.
26800 (compare_loc_operands): Likewise.
26801 * dwarf2out.h: Include wide-int.h.
26802 (wide_int_ptr): New.
26803 (enum dw_val_class): Add dw_val_class_wide_int.
26804 (struct dw_val_struct): Add val_wide.
26805 * emit-rtl.c (const_wide_int_htab): New.
26806 (const_wide_int_htab_hash): New.
26807 (const_wide_int_htab_eq): New.
26808 (lookup_const_wide_int): New.
26809 (const_double_htab_hash): Use wide-int interfaces.
26810 (const_double_htab_eq): Likewise.
26811 (rtx_to_double_int): Conditionally compile for wide-int.
26812 (immed_double_int_const): Rename to immed_wide_int_const and
26813 update for wide-int.
26814 (immed_double_const): Conditionally compile for wide-int.
26815 (init_emit_once): Use wide-int interfaces.
26816 * explow.c (plus_constant): Likewise.
26817 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
26818 (lshift_value): Use wide-int interfaces.
26819 (expand_mult): Likewise.
26820 (choose_multiplier): Likewise.
26821 (expand_smod_pow2): Likewise.
26822 (make_tree): Likewise.
26823 * expr.c (convert_modes): Consolidate handling of constants.
26824 Use wide-int interfaces.
26825 (emit_group_load_1): Add note.
26826 (store_expr): Update comment.
26827 (get_inner_reference): Use wide-int interfaces.
26828 (expand_constructor): Update comment.
26829 (expand_expr_real_2): Use wide-int interfaces.
26830 (expand_expr_real_1): Likewise.
26831 (reduce_to_bit_field_precision): Likewise.
26832 (const_vector_from_tree): Likewise.
26833 * final.c: Include wide-int-print.h.
26834 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
26835 * fixed-value.c: Include wide-int.h.
26836 (fixed_from_string): Use wide-int interfaces.
26837 (fixed_to_decimal): Likewise.
26838 (fixed_convert_from_real): Likewise.
26839 (real_convert_from_fixed): Likewise.
26840 * fold-const.h (mem_ref_offset): Return an offset_int.
26841 (div_if_zero_remainder): Remove code parameter.
26842 * fold-const.c (div_if_zero_remainder): Remove code parameter.
26843 Use wide-int interfaces.
26844 (may_negate_without_overflow_p): Use wide-int interfaces.
26845 (negate_expr_p): Likewise.
26846 (fold_negate_expr): Likewise.
26847 (int_const_binop_1): Likewise.
26848 (const_binop): Likewise.
26849 (fold_convert_const_int_from_int): Likewise.
26850 (fold_convert_const_int_from_real): Likewise.
26851 (fold_convert_const_int_from_fixed): Likewise.
26852 (fold_convert_const_fixed_from_int): Likewise.
26853 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
26854 (sign_bit_p): Use wide-int interfaces.
26855 (make_range_step): Likewise.
26856 (build_range_check): Likewise. Pass an integer of the correct type
26857 instead of using integer_one_node.
26858 (range_predecessor): Pass an integer of the correct type instead
26859 of using integer_one_node.
26860 (range_successor): Likewise.
26861 (merge_ranges): Likewise.
26862 (unextend): Use wide-int interfaces.
26863 (extract_muldiv_1): Likewise.
26864 (fold_div_compare): Likewise.
26865 (fold_single_bit_test): Likewise.
26866 (fold_sign_changed_comparison): Likewise.
26867 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26868 (fold_plusminus_mult_expr): Use wide-int interfaces.
26869 (native_encode_int): Likewise.
26870 (native_interpret_int): Likewise.
26871 (fold_unary_loc): Likewise.
26872 (pointer_may_wrap_p): Likewise.
26873 (size_low_cst): Likewise.
26874 (mask_with_tz): Likewise.
26875 (fold_binary_loc): Likewise.
26876 (fold_ternary_loc): Likewise.
26877 (multiple_of_p): Likewise.
26878 (tree_call_nonnegative_warnv_p): Update calls to
26879 tree_int_cst_min_precision and real_from_integer.
26880 (fold_negate_const): Use wide-int interfaces.
26881 (fold_abs_const): Likewise.
26882 (fold_relational_const): Use tree_int_cst_lt.
26883 (round_up_loc): Use wide-int interfaces.
26884 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26885 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26886 * gengtype.c: Remove include of double-int.h.
26887 (do_typedef): Use wide-int interfaces.
26888 (open_base_files): Add wide-int.h.
26889 (main): Add offset_int and widest_int typedefs.
26890 * gengtype-lex.l: Handle "^".
26891 (CXX_KEYWORD): Add "static".
26892 * gengtype-parse.c (require3): New.
26893 (require_template_declaration): Handle constant template arguments
26894 and nested templates.
26895 * gengtype-state.c: Don't include "double-int.h".
26896 * genpreds.c (write_one_predicate_function): Update comment.
26897 (write_tm_constrs_h): Add check for hval and lval use in
26899 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26900 (add_to_sequence): Likewise.
26901 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26902 and const_double_operand.
26903 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26905 * gimple-fold.c (get_base_constructor): Likewise.
26906 (fold_array_ctor_reference): Likewise.
26907 (fold_nonarray_ctor_reference): Likewise.
26908 (fold_const_aggregate_ref_1): Likewise.
26909 (gimple_val_nonnegative_real_p): Likewise.
26910 (gimple_fold_indirect_ref): Likewise.
26911 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26912 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26913 (struct slsr_cand_d): Change index to be widest_int.
26914 (struct incr_info_d): Change incr to be widest_int.
26915 (alloc_cand_and_find_basis): Use wide-int interfaces.
26916 (slsr_process_phi): Likewise.
26917 (backtrace_base_for_ref): Likewise. Return a widest_int.
26918 (restructure_reference): Take a widest_int instead of a double_int.
26919 (slsr_process_ref): Use wide-int interfaces.
26920 (create_mul_ssa_cand): Likewise.
26921 (create_mul_imm_cand): Likewise.
26922 (create_add_ssa_cand): Likewise.
26923 (create_add_imm_cand): Take a widest_int instead of a double_int.
26924 (slsr_process_add): Use wide-int interfaces.
26925 (slsr_process_cast): Likewise.
26926 (slsr_process_copy): Likewise.
26927 (dump_candidate): Likewise.
26928 (dump_incr_vec): Likewise.
26929 (replace_ref): Likewise.
26930 (cand_increment): Likewise. Return a widest_int.
26931 (cand_abs_increment): Likewise.
26932 (replace_mult_candidate): Take a widest_int instead of a double_int.
26933 (replace_unconditional_candidate): Use wide-int interfaces.
26934 (incr_vec_index): Take a widest_int instead of a double_int.
26935 (create_add_on_incoming_edge): Likewise.
26936 (create_phi_basis): Use wide-int interfaces.
26937 (replace_conditional_candidate): Likewise.
26938 (record_increment): Take a widest_int instead of a double_int.
26939 (record_phi_increments): Use wide-int interfaces.
26940 (phi_incr_cost): Take a widest_int instead of a double_int.
26941 (lowest_cost_path): Likewise.
26942 (total_savings): Likewise.
26943 (analyze_increments): Use wide-int interfaces.
26944 (ncd_with_phi): Take a widest_int instead of a double_int.
26945 (ncd_of_cand_and_phis): Likewise.
26946 (nearest_common_dominator_for_cands): Likewise.
26947 (insert_initializers): Use wide-int interfaces.
26948 (all_phi_incrs_profitable): Likewise.
26949 (replace_one_candidate): Likewise.
26950 (replace_profitable_candidates): Likewise.
26951 * godump.c: Include wide-int-print.h.
26952 (go_output_typedef): Use wide-int interfaces.
26953 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26954 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26955 (build_loop_iteration_domains): Likewise.
26956 * hooks.h: Include wide-int.h rather than double-int.h.
26957 (hook_bool_dint_dint_uint_bool_true): Delete.
26958 (hook_bool_wint_wint_uint_bool_true): Declare.
26959 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26960 (hook_bool_wint_wint_uint_bool_true): New.
26961 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26963 (ubsan_expand_si_overflow_mul_check): Likewise.
26964 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26965 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26966 (get_ancestor_addr_info): Likewise.
26967 (ipa_modify_call_arguments): Likewise.
26968 * loop-doloop.c (doloop_modify): Likewise.
26969 (doloop_optimize): Likewise.
26970 * loop-iv.c (iv_number_of_iterations): Likewise.
26971 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26972 (unroll_loop_constant_iterations): Likewise.
26973 (decide_unroll_runtime_iterations): Likewise.
26974 (unroll_loop_runtime_iterations): Likewise.
26975 (decide_peel_simple): Likewise.
26976 (decide_unroll_stupid): Likewise.
26977 * lto-streamer-in.c (streamer_read_wi): Add.
26978 (input_cfg): Use wide-int interfaces.
26979 (lto_input_tree_1): Likewise.
26980 * lto-streamer-out.c (streamer_write_wi): Add.
26981 (hash_tree): Use wide-int interfaces.
26982 (output_cfg): Likewise.
26983 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26984 (GTFILES): Add wide-int.h and signop.h.
26985 (TAGS): Look for .cc files too.
26986 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26987 * optabs.c (expand_subword_shift): Likewise.
26988 (expand_doubleword_shift): Likewise.
26989 (expand_absneg_bit): Likewise.
26990 (expand_copysign_absneg): Likewise.
26991 (expand_copysign_bit): Likewise.
26992 * postreload.c (reload_cse_simplify_set): Likewise.
26993 * predict.c (predict_iv_comparison): Likewise.
26994 * pretty-print.h: Include wide-int-print.h.
26996 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26997 * print-tree.c: Include wide-int-print.h.
26998 (print_node_brief): Use wide-int interfaces.
26999 (print_node): Likewise.
27000 * read-rtl.c (validate_const_wide_int): New.
27001 (read_rtx_code): Add CONST_WIDE_INT case.
27002 * real.c: Include wide-int.h.
27003 (real_to_integer2): Delete.
27004 (real_to_integer): New function, returning a wide_int.
27005 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27006 (ten_to_ptwo): Update call to real_from_integer.
27007 (real_digit): Likewise.
27008 * real.h: Include signop.h, wide-int.h and insn-modes.h.
27009 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
27010 (REAL_VALUE_TO_INT): Delete.
27011 (real_to_integer): Declare a wide-int form.
27012 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
27013 * recog.c (const_int_operand): Improve comment.
27014 (const_scalar_int_operand): New.
27015 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
27016 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
27017 (split_double): Likewise.
27018 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
27019 (rtx_size): Likewise.
27020 (rtx_alloc_stat_v): New.
27021 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
27022 (cwi_output_hex): New.
27023 (iterative_hash_rtx): Handle CONST_WIDE_INT.
27024 (cwi_check_failed_bounds): New.
27025 * rtl.def (CONST_WIDE_INT): New.
27026 * rtl.h: Include <utility> and wide-int.h.
27027 (struct hwivec_def): New.
27028 (CWI_GET_NUM_ELEM): New.
27029 (CWI_PUT_NUM_ELEM): New.
27030 (struct rtx_def): Add num_elem and hwiv.
27031 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
27032 (CASE_CONST_UNIQUE): Likewise.
27033 (CASE_CONST_ANY): Likewise.
27034 (CONST_SCALAR_INT_P): Likewise.
27035 (CONST_WIDE_INT_P): New.
27037 (HWIVEC_CHECK): New.
27038 (cwi_check_failed_bounds): New.
27040 (HWIVEC_CHECK): New.
27041 (CONST_WIDE_INT_VEC) New.
27042 (CONST_WIDE_INT_NUNITS) New.
27043 (CONST_WIDE_INT_ELT) New.
27044 (rtx_mode_t): New type.
27045 (wi::int_traits <rtx_mode_t>): New.
27047 (wi::min_value): New.
27048 (wi::max_value): New.
27050 (const_wide_int_alloc): New.
27051 (immed_wide_int_const): New.
27052 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
27053 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
27054 * signop.h: New file.
27055 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
27056 (simplify_const_unary_operation): Use wide-int interfaces.
27057 (simplify_binary_operation_1): Likewise.
27058 (simplify_const_binary_operation): Likewise.
27059 (simplify_const_relational_operation): Likewise.
27060 (simplify_immed_subreg): Likewise.
27061 * stmt.c (expand_case): Likewise.
27062 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
27063 signop rather than a bool.
27064 * stor-layout.c (layout_type): Use wide-int interfaces.
27065 (initialize_sizetypes): Update calls to
27066 set_min_and_max_values_for_integral_type.
27067 (set_min_and_max_values_for_integral_type): Take a signop rather
27068 than a bool. Use wide-int interfaces.
27069 (fixup_signed_type): Update accordingly. Remove
27070 HOST_BITS_PER_DOUBLE_INT limit.
27071 (fixup_unsigned_type): Likewise.
27072 * system.h (STATIC_CONSTANT_P): New.
27073 (STATIC_ASSERT): New.
27074 * target.def (can_use_doloop_p): Take widest_ints rather than
27076 * target.h: Include wide-int.h rather than double-int.h.
27077 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
27079 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
27080 rather than INT_CST_LT_UNSIGNED.
27081 (can_use_doloop_if_innermost): Take widest_ints rather than
27083 * tree-affine.c: Include wide-int-print.h.
27084 (double_int_ext_for_comb): Delete.
27085 (wide_int_ext_for_comb): New.
27086 (aff_combination_zero): Use wide-int interfaces.
27087 (aff_combination_const): Take a widest_int instead of a double_int.
27088 (aff_combination_elt): Use wide-int interfaces.
27089 (aff_combination_scale): Take a widest_int instead of a double_int.
27090 (aff_combination_add_elt): Likewise.
27091 (aff_combination_add_cst): Likewise.
27092 (aff_combination_add): Use wide-int interfaces.
27093 (aff_combination_convert): Likewise.
27094 (tree_to_aff_combination): Likewise.
27095 (add_elt_to_tree): Take a widest_int instead of a double_int.
27096 (aff_combination_to_tree): Use wide-int interfaces.
27097 (aff_combination_remove_elt): Likewise.
27098 (aff_combination_add_product): Take a widest_int instead of
27100 (aff_combination_mult): Use wide-int interfaces.
27101 (aff_combination_expand): Likewise.
27102 (double_int_constant_multiple_p): Delete.
27103 (wide_int_constant_multiple_p): New.
27104 (aff_combination_constant_multiple_p): Take a widest_int pointer
27105 instead of a double_int pointer.
27106 (print_aff): Use wide-int interfaces.
27107 (get_inner_reference_aff): Take a widest_int pointer
27108 instead of a double_int pointer.
27109 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
27110 * tree-affine.h: Include wide-int.h.
27111 (struct aff_comb_elt): Change type of coef to widest_int.
27112 (struct affine_tree_combination): Change type of offset to widest_int.
27113 (double_int_ext_for_comb): Delete.
27114 (wide_int_ext_for_comb): New.
27115 (aff_combination_const): Use widest_int instead of double_int.
27116 (aff_combination_scale): Likewise.
27117 (aff_combination_add_elt): Likewise.
27118 (aff_combination_constant_multiple_p): Likewise.
27119 (get_inner_reference_aff): Likewise.
27120 (aff_comb_cannot_overlap_p): Likewise.
27121 (aff_combination_zero_p): Use wide-int interfaces.
27122 * tree.c: Include tree.h.
27123 (init_ttree): Use make_int_cst.
27124 (tree_code_size): Removed code for INTEGER_CST case.
27125 (tree_size): Add INTEGER_CST case.
27126 (make_node_stat): Update comment.
27127 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
27128 (build_int_cst_type): Use wide-int interfaces.
27129 (double_int_to_tree): Likewise.
27130 (double_int_fits_to_tree_p): Delete.
27131 (force_fit_type_double): Delete.
27132 (force_fit_type): New.
27133 (int_cst_hash_hash): Use wide-int interfaces.
27134 (int_cst_hash_eq): Likewise.
27135 (build_int_cst_wide): Delete.
27136 (wide_int_to_tree): New.
27137 (cache_integer_cst): Use wide-int interfaces.
27138 (build_low_bits_mask): Likewise.
27139 (cst_and_fits_in_hwi): Likewise.
27140 (real_value_from_int_cst): Likewise.
27141 (make_int_cst_stat): New.
27142 (integer_zerop): Use wide_int interfaces.
27143 (integer_onep): Likewise.
27144 (integer_all_onesp): Likewise.
27145 (integer_pow2p): Likewise.
27146 (integer_nonzerop): Likewise.
27147 (tree_log2): Likewise.
27148 (tree_floor_log2): Likewise.
27149 (tree_ctz): Likewise.
27150 (int_size_in_bytes): Likewise.
27151 (mem_ref_offset): Return an offset_int rather than a double_int.
27152 (build_type_attribute_qual_variant): Use wide_int interfaces.
27153 (type_hash_eq): Likewise
27154 (tree_int_cst_equal): Likewise.
27155 (tree_int_cst_lt): Delete.
27156 (tree_int_cst_compare): Likewise.
27157 (tree_fits_shwi_p): Use wide_int interfaces.
27158 (tree_fits_uhwi_p): Likewise.
27159 (tree_int_cst_sign_bit): Likewise.
27160 (tree_int_cst_sgn): Likewise.
27161 (tree_int_cst_min_precision): Take a signop rather than a bool.
27162 (simple_cst_equal): Use wide_int interfaces.
27163 (compare_tree_int): Likewise.
27164 (iterative_hash_expr): Likewise.
27165 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
27167 (get_type_static_bounds): Use wide_int interfaces.
27168 (tree_int_cst_elt_check_failed): New.
27169 (build_common_tree_nodes): Reordered to set prec before filling in
27171 (int_cst_value): Check cst_and_fits_in_hwi.
27172 (widest_int_cst_value): Use wide_int interfaces.
27173 (upper_bound_in_type): Likewise.
27174 (lower_bound_in_type): Likewise.
27175 (num_ending_zeros): Likewise.
27176 (drop_tree_overflow): Likewise.
27177 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
27178 (gen_conditions_for_pow_cst_base): Likewise.
27179 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
27180 (group_case_labels_stmt): Use wide-int interfaces.
27181 (verify_gimple_assign_binary): Likewise.
27182 (print_loop): Likewise.
27183 * tree-chrec.c (tree_fold_binomial): Likewise.
27184 * tree-core.h (struct tree_base): Add int_length.
27185 (struct tree_int_cst): Change rep of value.
27186 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
27187 (dr_may_alias_p): Likewise.
27188 (max_stmt_executions_tree): Likewise.
27189 * tree.def (INTEGER_CST): Update comment.
27190 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
27191 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
27192 * tree-dump.c: Include wide-int.h and wide-int-print.h.
27193 (dequeue_and_dump): Use wide-int interfaces.
27194 * tree.h: Include wide-int.h.
27195 (NULL_TREE): Moved to earlier loc in file.
27196 (TREE_INT_CST_ELT_CHECK): New.
27197 (tree_int_cst_elt_check_failed): New.
27199 (TREE_INT_CST): Delete.
27200 (TREE_INT_CST_LOW): Use wide-int interfaces.
27201 (TREE_INT_CST_HIGH): Delete.
27202 (TREE_INT_CST_NUNITS): New.
27203 (TREE_INT_CST_EXT_NUNITS): Likewise.
27204 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
27205 (TREE_INT_CST_ELT): Likewise.
27206 (INT_CST_LT): Delete.
27207 (tree_int_cst_elt_check): New (two forms).
27208 (type_code_size): Update comment.
27209 (make_int_cst_stat, make_int_cst): New.
27210 (tree_to_double_int): Delete.
27211 (double_int_fits_to_tree_p): Delete.
27212 (force_fit_type_double): Delete.
27213 (build_int_cstu): Replace with out-of-line function.
27214 (build_int_cst_wide): Delete.
27215 (tree_int_cst_lt): Define inline.
27216 (tree_int_cst_le): New.
27217 (tree_int_cst_compare): Define inline.
27218 (tree_int_cst_min_precision): Take a signop rather than a bool.
27219 (wi::int_traits <const_tree>): New.
27220 (wi::int_traits <tree>): New.
27221 (wi::extended_tree): New.
27222 (wi::int_traits <wi::extended_tree>): New.
27223 (wi::to_widest): New.
27224 (wi::to_offset): New.
27225 (wi::fits_to_tree_p): New.
27226 (wi::min_value): New.
27227 (wi::max_value): New.
27228 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
27229 (copy_tree_body_r): Likewise.
27230 * tree-object-size.c (compute_object_offset): Likewise.
27231 (addr_object_size): Likewise.
27232 * tree-predcom.c: Include wide-int-print.h.
27233 (struct dref_d): Change type of offset to widest_int.
27234 (dump_dref): Call wide-int printer.
27235 (aff_combination_dr_offset): Use wide-int interfaces.
27236 (determine_offset): Take a widest_int pointer rather than a
27237 double_int pointer.
27238 (split_data_refs_to_components): Use wide-int interfaces.
27239 (suitable_component_p): Likewise.
27240 (order_drefs): Likewise.
27241 (add_ref_to_chain): Likewise.
27242 (valid_initializer_p): Likewise.
27243 (determine_roots_comp): Likewise.
27244 * tree-pretty-print.c: Include wide-int-print.h.
27245 (dump_generic_node): Use wide-int interfaces.
27246 * tree-sra.c (sra_ipa_modify_expr): Likewise.
27247 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
27248 (move_fixed_address_to_symbol): Likewise.
27249 (move_hint_to_base): Likewise.
27250 (move_pointer_to_base): Likewise.
27251 (move_variant_to_index): Likewise.
27252 (most_expensive_mult_to_index): Likewise.
27253 (addr_to_parts): Likewise.
27254 (copy_ref_info): Likewise.
27255 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27256 (indirect_refs_may_alias_p): Likewise.
27257 (stmt_kills_ref_p_1): Likewise.
27258 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
27259 * tree-ssa-ccp.c: Update comment at top of file. Include
27261 (struct prop_value_d): Change type of mask to widest_int.
27262 (extend_mask): New function.
27263 (dump_lattice_value): Use wide-int interfaces.
27264 (get_default_value): Likewise.
27265 (set_constant_value): Likewise.
27266 (set_value_varying): Likewise.
27267 (valid_lattice_transition): Likewise.
27268 (set_lattice_value): Likewise.
27269 (value_to_double_int): Delete.
27270 (value_to_wide_int): New.
27271 (get_value_from_alignment): Use wide-int interfaces.
27272 (get_value_for_expr): Likewise.
27273 (do_dbg_cnt): Likewise.
27274 (ccp_finalize): Likewise.
27275 (ccp_lattice_meet): Likewise.
27276 (bit_value_unop_1): Use widest_ints rather than double_ints.
27277 (bit_value_binop_1): Likewise.
27278 (bit_value_unop): Use wide-int interfaces.
27279 (bit_value_binop): Likewise.
27280 (bit_value_assume_aligned): Likewise.
27281 (evaluate_stmt): Likewise.
27282 (ccp_fold_stmt): Likewise.
27283 (visit_cond_stmt): Likewise.
27284 (ccp_visit_stmt): Likewise.
27285 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27286 (constant_pointer_difference): Likewise.
27287 (associate_pointerplus): Likewise.
27288 (combine_conversions): Likewise.
27289 * tree-ssa-loop.h: Include wide-int.h.
27290 (struct tree_niter_desc): Change type of max to widest_int.
27291 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
27292 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
27293 (remove_redundant_iv_tests): Likewise.
27294 (canonicalize_loop_induction_variables): Likewise.
27295 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
27296 (constant_multiple_of): Take a widest_int pointer instead of
27297 a double_int pointer.
27298 (get_computation_aff): Use wide-int interfaces.
27299 (ptr_difference_cost): Likewise.
27300 (difference_cost): Likewise.
27301 (get_loop_invariant_expr_id): Likewise.
27302 (get_computation_cost_at): Likewise.
27303 (iv_elimination_compare_lt): Likewise.
27304 (may_eliminate_iv): Likewise.
27305 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
27306 instead of double_int.
27307 (max_loop_iterations): Likewise.
27308 (max_stmt_executions): Likewise.
27309 (estimated_stmt_executions): Likewise.
27310 * tree-ssa-loop-niter.c: Include wide-int-print.h.
27311 (split_to_var_and_offset): Use wide-int interfaces.
27312 (determine_value_range): Likewise.
27313 (bound_difference_of_offsetted_base): Likewise.
27314 (bounds_add): Take a widest_int instead of a double_int.
27315 (number_of_iterations_ne_max): Use wide-int interfaces.
27316 (number_of_iterations_ne): Likewise.
27317 (number_of_iterations_lt_to_ne): Likewise.
27318 (assert_loop_rolls_lt): Likewise.
27319 (number_of_iterations_lt): Likewise.
27320 (number_of_iterations_le): Likewise.
27321 (number_of_iterations_cond): Likewise.
27322 (number_of_iterations_exit): Likewise.
27323 (finite_loop_p): Likewise.
27324 (derive_constant_upper_bound_assign): Likewise.
27325 (derive_constant_upper_bound): Return a widest_int.
27326 (derive_constant_upper_bound_ops): Likewise.
27327 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
27328 (record_estimate): Take a widest_int rather than a double_int.
27329 (record_nonwrapping_iv): Use wide-int interfaces.
27330 (double_int_cmp): Delete.
27331 (wide_int_cmp): New.
27332 (bound_index): Take a widest_int rather than a double_int.
27333 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
27334 (maybe_lower_iteration_bound): Likewise.
27335 (estimate_numbers_of_iterations_loop): Likewise.
27336 (estimated_loop_iterations): Take a widest_int pointer than than
27337 a double_int pointer.
27338 (estimated_loop_iterations_int): Use wide-int interfaces.
27339 (max_loop_iterations): Take a widest_int pointer than than
27340 a double_int pointer.
27341 (max_loop_iterations_int): Use wide-int interfaces.
27342 (max_stmt_executions): Take a widest_int pointer than than
27343 a double_int pointer.
27344 (estimated_stmt_executions): Likewise.
27345 (n_of_executions_at_most): Use wide-int interfaces.
27346 (scev_probably_wraps_p): Likewise.
27347 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
27348 to real_to_integer.
27349 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
27351 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
27352 double_ints. Adjust for trailing_wide_ints <3> representation.
27353 (set_nonzero_bits): Likewise.
27354 (get_range_info): Return wide_ints rather than double_ints.
27355 Adjust for trailing_wide_ints <3> representation.
27356 (get_nonzero_bits): Likewise.
27357 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
27359 * tree-ssanames.h (struct range_info_def): Replace min, max and
27360 nonzero_bits with a trailing_wide_ints <3>.
27361 (set_range_info): Use wide_int_refs rather than double_ints.
27362 (set_nonzero_bits): Likewise.
27363 (get_range_info): Return wide_ints rather than double_ints.
27364 (get_nonzero_bits): Likewise.
27365 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
27366 * tree-ssa-pre.c (phi_translate_1): Likewise.
27367 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
27368 (acceptable_pow_call): Likewise.
27369 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
27371 (vn_reference_fold_indirect): Likewise.
27372 (vn_reference_maybe_forwprop_address): Likewise.
27373 (valueize_refs_1): Likewise.
27374 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
27375 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
27376 tree_int_cst_lt and tree_int_cst_le.
27377 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
27379 (streamer_alloc_tree): Likewise.
27380 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
27381 (streamer_write_tree_header): Likewise.
27382 (streamer_write_integer_cst): Likewise.
27383 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
27384 (build_constructors): Likewise.
27385 (array_value_type): Likewise.
27386 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
27387 (vect_check_gather): Likewise.
27388 * tree-vect-generic.c (build_replicated_const): Likewise.
27389 (expand_vector_divmod): Likewise.
27390 * tree-vect-loop.c (vect_transform_loop): Likewise.
27391 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27392 (vect_do_peeling_for_alignment): Likewise.
27393 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
27394 * tree-vrp.c: Include wide-int.h.
27395 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
27396 (extract_range_from_assert): Use wide-int interfaces.
27397 (vrp_int_const_binop): Likewise.
27398 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
27399 double_int pointers.
27400 (ranges_from_anti_range): Use wide-int interfaces.
27401 (quad_int_cmp): Delete.
27402 (quad_int_pair_sort): Likewise.
27403 (extract_range_from_binary_expr_1): Use wide-int interfaces.
27404 (extract_range_from_unary_expr_1): Likewise.
27405 (adjust_range_with_scev): Likewise.
27406 (masked_increment): Take and return wide_ints rather than double_ints.
27407 (register_edge_assert_for_2): Use wide-int interfaces.
27408 (check_array_ref): Likewise.
27409 (search_for_addr_array): Likewise.
27410 (maybe_set_nonzero_bits): Likewise.
27411 (union_ranges): Pass an integer of the correct type instead of
27412 using integer_one_node.
27413 (intersect_ranges): Likewise.
27414 (simplify_truth_ops_using_ranges): Likewise.
27415 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27416 (range_fits_type_p): Likewise.
27417 (simplify_cond_using_ranges): Likewise. Take a signop rather than
27419 (simplify_conversion_using_ranges): Use wide-int interfaces.
27420 (simplify_float_conversion_using_ranges): Likewise.
27421 (vrp_finalize): Likewise.
27422 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27423 (gimple_stringops_transform): Likewise.
27424 * varasm.c (decode_addr_const): Likewise.
27425 (const_hash_1): Likewise.
27426 (const_rtx_hash_1): Likewise
27427 (output_constant): Likewise.
27428 (array_size_for_constructor): Likewise.
27429 (output_constructor_regular_field): Likewise.
27430 (output_constructor_bitfield): Likewise.
27431 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27432 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27434 * gencheck.c: Define BITS_PER_UNIT.
27435 * wide-int.cc: New.
27437 * wide-int-print.cc: New.
27438 * wide-int-print.h: New.
27440 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27442 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27444 2014-05-06 Richard Biener <rguenther@suse.de>
27446 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27447 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27448 (TODO_verify_all): Adjust.
27449 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27450 TODO_verify_stmts and TODO_verify_rtl_sharing.
27451 * bb-reorder.c: Likewise.
27452 * cfgexpand.c: Likewise.
27453 * cprop.c: Likewise.
27455 * function.c: Likewise.
27456 * fwprop.c: Likewise.
27457 * gcse.c: Likewise.
27458 * gimple-ssa-isolate-paths.c: Likewise.
27459 * gimple-ssa-strength-reduction.c: Likewise.
27460 * ipa-split.c: Likewise.
27461 * loop-init.c: Likewise.
27462 * loop-unroll.c: Likewise.
27463 * lower-subreg.c: Likewise.
27464 * modulo-sched.c: Likewise.
27465 * postreload-gcse.c: Likewise.
27466 * predict.c: Likewise.
27467 * recog.c: Likewise.
27468 * sched-rgn.c: Likewise.
27469 * store-motion.c: Likewise.
27470 * tracer.c: Likewise.
27471 * trans-mem.c: Likewise.
27472 * tree-call-cdce.c: Likewise.
27473 * tree-cfg.c: Likewise.
27474 * tree-cfgcleanup.c: Likewise.
27475 * tree-complex.c: Likewise.
27476 * tree-eh.c: Likewise.
27477 * tree-emutls.c: Likewise.
27478 * tree-if-conv.c: Likewise.
27479 * tree-into-ssa.c: Likewise.
27480 * tree-loop-distribution.c: Likewise.
27481 * tree-object-size.c: Likewise.
27482 * tree-parloops.c: Likewise.
27483 * tree-pass.h: Likewise.
27484 * tree-sra.c: Likewise.
27485 * tree-ssa-ccp.c: Likewise.
27486 * tree-ssa-copy.c: Likewise.
27487 * tree-ssa-copyrename.c: Likewise.
27488 * tree-ssa-dce.c: Likewise.
27489 * tree-ssa-dom.c: Likewise.
27490 * tree-ssa-dse.c: Likewise.
27491 * tree-ssa-forwprop.c: Likewise.
27492 * tree-ssa-ifcombine.c: Likewise.
27493 * tree-ssa-loop-ch.c: Likewise.
27494 * tree-ssa-loop-ivcanon.c: Likewise.
27495 * tree-ssa-loop.c: Likewise.
27496 * tree-ssa-math-opts.c: Likewise.
27497 * tree-ssa-phiopt.c: Likewise.
27498 * tree-ssa-phiprop.c: Likewise.
27499 * tree-ssa-pre.c: Likewise.
27500 * tree-ssa-reassoc.c: Likewise.
27501 * tree-ssa-sink.c: Likewise.
27502 * tree-ssa-strlen.c: Likewise.
27503 * tree-ssa-tail-merge.c: Likewise.
27504 * tree-ssa-uncprop.c: Likewise.
27505 * tree-switch-conversion.c: Likewise.
27506 * tree-tailcall.c: Likewise.
27507 * tree-vect-generic.c: Likewise.
27508 * tree-vectorizer.c: Likewise.
27509 * tree-vrp.c: Likewise.
27510 * tsan.c: Likewise.
27511 * var-tracking.c: Likewise.
27512 * bt-load.c: Likewise.
27513 * cfgcleanup.c: Likewise.
27514 * combine-stack-adj.c: Likewise.
27515 * combine.c: Likewise.
27516 * compare-elim.c: Likewise.
27517 * config/epiphany/resolve-sw-modes.c: Likewise.
27518 * config/i386/i386.c: Likewise.
27519 * config/mips/mips.c: Likewise.
27520 * config/s390/s390.c: Likewise.
27521 * config/sh/sh_treg_combine.cc: Likewise.
27522 * config/sparc/sparc.c: Likewise.
27525 * final.c: Likewise.
27526 * ifcvt.c: Likewise.
27527 * mode-switching.c: Likewise.
27528 * passes.c: Likewise.
27529 * postreload.c: Likewise.
27531 * reg-stack.c: Likewise.
27532 * regcprop.c: Likewise.
27533 * regrename.c: Likewise.
27536 2014-05-06 Richard Biener <rguenther@suse.de>
27538 PR middle-end/61070
27539 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27540 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27542 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
27545 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27547 2014-05-05 Radovan Obradovic <robradovic@mips.com>
27548 Tom de Vries <tom@codesourcery.com>
27550 * target.def (call_fusage_contains_non_callee_clobbers): New
27552 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27554 (@node Miscellaneous Register Hooks): New node.
27555 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27556 * doc/tm.texi: Regenerate.
27558 2014-05-05 Marek Polacek <polacek@redhat.com>
27561 * opts.c (common_handle_option): Call error_at instead of warning_at.
27563 2014-05-05 Richard Biener <rguenther@suse.de>
27565 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27566 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
27567 under the TODO_verify_il umbrella.
27569 2014-05-05 Richard Biener <rguenther@suse.de>
27571 * passes.c (execute_function_todo): Move TODO_verify_flow under
27572 the TODO_verify_ul umbrella.
27574 2014-05-05 Richard Biener <rguenther@suse.de>
27576 PR middle-end/61010
27577 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27578 X & CST away from a CST that is the mask of a mode.
27580 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27582 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27583 int argument to enum machine_mode.
27584 (picochip_class_max_nregs): Ditto.
27585 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27586 (picochip_class_max_nregs): Ditto.
27588 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27590 * target.def: Add new target hook.
27591 * doc/tm.texi: Regenerate.
27592 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27593 * targhooks.c (default_keep_leaf_when_profiled): New function.
27595 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27596 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27598 2014-05-05 Bin Cheng <bin.cheng@arm.com>
27600 PR tree-optimization/60363
27601 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27602 (copy_phi_args): New parameters. Call get_value_locus_in_path.
27603 (update_destination_phis): New parameter.
27604 (create_edge_and_update_destination_phis): Ditto.
27605 (ssa_fix_duplicate_block_edges): Pass new arguments.
27606 (thread_single_edge): Ditto.
27608 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
27610 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27611 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27612 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27613 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27614 Use RS6000_BTM_HARD_FLOAT.
27615 (BU_MISC_2): Likewise.
27616 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27617 RS6000_BTM_HARD_FLOAT.
27618 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27619 is explicitly used.
27620 (rs6000_invalid_builtin): Add hard floating builtin support.
27621 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27622 hard float builtins.
27623 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27625 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27627 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27628 Add missing function* argument.
27630 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27632 * lra-constraints.c (valid_address_p): Move earlier in file.
27633 Add a constraint argument to the address_info version.
27634 (satisfies_memory_constraint_p): New function.
27635 (satisfies_address_constraint_p): Likewise.
27636 (process_alt_operands, curr_insn_transform): Use them.
27637 (process_address): Pass the constraint to valid_address_p when
27638 checking address operands.
27640 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
27642 * config/mips/mips.c (mips_isa_rev): New variable.
27643 (mips_set_architecture): Set it.
27644 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27646 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27647 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27648 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27649 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27650 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27651 conditions in terms of mips_isa_rev.
27652 (mips_isa_rev): Declare.
27654 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27656 * config/sh/sh-mem.cc: Use tabs instead of spaces.
27657 (prob_unlikely, prob_likely): Make variables const.
27659 2014-05-03 Denis Chertykov <chertykov@gmail.com>
27661 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27663 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27665 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27667 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27669 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27670 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27671 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27673 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27674 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27676 Replace usage of ROUND_REG with sh_round_reg.
27677 Use CEIL instead of ROUND_ADVANCE.
27679 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
27682 * config/sh/sh.c: Include stdlib headers before everything else.
27684 2014-05-02 Jakub Jelinek <jakub@redhat.com>
27686 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27687 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27688 (gimplify_adjust_omp_clauses): Simd region is never
27689 directly nested in combined parallel. Instead, for linear
27690 with copyin/copyout, if in combined for simd loop, make decl
27691 firstprivate/lastprivate on OMP_FOR.
27692 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27693 expand_omp_for_static_chunk): When setting endvar, also set
27694 fd->loop.v to the same value.
27696 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27698 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27700 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
27702 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27705 2014-05-02 Marek Polacek <polacek@redhat.com>
27707 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27709 2014-05-02 Kito Cheng <kito@0xlab.org>
27711 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27712 to a C expression marco.
27713 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27714 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27715 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27716 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27717 HONOR_REG_ALLOC_ORDER.
27718 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27720 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27722 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27724 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
27726 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27728 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27730 * tree-if-conv.c (is_cond_scalar_reduction): New function.
27731 (convert_scalar_cond_reduction): Likewise.
27732 (predicate_scalar_phi): Add recognition and transformation
27733 of simple conditioanl reduction to be vectorizable.
27735 2014-05-01 Marek Polacek <polacek@redhat.com>
27738 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27740 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
27742 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27743 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27744 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27745 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27746 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27747 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27748 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27749 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27751 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
27753 * config/arc/arc.opt (mlra): Move comment above option name
27754 to avoid mis-parsing as language options.
27756 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27758 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27759 * config/sol2.h: ... here.
27760 * config/sol2-10.h: Remove.
27762 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27763 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27764 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27765 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27766 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27767 * config/sol2.h: ... here.
27768 (SECTION_NAME_FORMAT): Don't redefine.
27769 (STARTFILE_ARCH32_SPEC): Rename to ...
27770 (STARTFILE_ARCH_SPEC): ... this.
27771 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27772 * config/sparc/sol2.h: ... here.
27773 (SECTION_NAME_FORMAT): Don't undef.
27774 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27775 (SUBTARGET_EXTRA_SPECS): Remove.
27776 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27778 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27779 (MD_STARTFILE_PREFIX): Remove.
27780 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27781 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27782 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27783 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27784 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27785 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27786 * config/i386/sol2.h: ... here.
27787 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27788 * config/i386/sol2-bi.h: Remove.
27789 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27790 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27792 * config/i386/t-sol2-64: Rename to ...
27793 * config/i386/t-sol2: ... this.
27794 * config/sparc/t-sol2-64: Rename to ...
27795 * config/sparc/t-sol2: ... this.
27797 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27798 sol2_tm_file_head, sol2_tm_file_tail.
27799 Include ${cpu_type}/sol2.h before sol2.h.
27801 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27802 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27803 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27804 Reflect i386/t-sol2-64 renaming.
27805 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27806 Reflect sparc/t-sol2-64 renaming.
27808 2014-04-30 Richard Biener <rguenther@suse.de>
27810 * passes.c (execute_function_todo): Move TODO_verify_stmts
27811 and TODO_verify_ssa under the TODO_verify_il umbrella.
27812 * tree-ssa.h (verify_ssa): Adjust prototype.
27813 * tree-ssa.c (verify_ssa): Add parameter to tell whether
27814 we should verify SSA operands.
27815 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27816 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27817 whether we should verify whether not throwing stmts have EH info.
27818 * graphite-scop-detection.c (create_sese_edges): Adjust.
27819 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27820 * tree-eh.c (lower_try_finally_switch): Do not add the
27821 default case label twice.
27823 2014-04-30 Marek Polacek <polacek@redhat.com>
27825 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27826 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27827 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27828 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27830 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
27832 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27833 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27834 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27835 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27836 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27837 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27838 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27839 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27841 2014-04-29 David Malcolm <dmalcolm@redhat.com>
27843 * tree-cfg.c (dump_function_to_file): Dump the return type of
27844 functions, in a line to itself before the function body, mimicking
27845 the layout of a C function.
27847 2014-04-29 Jakub Jelinek <jakub@redhat.com>
27849 PR tree-optimization/60971
27850 * tree-tailcall.c (process_assignment): Reject conversions which
27853 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
27855 * calls.c (initialize_argument_information): Always treat
27856 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27857 (expand_call): Likewise.
27858 (emit_library_call_calue_1): Likewise.
27859 * expr.c (PUSH_ARGS_REVERSED): Do not define.
27860 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27863 2014-04-29 Nick Clifton <nickc@redhat.com>
27865 * config/msp430/msp430.md (umulsidi): Fix typo.
27866 (mulhisi3): Enable even inside interrupt handlers.
27867 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27868 bigger return address pushed in large mode.
27870 2014-04-29 Nick Clifton <nickc@redhat.com>
27872 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27873 (arc_init_reg_tables): Use a machine_mode enum to iterate over
27875 * config/m32r/m32r.c (init_reg_tables): Likewise.
27876 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27877 enum to hold the modes.
27879 2014-04-29 Richard Biener <rguenther@suse.de>
27881 * dominance.c (free_dominance_info): Add overload with
27882 function parameter.
27883 (dom_info_state): Likewise.
27884 (dom_info_available_p): Likewise.
27885 * basic-block.h (free_dominance_info, dom_info_state,
27886 dom_info_available_p): Declare overloads.
27887 * passes.c (execute_function_todo): Verify that verifiers
27888 don't change dominator info state. Drop dominator info
27889 for IPA pass invocations.
27890 * cgraph.c (release_function_body): Restore asserts that
27891 dominator information is released.
27893 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
27895 * doc/invoke.texi: Fix typo.
27896 * tree-vrp.c: Fix typos.
27897 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27899 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27901 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27903 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27905 * config/aarch64/aarch64-builtins.c
27906 (aarch64_types_storestruct_lane_qualifiers): New.
27907 (TYPES_STORESTRUCT_LANE): Likewise.
27908 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27909 (st3_lane): Likewise.
27910 (st4_lane): Likewise.
27911 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27912 (vec_store_lanesci_lane<mode>): Likewise.
27913 (vec_store_lanesxi_lane<mode>): Likewise.
27914 (aarch64_st2_lane<VQ:mode>): Likewise.
27915 (aarch64_st3_lane<VQ:mode>): Likewise.
27916 (aarch64_st4_lane<VQ:mode>): Likewise.
27917 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27918 * config/aarch64/arm_neon.h
27919 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27920 use new macro arguments.
27921 (__ST3_LANE_FUNC): Likewise.
27922 (__ST4_LANE_FUNC): Likewise.
27923 * config/aarch64/iterators.md (V_TWO_ELEM): New.
27924 (V_THREE_ELEM): Likewise.
27925 (V_FOUR_ELEM): Likewise.
27927 2014-04-28 David Malcolm <dmalcolm@redhat.com>
27929 * doc/gimple.texi: Replace the description of the now-defunct
27930 union gimple_statement_d with a diagram showing the
27931 gimple_statement_base class hierarchy and its relationships to
27932 the GSS_ and GIMPLE_ enums.
27934 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
27936 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27937 * config/aarch64/aarch64.c
27938 (aarch64_cannot_change_mode_class): Weaken conditions.
27939 (aarch64_modes_tieable_p): New.
27940 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27942 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
27944 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27945 (loadsync_<mode>): Change mode.
27946 (load_quadpti, store_quadpti): New.
27947 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27948 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27950 2014-04-28 Martin Jambor <mjambor@suse.cz>
27952 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27953 same alias type as the original statement.
27954 (subreplacement_assignment_data): New type.
27955 (handle_unscalarized_data_in_subtree): New type of parameter,
27956 generate new memory accesses with same alias type as the original
27958 (load_assign_lhs_subreplacements): Likewise.
27959 (sra_modify_constructor_assign): Generate new memory accesses with
27960 same alias type as the original statement.
27962 2014-04-28 Richard Biener <rguenther@suse.de>
27964 * tree-pass.h (TODO_verify_il): Define.
27965 (TODO_verify_all): Complete properly.
27966 * passes.c (execute_function_todo): Move existing loop-closed
27967 SSA verification under TODO_verify_il.
27968 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27969 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27970 Fix tree sharing issue.
27972 2014-04-28 Richard Biener <rguenther@suse.de>
27974 PR middle-end/60092
27975 * builtins.def (DEF_C11_BUILTIN): Add.
27976 (BUILT_IN_ALIGNED_ALLOC): Likewise.
27977 * coretypes.h (enum function_class): Add function_c11_misc.
27978 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27979 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27980 (call_may_clobber_ref_p_1): Likewise.
27981 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27982 (mark_all_reaching_defs_necessary_1): Likewise.
27983 (propagate_necessity): Likewise.
27984 (eliminate_unnecessary_stmts): Likewise.
27985 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27987 2014-04-28 Richard Biener <rguenther@suse.de>
27989 * tree-vrp.c (vrp_var_may_overflow): Remove.
27990 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27991 with overflow immediately bump to one before that value and
27992 let iteration figure out overflow status.
27994 2014-04-28 Richard Biener <rguenther@suse.de>
27996 * configure.ac: Do valgrind header checks unconditionally.
27997 Add --enable-valgrind-annotations.
27998 * system.h: Guard valgrind header inclusion with
27999 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
28000 * alloc-pool.c (pool_alloc, pool_free): Use
28001 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
28002 to guard possibly dead code.
28003 * config.in: Regenerated.
28004 * configure: Likewise.
28006 2014-04-28 Jeff Law <law@redhat.com>
28008 PR tree-optimization/60902
28009 * tree-ssa-threadedge.c
28010 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
28011 over real defs when invalidating outputs from statements that do not
28012 produce useful outputs for threading.
28014 2014-04-28 Richard Biener <rguenther@suse.de>
28016 PR tree-optimization/60979
28017 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
28018 SCOPs that end in a block with a successor with abnormal
28021 2014-04-28 Richard Biener <rguenther@suse.de>
28023 * tree-pass.h (execute_pass_list): Adjust prototype.
28024 * passes.c (pass_manager::execute_early_local_passes): Adjust.
28025 (do_per_function): Change callback signature, push all actual
28026 work to the callbals.
28027 (do_per_function_toporder): Likewise.
28028 (execute_function_dump): Adjust.
28029 (execute_function_todo): Likewise.
28030 (clear_last_verified): Likewise.
28031 (verify_curr_properties): Likewise.
28032 (update_properties_after_pass): Likewise.
28033 (execute_pass_list_1): Split out from ...
28034 (execute_pass_list): ... here. Adjust.
28035 (execute_ipa_pass_list): Likewise.
28036 * cgraphunit.c (cgraph_add_new_function): Adjust.
28037 (analyze_function): Likewise.
28038 (expand_function): Likewise.
28039 * cgraph.c (release_function_body): Free dominance info
28040 here instead of asserting it was magically freed elsewhere.
28042 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
28044 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
28045 * configure: Regenerate.
28046 * config/sparc/sparc.opt (muser-mode): New option.
28047 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
28049 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
28050 * doc/invoke.texi (SPARC options): Document -muser-mode.
28052 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
28054 * cselib.c (find_slot_memmode): Delete.
28055 (cselib_hasher): Change compare_type to a struct.
28056 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
28058 (preserve_constants_and_equivs): Adjust for new compare_type.
28059 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
28060 (wrap_constant): Delete.
28061 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
28063 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
28065 * doc/install.texi (Building with profile feedback): Remove
28068 2014-04-26 Tom de Vries <tom@codesourcery.com>
28070 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
28073 2014-04-25 Cary Coutant <ccoutant@google.com>
28076 * dwarf2out.c (should_move_die_to_comdat): A type definition
28077 can contain a subprogram definition, but don't move it to a
28079 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
28080 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
28082 (clone_tree_hash): Rename to...
28083 (clone_tree_partial): ...this; change callers. Copy
28084 DW_TAG_subprogram DIEs as declarations.
28085 (copy_decls_walk): Don't copy children of a declaration into a
28088 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
28091 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
28094 2014-04-25 Jiong Wang <jiong.wang@arm.com>
28096 * config/arm/predicates.md (call_insn_operand): Add long_call check.
28097 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
28099 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
28102 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28104 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
28106 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28108 PR tree-optimization/60930
28109 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
28110 creating a multiply candidate by folding two constant
28111 multiplicands when the result overflows.
28113 2014-04-25 Jakub Jelinek <jakub@redhat.com>
28115 PR tree-optimization/60960
28116 * tree-vect-generic.c (expand_vector_operation): Only call
28117 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
28119 2014-04-25 Tom de Vries <tom@codesourcery.com>
28121 * expr.c (clobber_reg_mode): New function.
28122 * expr.h (clobber_reg): New function.
28124 2014-04-25 Tom de Vries <tom@codesourcery.com>
28126 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
28129 2014-04-25 Radovan Obradovic <robradovic@mips.com>
28130 Tom de Vries <tom@codesourcery.com>
28132 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
28134 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
28135 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
28136 new argument to find_all_hard_reg_sets call.
28138 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28140 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
28141 Use HOST_WIDE_INT_C for mask literal.
28142 (aarch_rev16_shleft_mask_imm_p): Likewise.
28144 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
28147 * config/sparc/sparc.md (ashlsi3_extend): Delete.
28149 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
28151 PR preprocessor/56540
28152 * config/i386/i386-c.c (ix86_target_macros): Define
28153 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
28155 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28157 * configure.ac (tga_func): Remove.
28158 (LIB_TLS_SPEC): Remove.
28159 * configure: Regenerate.
28160 * config.in: Regenerate.
28161 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
28163 2014-04-25 Richard Biener <rguenther@suse.de>
28166 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
28167 call stmt use/clobber sets during stmt walk instead of
28168 walking the possibly incomplete set of caller edges.
28170 2014-04-25 Richard Biener <rguenther@suse.de>
28173 * passes.c (apply_ipa_transforms): Inline into only caller ...
28174 (execute_one_pass): ... here. Properly bring in function
28175 bodies for nodes we want to apply IPA transforms to.
28177 2014-04-24 Cong Hou <congh@google.com>
28179 PR tree-optimization/60896
28180 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
28181 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
28182 (vect_mark_pattern_stmts): Set the def type of all statements in
28183 PATTERN_DEF_SEQ as vect_internal_def.
28185 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
28187 * doc/extend.texi (PowerPC Built-in Functions): Document new
28188 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
28189 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
28191 * config/rs6000/predicates.md (const_0_to_3_operand): New
28192 predicate to match 0..3 integer constants.
28194 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
28195 to support adding miscellaneous builtin functions.
28196 (BU_DFP_MISC_2): Likewise.
28197 (BU_P7_MISC_1): Likewise.
28198 (BU_P7_MISC_2): Likewise.
28199 (BU_P8V_MISC_3): Likewise.
28200 (BU_MISC_1): Likewise.
28201 (BU_MISC_2): Likewise.
28202 (DIVWE): Add extended divide builtin functions.
28203 (DIVWEO): Likewise.
28204 (DIVWEU): Likewise.
28205 (DIVWEUO): Likewise.
28207 (DIVDEO): Likewise.
28208 (DIVDEU): Likewise.
28209 (DIVDEUO): Likewise.
28210 (DXEX): Add decimal floating-point builtin functions.
28212 (DDEDPD): Likewise.
28213 (DDEDPDQ): Likewise.
28214 (DENBCD): Likewise.
28215 (DENBCDQ): Likewise.
28219 (DSCLIQ): Likewise.
28221 (DSCRIQ): Likewise.
28222 (CDTBCD): Add new BCD builtin functions.
28223 (CBCDTD): Likewise.
28224 (ADDG6S): Likewise.
28225 (BCDADD): Likewise.
28226 (BCDADD_LT): Likewise.
28227 (BCDADD_EQ): Likewise.
28228 (BCDADD_GT): Likewise.
28229 (BCDADD_OV): Likewise.
28230 (BCDSUB): Likewise.
28231 (BCDSUB_LT): Likewise.
28232 (BCDSUB_EQ): Likewise.
28233 (BCDSUB_GT): Likewise.
28234 (BCDSUB_OV): Likewise.
28235 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
28236 (UNPACK_TD): Likewise.
28237 (PACK_TF): Likewise.
28238 (UNPACK_TF): Likewise.
28239 (UNPACK_TF_0): Likewise.
28240 (UNPACK_TF_1): Likewise.
28241 (PACK_V1TI): Likewise.
28242 (UNPACK_V1TI): Likewise.
28244 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28245 support for decimal floating point builtin functions.
28246 (rs6000_expand_ternop_builtin): Add checks for the new builtin
28247 functions that take constant arguments.
28248 (rs6000_invalid_builtin): Add decimal floating point builtin support.
28249 (rs6000_init_builtins): Setup long double, _Decimal64, and
28250 _Decimal128 types for new builtin functions.
28251 (builtin_function_type): Set the unsigned flags appropriately for
28252 the new builtin functions.
28253 (rs6000_opt_masks): Add support for decimal floating point builtin
28256 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
28257 floating point builtin functions.
28258 (RS6000_BTM_COMMON): Likewise.
28259 (RS6000_BTI_long_double): Likewise.
28260 (RS6000_BTI_dfloat64): Likewise.
28261 (RS6000_BTI_dfloat128): Likewise.
28262 (long_double_type_internal_node): Likewise.
28263 (dfloat64_type_internal_node): Likewise.
28264 (dfloat128_type_internal_node): Likewise.
28266 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
28267 2.07 bcd arithmetic instructions.
28268 (UNSPEC_BCDSUB): Likewise.
28269 (UNSPEC_BCD_OVERFLOW): Likewise.
28270 (UNSPEC_BCD_ADD_SUB): Likewise.
28271 (bcd_add_sub): Likewise.
28272 (BCD_TEST): Likewise.
28273 (bcd<bcd_add_sub>): Likewise.
28274 (bcd<bcd_add_sub>_test): Likewise.
28275 (bcd<bcd_add_sub>_test2): Likewise.
28276 (bcd<bcd_add_sub>_<code>): Likewise.
28277 (peephole2 for combined bcd ops): Likewise.
28279 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
28280 decimal floating point builtin functions.
28281 (UNSPEC_DENBCD): Likewise.
28282 (UNSPEC_DXEX): Likewise.
28283 (UNSPEC_DIEX): Likewise.
28284 (UNSPEC_DSCLI): Likewise.
28285 (UNSPEC_DSCRI): Likewise.
28286 (D64_D128): Likewise.
28287 (dfp_suffix): Likewise.
28288 (dfp_ddedpd_<mode>): Likewise.
28289 (dfp_denbcd_<mode>): Likewise.
28290 (dfp_dxex_<mode>): Likewise.
28291 (dfp_diex_<mode>): Likewise.
28292 (dfp_dscli_<mode>): Likewise.
28293 (dfp_dscri_<mode>): Likewise.
28295 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
28297 (UNSPEC_CDTBCD): Likewise.
28298 (UNSPEC_CBCDTD): Likewise.
28299 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
28300 (UNSPEC_DIVEO): Likewise.
28301 (UNSPEC_DIVEU): Likewise.
28302 (UNSPEC_DIVEUO): Likewise.
28303 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
28304 pack/unpack 128-bit types.
28305 (UNSPEC_PACK_128BIT): Likewise.
28306 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
28307 (udiv<mode>3): Use idiv_ldiv mode attribute.
28308 (div<mode>3): Likewise.
28309 (addg6s): Add new BCD builtin functions.
28310 (cdtbcd): Likewise.
28311 (cbcdtd): Likewise.
28312 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
28313 (div_extend): Likewise.
28314 (div<div_extend>_<mode>"): Likewise.
28315 (FP128_64): Add support for new builtin functions to pack/unpack
28317 (unpack<mode>): Likewise.
28318 (unpacktf_0): Likewise.
28319 (unpacktf_1): Likewise.
28320 (unpack<mode>_dm): Likewise.
28321 (unpack<mode>_nodm): Likewise.
28322 (pack<mode>): Likewise.
28323 (unpackv1ti): Likewise.
28324 (packv1ti): Likewise.
28326 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
28328 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
28331 2014-04-24 Jakub Jelinek <jakub@redhat.com>
28333 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
28334 * gimplify.c (omp_is_private): Change last argument's type to int.
28335 Only diagnose lastprivate if the simd argument is 1, only diagnose
28336 linear if the simd argument is 2.
28337 (gimplify_omp_for): Adjust omp_is_private callers. When adding
28338 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
28339 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
28340 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
28341 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
28342 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28343 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
28344 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28345 * tree-nested.c (convert_nonlocal_omp_clauses,
28346 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
28348 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
28351 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
28354 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
28356 * flag-types.h (enum ivar_visibility): Add.
28358 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
28360 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
28361 function * argument.
28363 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
28365 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
28367 2014-04-24 Radovan Obradovic <robradovic@mips.com>
28368 Tom de Vries <tom@codesourcery.com>
28370 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
28371 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
28373 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
28374 * emit-rtl.c (try_split): Same.
28376 2014-04-24 Radovan Obradovic <robradovic@mips.com>
28377 Tom de Vries <tom@codesourcery.com>
28379 * common.opt (fuse-caller-save): New option.
28381 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
28383 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
28384 elements for big-endian.
28386 2014-04-24 Richard Biener <rguenther@suse.de>
28388 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
28389 during TER and instead use the sepops interface for expanding
28390 non-GIMPLE_SINGLE_RHS.
28392 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28394 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
28395 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
28397 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28399 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
28400 assembler 64-bit option.
28401 * configure: Regenerate.
28403 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28405 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
28406 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
28407 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
28408 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
28409 (TARGET_CRYPTO): Take TARGET_SIMD into account.
28411 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28413 * config/aarch64/aarch64-builtins.c
28414 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28415 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28416 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28417 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28419 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28420 (Vrevsuff): New mode attribute.
28422 2014-04-24 Terry Guo <terry.guo@arm.com>
28424 * config/arm/arm.h (machine_function): Define variable
28425 after_arm_reorg here.
28426 * config/arm/arm.c (after_arm_reorg): Remove the definition.
28427 (arm_split_constant): Update the way to access variable
28429 (arm_reorg): Ditto.
28430 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28432 2014-04-23 Tom de Vries <tom@codesourcery.com>
28434 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28436 2014-04-23 David Malcolm <dmalcolm@redhat.com>
28438 * is-a.h: Update comments to reflect the following changes to the
28439 "pointerness" of the API, making the template parameter match the
28440 return type, allowing use of is-a.h with typedefs of pointers.
28441 (is_a_helper::cast): Return a T rather then a pointer to a T, so
28442 that the return type matches the parameter to the is_a_helper.
28444 (dyn_cast): Likewise.
28446 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28447 pointer from the is-a.h API.
28449 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28450 (is_a_helper <cgraph_node *>::test): ...this, matching change to
28452 (is_a_helper <varpool_node>::test): Likewise, convert to...
28453 (is_a_helper <varpool_node *>::test): ...this.
28455 (varpool_first_variable): Update for removal of implicit pointer
28456 from the is-a.h API.
28457 (varpool_next_variable): Likewise.
28458 (varpool_first_static_initializer): Likewise.
28459 (varpool_next_static_initializer): Likewise.
28460 (varpool_first_defined_variable): Likewise.
28461 (varpool_next_defined_variable): Likewise.
28462 (cgraph_first_defined_function): Likewise.
28463 (cgraph_next_defined_function): Likewise.
28464 (cgraph_first_function): Likewise.
28465 (cgraph_next_function): Likewise.
28466 (cgraph_first_function_with_gimple_body): Likewise.
28467 (cgraph_next_function_with_gimple_body): Likewise.
28468 (cgraph_alias_target): Likewise.
28469 (varpool_alias_target): Likewise.
28470 (cgraph_function_or_thunk_node): Likewise.
28471 (varpool_variable_node): Likewise.
28472 (symtab_real_symbol_p): Likewise.
28473 * cgraphunit.c (referred_to_p): Likewise.
28474 (analyze_functions): Likewise.
28475 (handle_alias_pairs): Likewise.
28476 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28477 * gimple-ssa.h (gimple_vuse_op): Likewise.
28478 (gimple_vdef_op): Likewise.
28479 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28480 * gimple.c (gimple_build_asm_1): Likewise.
28481 (gimple_build_try): Likewise.
28482 (gimple_build_resx): Likewise.
28483 (gimple_build_eh_dispatch): Likewise.
28484 (gimple_build_omp_for): Likewise.
28485 (gimple_omp_for_set_clauses): Likewise.
28487 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28488 (is_a_helper <gimple_statement_asm *>::test): ...this.
28489 (is_a_helper <gimple_statement_bind>::test): Convert to...
28490 (is_a_helper <gimple_statement_bind *>::test): ...this.
28491 (is_a_helper <gimple_statement_call>::test): Convert to...
28492 (is_a_helper <gimple_statement_call *>::test): ...this.
28493 (is_a_helper <gimple_statement_catch>::test): Convert to...
28494 (is_a_helper <gimple_statement_catch *>::test): ...this.
28495 (is_a_helper <gimple_statement_resx>::test): Convert to...
28496 (is_a_helper <gimple_statement_resx *>::test): ...this.
28497 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28498 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28499 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28500 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28501 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28502 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28503 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28504 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28505 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28506 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28507 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28508 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28509 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28510 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28511 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28512 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28513 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28514 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28515 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28516 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28517 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28518 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28519 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28520 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28521 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28522 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28523 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28524 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28525 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28526 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28527 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28528 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28529 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28530 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28531 (is_a_helper <gimple_statement_phi>::test): Convert to...
28532 (is_a_helper <gimple_statement_phi *>::test): ...this.
28533 (is_a_helper <gimple_statement_transaction>::test): Convert to...
28534 (is_a_helper <gimple_statement_transaction *>::test): ...this.
28535 (is_a_helper <gimple_statement_try>::test): Convert to...
28536 (is_a_helper <gimple_statement_try *>::test): ...this.
28537 (is_a_helper <gimple_statement_wce>::test): Convert to...
28538 (is_a_helper <gimple_statement_wce *>::test): ...this.
28539 (is_a_helper <const gimple_statement_asm>::test): Convert to...
28540 (is_a_helper <const gimple_statement_asm *>::test): ...this.
28541 (is_a_helper <const gimple_statement_bind>::test): Convert to...
28542 (is_a_helper <const gimple_statement_bind *>::test): ...this.
28543 (is_a_helper <const gimple_statement_call>::test): Convert to...
28544 (is_a_helper <const gimple_statement_call *>::test): ...this.
28545 (is_a_helper <const gimple_statement_catch>::test): Convert to...
28546 (is_a_helper <const gimple_statement_catch *>::test): ...this.
28547 (is_a_helper <const gimple_statement_resx>::test): Convert to...
28548 (is_a_helper <const gimple_statement_resx *>::test): ...this.
28549 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28550 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28551 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28552 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28553 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28555 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28557 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28559 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28561 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28562 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28563 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28565 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28566 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28568 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28569 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28570 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28571 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28572 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28573 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28575 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28576 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28577 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28578 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28580 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28581 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28582 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28583 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28584 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28585 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28586 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28587 (is_a_helper <const gimple_statement_phi>::test): Convert to...
28588 (is_a_helper <const gimple_statement_phi *>::test): ...this.
28589 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28590 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28591 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28592 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28593 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28594 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28595 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28597 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28599 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28600 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28602 (gimple_use_ops): Update for removal of implicit pointer from the
28604 (gimple_set_use_ops): Likewise.
28605 (gimple_vuse): Likewise.
28606 (gimple_vdef): Likewise.
28607 (gimple_vuse_ptr): Likewise.
28608 (gimple_vdef_ptr): Likewise.
28609 (gimple_set_vuse): Likewise.
28610 (gimple_set_vdef): Likewise.
28611 (gimple_omp_return_set_lhs): Likewise.
28612 (gimple_omp_return_lhs): Likewise.
28613 (gimple_omp_return_lhs_ptr): Likewise.
28614 (gimple_call_fntype): Likewise.
28615 (gimple_call_set_fntype): Likewise.
28616 (gimple_call_set_internal_fn): Likewise.
28617 (gimple_call_use_set): Likewise.
28618 (gimple_call_clobber_set): Likewise.
28619 (gimple_bind_vars): Likewise.
28620 (gimple_bind_set_vars): Likewise.
28621 (gimple_bind_body_ptr): Likewise.
28622 (gimple_bind_set_body): Likewise.
28623 (gimple_bind_add_stmt): Likewise.
28624 (gimple_bind_block): Likewise.
28625 (gimple_bind_set_block): Likewise.
28626 (gimple_asm_ninputs): Likewise.
28627 (gimple_asm_noutputs): Likewise.
28628 (gimple_asm_nclobbers): Likewise.
28629 (gimple_asm_nlabels): Likewise.
28630 (gimple_asm_input_op): Likewise.
28631 (gimple_asm_input_op_ptr): Likewise.
28632 (gimple_asm_output_op): Likewise.
28633 (gimple_asm_output_op_ptr): Likewise.
28634 (gimple_asm_set_output_op): Likewise.
28635 (gimple_asm_clobber_op): Likewise.
28636 (gimple_asm_set_clobber_op): Likewise.
28637 (gimple_asm_label_op): Likewise.
28638 (gimple_asm_set_label_op): Likewise.
28639 (gimple_asm_string): Likewise.
28640 (gimple_catch_types): Likewise.
28641 (gimple_catch_types_ptr): Likewise.
28642 (gimple_catch_handler_ptr): Likewise.
28643 (gimple_catch_set_types): Likewise.
28644 (gimple_catch_set_handler): Likewise.
28645 (gimple_eh_filter_types): Likewise.
28646 (gimple_eh_filter_types_ptr): Likewise.
28647 (gimple_eh_filter_failure_ptr): Likewise.
28648 (gimple_eh_filter_set_types): Likewise.
28649 (gimple_eh_filter_set_failure): Likewise.
28650 (gimple_eh_must_not_throw_fndecl): Likewise.
28651 (gimple_eh_must_not_throw_set_fndecl): Likewise.
28652 (gimple_eh_else_n_body_ptr): Likewise.
28653 (gimple_eh_else_e_body_ptr): Likewise.
28654 (gimple_eh_else_set_n_body): Likewise.
28655 (gimple_eh_else_set_e_body): Likewise.
28656 (gimple_try_eval_ptr): Likewise.
28657 (gimple_try_cleanup_ptr): Likewise.
28658 (gimple_try_set_eval): Likewise.
28659 (gimple_try_set_cleanup): Likewise.
28660 (gimple_wce_cleanup_ptr): Likewise.
28661 (gimple_wce_set_cleanup): Likewise.
28662 (gimple_phi_capacity): Likewise.
28663 (gimple_phi_num_args): Likewise.
28664 (gimple_phi_result): Likewise.
28665 (gimple_phi_result_ptr): Likewise.
28666 (gimple_phi_set_result): Likewise.
28667 (gimple_phi_arg): Likewise.
28668 (gimple_phi_set_arg): Likewise.
28669 (gimple_resx_region): Likewise.
28670 (gimple_resx_set_region): Likewise.
28671 (gimple_eh_dispatch_region): Likewise.
28672 (gimple_eh_dispatch_set_region): Likewise.
28673 (gimple_omp_critical_name): Likewise.
28674 (gimple_omp_critical_name_ptr): Likewise.
28675 (gimple_omp_critical_set_name): Likewise.
28676 (gimple_omp_for_clauses): Likewise.
28677 (gimple_omp_for_clauses_ptr): Likewise.
28678 (gimple_omp_for_set_clauses): Likewise.
28679 (gimple_omp_for_collapse): Likewise.
28680 (gimple_omp_for_index): Likewise.
28681 (gimple_omp_for_index_ptr): Likewise.
28682 (gimple_omp_for_set_index): Likewise.
28683 (gimple_omp_for_initial): Likewise.
28684 (gimple_omp_for_initial_ptr): Likewise.
28685 (gimple_omp_for_set_initial): Likewise.
28686 (gimple_omp_for_final): Likewise.
28687 (gimple_omp_for_final_ptr): Likewise.
28688 (gimple_omp_for_set_final): Likewise.
28689 (gimple_omp_for_incr): Likewise.
28690 (gimple_omp_for_incr_ptr): Likewise.
28691 (gimple_omp_for_set_incr): Likewise.
28692 (gimple_omp_for_pre_body_ptr): Likewise.
28693 (gimple_omp_for_set_pre_body): Likewise.
28694 (gimple_omp_parallel_clauses): Likewise.
28695 (gimple_omp_parallel_clauses_ptr): Likewise.
28696 (gimple_omp_parallel_set_clauses): Likewise.
28697 (gimple_omp_parallel_child_fn): Likewise.
28698 (gimple_omp_parallel_child_fn_ptr): Likewise.
28699 (gimple_omp_parallel_set_child_fn): Likewise.
28700 (gimple_omp_parallel_data_arg): Likewise.
28701 (gimple_omp_parallel_data_arg_ptr): Likewise.
28702 (gimple_omp_parallel_set_data_arg): Likewise.
28703 (gimple_omp_task_clauses): Likewise.
28704 (gimple_omp_task_clauses_ptr): Likewise.
28705 (gimple_omp_task_set_clauses): Likewise.
28706 (gimple_omp_task_child_fn): Likewise.
28707 (gimple_omp_task_child_fn_ptr): Likewise.
28708 (gimple_omp_task_set_child_fn): Likewise.
28709 (gimple_omp_task_data_arg): Likewise.
28710 (gimple_omp_task_data_arg_ptr): Likewise.
28711 (gimple_omp_task_set_data_arg): Likewise.
28712 (gimple_omp_taskreg_clauses): Likewise.
28713 (gimple_omp_taskreg_clauses_ptr): Likewise.
28714 (gimple_omp_taskreg_set_clauses): Likewise.
28715 (gimple_omp_taskreg_child_fn): Likewise.
28716 (gimple_omp_taskreg_child_fn_ptr): Likewise.
28717 (gimple_omp_taskreg_set_child_fn): Likewise.
28718 (gimple_omp_taskreg_data_arg): Likewise.
28719 (gimple_omp_taskreg_data_arg_ptr): Likewise.
28720 (gimple_omp_taskreg_set_data_arg): Likewise.
28721 (gimple_omp_task_copy_fn): Likewise.
28722 (gimple_omp_task_copy_fn_ptr): Likewise.
28723 (gimple_omp_task_set_copy_fn): Likewise.
28724 (gimple_omp_task_arg_size): Likewise.
28725 (gimple_omp_task_arg_size_ptr): Likewise.
28726 (gimple_omp_task_set_arg_size): Likewise.
28727 (gimple_omp_task_arg_align): Likewise.
28728 (gimple_omp_task_arg_align_ptr): Likewise.
28729 (gimple_omp_task_set_arg_align): Likewise.
28730 (gimple_omp_single_clauses): Likewise.
28731 (gimple_omp_single_clauses_ptr): Likewise.
28732 (gimple_omp_single_set_clauses): Likewise.
28733 (gimple_omp_target_clauses): Likewise.
28734 (gimple_omp_target_clauses_ptr): Likewise.
28735 (gimple_omp_target_set_clauses): Likewise.
28736 (gimple_omp_target_child_fn): Likewise.
28737 (gimple_omp_target_child_fn_ptr): Likewise.
28738 (gimple_omp_target_set_child_fn): Likewise.
28739 (gimple_omp_target_data_arg): Likewise.
28740 (gimple_omp_target_data_arg_ptr): Likewise.
28741 (gimple_omp_target_set_data_arg): Likewise.
28742 (gimple_omp_teams_clauses): Likewise.
28743 (gimple_omp_teams_clauses_ptr): Likewise.
28744 (gimple_omp_teams_set_clauses): Likewise.
28745 (gimple_omp_sections_clauses): Likewise.
28746 (gimple_omp_sections_clauses_ptr): Likewise.
28747 (gimple_omp_sections_set_clauses): Likewise.
28748 (gimple_omp_sections_control): Likewise.
28749 (gimple_omp_sections_control_ptr): Likewise.
28750 (gimple_omp_sections_set_control): Likewise.
28751 (gimple_omp_for_set_cond): Likewise.
28752 (gimple_omp_for_cond): Likewise.
28753 (gimple_omp_atomic_store_set_val): Likewise.
28754 (gimple_omp_atomic_store_val): Likewise.
28755 (gimple_omp_atomic_store_val_ptr): Likewise.
28756 (gimple_omp_atomic_load_set_lhs): Likewise.
28757 (gimple_omp_atomic_load_lhs): Likewise.
28758 (gimple_omp_atomic_load_lhs_ptr): Likewise.
28759 (gimple_omp_atomic_load_set_rhs): Likewise.
28760 (gimple_omp_atomic_load_rhs): Likewise.
28761 (gimple_omp_atomic_load_rhs_ptr): Likewise.
28762 (gimple_omp_continue_control_def): Likewise.
28763 (gimple_omp_continue_control_def_ptr): Likewise.
28764 (gimple_omp_continue_set_control_def): Likewise.
28765 (gimple_omp_continue_control_use): Likewise.
28766 (gimple_omp_continue_control_use_ptr): Likewise.
28767 (gimple_omp_continue_set_control_use): Likewise.
28768 (gimple_transaction_body_ptr): Likewise.
28769 (gimple_transaction_label): Likewise.
28770 (gimple_transaction_label_ptr): Likewise.
28771 (gimple_transaction_set_body): Likewise.
28772 (gimple_transaction_set_label): Likewise.
28774 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28775 * ipa-inline-analysis.c (inline_write_summary): Likewise.
28776 * ipa-ref.c (ipa_record_reference): Likewise.
28777 * ipa-reference.c (analyze_function): Likewise.
28778 (ipa_reference_write_optimization_summary): Likewise.
28779 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28780 (address_taken_from_non_vtable_p): Likewise.
28781 (comdat_can_be_unshared_p_1): Likewise.
28782 * lto-cgraph.c (lto_output_ref): Likewise.
28783 (add_references): Likewise.
28784 (compute_ltrans_boundary): Likewise.
28785 (output_symtab): Likewise.
28786 (input_ref): Likewise.
28787 (input_cgraph_1): Likewise.
28788 (output_cgraph_opt_summary): Likewise.
28789 * lto-streamer-out.c (lto_output): Likewise.
28790 (output_symbol_p): Likewise.
28791 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28792 (lsei_start_function_in_partition): Likewise.
28793 (lsei_next_variable_in_partition): Likewise.
28794 (lsei_start_variable_in_partition): Likewise.
28795 * symtab.c (insert_to_assembler_name_hash): Likewise.
28796 (unlink_from_assembler_name_hash): Likewise.
28797 (symtab_unregister_node): Likewise.
28798 (symtab_remove_node): Likewise.
28799 (dump_symtab_node): Likewise.
28800 (verify_symtab_base): Likewise.
28801 (verify_symtab_node): Likewise.
28802 (symtab_make_decl_local): Likewise.
28803 (symtab_alias_ultimate_target): Likewise.
28804 (symtab_resolve_alias): Likewise.
28805 (symtab_get_symbol_partitioning_class): Likewise.
28806 * tree-phinodes.c (allocate_phi_node): Likewise.
28807 (reserve_phi_args_for_new_edge): Likewise.
28808 (remove_phi_args): Likewise.
28809 * varpool.c (varpool_node_for_asm): Likewise.
28810 (varpool_remove_unreferenced_decls): Likewise.
28812 2014-04-23 Jeff Law <law@redhat.com>
28814 PR tree-optimization/60902
28815 * tree-ssa-threadedge.c
28816 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28817 invalidate outputs from statements that do not produce useful
28818 outputs for threading.
28820 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
28822 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28823 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28824 machine descriptions for Stack Smashing Protector.
28826 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
28828 * aarch64.md (<optab>_rol<mode>3): New pattern.
28829 (<optab>_rolsi3_uxtw): Likewise.
28830 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28832 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
28834 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28835 (arm_cortex_a12_tune): Likewise.
28837 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28839 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28841 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28843 * config/arm/arm.md (arm_rev16si2): New pattern.
28844 (arm_rev16si2_alt): Likewise.
28845 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28847 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28849 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28850 (rev16<mode>2_alt): Likewise.
28851 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28852 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28853 (aarch_rev16_shleft_mask_imm_p): Likewise.
28854 (aarch_rev16_p_1): Likewise.
28855 (aarch_rev16_p): Likewise.
28856 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28857 (aarch_rev16_shright_mask_imm_p): Likewise.
28858 (aarch_rev16_shleft_mask_imm_p): Likewise.
28860 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28862 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28863 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28865 (cortex_a53_extra_costs): Likewise.
28866 (cortex_a57_extra_costs): Likewise.
28867 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28868 (cortexa7_extra_costs): Likewise.
28869 (cortexa8_extra_costs): Likewise.
28870 (cortexa12_extra_costs): Likewise.
28871 (cortexa15_extra_costs): Likewise.
28872 (v7m_extra_costs): Likewise.
28873 (arm_new_rtx_costs): Handle BSWAP.
28875 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28877 * config/arm/arm.c (cortexa8_extra_costs): New table.
28878 (arm_cortex_a8_tune): New tuning struct.
28879 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28881 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28883 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28885 2014-04-23 Richard Biener <rguenther@suse.de>
28887 * Makefile.in (OBJS): Remove loop-unswitch.o.
28888 * tree-pass.h (make_pass_rtl_unswitch): Remove.
28889 * passes.def (pass_rtl_unswitch): Likewise.
28890 * loop-init.c (gate_rtl_unswitch): Likewise.
28891 (rtl_unswitch): Likewise.
28892 (pass_data_rtl_unswitch): Likewise.
28893 (pass_rtl_unswitch): Likewise.
28894 (make_pass_rtl_unswitch): Likewise.
28895 * rtl.h (reversed_condition): Likewise.
28896 (compare_and_jump_seq): Likewise.
28897 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28899 * loop-unroll.c (compare_and_jump_seq): Likewise.
28901 2014-04-23 Richard Biener <rguenther@suse.de>
28903 PR tree-optimization/60903
28904 * tree-ssa-loop-im.c (analyze_memory_references): Remove
28905 commented code block.
28906 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28907 loop flags to newly created BBs and edges.
28909 2014-04-23 Nick Clifton <nickc@redhat.com>
28911 * config/msp430/msp430.c (msp430_handle_option): Move function
28913 (msp430_option_override): Simplify mcu and mcpu option handling.
28914 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
28915 support for -mhwmult command line option.
28916 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
28917 -mhwmult command line option.
28918 (msp430_hwmult_enabled): Delete.
28919 (msp43o_output_labelref): Add support for -mhwmult command line option.
28920 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28921 (umulsidi3): Likewise.
28922 * config/msp430/msp430.opt (mmcu): Add Report attribute.
28923 (mcpu, mlarge, msmall): Likewise.
28924 (mhwmult): New option.
28925 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28927 (msp430_is_f5_mcu): Remove prototype.
28928 (msp430_use_f5_series_hwmult): Add prototype.
28929 * config/msp430/msp430-opts.h: New file.
28930 * common/config/msp430: New directory.
28931 * common/config/msp430/msp430-common.c: New file.
28932 * config.gcc (msp430): Remove target_has_targetm_common.
28933 * doc/invoke.texi: Document -mhwmult command line option.
28935 2014-04-23 Nick Clifton <nickc@redhat.com>
28937 * config/i386/cygwin.h (ENDFILE_SPEC): Include
28938 default-manifest.o if it can be found in the search path.
28939 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28941 2014-04-23 Terry Guo <terry.guo@arm.com>
28943 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28945 2014-04-23 Richard Biener <rguenther@suse.de>
28947 PR middle-end/60895
28948 * tree-inline.c (declare_return_variable): Use mark_addressable.
28950 2014-04-23 Richard Biener <rguenther@suse.de>
28952 PR middle-end/60891
28953 * loop-init.c (loop_optimizer_init): Make sure to apply
28954 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28956 2014-04-22 Jakub Jelinek <jakub@redhat.com>
28959 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28961 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28962 if flag_sanitize_undefined_trap_on_error.
28963 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28964 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28965 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28966 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28967 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28968 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28969 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28970 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28971 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28972 * ubsan.c (ubsan_instrument_unreachable): Return
28973 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28974 (ubsan_expand_null_ifn): Emit __builtin_trap ()
28975 if flag_sanitize_undefined_trap_on_error and
28976 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28977 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28978 instrument_bool_enum_load): Emit __builtin_trap () if
28979 flag_sanitize_undefined_trap_on_error and
28980 __builtin_handle_*_abort () if !flag_sanitize_recover.
28981 * doc/invoke.texi (-fsanitize-recover,
28982 -fsanitize-undefined-trap-on-error): Document.
28984 2014-04-22 Christian Bruel <christian.bruel@st.com>
28986 * config/sh/sh.md (mov<mode>): Replace movQIHI.
28987 Force immediates to SImode.
28989 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
28991 * config/nios2/nios2.md (UNSPEC_ROUND): New.
28992 (lroundsfsi2): New.
28993 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28994 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28995 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28996 (nios2_fpu_insn): Add entry for round.
28997 (N2FPU_NO_ERRNO_P): Define.
28998 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
29000 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
29002 2014-04-22 Richard Henderson <rth@redhat.com>
29004 * config/aarch64/aarch64 (addti3, subti3): New expanders.
29005 (add<GPI>3_compare0): Remove leading * from name.
29006 (add<GPI>3_carryin): Likewise.
29007 (sub<GPI>3_compare0): Likewise.
29008 (sub<GPI>3_carryin): Likewise.
29009 (<su_optab>mulditi3): New expander.
29010 (multi3): New expander.
29011 (madd<GPI>): Remove leading * from name.
29013 2014-04-22 Martin Jambor <mjambor@suse.cz>
29015 * cgraphclones.c (cgraph_function_versioning): Copy
29016 ipa_transforms_to_apply instead of asserting it is empty.
29018 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
29021 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
29022 on count_exp to get mode.
29024 2014-04-22 Andrew Pinski <apinski@cavium.com>
29026 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
29027 Handle TLS for ILP32.
29028 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
29029 (tlsie_small_<mode>): this and handle PTR.
29030 (tlsie_small_sidi): New pattern.
29031 (tlsle_small): Change to an expand to handle ILP32.
29032 (tlsle_small_<mode>): New pattern.
29033 (tlsdesc_small): Rename to ...
29034 (tlsdesc_small_<mode>): this and handle PTR.
29036 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29038 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
29040 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29042 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29043 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
29044 (aarch64_types_signed_poly_qualifiers): Likewise.
29045 (aarch64_types_unsigned_signed_qualifiers): Likewise.
29046 (aarch64_types_poly_signed_qualifiers): Likewise.
29047 (TYPES_REINTERP_SS): Type macro added.
29048 (TYPES_REINTERP_SU): Likewise.
29049 (TYPES_REINTERP_SP): Likewise.
29050 (TYPES_REINTERP_US): Likewise.
29051 (TYPES_REINTERP_PS): Likewise.
29052 (aarch64_fold_builtin): New expression folding added.
29053 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
29054 Declarations removed.
29055 (REINTERP_SS): Declarations added.
29056 (REINTERP_US): Likewise.
29057 (REINTERP_PS): Likewise.
29058 (REINTERP_SU): Likewise.
29059 (REINTERP_SP): Likewise.
29060 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
29061 (vreinterpretq_p8_f64): Likewise.
29062 (vreinterpret_p16_f64): Likewise.
29063 (vreinterpretq_p16_f64): Likewise.
29064 (vreinterpret_f32_f64): Likewise.
29065 (vreinterpretq_f32_f64): Likewise.
29066 (vreinterpret_f64_f32): Likewise.
29067 (vreinterpret_f64_p8): Likewise.
29068 (vreinterpret_f64_p16): Likewise.
29069 (vreinterpret_f64_s8): Likewise.
29070 (vreinterpret_f64_s16): Likewise.
29071 (vreinterpret_f64_s32): Likewise.
29072 (vreinterpret_f64_s64): Likewise.
29073 (vreinterpret_f64_u8): Likewise.
29074 (vreinterpret_f64_u16): Likewise.
29075 (vreinterpret_f64_u32): Likewise.
29076 (vreinterpret_f64_u64): Likewise.
29077 (vreinterpretq_f64_f32): Likewise.
29078 (vreinterpretq_f64_p8): Likewise.
29079 (vreinterpretq_f64_p16): Likewise.
29080 (vreinterpretq_f64_s8): Likewise.
29081 (vreinterpretq_f64_s16): Likewise.
29082 (vreinterpretq_f64_s32): Likewise.
29083 (vreinterpretq_f64_s64): Likewise.
29084 (vreinterpretq_f64_u8): Likewise.
29085 (vreinterpretq_f64_u16): Likewise.
29086 (vreinterpretq_f64_u32): Likewise.
29087 (vreinterpretq_f64_u64): Likewise.
29088 (vreinterpret_s64_f64): Likewise.
29089 (vreinterpretq_s64_f64): Likewise.
29090 (vreinterpret_u64_f64): Likewise.
29091 (vreinterpretq_u64_f64): Likewise.
29092 (vreinterpret_s8_f64): Likewise.
29093 (vreinterpretq_s8_f64): Likewise.
29094 (vreinterpret_s16_f64): Likewise.
29095 (vreinterpretq_s16_f64): Likewise.
29096 (vreinterpret_s32_f64): Likewise.
29097 (vreinterpretq_s32_f64): Likewise.
29098 (vreinterpret_u8_f64): Likewise.
29099 (vreinterpretq_u8_f64): Likewise.
29100 (vreinterpret_u16_f64): Likewise.
29101 (vreinterpretq_u16_f64): Likewise.
29102 (vreinterpret_u32_f64): Likewise.
29103 (vreinterpretq_u32_f64): Likewise.
29105 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29107 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29108 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
29109 (vreinterpret_p8_s8): Likewise.
29110 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
29111 (vreinterpret_p8_s16): Likewise.
29112 (vreinterpret_p8_s32): Likewise.
29113 (vreinterpret_p8_s64): Likewise.
29114 (vreinterpret_p8_f32): Likewise.
29115 (vreinterpret_p8_u8): Likewise.
29116 (vreinterpret_p8_u16): Likewise.
29117 (vreinterpret_p8_u32): Likewise.
29118 (vreinterpret_p8_u64): Likewise.
29119 (vreinterpret_p8_p16): Likewise.
29120 (vreinterpretq_p8_s8): Likewise.
29121 (vreinterpretq_p8_s16): Likewise.
29122 (vreinterpretq_p8_s32): Likewise.
29123 (vreinterpretq_p8_s64): Likewise.
29124 (vreinterpretq_p8_f32): Likewise.
29125 (vreinterpretq_p8_u8): Likewise.
29126 (vreinterpretq_p8_u16): Likewise.
29127 (vreinterpretq_p8_u32): Likewise.
29128 (vreinterpretq_p8_u64): Likewise.
29129 (vreinterpretq_p8_p16): Likewise.
29130 (vreinterpret_p16_s8): Likewise.
29131 (vreinterpret_p16_s16): Likewise.
29132 (vreinterpret_p16_s32): Likewise.
29133 (vreinterpret_p16_s64): Likewise.
29134 (vreinterpret_p16_f32): Likewise.
29135 (vreinterpret_p16_u8): Likewise.
29136 (vreinterpret_p16_u16): Likewise.
29137 (vreinterpret_p16_u32): Likewise.
29138 (vreinterpret_p16_u64): Likewise.
29139 (vreinterpret_p16_p8): Likewise.
29140 (vreinterpretq_p16_s8): Likewise.
29141 (vreinterpretq_p16_s16): Likewise.
29142 (vreinterpretq_p16_s32): Likewise.
29143 (vreinterpretq_p16_s64): Likewise.
29144 (vreinterpretq_p16_f32): Likewise.
29145 (vreinterpretq_p16_u8): Likewise.
29146 (vreinterpretq_p16_u16): Likewise.
29147 (vreinterpretq_p16_u32): Likewise.
29148 (vreinterpretq_p16_u64): Likewise.
29149 (vreinterpretq_p16_p8): Likewise.
29150 (vreinterpret_f32_s8): Likewise.
29151 (vreinterpret_f32_s16): Likewise.
29152 (vreinterpret_f32_s32): Likewise.
29153 (vreinterpret_f32_s64): Likewise.
29154 (vreinterpret_f32_u8): Likewise.
29155 (vreinterpret_f32_u16): Likewise.
29156 (vreinterpret_f32_u32): Likewise.
29157 (vreinterpret_f32_u64): Likewise.
29158 (vreinterpret_f32_p8): Likewise.
29159 (vreinterpret_f32_p16): Likewise.
29160 (vreinterpretq_f32_s8): Likewise.
29161 (vreinterpretq_f32_s16): Likewise.
29162 (vreinterpretq_f32_s32): Likewise.
29163 (vreinterpretq_f32_s64): Likewise.
29164 (vreinterpretq_f32_u8): Likewise.
29165 (vreinterpretq_f32_u16): Likewise.
29166 (vreinterpretq_f32_u32): Likewise.
29167 (vreinterpretq_f32_u64): Likewise.
29168 (vreinterpretq_f32_p8): Likewise.
29169 (vreinterpretq_f32_p16): Likewise.
29170 (vreinterpret_s64_s8): Likewise.
29171 (vreinterpret_s64_s16): Likewise.
29172 (vreinterpret_s64_s32): Likewise.
29173 (vreinterpret_s64_f32): Likewise.
29174 (vreinterpret_s64_u8): Likewise.
29175 (vreinterpret_s64_u16): Likewise.
29176 (vreinterpret_s64_u32): Likewise.
29177 (vreinterpret_s64_u64): Likewise.
29178 (vreinterpret_s64_p8): Likewise.
29179 (vreinterpret_s64_p16): Likewise.
29180 (vreinterpretq_s64_s8): Likewise.
29181 (vreinterpretq_s64_s16): Likewise.
29182 (vreinterpretq_s64_s32): Likewise.
29183 (vreinterpretq_s64_f32): Likewise.
29184 (vreinterpretq_s64_u8): Likewise.
29185 (vreinterpretq_s64_u16): Likewise.
29186 (vreinterpretq_s64_u32): Likewise.
29187 (vreinterpretq_s64_u64): Likewise.
29188 (vreinterpretq_s64_p8): Likewise.
29189 (vreinterpretq_s64_p16): Likewise.
29190 (vreinterpret_u64_s8): Likewise.
29191 (vreinterpret_u64_s16): Likewise.
29192 (vreinterpret_u64_s32): Likewise.
29193 (vreinterpret_u64_s64): Likewise.
29194 (vreinterpret_u64_f32): Likewise.
29195 (vreinterpret_u64_u8): Likewise.
29196 (vreinterpret_u64_u16): Likewise.
29197 (vreinterpret_u64_u32): Likewise.
29198 (vreinterpret_u64_p8): Likewise.
29199 (vreinterpret_u64_p16): Likewise.
29200 (vreinterpretq_u64_s8): Likewise.
29201 (vreinterpretq_u64_s16): Likewise.
29202 (vreinterpretq_u64_s32): Likewise.
29203 (vreinterpretq_u64_s64): Likewise.
29204 (vreinterpretq_u64_f32): Likewise.
29205 (vreinterpretq_u64_u8): Likewise.
29206 (vreinterpretq_u64_u16): Likewise.
29207 (vreinterpretq_u64_u32): Likewise.
29208 (vreinterpretq_u64_p8): Likewise.
29209 (vreinterpretq_u64_p16): Likewise.
29210 (vreinterpret_s8_s16): Likewise.
29211 (vreinterpret_s8_s32): Likewise.
29212 (vreinterpret_s8_s64): Likewise.
29213 (vreinterpret_s8_f32): Likewise.
29214 (vreinterpret_s8_u8): Likewise.
29215 (vreinterpret_s8_u16): Likewise.
29216 (vreinterpret_s8_u32): Likewise.
29217 (vreinterpret_s8_u64): Likewise.
29218 (vreinterpret_s8_p8): Likewise.
29219 (vreinterpret_s8_p16): Likewise.
29220 (vreinterpretq_s8_s16): Likewise.
29221 (vreinterpretq_s8_s32): Likewise.
29222 (vreinterpretq_s8_s64): Likewise.
29223 (vreinterpretq_s8_f32): Likewise.
29224 (vreinterpretq_s8_u8): Likewise.
29225 (vreinterpretq_s8_u16): Likewise.
29226 (vreinterpretq_s8_u32): Likewise.
29227 (vreinterpretq_s8_u64): Likewise.
29228 (vreinterpretq_s8_p8): Likewise.
29229 (vreinterpretq_s8_p16): Likewise.
29230 (vreinterpret_s16_s8): Likewise.
29231 (vreinterpret_s16_s32): Likewise.
29232 (vreinterpret_s16_s64): Likewise.
29233 (vreinterpret_s16_f32): Likewise.
29234 (vreinterpret_s16_u8): Likewise.
29235 (vreinterpret_s16_u16): Likewise.
29236 (vreinterpret_s16_u32): Likewise.
29237 (vreinterpret_s16_u64): Likewise.
29238 (vreinterpret_s16_p8): Likewise.
29239 (vreinterpret_s16_p16): Likewise.
29240 (vreinterpretq_s16_s8): Likewise.
29241 (vreinterpretq_s16_s32): Likewise.
29242 (vreinterpretq_s16_s64): Likewise.
29243 (vreinterpretq_s16_f32): Likewise.
29244 (vreinterpretq_s16_u8): Likewise.
29245 (vreinterpretq_s16_u16): Likewise.
29246 (vreinterpretq_s16_u32): Likewise.
29247 (vreinterpretq_s16_u64): Likewise.
29248 (vreinterpretq_s16_p8): Likewise.
29249 (vreinterpretq_s16_p16): Likewise.
29250 (vreinterpret_s32_s8): Likewise.
29251 (vreinterpret_s32_s16): Likewise.
29252 (vreinterpret_s32_s64): Likewise.
29253 (vreinterpret_s32_f32): Likewise.
29254 (vreinterpret_s32_u8): Likewise.
29255 (vreinterpret_s32_u16): Likewise.
29256 (vreinterpret_s32_u32): Likewise.
29257 (vreinterpret_s32_u64): Likewise.
29258 (vreinterpret_s32_p8): Likewise.
29259 (vreinterpret_s32_p16): Likewise.
29260 (vreinterpretq_s32_s8): Likewise.
29261 (vreinterpretq_s32_s16): Likewise.
29262 (vreinterpretq_s32_s64): Likewise.
29263 (vreinterpretq_s32_f32): Likewise.
29264 (vreinterpretq_s32_u8): Likewise.
29265 (vreinterpretq_s32_u16): Likewise.
29266 (vreinterpretq_s32_u32): Likewise.
29267 (vreinterpretq_s32_u64): Likewise.
29268 (vreinterpretq_s32_p8): Likewise.
29269 (vreinterpretq_s32_p16): Likewise.
29270 (vreinterpret_u8_s8): Likewise.
29271 (vreinterpret_u8_s16): Likewise.
29272 (vreinterpret_u8_s32): Likewise.
29273 (vreinterpret_u8_s64): Likewise.
29274 (vreinterpret_u8_f32): Likewise.
29275 (vreinterpret_u8_u16): Likewise.
29276 (vreinterpret_u8_u32): Likewise.
29277 (vreinterpret_u8_u64): Likewise.
29278 (vreinterpret_u8_p8): Likewise.
29279 (vreinterpret_u8_p16): Likewise.
29280 (vreinterpretq_u8_s8): Likewise.
29281 (vreinterpretq_u8_s16): Likewise.
29282 (vreinterpretq_u8_s32): Likewise.
29283 (vreinterpretq_u8_s64): Likewise.
29284 (vreinterpretq_u8_f32): Likewise.
29285 (vreinterpretq_u8_u16): Likewise.
29286 (vreinterpretq_u8_u32): Likewise.
29287 (vreinterpretq_u8_u64): Likewise.
29288 (vreinterpretq_u8_p8): Likewise.
29289 (vreinterpretq_u8_p16): Likewise.
29290 (vreinterpret_u16_s8): Likewise.
29291 (vreinterpret_u16_s16): Likewise.
29292 (vreinterpret_u16_s32): Likewise.
29293 (vreinterpret_u16_s64): Likewise.
29294 (vreinterpret_u16_f32): Likewise.
29295 (vreinterpret_u16_u8): Likewise.
29296 (vreinterpret_u16_u32): Likewise.
29297 (vreinterpret_u16_u64): Likewise.
29298 (vreinterpret_u16_p8): Likewise.
29299 (vreinterpret_u16_p16): Likewise.
29300 (vreinterpretq_u16_s8): Likewise.
29301 (vreinterpretq_u16_s16): Likewise.
29302 (vreinterpretq_u16_s32): Likewise.
29303 (vreinterpretq_u16_s64): Likewise.
29304 (vreinterpretq_u16_f32): Likewise.
29305 (vreinterpretq_u16_u8): Likewise.
29306 (vreinterpretq_u16_u32): Likewise.
29307 (vreinterpretq_u16_u64): Likewise.
29308 (vreinterpretq_u16_p8): Likewise.
29309 (vreinterpretq_u16_p16): Likewise.
29310 (vreinterpret_u32_s8): Likewise.
29311 (vreinterpret_u32_s16): Likewise.
29312 (vreinterpret_u32_s32): Likewise.
29313 (vreinterpret_u32_s64): Likewise.
29314 (vreinterpret_u32_f32): Likewise.
29315 (vreinterpret_u32_u8): Likewise.
29316 (vreinterpret_u32_u16): Likewise.
29317 (vreinterpret_u32_u64): Likewise.
29318 (vreinterpret_u32_p8): Likewise.
29319 (vreinterpret_u32_p16): Likewise.
29320 (vreinterpretq_u32_s8): Likewise.
29321 (vreinterpretq_u32_s16): Likewise.
29322 (vreinterpretq_u32_s32): Likewise.
29323 (vreinterpretq_u32_s64): Likewise.
29324 (vreinterpretq_u32_f32): Likewise.
29325 (vreinterpretq_u32_u8): Likewise.
29326 (vreinterpretq_u32_u16): Likewise.
29327 (vreinterpretq_u32_u64): Likewise.
29328 (vreinterpretq_u32_p8): Likewise.
29329 (vreinterpretq_u32_p16): Likewise.
29331 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29333 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
29335 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
29337 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
29338 (vqnegd_s64): Likewise.
29339 (vqabs_s64): Likewise.
29340 (vqabsd_s64): Likewise.
29342 2014-04-22 Richard Henderson <rth@redhat.com>
29344 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
29345 computation to the top of the loop.
29347 2014-04-22 Renlin <renlin.li@arm.com>
29348 Jiong Wang <jiong.wang@arm.com>
29350 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
29351 * config/aarch64/aarch64.c (aarch64_layout_frame)
29352 (aarch64_initial_elimination_offset): Likewise.
29354 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
29356 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
29359 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
29361 * machmode.h (bitwise_mode_for_mode): Declare.
29362 * stor-layout.h (bitwise_type_for_mode): Likewise.
29363 * stor-layout.c (bitwise_mode_for_mode): New function.
29364 (bitwise_type_for_mode): Likewise.
29365 * builtins.c (fold_builtin_memory_op): Use it instead of
29366 int_mode_for_mode and build_nonstandard_integer_type.
29368 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29370 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
29371 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
29372 (*-*-solaris2*): Simplify.
29373 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
29374 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
29375 *-*-solaris2.9* handling.
29377 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
29379 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
29380 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
29381 handling, simplify.
29382 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
29383 * configure: Regenerate.
29385 * config/i386/sol2-9.h: Remove.
29387 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
29388 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
29389 Remove Solaris 9 references.
29391 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
29393 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
29394 (floatuns<GPI:mode><GPF:mode>2): Remove.
29395 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
29396 and floatuns conversions.
29397 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
29398 and floatuns conversions.
29399 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
29400 (w1,w2): New mode attributes for inequal width conversions.
29402 2014-04-22 Renlin Li <Renlin.Li@arm.com>
29404 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
29405 the output asm format.
29407 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
29409 * config/aarch64/aarch64-simd.md
29410 (aarch64_cm<optab>di): Always split.
29411 (*aarch64_cm<optab>di): New.
29412 (aarch64_cmtstdi): Always split.
29413 (*aarch64_cmtstdi): New.
29415 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29417 PR tree-optimization/60823
29418 * omp-low.c (ipa_simd_modify_function_body): Go through
29419 all SSA_NAMEs and for those refering to vector arguments
29420 which are going to be replaced adjust SSA_NAME_VAR and,
29421 if it is a default definition, change it into a non-default
29422 definition assigned at the beginning of function from new_decl.
29423 (ipa_simd_modify_stmt_ops): Rewritten.
29424 * tree-dfa.c (set_ssa_default_def): When removing default def,
29425 check for NULL loc instead of NULL *loc.
29427 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29429 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29430 restrictions on core registers for DImode values in Thumb2.
29432 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29434 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29435 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29437 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29439 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29440 (*iordi_notzesidi_di): Likewise.
29441 (*iordi_notsesidi_di): Likewise.
29443 2014-04-22 Ian Bolton <ian.bolton@arm.com>
29445 * config/arm/arm-protos.h (tune_params): New struct members.
29446 * config/arm/arm.c: Initialise tune_params per processor.
29447 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29448 for speed, based on new tune_params.
29450 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
29452 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29453 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29454 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29455 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29456 * config/aarch64/arm_neon.h (vrnd_f64): Added.
29457 (vrnda_f64): Likewise.
29458 (vrndi_f64): Likewise.
29459 (vrndm_f64): Likewise.
29460 (vrndn_f64): Likewise.
29461 (vrndp_f64): Likewise.
29462 (vrndx_f64): Likewise.
29464 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29466 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29467 GET_MODE_SIZE argument is enum machine_mode.
29469 2014-04-22 Jakub Jelinek <jakub@redhat.com>
29472 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29473 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29475 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
29477 PR middle-end/60281
29478 * asan.c (asan_emit_stack_protection): Force the base to align to
29479 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
29480 appropriate bits if STRICT_ALIGNMENT.
29481 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29483 (expand_used_vars): Leave a space in the stack frame for alignment
29484 if STRICT_ALIGNMENT.
29486 2014-04-21 David Malcolm <dmalcolm@redhat.com>
29488 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29490 (gimple_store_p): Likewise.
29491 (gimple_assign_load_p): Likewise.
29492 (gimple_assign_cast_p): Likewise.
29493 (gimple_clobber_p): Likewise.
29495 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29496 rather than a gimple.
29497 (gimple_assign_cast_p): Likewise.
29499 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
29502 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29503 If mode is DDmode and TARGET_E500_DOUBLE allow move.
29505 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29506 more debug information for E500 if -mdebug=reg.
29508 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
29511 * config/i386/i386.c (ix86_expand_builtin)
29512 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29513 register for target RTX.
29514 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29516 2014-04-18 Cong Hou <congh@google.com>
29518 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29519 the widen-mult pattern by handling two operands with different sizes,
29520 and operands whose size is smaller than half of the result type.
29522 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29524 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29525 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29526 (do_estimate_edge_time): Compute it.
29527 * ipa-inline.c (want_inline_small_function_p): Bypass
29528 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29530 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
29532 * ipa-inline.c (spec_rem): New static variable.
29533 (dump_overall_stats): New function.
29534 (dump_inline_stats): New function.
29536 2014-04-18 Richard Henderson <rth@redhat.com>
29538 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29539 to GET_MODE_SIZE, not a reg_class_t.
29541 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29543 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29544 (vsx_xxmrglw_<mode>): Likewise.
29546 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
29549 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29550 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29551 (rs6000_init_hard_regno_mode_ok): Likewise.
29553 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
29555 * ipa-inline.c (inline_small_functions): Account only non-cold
29557 * doc/invoke.texi (inline-unit-growth): Update documentation.
29559 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
29561 * config/rs6000/rs6000.md (addti3, subti3): New.
29563 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
29566 * config/i386/i386.c (ix86_expand_clear): Remove outdated
29567 comment. Check optimize_insn_for_size_p instead of
29568 optimize_insn_for_speed_p.
29570 2014-04-17 Martin Jambor <mjambor@suse.cz>
29572 * gimple-iterator.c (gsi_start_edge): New function.
29573 * gimple-iterator.h (gsi_start_edge): Declare.
29574 * tree-sra.c (single_non_eh_succ): New function.
29575 (disqualify_ops_if_throwing_stmt): Renamed to
29576 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
29577 having one non-EH successor BB.
29578 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29579 generate loads into replacements.
29580 (sra_modify_assign): Likewise and and also use the simple path for
29582 (sra_modify_function_body): Commit statements on edges.
29584 2014-04-17 Richard Biener <rguenther@suse.de>
29586 PR middle-end/60849
29587 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29588 comparison results and add clarifying comment.
29590 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29592 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29593 (blank_mode): Initialize it.
29594 (emit_mode_size_inline, emit_mode_nunits_inline,
29595 emit_mode_inner_inline): New functions.
29596 (emit_insn_modes_h): Call them and surround their output with
29597 #if GCC_VERSION >= 4001 ... #endif.
29598 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29599 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29600 mode_* arrays if the argument is __builtin_constant_p.
29601 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29602 is enum machine_mode.
29604 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29606 * passes.c (opt_pass::execute): Adjust.
29607 (pass_manager::execute_pass_mode_switching): Likewise.
29608 (early_local_passes::execute): Likewise.
29609 (execute_one_pass): Pass cfun to the pass's execute method.
29610 * tree-pass.h (opt_pass::execute): Add function * argument.
29611 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29612 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29613 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29614 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29615 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29616 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29617 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29618 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29619 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29620 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29621 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29622 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29623 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29624 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29625 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29626 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29627 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29628 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29629 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29630 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29631 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29632 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29633 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29634 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29635 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29636 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29637 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29638 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29639 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29642 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29644 * passes.c (opt_pass::gate): Take function * argument.
29645 (gate_all_early_local_passes): Merge into
29646 (early_local_passes::gate): this.
29647 (gate_all_early_optimizations): Merge into
29648 (all_early_optimizations::gate): this.
29649 (gate_all_optimizations): Mege into
29650 (all_optimizations::gate): this.
29651 (gate_all_optimizations_g): Merge into
29652 (all_optimizations_g::gate): this.
29653 (gate_rest_of_compilation): Mege into
29654 (rest_of_compilation::gate): this.
29655 (gate_postreload): Merge into
29656 (postreload::gate): this.
29657 (dump_one_pass): Pass cfun to the pass's gate method.
29658 (execute_ipa_summary_passes): Likewise.
29659 (execute_one_pass): Likewise.
29660 (ipa_write_summaries_2): Likewise.
29661 (ipa_write_optimization_summaries_1): Likewise.
29662 (ipa_read_summaries_1): Likewise.
29663 (ipa_read_optimization_summaries_1): Likewise.
29664 (execute_ipa_stmt_fixups): Likewise.
29665 * tree-pass.h (opt_pass::gate): Add function * argument.
29666 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29667 combine-stack-adj.c, combine.c, compare-elim.c,
29668 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29669 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29670 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29671 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
29672 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29673 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29674 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29675 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29676 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29677 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29678 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29679 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29680 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29681 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29682 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29683 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29684 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29685 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29686 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29687 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29688 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29689 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29690 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29691 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29692 var-tracking.c, vtable-verify.c, web.c: Adjust.
29694 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29696 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29697 * configure: Regenerate.
29699 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29701 * passes.c (dump_one_pass): don't check pass->has_gate.
29702 (execute_ipa_summary_passes): Likewise.
29703 (execute_one_pass): Likewise.
29704 (ipa_write_summaries_2): Likewise.
29705 (ipa_write_optimization_summaries_1): Likewise.
29706 (ipa_read_optimization_summaries_1): Likewise.
29707 (execute_ipa_stmt_fixups): Likewise.
29708 * tree-pass.h (pass_data::has_gate): Remove.
29709 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29710 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29711 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29712 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29713 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29714 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29715 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29716 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29717 gimple-low.c, gimple-ssa-isolate-paths.c,
29718 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29719 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29720 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29721 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29722 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29723 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29724 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29725 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29726 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29727 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29728 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29729 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29730 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29731 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29732 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29733 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29734 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29735 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29736 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29737 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29738 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29739 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29742 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29744 * pass_manager.h (pass_manager::register_dump_files_1): Remove
29746 * passes.c (pass_manager::register_dump_files_1): Merge into
29747 (pass_manager::register_dump_files): this, and remove its handling of
29748 properties since the pass always has the properties anyway.
29749 (pass_manager::pass_manager): Adjust.
29751 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
29753 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29754 * passes.c (pass_manager::register_dump_files_1): Remove dead code
29755 dealing with properties.
29756 (pass_manager::register_dump_files): Adjust.
29758 2014-03-20 Mark Wielaard <mjw@redhat.com>
29760 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29761 then represent the bound as normal constant value.
29763 2014-04-17 Jakub Jelinek <jakub@redhat.com>
29766 Forward port from 4.8 branch
29767 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
29769 * config/i386/bmiintrin.h (_blsi_u32): New.
29770 (_blsi_u64): Ditto.
29771 (_blsr_u32): Ditto.
29772 (_blsr_u64): Ditto.
29773 (_blsmsk_u32): Ditto.
29774 (_blsmsk_u64): Ditto.
29775 (_tzcnt_u32): Ditto.
29776 (_tzcnt_u64): Ditto.
29778 2014-04-17 Kito Cheng <kito@0xlab.org>
29780 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29782 2014-04-17 Richard Biener <rguenther@suse.de>
29784 PR middle-end/60849
29785 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29786 boolean results for comparisons.
29788 2014-04-17 Richard Biener <rguenther@suse.de>
29790 PR tree-optimization/60836
29791 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29792 initial PHI args to be gimple values.
29794 2014-04-17 Richard Biener <rguenther@suse.de>
29796 PR tree-optimization/60841
29797 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29798 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29799 of stmts to SLP build.
29800 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29801 (vect_analyze_slp): Likewise.
29802 (vect_analyze_slp_instance): Likewise.
29803 (vect_build_slp_tree): Limit overall SLP tree growth.
29804 * tree-vectorizer.h (vect_analyze_data_refs,
29805 vect_analyze_slp): Adjust prototypes.
29807 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29809 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29812 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29814 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29815 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29816 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29817 for TARGET_SLOW_PSHUFB
29819 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
29821 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29822 * config/i386/i386.c (intel_cost): Ditto.
29824 2014-04-17 Joey Ye <joey.ye@arm.com>
29826 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29828 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29830 * opts.c (common_handle_option): Disable -fipa-reference coorectly
29831 with -fuse-profile.
29833 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29835 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29836 (type_all_derivations_known_p): New predicate.
29837 (type_all_ctors_visible_p): New predicate.
29838 (type_possibly_instantiated_p): New predicate.
29839 (get_odr_type): Compute all_derivations_known.
29840 (dump_odr_type): Dump the flag.
29841 (maybe_record_type): Cleanup.
29842 (record_target_from_binfo): Add bases_to_consider array;
29843 record bases for types w/o instances and skip CXX destructor.
29844 (possible_polymorphic_call_targets_1): Add bases_to_consider
29845 and consider_construction parameters; check if type may have instance.
29846 (get_polymorphic_call_info): Set maybe_in_construction to true
29847 when we know nothing.
29848 (record_targets_from_bases): Skip CXX destructors; they are
29849 never called for types in construction.
29850 (possible_polymorphic_call_targets): Do not record target when
29851 type may not have instance.
29853 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
29856 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29857 external aliases alive, too.
29859 2014-04-16 Andrew Pinski <apinski@cavium.com>
29861 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29864 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29866 * final.c (compute_alignments): Do not apply loop alignment to a block
29867 falling through to the exit.
29869 2014-04-16 Catherine Moore <clm@codesourcery.com>
29871 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29872 Adjust constraints for microMIPS store patterns.
29874 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
29876 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29878 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
29880 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29881 (append_use): Run at -O0.
29882 (append_vdef): Likewise.
29883 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29884 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29886 2014-04-16 Jakub Jelinek <jakub@redhat.com>
29888 PR tree-optimization/60844
29889 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29890 (propagate_op_to_single_use, remove_visited_stmt_chain,
29891 linearize_expr, repropagate_negates, reassociate_bb): Use it
29892 instead of gsi_remove.
29894 2014-04-16 Martin Jambor <mjambor@suse.cz>
29896 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29897 ipa_transforms_to_apply.
29898 (cgraph_function_versioning): Assert that old_node has empty
29899 ipa_transforms_to_apply.
29900 * trans-mem.c (ipa_tm_create_version): Likewise.
29901 * tree-inline.c (tree_function_versioning): Do not duplicate
29902 ipa_transforms_to_apply.
29904 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29907 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29909 Pass necessary as flags on 64-bit Solaris/x86.
29910 Use lowercase relocs for x86_64-*-*.
29911 * configure: Regenerate.
29913 2014-04-15 Jan Hubicka <jh@suse.cz>
29915 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29916 (maybe_record_node, likely_target_p): Use it.
29918 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29921 Revert following patch
29923 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29926 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29927 software floating point or no floating point registers, do not
29928 allow any type in the FPRs. Eliminate a test for SPE SIMD types
29929 in GPRs that occurs after we tested for GPRs that would never be
29932 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29933 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29934 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
29935 specifically allow DDmode, since that does not use the SPE SIMD
29938 2014-03-21 Mark Wielaard <mjw@redhat.com>
29940 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29941 as unsigned or int depending on type and value used.
29943 2014-04-15 Richard Biener <rguenther@suse.de>
29945 PR rtl-optimization/56965
29946 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29947 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29949 * alias.c (true_dependence_1): Do not call
29950 nonoverlapping_component_refs_p.
29951 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29952 nonoverlapping_component_refs_p.
29953 (indirect_refs_may_alias_p): Likewise.
29955 2014-04-15 Teresa Johnson <tejohnson@google.com>
29957 * cfg.c (dump_bb_info): Fix flags check.
29958 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29960 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29962 PR rtl-optimization/60663
29963 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29966 2014-04-15 Richard Biener <rguenther@suse.de>
29968 * lto-streamer.h (LTO_major_version): Bump to 4.
29970 2014-04-15 Richard Biener <rguenther@suse.de>
29972 * common.opt (lto_partition_model): New enum.
29973 (flto-partition=): Merge separate options with a single with argument,
29974 add -flto-partition=one support.
29975 * flag-types.h (enum lto_partition_model): Declare.
29976 * opts.c (finish_options): Remove duplicate -flto-partition=
29978 * lto-wrapper.c (run_gcc): Adjust.
29980 2014-04-15 Richard Biener <rguenther@suse.de>
29982 * alias.c (ncr_compar): New function.
29983 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29985 2014-04-15 Richard Biener <rguenther@suse.de>
29987 * alias.c (record_component_aliases): Do not walk BINFOs.
29989 2014-04-15 Richard Biener <rguenther@suse.de>
29991 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29992 Add struct function argument and adjust.
29993 (find_func_aliases_for_call): Likewise.
29994 (find_func_aliases): Likewise.
29995 (find_func_clobbers): Likewise.
29996 (intra_create_variable_infos): Likewise.
29997 (compute_points_to_sets): Likewise.
29998 (ipa_pta_execute): Adjust. Do not push/pop cfun.
30000 2014-04-15 Richard Biener <rguenther@suse.de>
30002 * tree.c (iterative_hash_expr): Use enum tree_code_class
30003 to store TREE_CODE_CLASS.
30004 (tree_block): Likewise.
30005 (tree_set_block): Likewise.
30006 * tree.h (fold_build_pointer_plus_loc): Use
30007 convert_to_ptrofftype_loc.
30009 2014-04-15 Jakub Jelinek <jakub@redhat.com>
30012 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
30015 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
30017 * cfgloop.h (struct loop): Move force_vectorize down.
30018 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
30019 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
30020 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
30021 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
30022 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
30023 * tree-core.h (enum annot_expr_kind): Add new kind values.
30024 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
30025 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
30027 * tree.def (ANNOTATE_EXPR): Tweak comment.
30029 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
30031 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
30034 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
30036 * tree.h (TYPE_IDENTIFIER): Declare.
30037 * tree.c (subrange_type_for_debug_p): Use it.
30038 * godump.c (go_format_type): Likewise.
30039 * dwarf2out.c (is_cxx_auto, modified_type_die,
30040 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
30041 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
30043 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
30046 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
30048 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
30050 * config/i386/i386.c (examine_argument): Return bool. Return true if
30051 parameter should be passed in memory.
30052 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
30053 (construct_container): Update calls to examine_argument.
30054 (function_arg_advance_64): Ditto.
30055 (return_in_memory_32): Merge with ix86_return_in_memory.
30056 (return_in_memory_64): Ditto.
30057 (return_in_memory_ms_64): Ditto.
30059 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
30061 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
30062 * coverage.c (coverage_compute_profile_id): Handle externally visible
30065 2014-04-14 Martin Jambor <mjambor@suse.cz>
30067 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
30068 DECL_DISREGARD_INLINE_LIMITS functions.
30070 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
30073 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
30075 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
30078 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
30079 optimize_insn_for_speed_p instead of
30080 optimize_function_for_speed_p.
30082 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
30084 * doc/invoke.texi (free): Document AArch64.
30086 2014-04-14 Richard Biener <rguenther@suse.de>
30088 PR tree-optimization/60042
30089 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
30090 (insert_into_preds_of_block): Do not prevent PHI insertion
30091 for REFERENCE exprs here ...
30092 (eliminate_dom_walker::before_dom_children): ... but prevent
30093 their use here under similar conditions when applied to the
30094 IL after PRE optimizations.
30096 2014-04-14 Richard Biener <rguenther@suse.de>
30098 * passes.def: Move early points-to after early SRA.
30100 2014-04-14 Richard Biener <rguenther@suse.de>
30102 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
30103 check for which sign-changes we allow when forwarding
30104 a converted value into a switch.
30106 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
30108 * stor-layout.c (place_field): Finalize non-constant offset for the
30111 2014-04-14 Richard Biener <rguenther@suse.de>
30113 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
30115 (expand_switch_using_bit_tests_p): Likewise.
30116 (process_switch): Compute and pass on speed_p based on the
30118 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
30119 optimize_bb_for_speed_p.
30121 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
30123 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
30124 * function.h (struct function): Rename has_force_vect_loops into
30125 has_force_vectorize_loops.
30126 * lto-streamer-in.c (input_cfg): Adjust for renaming.
30127 (input_struct_function_base): Likewise.
30128 * lto-streamer-out.c (output_cfg): Likewise.
30129 (output_struct_function_base): Likewise.
30130 * omp-low.c (expand_omp_simd): Likewise.
30131 * tree-cfg.c (move_sese_region_to_fn): Likewise.
30132 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
30133 (version_loop_for_if_conversion): Likewise.
30134 (tree_if_conversion): Likewise.
30135 (main_tree_if_conversion): Likewise.
30136 (gate_tree_if_conversion): Likewise.
30137 * tree-inline.c (copy_loops): Likewise.
30138 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
30139 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
30140 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
30141 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
30142 * tree-vectorizer.c (vectorize_loops): Likewise.
30143 * tree-vectorizer.h (unlimited_cost_model): Likewise.
30145 2014-04-14 Richard Biener <rguenther@suse.de>
30148 * lto-streamer-out.c (wrap_refs): New function.
30149 (lto_output): Wrap symbol references in global initializes in
30150 type-preserving MEM_REFs.
30152 2014-04-14 Christian Bruel <christian.bruel@st.com>
30154 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
30156 2014-04-14 Christian Bruel <christian.bruel@st.com>
30158 * config/sh/sh.md (setmemqi): New expand pattern.
30159 * config/sh/sh.h (CLEAR_RATIO): Define.
30160 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
30161 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
30163 2014-04-14 Richard Biener <rguenther@suse.de>
30165 PR middle-end/55022
30166 * fold-const.c (negate_expr_p): Don't negate directional rounding
30168 (fold_negate_expr): Likewise.
30170 2014-04-14 Richard Biener <rguenther@suse.de>
30172 PR tree-optimization/59817
30173 PR tree-optimization/60453
30174 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
30175 recursion to catch all CHRECs in the scalar evolution and restrict
30176 the predicate for the remains appropriately.
30178 2014-04-12 Catherine Moore <clm@codesourcery.com>
30180 * config/mips/constraints.md: Add new register constraint "kb".
30181 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
30182 (*movhi_internal): Likewise.
30183 (*movqi_internal): Likewise.
30184 * config/mips/mips.h (M16_STORE_REGS): New register class.
30185 (REG_CLASS_NAMES): Add M16_STORE_REGS.
30186 (REG_CLASS_CONTENTS): Likewise.
30187 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
30189 2014-04-11 Tobias Burnus <burnus@net-b.de>
30192 * doc/invoke.texi (-Wformat-signedness): Document it.
30193 (Wformat=2): Mention that this enables -Wformat-signedness.
30195 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
30197 * common/config/epiphany/epiphany-common.c
30198 (epiphany_option_optimization_table): Enable section anchors by
30199 default at -O1 or higher.
30200 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
30201 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
30202 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
30203 carries no extra cost.
30204 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
30205 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
30206 * config/epiphany/predicates.md (memclob_operand): New predicate.
30207 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
30208 Use memclob_operand predicate and X constraint for operand 3.
30210 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
30212 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
30213 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
30216 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
30218 PR rtl-optimization/60651
30219 * mode-switching.c (optimize_mode_switching): Make sure to emit
30220 sets of a lower numbered entity before sets of a higher numbered
30221 entity to a mode of the same or lower priority.
30222 When creating a seginfo for a basic block that starts with a code
30223 label, move the insertion point past the code label.
30224 (new_seginfo): Document and enforce requirement that
30225 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
30226 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
30227 * doc/tm.texi: Regenerate.
30229 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
30232 * config/arc/arc.c (arc_save_restore): Fix assert typo.
30234 2013-04-11 Jakub Jelinek <jakub@redhat.com>
30236 * BASE-VER: Set to 4.10.0.
30238 2014-04-11 Tobias Burnus <burnus@net-b.de>
30241 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
30242 * doc/gcc.texi (Service): Update description in the @menu
30243 * doc/invoke.texi (Option Summary): Remove misplaced and
30246 2014-04-11 Steve Ellcey <sellcey@mips.com>
30247 Jakub Jelinek <jakub@redhat.com>
30249 PR middle-end/60556
30250 * expr.c (convert_move): Use emit_store_flag_force instead of
30251 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
30254 2014-04-11 Richard Biener <rguenther@suse.de>
30256 PR middle-end/60797
30257 * varasm.c (assemble_alias): Avoid endless error reporting
30258 recursion by setting TREE_ASM_WRITTEN.
30260 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30262 * config/s390/s390.md: Add a splitter for NOT rtx.
30264 2014-04-11 Jakub Jelinek <jakub@redhat.com>
30266 PR rtl-optimization/60663
30267 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
30269 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
30270 Jakub Jelinek <jakub@redhat.com>
30273 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
30274 flag from decl_node to node.
30276 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30279 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
30280 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
30281 ameliorating the cases where it can be.
30283 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
30286 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
30288 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30289 (loadsync_<mode>): Change mode.
30290 (load_quadpti, store_quadpti): New.
30291 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30292 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30293 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
30295 2014-04-09 Cong Hou <congh@google.com>
30298 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
30301 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30303 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
30304 instead of vnor to exploit possible fusion opportunity in the
30306 (altivec_expand_vec_perm_const_le): Likewise.
30308 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
30310 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30311 (loadsync_<mode>): Change mode.
30312 (load_quadpti, store_quadpti): New.
30313 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30314 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30316 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
30319 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
30320 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
30321 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
30323 2014-04-08 Richard Biener <rguenther@suse.de>
30325 PR middle-end/60706
30326 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
30327 a 64bit widest int print double-int similar to on HWI64 hosts.
30329 2014-04-08 Richard Biener <rguenther@suse.de>
30331 PR tree-optimization/60785
30332 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
30333 default defs properly.
30335 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
30337 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
30338 (Weffc++): Likewise.
30340 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
30342 * ipa-devirt.c (maybe_record_node): When node is not recorded,
30343 set completep to false rather than true.
30345 2014-04-07 Douglas B Rupp <rupp@adacore.com>
30348 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
30349 ARM_TARGET2_DWARF_FORMAT.
30351 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
30354 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
30355 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
30358 2014-04-07 Richard Biener <rguenther@suse.de>
30360 PR tree-optimization/60766
30361 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
30362 (may_eliminate_iv): Convert cand_value_at result to desired type.
30364 2014-04-07 Jason Merrill <jason@redhat.com>
30367 * common.opt (-fno-gnu-unique): Add.
30368 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
30370 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30372 * haifa-sched.c: Fix outdated function reference and minor
30373 grammar errors in introductory comment.
30375 2014-04-07 Richard Biener <rguenther@suse.de>
30377 PR middle-end/60750
30378 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
30379 for noreturn calls.
30380 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
30382 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
30385 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
30386 size accounting for thunks.
30387 (pa_asm_output_mi_thunk): Use final_start_function() and
30388 final_end_function() to output function start and end directives.
30390 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
30392 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
30393 device specific ISA/ feature information. Remove short_sp and
30394 errata_skip ds. Add avr_device_specific_features enum to have device
30396 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
30397 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
30398 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
30399 updated device specific info.
30400 * config/avr/avr-mcus.def: Merge device specific details to
30401 dev_attribute field.
30402 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
30404 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
30405 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
30406 assembler if RMW isa supported by current device.
30407 * config/avr/genmultilib.awk: Update as device info structure changed.
30408 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
30410 2014-04-04 Cong Hou <congh@google.com>
30412 PR tree-optimization/60656
30413 * tree-vect-stmts.c (supportable_widening_operation):
30414 Fix a bug that elements in a vector with vect_used_by_reduction
30415 property are incorrectly reordered when the operation on it is not
30416 consistant with the one in reduction operation.
30418 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
30420 PR rtl-optimization/60155
30421 * gcse.c (record_set_data): New function.
30422 (single_set_gcse): New function.
30423 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30424 (hoist_code): Likewise.
30425 (get_pressure_class_and_nregs): Likewise.
30427 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
30429 * explow.c (probe_stack_range): Emit a final optimization blockage.
30431 2014-04-04 Anthony Green <green@moxielogic.com>
30433 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30436 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
30439 * lto-cgraph.c (input_overwrite_node): Check that partitioning
30440 flags are set only during streaming.
30441 * ipa.c (process_references, walk_polymorphic_call_targets,
30442 symtab_remove_unreachable_nodes): Drop bodies of always inline
30443 after early inlining.
30444 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30446 2014-04-04 Jakub Jelinek <jakub@redhat.com>
30447 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30450 * dwarf2out.c (const_ok_for_output_1): Reject expressions
30453 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30456 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30458 (cortex_a53_fdivd): Likewise.
30460 2014-04-04 Martin Jambor <mjambor@suse.cz>
30463 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30464 Adjust all callers.
30465 * cgraph.c (clone_of_p): Also return true if thunks match.
30466 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30467 cgraph_function_or_thunk_node and an obsolete comment.
30468 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30470 (build_function_decl_skip_args): Likewise.
30471 (set_new_clone_decl_and_node_flags): New function.
30472 (duplicate_thunk_for_node): Likewise.
30473 (redirect_edge_duplicating_thunks): Likewise.
30474 (cgraph_clone_node): New parameter args_to_skip, pass it to
30475 redirect_edge_duplicating_thunks which is called instead of
30476 cgraph_redirect_edge_callee.
30477 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30478 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30480 2014-04-04 Jeff Law <law@redhat.com>
30483 * config/arm/predicates.md (const_int_I_operand): New predicate.
30484 (const_int_M_operand): Similarly.
30485 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30487 (insv_t2, extv_reg, extzv_t2): Likewise.
30488 (load_multiple_with_writeback): Similarly for const_int_I_operand.
30489 (pop_multiple_with_writeback_and_return): Likewise.
30490 (vfp_pop_multiple_with_writeback): Likewise
30492 2014-04-04 Richard Biener <rguenther@suse.de>
30495 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30496 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30498 * gimplify.h (gimple_add_tmp_var_fn): Declare.
30499 * gimplify.c (gimple_add_tmp_var_fn): New function.
30500 * gimple-expr.h (create_tmp_reg_fn): Declare.
30501 * gimple-expr.c (create_tmp_reg_fn): New function.
30502 * gimple-low.c (record_vars_into): Don't change cfun.
30503 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30504 code generation without cfun.
30506 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
30509 * Makefile.in (install-driver): Fix shell scripting.
30511 2014-04-03 Cong Hou <congh@google.com>
30513 PR tree-optimization/60505
30514 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30515 threshold of number of iterations below which no vectorization
30517 * tree-vect-loop.c (new_loop_vec_info):
30518 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30519 * tree-vect-loop.c (vect_analyze_loop_operations):
30520 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30521 * tree-vect-loop.c (vect_transform_loop):
30522 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30523 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30524 of iterations of the loop and see if we should build the epilogue.
30526 2014-04-03 Richard Biener <rguenther@suse.de>
30528 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30529 (streamer_tree_cache_create): Adjust.
30530 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30531 to allow optional nodes array.
30532 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30533 (streamer_tree_cache_append): Likewise.
30534 (streamer_tree_cache_create): Create nodes array optionally
30535 as specified by parameter.
30536 * lto-streamer-out.c (create_output_block): Avoid maintaining
30537 the node array in the writer cache.
30538 (DFS_write_tree): Remove assertion.
30539 (produce_asm_for_decls): Free the out decl state hash table early.
30540 * lto-streamer-in.c (lto_data_in_create): Adjust for
30541 streamer_tree_cache_create prototype change.
30543 2014-04-03 Richard Biener <rguenther@suse.de>
30545 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30546 set TREE_CHAIN to NULL_TREE.
30548 2014-04-03 Richard Biener <rguenther@suse.de>
30550 PR tree-optimization/60740
30551 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30552 over all GIMPLE_COND operands.
30554 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
30556 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30557 (Weffc++): Remove Scott's numbering, merge lists and reference
30560 2014-04-03 Nick Clifton <nickc@redhat.com>
30562 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30565 2014-04-03 Martin Jambor <mjambor@suse.cz>
30567 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30568 mention gcc_unreachable before failing.
30569 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30572 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
30575 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30576 inconsistent code and instead mark the context inconsistent.
30577 (possible_polymorphic_call_targets): For inconsistent contexts
30578 return empty complete list.
30580 2014-04-02 Anthony Green <green@moxielogic.com>
30582 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30583 (extendqisi2, extendhisi2): Define.
30584 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30585 (WCHAR_TYPE): Change to unsigned int.
30587 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30589 PR tree-optimization/60733
30590 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30591 insertion point for PHI candidates to be the end of the feeding
30592 block for the PHI argument.
30594 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
30596 PR rtl-optimization/60650
30597 * lra-constraints.c (process_alt_operands): Decrease reject for
30598 earlyclobber matching.
30600 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30602 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30604 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30606 * config/spu/spu.c (pad_bb): Do not crash when the last
30607 insn is CODE_FOR_blockage.
30609 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30611 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30612 lies outside the target mode.
30614 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30617 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30618 software floating point or no floating point registers, do not
30619 allow any type in the FPRs. Eliminate a test for SPE SIMD types
30620 in GPRs that occurs after we tested for GPRs that would never be
30623 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30624 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30625 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
30626 specifically allow DDmode, since that does not use the SPE SIMD
30629 2014-04-02 Richard Biener <rguenther@suse.de>
30631 PR middle-end/60729
30632 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30633 MODE_INTs. Properly use negv_optab.
30634 (expand_abs): Likewise.
30636 2014-04-02 Richard Biener <rguenther@suse.de>
30639 * Makefile.in (install-driver): Guard extra installs with special
30642 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
30644 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30645 Document vec_vgbbd.
30647 2014-04-01 Richard Henderson <rth@redhat.com>
30650 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30651 alternative enabled before register allocation.
30653 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
30655 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30656 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30658 (nios2_large_got_address): Remove unneeded 'sym' parameter.
30659 (nios2_got_address): Update nios2_large_got_address call site.
30660 (nios2_delegitimize_address): New function.
30661 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30662 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30663 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30665 2014-04-01 Martin Husemann <martin@duskware.de>
30667 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30670 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
30672 PR rtl-optimization/60604
30673 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30674 check from register_operand.
30675 (register_operand): Redefine in terms of general_operand.
30676 (nonmemory_operand): Use register_operand for the non-constant cases.
30678 2014-04-01 Richard Biener <rguenther@suse.de>
30680 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30682 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
30684 * doc/invoke.texi (mapp-regs): Clarify.
30686 2014-03-31 Ulrich Drepper <drepper@gmail.com>
30688 * config/i386/avx512fintrin.h (__v32hi): Define type.
30689 (__v64qi): Likewise.
30690 (_mm512_set1_epi8): Define.
30691 (_mm512_set1_epi16): Define.
30692 (_mm512_set4_epi32): Define.
30693 (_mm512_set4_epi64): Define.
30694 (_mm512_set4_pd): Define.
30695 (_mm512_set4_ps): Define.
30696 (_mm512_setr4_epi64): Define.
30697 (_mm512_setr4_epi32): Define.
30698 (_mm512_setr4_pd): Define.
30699 (_mm512_setr4_ps): Define.
30700 (_mm512_setzero_epi32): Define.
30702 2014-03-31 Martin Jambor <mjambor@suse.cz>
30704 PR middle-end/60647
30705 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30706 callsite_arguments_match_p. Updated all callers. Also check types of
30707 corresponding formal parameters and actual arguments.
30708 (not_all_callers_have_enough_arguments_p) Renamed to
30709 some_callers_have_mismatched_arguments_p.
30711 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
30713 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30715 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
30718 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30721 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
30723 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30724 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30726 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30727 Use FMAMODE_NOVF512 mode iterator.
30728 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30729 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30730 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30731 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30733 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30734 Use VF_128_256 mode iterator.
30735 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30738 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30740 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30741 static chain if needed.
30743 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30746 * lra-constraints.c (index_part_to_reg): New.
30747 (process_address): Use it.
30749 2014-03-27 Jeff Law <law@redhat.com>
30750 Jakub Jelinek <jakub@redhat.com>
30753 * expr.c (do_tablejump): Use simplify_gen_binary rather than
30754 gen_rtx_{PLUS,MULT} to build up the address expression.
30756 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30757 creating non-canonical RTL.
30759 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30762 * ipa-inline.c (want_inline_small_function_p): Short circuit large
30763 functions; reorganize to make cheap checks first.
30764 (inline_small_functions): Do not estimate growth when dumping;
30766 * ipa-inline.h (inline_summary): Add min_size.
30767 (growth_likely_positive): New function.
30768 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30769 (set_cond_stmt_execution_predicate): Cleanup.
30770 (estimate_edge_size_and_time): Compute min_size.
30771 (estimate_calls_size_and_time): Likewise.
30772 (estimate_node_size_and_time): Likewise.
30773 (inline_update_overall_summary): Update min_size.
30774 (do_estimate_edge_time): Likewise.
30775 (do_estimate_edge_size): Update.
30776 (do_estimate_edge_hints): Update.
30777 (growth_likely_positive): New function.
30779 2014-03-28 Jakub Jelinek <jakub@redhat.com>
30782 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30783 also if addr has VOIDmode.
30785 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30787 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30788 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30790 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30791 instructions as well as AdvancedSIMD loads.
30793 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30795 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30796 Use crypto_aese type.
30797 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30798 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30799 crypto_aese, crypto_aesmc. Move to types.md.
30800 * config/arm/types.md (crypto_aes): Split into crypto_aese,
30802 * config/arm/iterators.md (crypto_type): Likewise.
30804 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
30806 * cgraph.c: Include expr.h and tree-dfa.h.
30807 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30810 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
30813 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30814 regs from checking multi-reg pseudos.
30816 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30818 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30820 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
30822 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30823 if it would clobber the stack pointer, even temporarily.
30825 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
30827 * mode-switching.c: Make small adjustments to the top comment.
30829 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
30831 * config/rs6000/constraints.md (wD constraint): New constraint to
30832 match the constant integer to get the top DImode/DFmode out of a
30833 vector in a VSX register.
30835 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30836 match the constant integer to get the top DImode/DFmode out of a
30837 vector in a VSX register.
30839 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30842 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30845 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30846 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30848 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30849 Optimize vec_extract of 64-bit values, where the value being
30850 extracted is in the top word, where we can use scalar
30851 instructions. Add direct move and store support. Combine the big
30852 endian/little endian vector select load support into a single insn.
30853 (vsx_extract_<mode>_internal1): Likewise.
30854 (vsx_extract_<mode>_internal2): Likewise.
30855 (vsx_extract_<mode>_load): Likewise.
30856 (vsx_extract_<mode>_store): Likewise.
30857 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30858 combined into vsx_extract_<mode>_load.
30859 (vsx_extract_<mode>_one_le): Likewise.
30861 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30862 define the top 64-bit vector element.
30864 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30867 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30868 Document vec_vbpermq builtin.
30871 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30872 enable use of xxsldwi and xxpermdi builtin functions.
30873 (vec_xxpermdi): Likewise.
30875 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30876 Document use of vec_xxsldwi and vec_xxpermdi builtins.
30878 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
30880 PR rtl-optimization/60650
30881 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30883 (find_spills_for): New.
30884 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30885 Spill all pseudos on the second iteration.
30887 2014-03-27 Marek Polacek <polacek@redhat.com>
30890 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30893 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30895 * config/s390/s390.c (s390_can_use_return_insn): Check for
30896 call-saved FPRs on 31 bit.
30898 2014-03-27 Jakub Jelinek <jakub@redhat.com>
30900 PR middle-end/60682
30901 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30902 if they need regimplification, just drop them instead of
30903 calling gimple_regimplify_operands on them.
30905 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
30908 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30909 (aarch64_frame_pointer_required): Adjust logic.
30910 (aarch64_can_eliminate): Adjust logic.
30911 (aarch64_override_options_after_change): Adjust logic.
30913 2014-03-27 Dehao Chen <dehao@google.com>
30915 * ipa-inline.c (early_inliner): Update node's inline info.
30917 2014-03-26 Dehao Chen <dehao@google.com>
30919 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30920 compiler inserted conditional jumps for NAN float check.
30922 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30924 * ubsan.h (ubsan_create_data): Change second argument's type
30925 to const location_t *.
30926 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30928 (ubsan_create_data): Change second argument to const location_t *PLOC.
30929 Create Loc field whenever PLOC is non-NULL.
30930 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30931 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30935 * real.c (real_to_integer2): Change type of low to UHWI.
30937 2014-03-26 Tobias Burnus <burnus@net-b.de>
30939 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30940 (CILK_SELF_SPECS): New define.
30941 (driver_self_specs): Use it.
30943 2014-03-26 Richard Biener <rguenther@suse.de>
30945 * tree-pretty-print.c (percent_K_format): Implement special
30946 case for LTO and its stripped down BLOCK tree.
30948 2014-03-26 Jakub Jelinek <jakub@redhat.com>
30951 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30953 * tree-vrp.c (simplify_internal_call_using_ranges): If only
30954 one range is range_int_cst_p, but not both, at least optimize
30955 addition/subtraction of 0 and multiplication by 0 or 1.
30956 * gimple-fold.c (gimple_fold_call): Fold
30957 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30958 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30959 INTEGER_CSTs, try to fold at least x * 0 and y - y.
30961 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
30963 PR rtl-optimization/60452
30964 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30965 <case REG>: Return 1 for invalid offsets from the frame pointer.
30967 2014-03-26 Marek Polacek <polacek@redhat.com>
30970 * doc/extend.texi (C Extensions): Mention variable-length arrays in
30973 2014-03-26 Marek Polacek <polacek@redhat.com>
30976 * doc/extend.texi (Designated Inits): Describe what happens to omitted
30979 2014-03-26 Marek Polacek <polacek@redhat.com>
30982 * ira-color.c (update_conflict_hard_regno_costs): Perform the
30983 multiplication in unsigned type.
30985 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30987 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30989 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
30991 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30993 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
30996 * cif-code.def (UNREACHABLE) New code.
30997 * ipa-inline.c (inline_small_functions): Skip edges to
30998 __builtlin_unreachable.
30999 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
31000 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
31001 predicate to __bulitin_unreachable.
31002 (set_cond_stmt_execution_predicate): Fix issue when
31003 invert_tree_comparison returns ERROR_MARK.
31004 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
31005 propagate to inline clones.
31006 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
31008 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
31009 * cgraphclones.c (cgraph_clone_node): If call destination is already
31010 ureachable, do not redirect it back.
31011 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
31014 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
31016 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
31017 Do not modify inline clones.
31019 2014-03-25 Jakub Jelinek <jakub@redhat.com>
31021 * config/i386/i386.md (general_sext_operand): New mode attr.
31022 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
31023 don't generate (sign_extend (const_int)).
31024 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
31025 operands[2]. Use We constraint instead of <i> and
31026 <general_sext_operand> predicate instead of <general_operand>.
31027 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
31028 * config/i386/constraints.md (We): New constraint.
31029 * config/i386/predicates.md (x86_64_sext_operand,
31030 sext_operand): New predicates.
31032 2014-03-25 Martin Jambor <mjambor@suse.cz>
31035 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
31036 inconsistent devirtualizations to __builtin_unreachable.
31038 2014-03-25 Marek Polacek <polacek@redhat.com>
31041 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
31043 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
31045 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
31046 order of elements for big-endian.
31048 2014-03-25 Richard Biener <rguenther@suse.de>
31050 PR middle-end/60635
31051 * gimplify-me.c (gimple_regimplify_operands): Update the
31054 2014-03-25 Martin Jambor <mjambor@suse.cz>
31057 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
31058 (lto_output_varpool_node): Likewise.
31059 (input_overwrite_node): Likewise.
31060 (input_varpool_node): Likewise.
31062 2014-03-25 Richard Biener <rguenther@suse.de>
31064 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
31065 (run_gcc): Likewise.
31067 2014-03-25 Jakub Jelinek <jakub@redhat.com>
31069 * combine.c (simplify_compare_const): Add MODE argument.
31070 Handle mode_width 0 as very large mode_width.
31071 (try_combine, simplify_comparison): Adjust callers.
31073 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
31074 type to avoid signed integer overflow.
31075 * explow.c (plus_constant): Likewise.
31077 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
31079 * doc/generic.texi: Correct typos.
31081 2014-03-24 Tobias Burnus <burnus@net-b.de>
31083 * doc/invoke.texi (-flto): Expand section about
31084 using static libraries with LTO.
31086 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31088 PR rtl-optimization/60501
31089 * optabs.def (addptr3_optab): New optab.
31090 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
31091 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
31092 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
31094 * lra.c (emit_add3_insn): Use the addptr pattern if available.
31096 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
31098 2014-03-24 Ulrich Drepper <drepper@gmail.com>
31100 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
31103 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
31104 (_mm256_undefined_ps): Define.
31105 (_mm256_undefined_pd): Define.
31106 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
31107 (_mm_undefined_pd): Define.
31108 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
31109 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
31110 (_mm512_undefined_ps): Define.
31111 (_mm512_undefined_pd): Define.
31112 Use _mm*_undefined_*.
31113 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
31115 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
31117 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
31118 (lshr_simd): DI mode added.
31119 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
31120 (aarch64_ushr_simddi): Likewise.
31121 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
31122 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
31123 (vshrd_n_u64): Likewise.
31125 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31127 * Makefile.in (s-macro_list): Depend on cc1.
31129 2014-03-23 Teresa Johnson <tejohnson@google.com>
31131 * ipa-utils.c (ipa_print_order): Use specified dump file.
31133 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
31135 PR rtl-optimization/60601
31136 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
31138 * gcc.c (eval_spec_function): Initialize save_growing_value.
31140 2014-03-22 Jakub Jelinek <jakub@redhat.com>
31143 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
31144 code == MINUS_EXPR, never swap op0 with op1.
31146 * toplev.c (init_local_tick): Avoid signed integer multiplication
31148 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
31149 shift by first operand's bitsize.
31151 2014-03-21 Jakub Jelinek <jakub@redhat.com>
31154 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
31155 redefine to 1 or 0.
31156 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
31157 TARGET_ISA_64BIT_P(x).
31159 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31161 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
31162 pattern for vector nor instead of subtract from splat(-1).
31163 (altivec_expand_vec_perm_const_le): Likewise.
31165 2014-03-21 Richard Henderson <rth@twiddle.net>
31168 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
31169 related insns after epilogue_completed.
31171 2014-03-21 Martin Jambor <mjambor@suse.cz>
31174 * cgraph.h (symtab_node): New flag body_removed.
31175 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
31176 when removing bodies.
31177 * symtab.c (dump_symtab_base): Dump body_removed flag.
31178 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
31179 had their bodies removed.
31181 2014-03-21 Martin Jambor <mjambor@suse.cz>
31184 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
31187 2014-03-21 Richard Biener <rguenther@suse.de>
31189 PR tree-optimization/60577
31190 * tree-core.h (struct tree_base): Document nothrow_flag use
31191 in DECL_NONALIASED.
31192 * tree.h (DECL_NONALIASED): New.
31193 (may_be_aliased): Adjust.
31194 * coverage.c (build_var): Set DECL_NONALIASED.
31196 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
31198 * expr.c (expand_expr_real_1): Remove outdated comment.
31200 2014-03-20 Jakub Jelinek <jakub@redhat.com>
31202 PR middle-end/60597
31203 * ira.c (adjust_cleared_regs): Call copy_rtx on
31204 *reg_equiv[REGNO (loc)].src_p before passing it to
31205 simplify_replace_fn_rtx.
31208 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
31209 into CONST, put pic register as first operand of PLUS. Use
31210 gen_const_mem for both 32-bit and 64-bit PIC got loads.
31212 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31214 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
31216 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
31218 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
31219 around for store forwarding issue in the FPU on the UT699.
31220 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
31221 loads and operations if -mfix-ut699 is specified.
31222 (divtf3_hq): Tweak attribute.
31223 (sqrttf2_hq): Likewise.
31225 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
31227 * calls.c (store_one_arg): Remove incorrect const qualification on the
31228 type of the temporary.
31229 * cfgexpand.c (expand_return): Likewise.
31230 * expr.c (expand_constructor): Likewise.
31231 (expand_expr_real_1): Likewise.
31233 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
31235 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
31238 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
31241 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
31243 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
31245 * config/arm/aarch-common-protos.h
31246 (alu_cost_table): Fix spelling of "extend".
31247 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
31249 2014-03-19 Richard Biener <rguenther@suse.de>
31251 PR middle-end/60553
31252 * tree-core.h (tree_type_common): Re-order pointer members
31253 to reduce recursion depth during GC walks.
31255 2014-03-19 Marek Polacek <polacek@redhat.com>
31258 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
31259 before accessing it.
31261 2014-03-19 Richard Biener <rguenther@suse.de>
31264 * lto-streamer-in.c (input_function): In WPA stage do not drop
31267 2014-03-19 Jakub Jelinek <jakub@redhat.com>
31269 PR tree-optimization/60559
31270 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
31271 with build_zero_cst assignment.
31273 2014-03-18 Kai Tietz <ktietz@redhat.com>
31275 PR rtl-optimization/56356
31276 * sdbout.c (sdbout_parms): Verify that parms'
31277 incoming argument is valid.
31278 (sdbout_reg_parms): Likewise.
31280 2014-03-18 Richard Henderson <rth@redhat.com>
31283 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
31284 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
31285 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
31287 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
31289 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
31290 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
31291 Italicize plugin event names in description. Explain that
31292 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
31293 Remind that no GCC functions should be called after PLUGIN_FINISH.
31294 Explain what pragmas with expansion are.
31296 2014-03-18 Martin Liska <mliska@suse.cz>
31298 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
31299 gimple call statement is update.
31300 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
31301 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
31303 2014-03-18 Jakub Jelinek <jakub@redhat.com>
31306 * ubsan.c (ubsan_instrument_unreachable): Call
31307 initialize_sanitizer_builtins.
31308 (ubsan_pass): Likewise.
31311 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
31312 varpool_finalize_decl instead of rest_of_decl_compilation.
31314 2014-03-18 Richard Biener <rguenther@suse.de>
31316 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
31317 by using bitmap_and_compl instead of bitmap_and_compl_into.
31318 (df_rd_transfer_function): Likewise.
31320 2014-03-18 Richard Biener <rguenther@suse.de>
31322 * doc/lto.texi (fresolution): Fix typo.
31324 2014-03-18 Richard Biener <rguenther@suse.de>
31326 * doc/invoke.texi (flto): Update for changes in 4.9.
31328 2014-03-18 Richard Biener <rguenther@suse.de>
31330 * doc/loop.texi: Remove section on the removed lambda framework.
31331 Update loop docs with recent changes in preserving loop structure.
31333 2014-03-18 Richard Biener <rguenther@suse.de>
31335 * doc/lto.texi (-fresolution): Document.
31337 2014-03-18 Richard Biener <rguenther@suse.de>
31339 * doc/contrib.texi: Adjust my name.
31341 2014-03-18 Jakub Jelinek <jakub@redhat.com>
31344 * internal-fn.c: Include diagnostic-core.h.
31345 (expand_BUILTIN_EXPECT): New function.
31346 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
31347 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
31348 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
31349 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
31350 IFN_BUILTIN_EXPECT.
31351 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
31352 Revert 3 argument __builtin_expect code.
31353 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
31354 * gimple-fold.c (gimple_fold_call): Likewise.
31355 * tree.h (fold_builtin_expect): New prototype.
31356 * builtins.c (build_builtin_expect_predicate): Add predictor
31357 argument, if non-NULL, create 3 argument __builtin_expect.
31358 (fold_builtin_expect): No longer static. Add ARG2 argument,
31359 pass it through to build_builtin_expect_predicate.
31360 (fold_builtin_2): Adjust caller.
31361 (fold_builtin_3): Handle BUILT_IN_EXPECT.
31362 * internal-fn.def (BUILTIN_EXPECT): New.
31364 2014-03-18 Tobias Burnus <burnus@net-b.de>
31367 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
31368 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
31369 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
31371 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
31374 * predict.c (combine_predictions_for_bb): Fix up formatting.
31375 (expr_expected_value_1, expr_expected_value): Add predictor argument,
31376 fill what it points to if non-NULL.
31377 (tree_predict_by_opcode): Adjust caller, use the predictor.
31378 * predict.def (PRED_COMPARE_AND_SWAP): Add.
31380 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
31382 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
31383 proper constant for the store mode.
31385 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
31387 * symtab.c (change_decl_assembler_name): Fix transparent alias
31388 chain construction.
31390 2014-03-16 Renlin Li <Renlin.Li@arm.com>
31392 * config/aarch64/aarch64.c: Correct the comments about the
31393 aarch64 stack layout.
31395 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
31397 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
31398 check for GF_OMP_FOR_KIND_FOR.
31400 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
31402 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
31403 ymm and zmm register names.
31405 2014-03-17 Jakub Jelinek <jakub@redhat.com>
31408 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
31409 note creation for the 2010-08-31 changes.
31411 2014-03-17 Marek Polacek <polacek@redhat.com>
31413 PR middle-end/60534
31414 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31415 as -fno-tree-loop-vectorize.
31416 (expand_omp_simd): Likewise.
31418 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
31420 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31421 (eligible_for_call_delay): New prototype.
31422 * config/sparc/sparc.c (tls_call_delay): Rename into...
31423 (eligible_for_call_delay): ...this. Return false if the instruction
31424 cannot be put in the delay slot of a branch.
31425 (eligible_for_restore_insn): Simplify.
31426 (eligible_for_return_delay): Return false if the instruction cannot be
31427 put in the delay slot of a branch and simplify.
31428 (eligible_for_sibcall_delay): Return false if the instruction cannot be
31429 put in the delay slot of a branch.
31430 * config/sparc/sparc.md (fix_ut699): New attribute.
31431 (tls_call_delay): Delete.
31432 (in_call_delay): Reimplement.
31433 (eligible_for_sibcall_delay): Rename into...
31434 (in_sibcall_delay): ...this.
31435 (eligible_for_return_delay): Rename into...
31436 (in_return_delay): ...this.
31437 (in_branch_delay): Reimplement.
31438 (in_uncond_branch_delay): Delete.
31439 (in_annul_branch_delay): Delete.
31441 2014-03-14 Richard Henderson <rth@redhat.com>
31444 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31445 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31446 (*floathi<X87MODEF>2_i387_with_temp): Remove.
31447 (floathi splitters): Remove.
31448 (float<SWI48x>xf2): New pattern.
31449 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
31450 code that tried to handle DImode for 32-bit, but which was excluded
31451 by the pattern's condition. Drop allocation of stack temporary.
31452 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31453 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31454 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31455 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31456 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31457 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31458 (*float<SWI48><MODEF>2_sse_interunit): Remove.
31459 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31460 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31461 (*float<SWI48x><X87MODEF>2_i387): Remove.
31462 (all float _with_temp splitters): Remove.
31463 (*float<SWI48x><MODEF>2_i387): New pattern.
31464 (*float<SWI48><MODEF>2_sse): New pattern.
31465 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31466 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31468 2014-03-14 Jakub Jelinek <jakub@redhat.com>
31469 Marek Polacek <polacek@redhat.com>
31471 PR middle-end/60484
31472 * common.opt (dump_base_name_prefixed): New Variable.
31473 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31474 if x_dump_base_name_prefixed is already set, set it at the end.
31476 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
31478 PR rtl-optimization/60508
31479 * lra-constraints.c (get_reload_reg): Add new parameter
31481 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31482 Pass the new parameter values.
31484 2014-03-14 Richard Biener <rguenther@suse.de>
31486 * common.opt: Revert unintented changes from r205065.
31487 * opts.c: Likewise.
31489 2014-03-14 Richard Biener <rguenther@suse.de>
31491 PR middle-end/60518
31492 * cfghooks.c (split_block): Properly adjust all loops the
31493 block was a latch of.
31495 2014-03-14 Martin Jambor <mjambor@suse.cz>
31498 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31501 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
31504 * config/avr/avr.c (avr_set_current_function): Pass function name
31505 through default_strip_name_encoding before sanity checking instead
31506 of skipping the first char of the assembler name.
31508 2014-03-13 Richard Henderson <rth@redhat.com>
31511 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31512 (ix86_force_to_memory, ix86_free_from_memory): Remove.
31513 * config/i386/i386-protos.h: Likewise.
31514 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31515 in the expander instead of a splitter.
31516 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31517 any possibility of requiring a memory.
31518 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31519 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31520 (fp branch splitters): Update for ix86_split_fp_branch.
31521 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31522 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31523 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31524 (*fop_<MODEF>_2_i387): Remove f/r alternative.
31525 (*fop_<MODEF>_3_i387): Likewise.
31526 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31527 (splitters for the fop_* register patterns): Remove.
31528 (fscalexf4_i387): Rename from *fscalexf4_i387.
31529 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31531 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31533 PR tree-optimization/59779
31534 * tree-dfa.c (get_ref_base_and_extent): Use double_int
31535 type for bitsize and maxsize instead of HOST_WIDE_INT.
31537 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
31539 PR rtl-optimization/57320
31540 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31541 the CFG after thread_prologue_and_epilogue_insns.
31543 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
31545 PR rtl-optimization/57189
31546 * lra-constraints.c (process_alt_operands): Disfavor spilling
31549 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
31551 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31553 2014-03-13 Jakub Jelinek <jakub@redhat.com>
31555 PR tree-optimization/59025
31556 PR middle-end/60418
31557 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31558 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31560 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
31563 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31564 calls of avr_out_plus_1.
31566 2014-03-13 Bin Cheng <bin.cheng@arm.com>
31568 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31569 BB's single pred and update the father loop's latch info later.
31571 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
31573 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31577 (VEC_base): Likewise.
31578 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31579 registers, we need to swap double words in little endian mode.
31581 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31582 to be a container mode for 128-bit integer operations added in ISA
31583 2.07. Unlike TImode and PTImode, the preferred register set is
31584 the Altivec/VMX registers for the 128-bit operations.
31586 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31588 (rs6000_split_128bit_ok_p): Likewise.
31590 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31591 macros for creating ISA 2.07 normal and overloaded builtin
31592 functions with 3 arguments.
31593 (BU_P8V_OVERLOAD_3): Likewise.
31594 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31595 for use as overloaded functions.
31596 (VPERM_1TI_UNS): Likewise.
31597 (VSEL_1TI): Likewise.
31598 (VSEL_1TI_UNS): Likewise.
31599 (ST_INTERNAL_1ti): Likewise.
31600 (LD_INTERNAL_1ti): Likewise.
31601 (XXSEL_1TI): Likewise.
31602 (XXSEL_1TI_UNS): Likewise.
31603 (VPERM_1TI): Likewise.
31604 (VPERM_1TI_UNS): Likewise.
31605 (XXPERMDI_1TI): Likewise.
31606 (SET_1TI): Likewise.
31607 (LXVD2X_V1TI): Likewise.
31608 (STXVD2X_V1TI): Likewise.
31609 (VEC_INIT_V1TI): Likewise.
31610 (VEC_SET_V1TI): Likewise.
31611 (VEC_EXT_V1TI): Likewise.
31612 (EQV_V1TI): Likewise.
31613 (NAND_V1TI): Likewise.
31614 (ORC_V1TI): Likewise.
31615 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31616 added in ISA 2.07. Add both normal 'altivec' builtins, and the
31617 overloaded builtin.
31618 (VADDUQM): Likewise.
31619 (VSUBCUQ): Likewise.
31620 (VADDEUQM): Likewise.
31621 (VADDECUQ): Likewise.
31622 (VSUBEUQM): Likewise.
31623 (VSUBECUQ): Likewise.
31625 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31626 __int128_t and __uint128_t types.
31627 (__uint128_type): Likewise.
31628 (altivec_categorize_keyword): Add support for vector __int128_t,
31629 vector __uint128_t, vector __int128, and vector unsigned __int128
31630 as a container type for TImode operations that need to be done in
31631 VSX/Altivec registers.
31632 (rs6000_macro_to_expand): Likewise.
31633 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31634 to support 128-bit integer instructions vaddcuq, vadduqm,
31635 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31636 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31638 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31639 for V1TImode, and set up preferences to use VSX/Altivec registers.
31640 Setup VSX reload handlers.
31641 (rs6000_debug_reg_global): Likewise.
31642 (rs6000_init_hard_regno_mode_ok): Likewise.
31643 (rs6000_preferred_simd_mode): Likewise.
31644 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31645 (easy_altivec_constant): Likewise.
31646 (output_vec_const_move): Likewise.
31647 (rs6000_expand_vector_set): Convert V1TImode set and extract to
31649 (rs6000_expand_vector_extract): Likewise.
31650 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31652 (rs6000_const_vec): Add support for V1TImode.
31653 (rs6000_emit_le_vsx_load): Swap double words when loading or
31654 storing TImode/V1TImode.
31655 (rs6000_emit_le_vsx_store): Likewise.
31656 (rs6000_emit_le_vsx_move): Likewise.
31657 (rs6000_emit_move): Add support for V1TImode.
31658 (altivec_expand_ld_builtin): Likewise.
31659 (altivec_expand_st_builtin): Likewise.
31660 (altivec_expand_vec_init_builtin): Likewise.
31661 (altivec_expand_builtin): Likewise.
31662 (rs6000_init_builtins): Add support for V1TImode type. Add
31663 support for ISA 2.07 128-bit integer builtins. Define type names
31664 for the VSX/Altivec vector types.
31665 (altivec_init_builtins): Add support for overloaded vector
31666 functions with V1TImode type.
31667 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31668 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31670 (rs6000_split_128bit_ok_p): Likewise.
31671 (rs6000_handle_altivec_attribute): Create V1TImode from vector
31672 __int128_t and vector __uint128_t.
31674 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31675 and mode attributes.
31677 (VSX_M2): Likewise.
31682 (VS_scalar): Likewise.
31683 (VS_double): Likewise.
31684 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31686 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31687 we support the ISA 2.07 128-bit integer arithmetic instructions.
31688 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31689 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31690 and TImode types for use with the builtin functions.
31691 (V1TI_type_node): Likewise.
31692 (unsigned_V1TI_type_node): Likewise.
31693 (intTI_type_internal_node): Likewise.
31694 (uintTI_type_internal_node): Likewise.
31696 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31697 128-bit builtin functions.
31698 (UNSPEC_VADDEUQM): Likewise.
31699 (UNSPEC_VADDECUQ): Likewise.
31700 (UNSPEC_VSUBCUQ): Likewise.
31701 (UNSPEC_VSUBEUQM): Likewise.
31702 (UNSPEC_VSUBECUQ): Likewise.
31703 (VM): Add V1TImode to vector mode iterators.
31705 (VI_unit): Likewise.
31706 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31707 (altivec_vaddcuq): Likewise.
31708 (altivec_vsubuqm): Likewise.
31709 (altivec_vsubcuq): Likewise.
31710 (altivec_vaddeuqm): Likewise.
31711 (altivec_vaddecuq): Likewise.
31712 (altivec_vsubeuqm): Likewise.
31713 (altivec_vsubecuq): Likewise.
31715 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31717 (BOOL_128): Likewise.
31718 (BOOL_REGS_OUTPUT): Likewise.
31719 (BOOL_REGS_OP1): Likewise.
31720 (BOOL_REGS_OP2): Likewise.
31721 (BOOL_REGS_UNARY): Likewise.
31722 (BOOL_REGS_AND_CR0): Likewise.
31724 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31725 128-bit integer builtin support.
31726 (vec_vadduqm): Likewise.
31727 (vec_vaddecuq): Likewise.
31728 (vec_vaddeuqm): Likewise.
31729 (vec_vsubecuq): Likewise.
31730 (vec_vsubeuqm): Likewise.
31731 (vec_vsubcuq): Likewise.
31732 (vec_vsubuqm): Likewise.
31734 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31735 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31736 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31737 128-bit integer add/subtract to ISA 2.07.
31739 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
31741 * config/arc/arc.c (arc_predicate_delay_insns):
31742 Fix third argument passed to conditionalize_nonjump.
31744 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
31746 * config/aarch64/aarch64-builtins.c
31747 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31748 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31749 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31750 instead of __builtin_lfloor.
31751 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31753 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31755 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31756 (tree_ssa_ifcombine_bb_1): New function.
31757 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
31758 is an empty forwarder block to then_bb or vice versa and then_bb
31759 and else_bb are effectively swapped.
31761 2014-03-12 Christian Bruel <christian.bruel@st.com>
31764 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31765 REG_CFA_DEF_CFA note.
31766 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31767 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31769 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31771 PR tree-optimization/60454
31772 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31774 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31776 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31777 Do not define target_cpu_default2 to generic.
31778 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31779 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31780 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31782 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31783 Marc Glisse <marc.glisse@inria.fr>
31785 PR tree-optimization/60502
31786 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31787 instead of build_low_bits_mask.
31789 2014-03-12 Jakub Jelinek <jakub@redhat.com>
31791 PR middle-end/60482
31792 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31793 if there are multiple uses, but op doesn't live on E edge.
31794 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31795 clobber stmts before __builtin_unreachable.
31797 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
31799 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31800 hard_frame_pointer_rtx.
31801 * cse.c (cse_insn): Remove volatile check.
31802 * cselib.c (cselib_process_insn): Likewise.
31803 * dse.c (scan_insn): Likewise.
31805 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31807 * config/arc/arc.c (conditionalize_nonjump): New function,
31809 (arc_ifcvt): ... this.
31810 (arc_predicate_delay_insns): Use it.
31812 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
31814 * config/arc/predicates.md (extend_operand): During/after reload,
31815 allow const_int_operand.
31816 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31817 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
31818 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31820 (umulsi3_highpart_i): Likewise.
31822 2014-03-11 Richard Biener <rguenther@suse.de>
31824 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31825 Add asserts to guard possible wrong-code bugs.
31827 2014-03-11 Richard Biener <rguenther@suse.de>
31829 PR tree-optimization/60429
31830 PR tree-optimization/60485
31831 * tree-ssa-structalias.c (set_union_with_increment): Properly
31832 take into account all fields that overlap the shifted vars.
31833 (do_sd_constraint): Likewise.
31834 (do_ds_constraint): Likewise.
31835 (get_constraint_for_ptr_offset): Likewise.
31837 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
31839 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31840 (nios2_compute_frame_layout):
31841 Add calculation of cfun->machine->fp_save_offset.
31842 (nios2_expand_prologue): Correct setting of frame pointer register
31844 (nios2_expand_epilogue): Update recovery of stack pointer from
31845 frame pointer accordingly.
31846 (nios2_initial_elimination_offset): Update calculation of offset
31847 for eliminating to HARD_FRAME_POINTER_REGNUM.
31849 2014-03-10 Jakub Jelinek <jakub@redhat.com>
31852 * ipa.c (symtab_remove_unreachable_nodes): Don't call
31853 cgraph_get_create_node on VAR_DECLs.
31855 2014-03-10 Richard Biener <rguenther@suse.de>
31857 PR middle-end/60474
31858 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31860 2014-03-08 Douglas B Rupp <rupp@gnat.com>
31862 * config/vms/vms.opt (vms_float_format): New variable.
31864 2014-03-08 Tobias Burnus <burnus@net-b.de>
31866 * doc/invoke.texi (-fcilkplus): Update implementation status.
31868 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
31869 Richard Biener <rguenther@suse.de>
31871 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31872 consistently accross all TUs.
31873 (run_gcc): Enable -fshort-double automatically at link at link-time
31874 and disallow override.
31876 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
31879 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31880 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31881 if they can't be used.
31883 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31885 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31886 for Solaris 11/x86 ld.
31887 * configure: Regenerate.
31889 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31891 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31892 (LIB_TLS_SPEC): Save as ld_tls_libs.
31893 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31894 (HAVE_AS_IX86_TLSLDM): New test.
31895 * configure, config.in: Regenerate.
31896 * config/i386/i386.c (legitimize_tls_address): Fall back to
31897 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31898 cannot support TLS_MODEL_LOCAL_DYNAMIC.
31899 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31900 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31902 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
31904 * common.opt (fira-loop-pressure): Mark as optimization.
31906 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
31908 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31909 an OpenMP mappable type.
31911 2014-03-06 Matthias Klose <doko@ubuntu.com>
31913 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31914 MULTILIB_OSDIRNAMES is not defined.
31916 2014-03-06 Jakub Jelinek <jakub@redhat.com>
31917 Meador Inge <meadori@codesourcery.com>
31920 * config/arm/arm.c (arm_tls_symbol_p): Remove.
31921 (arm_legitimize_address): Call legitimize_tls_address for any
31922 arm_tls_referenced_p expression, handle constant addend. Call it
31923 before testing for !TARGET_ARM.
31924 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31926 2014-03-06 Richard Biener <rguenther@suse.de>
31928 PR middle-end/60445
31932 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
31934 * tree-streamer.c (record_common_node): Assert we don't record
31935 nodes with type double.
31936 (preload_common_node): Skip type double, complex double and double
31937 pointer since it is now frontend dependent due to fshort-double option.
31939 2014-03-06 Richard Biener <rguenther@suse.de>
31941 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31942 or -fno-lto is specified and the linker has full plugin support.
31943 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31944 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31945 * lto-wrapper.c (merge_and_complain): Merge compile-time
31946 optimization levels.
31947 (run_gcc): And pass it through to the link options.
31949 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
31953 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
31955 * cselib.c (remove_useless_values): Skip to avoid quadratic
31956 behavior if the condition moved from...
31957 (cselib_process_insn): ... here holds.
31959 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31962 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31963 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31966 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31967 (TM_H): Add x86-tune.def.
31969 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31971 * config/aarch64/aarch64.c (generic_tunings):
31972 Use cortexa57_extra_costs.
31974 2014-03-05 Jakub Jelinek <jakub@redhat.com>
31977 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31978 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31979 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31982 2014-03-04 Heiher <r@hev.cc>
31984 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31985 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31987 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
31989 * config/i386/predicates.md (const2356_operand): Change to ...
31990 (const2367_operand): ... this.
31991 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31993 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31994 (*avx512pf_scatterpf<mode>sf): Ditto.
31995 (avx512pf_scatterpf<mode>df): Ditto.
31996 (*avx512pf_scatterpf<mode>df_mask): Ditto.
31997 (*avx512pf_scatterpf<mode>df): Ditto.
31998 * config/i386/i386.c (ix86_expand_builtin): Update
31999 incorrect hint operand error message.
32001 2014-03-04 Richard Biener <rguenther@suse.de>
32003 * lto-section-in.c (lto_get_section_data): Fix const cast.
32005 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
32007 * tree-streamer.c (record_common_node): Assert we don't record
32008 nodes with type double.
32009 (preload_common_node): Skip type double, complex double and double
32010 pointer since it is now frontend dependent due to fshort-double option.
32012 2014-03-04 Richard Biener <rguenther@suse.de>
32015 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
32016 (lto_input_toplevel_asms): Likewise.
32017 * lto-section-in.c (lto_get_section_data): Instead do it here
32020 2014-03-04 Richard Biener <rguenther@suse.de>
32022 PR tree-optimization/60382
32023 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
32024 dead PHIs a reduction.
32026 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
32028 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
32030 (_mm_prefetch): Move out of GCC target("sse") pragma.
32031 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
32032 GCC target("prfchw") pragma.
32033 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
32035 * config/i386/i386.c (ix86_option_override_internal): Enable
32036 -mprfchw with -mprefetchwt1.
32038 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
32040 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
32043 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
32045 * opts.h (CL_PCH_IGNORE): Define.
32046 * targhooks.c (option_affects_pch_p):
32047 Return false for options that have CL_PCH_IGNORE set.
32048 * opt-functions.awk: Process PchIgnore.
32049 * doc/options.texi: Document PchIgnore.
32051 * config/arc/arc.opt (misize): Add PchIgnore property.
32053 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32055 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
32056 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
32057 constraint on constants to permit them being loaded into
32058 GENERAL_REGS or BASE_REGS.
32060 2014-03-03 Nick Clifton <nickc@redhat.com>
32062 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
32063 anti-cacnonical alternatives.
32064 (negandhi3_real): New pattern.
32065 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
32067 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
32069 * config/avr/avr-mcus.def: Remove atxmega16x1.
32070 * config/avr/avr-tables.opt: Regenerate.
32071 * config/avr/t-multilib: Regenerate.
32072 * doc/avr-mmcu.texi: Regenerate.
32074 2014-03-03 Tobias Grosser <tobias@grosser.es>
32075 Mircea Namolaru <mircea.namolaru@inria.fr>
32077 PR tree-optimization/58028
32078 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
32081 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32083 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
32084 not handled by recognizers.
32086 2014-03-03 Jakub Jelinek <jakub@redhat.com>
32088 PR middle-end/60175
32089 * function.c (expand_function_end): Don't emit
32090 clobber_return_register sequence if clobber_after is a BARRIER.
32091 * cfgexpand.c (construct_exit_block): Append instructions before
32092 return_label to prev_bb.
32094 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32096 * config/rs6000/constraints.md: Document reserved use of "wc".
32098 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
32101 * ipa.c (function_and_variable_visibility): When dissolving comdat
32102 group, also set all symbols to local.
32104 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
32109 2013-12-14 Jan Hubicka <jh@suse.cz>
32110 PR middle-end/58477
32111 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
32113 2014-03-02 Jon Beniston <jon@beniston.com>
32119 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
32120 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
32121 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
32122 (simple_return, *simple_return): New patterns
32123 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
32124 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
32126 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
32128 * dwarf2out.c (gen_subprogram_die): Tidy.
32130 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
32133 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
32134 (*mov_t_msb_neg_negc): ... this new insn.
32136 2014-02-28 Jason Merrill <jason@redhat.com>
32139 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
32142 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
32145 * dwarf2out.c (decltype_auto_die): New static.
32146 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
32147 (gen_type_die_with_usage): Handle 'decltype(auto)'.
32148 (is_cxx_auto): Likewise.
32150 2014-02-28 Ian Bolton <ian.bolton@arm.com>
32152 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
32153 we are not using general regs only.
32155 2014-02-28 Richard Biener <rguenther@suse.de>
32158 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
32159 previous fix and only allow to remove trivial pre-headers
32160 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
32161 (remove_forwarder_block): Properly update the latch of a loop.
32163 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
32166 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
32167 (cselib_preserved_hash_table): New.
32168 (preserve_constants_and_equivs): Move preserved vals to it.
32169 (cselib_find_slot): Look it up first.
32170 (cselib_init): Initialize it.
32171 (cselib_finish): Release it.
32172 (dump_cselib_table): Dump it.
32174 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
32177 * cselib.c (remove_useless_values): Skip to avoid quadratic
32178 behavior if the condition moved from...
32179 (cselib_process_insn): ... here holds.
32181 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
32184 * var-tracking.c (vt_initialize): Apply the same condition to
32185 preserve the CFA base value.
32187 2014-02-28 Joey Ye <joey.ye@arm.com>
32190 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
32191 if reload in progress or completed.
32193 2014-02-28 Tobias Burnus <burnus@net-b.de>
32195 PR middle-end/60147
32196 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
32199 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
32201 * doc/tm.texi.in (Condition Code Status): Update documention for
32202 relative locations of cc0-setter and cc0-user.
32204 2014-02-27 Jeff Law <law@redhat.com>
32206 PR rtl-optimization/52714
32207 * combine.c (try_combine): When splitting an unrecognized PARALLEL
32208 into two independent simple sets, if I3 is a jump, ensure the
32209 pattern we place into I3 is a (set (pc) ...).
32211 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
32212 Jeff Law <law@redhat.com>
32214 PR rtl-optimization/49847
32215 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
32216 are in different blocks.
32217 * doc/tm.texi (Condition Code Status): Update documention for
32218 relative locations of cc0-setter and cc0-user.
32220 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
32223 * lra.c (lra_emit_add): Check SUBREG too.
32225 2014-02-27 Andreas Schwab <schwab@suse.de>
32227 * config/m68k/m68k.c (m68k_option_override): Disable
32228 -flive-range-shrinkage for classic m68k.
32229 (m68k_override_options_after_change): Likewise.
32231 2014-02-27 Marek Polacek <polacek@redhat.com>
32233 PR middle-end/59223
32234 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
32235 -Wmaybe-uninitialized.
32237 2014-02-27 Alan Modra <amodra@gmail.com>
32240 * reload1.c (emit_input_reload_insns): When reload_override_in,
32241 set old to rl->in_reg when rl->in_reg is a subreg.
32243 2014-02-26 Richard Biener <rguenther@suse.de>
32246 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
32248 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
32250 * common/config/i386/predicates.md (const1256_operand): Remove.
32251 (const2356_operand): New.
32252 (const_1_to_2_operand): Remove.
32253 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32254 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32255 (*avx512pf_gatherpf<mode>sf): Ditto.
32256 (avx512pf_gatherpf<mode>df): Ditto.
32257 (*avx512pf_gatherpf<mode>df_mask): Ditto.
32258 (*avx512pf_gatherpf<mode>df): Ditto.
32259 (avx512pf_scatterpf<mode>sf): Ditto.
32260 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32261 (*avx512pf_scatterpf<mode>sf): Ditto.
32262 (avx512pf_scatterpf<mode>df): Ditto.
32263 (*avx512pf_scatterpf<mode>df_mask): Ditto.
32264 (*avx512pf_scatterpf<mode>df): Ditto.
32265 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
32267 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
32269 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
32270 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
32271 (_mm512_mask_testn_epi64_mask): Move to ...
32272 * config/i386/avx512cdintrin.h: Here.
32273 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
32274 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
32275 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
32276 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
32277 TARGET_AVX512F from TARGET_AVX512CD.
32279 2014-02-26 Richard Biener <rguenther@suse.de>
32282 * ipa.c (walk_polymorphic_call_targets): Properly guard
32283 call to inline_update_overall_summary.
32285 2014-02-26 Bin Cheng <bin.cheng@arm.com>
32288 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
32289 and latches only if requested. Fix latch if it is removed.
32290 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
32291 LOOPS_HAVE_PREHEADERS.
32293 2014-02-25 Andrew Pinski <apinski@cavium.com>
32295 * builtins.c (expand_builtin_thread_pointer): Create a new target
32296 when the target is NULL.
32298 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
32300 PR rtl-optimization/60317
32301 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32302 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32303 * lra-assigns.c: Include params.h.
32304 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
32305 other reload pseudos considerations.
32307 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32309 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
32310 to use canonical form for nor<mode>3.
32312 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32315 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
32318 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
32320 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
32321 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
32322 (ix86_handle_option): Handle OPT_mprefetchwt1.
32323 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
32324 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
32326 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32327 OPTION_MASK_ISA_PREFETCHWT1.
32328 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
32329 (PTA_PREFETCHWT1): New.
32330 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
32331 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
32332 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
32333 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
32334 (*prefetch_avx512pf_<mode>_: Change into ...
32335 (*prefetch_prefetchwt1_<mode>: This.
32336 * config/i386/i386.opt (mprefetchwt1): New.
32337 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
32338 (_mm_prefetch): Handle intent to write.
32339 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
32341 2014-02-25 Richard Biener <rguenther@suse.de>
32343 PR middle-end/60291
32344 * emit-rtl.c (mem_attrs_htab): Remove.
32345 (mem_attrs_htab_hash): Likewise.
32346 (mem_attrs_htab_eq): Likewise.
32347 (set_mem_attrs): Always allocate new mem-attrs when something changed.
32348 (init_emit_once): Do not allocate mem_attrs_htab.
32350 2014-02-25 Richard Biener <rguenther@suse.de>
32353 * lto-opts.c (lto_write_options): Output non-explicit conservative
32354 -fwrapv, -fno-trapv and -fno-strict-overflow.
32355 * lto-wrapper.c (merge_and_complain): Handle merging those options.
32356 (run_gcc): And pass them through.
32358 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
32360 * sel-sched.c (calculate_new_fences): New parameter ptime.
32361 Calculate it as a maximum over all fence cycles.
32362 (sel_sched_region_2): Adjust the call to calculate_new_fences.
32363 Print the final schedule timing when sched_verbose.
32365 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
32367 PR rtl-optimization/60292
32368 * sel-sched.c (fill_vec_av_set): Do not reset target availability
32369 bit fot the fence instruction.
32371 2014-02-24 Alangi Derick <alangiderick@gmail.com>
32373 * calls.h: Fix typo in comment.
32375 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
32377 * config/pa/pa.c (pa_output_move_double): Don't valididate when
32378 adjusting offsetable addresses.
32380 2014-02-24 Guozhi Wei <carrot@google.com>
32382 * sparseset.h (sparseset_pop): Fix the wrong index.
32384 2014-02-24 Walter Lee <walt@tilera.com>
32386 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
32387 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
32389 * common/config/tilegx/tilegx-common.c
32390 (TARGET_DEFAULT_TARGET_FLAGS): Define.
32391 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
32392 (LINK_SPEC): Ditto.
32393 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
32394 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
32395 (tilegx_gimplify_va_arg_expr): Handle big endian.
32396 (tilegx_expand_unaligned_load): Ditto.
32397 (tilegx_expand_unaligned_store): Ditto.
32398 (TARGET_RETURN_IN_MSB): New.
32399 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
32400 (TARGET_ENDIAN_DEFAULT): New.
32401 (TARGET_BIG_ENDIAN): Handle big endian.
32402 (BYTES_BIG_ENDIAN): Ditto.
32403 (WORDS_BIG_ENDIAN): Ditto.
32404 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
32405 (ENDIAN_SPEC): New.
32406 (EXTRA_SPECS): New.
32407 * config/tilegx/tilegx.md (extv): Handle big endian.
32409 (insn_st<n>): Ditto.
32410 (insn_st<n>_add<bitsuffix>): Ditto.
32411 (insn_stnt<n>): Ditto.
32412 (insn_stnt<n>_add<bitsuffix>):Ditto.
32413 (vec_interleave_highv8qi): Handle big endian.
32414 (vec_interleave_highv8qi_be): New.
32415 (vec_interleave_highv8qi_le): New.
32416 (insn_v1int_h): Handle big endian.
32417 (vec_interleave_lowv8qi): Handle big endian.
32418 (vec_interleave_lowv8qi_be): New.
32419 (vec_interleave_lowv8qi_le): New.
32420 (insn_v1int_l): Handle big endian.
32421 (vec_interleave_highv4hi): Handle big endian.
32422 (vec_interleave_highv4hi_be): New.
32423 (vec_interleave_highv4hi_le): New.
32424 (insn_v2int_h): Handle big endian.
32425 (vec_interleave_lowv4hi): Handle big endian.
32426 (vec_interleave_lowv4hi_be): New.
32427 (vec_interleave_lowv4hi_le): New.
32428 (insn_v2int_l): Handle big endian.
32429 (vec_interleave_highv2si): Handle big endian.
32430 (vec_interleave_highv2si_be): New.
32431 (vec_interleave_highv2si_le): New.
32432 (insn_v4int_h): Handle big endian.
32433 (vec_interleave_lowv2si): Handle big endian.
32434 (vec_interleave_lowv2si_be): New.
32435 (vec_interleave_lowv2si_le): New.
32436 (insn_v4int_l): Handle big endian.
32437 * config/tilegx/tilegx.opt (mbig-endian): New option.
32438 (mlittle-endian): New option.
32439 * doc/install.texi: Document tilegxbe-linux.
32440 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32442 2014-02-24 Martin Jambor <mjambor@suse.cz>
32445 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32446 there are no parameter descriptors.
32448 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
32450 PR rtl-optimization/60268
32451 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32452 initialization to ...
32453 (sched_rgn_init): ... here.
32454 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32456 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32458 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32461 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
32463 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32466 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32468 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32469 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32471 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
32473 * config/microblaze/predicates.md: Add cmp_op predicate.
32474 * config/microblaze/microblaze.md: Add branch_compare instruction
32475 which uses cmp_op predicate and emits cmp insn before branch.
32476 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32477 to microblaze_expand_conditional_branch and consolidate logic.
32478 (microblaze_expand_conditional_branch): emit branch_compare
32479 insn instead of handling cmp op separate from branch insn.
32481 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32483 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32486 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32488 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32489 define_insn with define_expand and new define_insn
32490 *altivec_lve<VI_char>x_internal.
32491 (altivec_stve<VI_char>x): Replace define_insn with define_expand
32492 and new define_insn *altivec_stve<VI_char>x_internal.
32493 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32495 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32497 (altivec_expand_stvex_be): New function.
32499 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
32501 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32502 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32503 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32504 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32506 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
32509 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32510 instead of emit_move_insn.
32512 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32514 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32515 vspltw with vsldoi.
32516 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32517 gen_altivec_vsumsws.
32519 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32521 * config/rs6000/altivec.md (altivec_lvxl): Rename as
32522 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32523 (altivec_lvxl_<mode>): New define_expand incorporating
32524 -maltivec=be semantics where needed.
32525 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32526 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32527 semantics where needed.
32528 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32529 (altivec_stvx_<mode>): New define_expand incorporating
32530 -maltivec=be semantics where needed.
32531 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32532 VM2 iterator instead of V4SI.
32533 (altivec_stvxl_<mode>): New define_expand incorporating
32534 -maltivec=be semantics where needed.
32535 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32536 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32537 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32538 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32539 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32540 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32541 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32542 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32543 ALTIVEC_BUILTIN_STVXL.
32544 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32545 (altivec_expand_stvx_be): Likewise.
32546 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32547 (altivec_expand_lvx_be): Likewise.
32548 (altivec_expand_stvx_be): Likewise.
32549 (altivec_expand_builtin): Add cases for
32550 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32551 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32552 (altivec_init_builtins): Add definitions for
32553 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32554 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32556 2014-02-21 Catherine Moore <clm@codesourcery.com>
32558 * doc/invoke.texi (mvirt, mno-virt): Document.
32559 * config/mips/mips.opt (mvirt): New option.
32560 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32562 2014-02-21 Richard Biener <rguenther@suse.de>
32564 PR tree-optimization/60276
32565 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32566 (STMT_VINFO_MIN_NEG_DIST): New macro.
32567 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32568 STMT_VINFO_MIN_NEG_DIST.
32569 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32570 made for negative dependence distances still hold.
32572 2014-02-21 Richard Biener <rguenther@suse.de>
32574 PR middle-end/60291
32575 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32576 DECL_INITIAL for globals not in the current function context.
32578 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32580 PR tree-optimization/56490
32581 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32582 * tree-ssa-uninit.c: Include params.h.
32583 (compute_control_dep_chain): Add num_calls argument, return false
32584 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32585 num_calls to recursive call.
32586 (find_predicates): Change dep_chain into normal array,
32587 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32588 variable and adjust compute_control_dep_chain caller.
32589 (find_def_preds): Likewise.
32591 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
32593 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32594 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32596 2014-02-21 Nick Clifton <nickc@redhat.com>
32598 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32599 (pushhi1): Likewise.
32600 (popqi1): Add mode to pre_dec.
32601 (pophi1): Likewise.
32603 2014-02-21 Jakub Jelinek <jakub@redhat.com>
32605 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32606 mode for mask of V8SFmode permutation.
32608 2014-02-20 Richard Henderson <rth@redhat.com>
32611 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32612 a new pseudo for OLDVAL.
32614 2014-02-20 Jakub Jelinek <jakub@redhat.com>
32617 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32618 gen_reg_rtx if d->testing_p.
32619 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32620 if d->testing_p and we will certainly return true.
32621 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
32624 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
32626 * emit-rtl.c (gen_reg_rtx): Assert that
32627 crtl->emit.regno_pointer_align_length is non-zero.
32629 2014-02-20 Richard Henderson <rth@redhat.com>
32632 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32633 on failure the store back into EXPECT.
32635 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
32636 Sandra Loosemore <sandra@codesourcery.com>
32638 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32639 * config/nios2/nios2.c (nios2_function_profiler): Add
32640 -fPIC (flag_pic == 2) support.
32641 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32642 (nios2_large_offset_p): New function.
32643 (nios2_unspec_reloc_p): Move up position, update to use
32644 nios2_large_offset_p.
32645 (nios2_unspec_address): Remove function.
32646 (nios2_unspec_offset): New function.
32647 (nios2_large_got_address): New function.
32648 (nios2_got_address): Add large offset support.
32649 (nios2_legitimize_tls_address): Update usage of removed and new
32651 (nios2_symbol_binds_local_p): New function.
32652 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32653 (nios2_legitimize_address): Update to use nios2_large_offset_p.
32654 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32655 (nios2_print_operand): Merge H/L processing, add hiadj/lo
32656 processing for (const (unspec ...)).
32657 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32659 2014-02-20 Richard Biener <rguenther@suse.de>
32661 * tree-cfg.c (replace_uses_by): Mark altered BBs before
32662 doing the substitution.
32663 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32665 2014-02-20 Martin Jambor <mjambor@suse.cz>
32668 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32669 info when checking whether lattices are bottom.
32671 2014-02-20 Richard Biener <rguenther@suse.de>
32673 PR middle-end/60221
32674 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32677 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
32680 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32681 parameter specifying the scaling.
32682 (inline_call): Update.
32683 (want_inline_recursively): Guard division by zero.
32684 (recursive_inlining): Update.
32685 * ipa-inline.h (clone_inlined_nodes): Update.
32687 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32690 * config/i386/i386.c (classify_argument): Pass structures of size
32691 64 bytes or less in register.
32693 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
32694 Kirill Yukhin <kirill.yukhin@intel.com>
32696 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32697 (_mm_rcp28_round_ss): Ditto.
32698 (_mm_rsqrt28_round_sd): Ditto.
32699 (_mm_rsqrt28_round_ss): Ditto.
32700 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32701 (_mm_rcp14_round_ss): Ditto.
32702 (_mm_rsqrt14_round_sd): Ditto.
32703 (_mm_rsqrt14_round_ss): Ditto.
32704 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32705 the first input operand, get rid of match_dup.
32706 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32708 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32710 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32711 operand as the first input operand, set type attribute.
32712 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32713 Set type attribute.
32714 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32715 operand as the first input operand, set type attribute.
32717 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32719 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32722 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
32725 * config/i386/i386.c (construct_container): Remove TFmode check
32726 for X86_64_INTEGER_CLASS.
32728 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
32731 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32732 only when -Wpsabi is enabled.
32734 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
32737 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32738 passing arrays in registers are the same as for structs, so remove the
32739 special case for them.
32741 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
32743 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32744 destination type, extract only the valid bits if the source type is not
32745 integral and has a different mode.
32747 2014-02-19 Richard Biener <rguenther@suse.de>
32750 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32753 2014-02-19 Richard Biener <rguenther@suse.de>
32756 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32757 (ipa_modify_call_arguments): Emit an argument load explicitely and
32758 preserve virtual SSA form there and for the replacement call.
32759 Do not update SSA form nor free dominance info.
32761 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32763 * ipa.c (function_and_variable_visibility): Also clear WEAK
32764 flag when disolving COMDAT_GROUP.
32766 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32768 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32769 * ipa-prop.c (ipa_set_jf_known_type): Return early when
32770 not devirtualizing.
32771 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32772 do more sanity checks.
32773 (detect_type_change): Return true when giving up early.
32774 (compute_complex_assign_jump_func): Fix type parameter of
32775 ipa_set_ancestor_jf.
32776 (compute_complex_ancestor_jump_func): Likewise.
32777 (update_jump_functions_after_inlining): Fix updating of
32779 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32781 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
32783 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32784 inline clones when edge disappears.
32786 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
32789 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32790 Split 64-bit moves into 2 patterns. Do not allow the use of
32791 direct move for TDmode in little endian, since the decimal value
32792 has little endian bytes within a word, but the 64-bit pieces are
32793 ordered in a big endian fashion, and normal subreg's of TDmode are
32795 (mov<mode>_64bit_dm): Likewise.
32796 (movtd_64bit_nodm): Likewise.
32798 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32800 PR tree-optimization/60174
32801 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32802 statement of an SSA_NAME that occurs in an abnormal PHI node.
32804 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32807 * final.c (SEEN_BB): Remove.
32808 (SEEN_NOTE, SEEN_EMITTED): Renumber.
32809 (final_scan_insn): Don't force_source_line on second
32810 NOTE_INSN_BASIC_BLOCK.
32812 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
32815 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32816 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32817 (type_natural_mode): Warn ABI change when %zmm register is not
32818 available for AVX512F vector value passing.
32820 2014-02-18 Kai Tietz <ktietz@redhat.com>
32823 * config/i386/i386.c (ix86_expand_prologue): Use value in
32824 rax register as displacement when restoring %r10 or %rax.
32825 Fix wrong offset when restoring both registers.
32827 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
32829 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32830 assertion with conditional return.
32832 2014-02-18 Jakub Jelinek <jakub@redhat.com>
32833 Uros Bizjak <ubizjak@gmail.com>
32836 * config/i386/driver-i386.c (host_detect_local_cpu): If
32837 YMM state is not saved by the OS, also clear has_f16c. Move
32838 CPUID 0x80000001 handling before YMM state saving checking.
32840 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
32842 PR rtl-optimization/58960
32843 * haifa-sched.c (alloc_global_sched_pressure_data): New,
32844 factored out from ...
32845 (sched_init): ... here.
32846 (free_global_sched_pressure_data): New, factored out from ...
32847 (sched_finish): ... here.
32848 * sched-int.h (free_global_sched_pressure_data): Declare.
32849 * sched-rgn.c (nr_regions_initial): New static global.
32850 (haifa_find_rgns): Initialize it.
32851 (schedule_region): Disable sched-pressure for the newly
32854 2014-02-17 Richard Biener <rguenther@suse.de>
32856 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32857 release SSA defs of pattern stmts.
32859 2014-02-17 Richard Biener <rguenther@suse.de>
32861 * tree-inline.c (expand_call_inline): Release the virtual
32862 operand defined by the call we are about to inline.
32864 2014-02-17 Richard Biener <rguenther@suse.de>
32866 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32868 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
32869 Ilya Tocar <ilya.tocar@intel.com>
32871 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32872 arguments order in builtin.
32873 (_mm512_permutexvar_epi64): Ditto.
32874 (_mm512_mask_permutexvar_epi64): Ditto
32875 (_mm512_maskz_permutexvar_epi32): Ditto
32876 (_mm512_permutexvar_epi32): Ditto
32877 (_mm512_mask_permutexvar_epi32): Ditto
32879 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32881 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32882 (p8_vmrgow): Likewise.
32884 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32886 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32889 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
32892 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32893 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32894 into 64-bit and 32-bit moves. On 64-bit moves, add support for
32895 using direct move instructions on ISA 2.07. Also adjust
32896 instruction length for 64-bit.
32897 (mov<mode>_64bit, TFmode/TDmode): Likewise.
32898 (mov<mode>_32bit, TFmode/TDmode): Likewise.
32900 2014-02-15 Alan Modra <amodra@gmail.com>
32904 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32905 find_replacement on parts of insn rtl that might be reloaded.
32907 2014-02-15 Richard Biener <rguenther@suse.de>
32909 PR tree-optimization/60183
32910 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32911 (tree_ssa_phiprop): Calculate and free post-dominators.
32913 2014-02-14 Jeff Law <law@redhat.com>
32915 PR rtl-optimization/60131
32916 * ree.c (get_extended_src_reg): New function.
32917 (combine_reaching_defs): Use it rather than assuming location of REG.
32918 (find_and_remove_re): Verify first operand of extension is
32919 a REG before adding the insns to the copy list.
32921 2014-02-14 Roland McGrath <mcgrathr@google.com>
32923 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32924 * configure: Regenerated.
32925 * config.in: Regenerated.
32926 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32927 instead of ASM_SHORT.
32929 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
32930 Richard Earnshaw <rearnsha@arm.com>
32932 PR rtl-optimization/59535
32933 * lra-constraints.c (process_alt_operands): Encourage alternative
32934 when unassigned pseudo class is superset of the alternative class.
32935 (inherit_reload_reg): Don't inherit when optimizing for code size.
32936 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32937 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32938 modes not less than 4 for Thumb1.
32940 2014-02-14 Kyle McMartin <kyle@redhat.com>
32943 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32945 2014-02-14 Richard Biener <rguenther@suse.de>
32947 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32948 (get_frame_arg): Drop the assert with langhook types_compatible_p.
32949 Do not strip INDIRECT_REFs.
32951 2014-02-14 Richard Biener <rguenther@suse.de>
32954 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32955 DECL_FUNCTION_SPECIFIC_TARGET.
32956 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32957 * tree-streamer-out.c (pack_ts_target_option): Remove.
32958 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32959 (write_ts_function_decl_tree_pointers): Do not stream
32960 DECL_FUNCTION_SPECIFIC_TARGET.
32961 * tree-streamer-in.c (unpack_ts_target_option): Remove.
32962 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32963 (lto_input_ts_function_decl_tree_pointers): Do not stream
32964 DECL_FUNCTION_SPECIFIC_TARGET.
32966 2014-02-14 Jakub Jelinek <jakub@redhat.com>
32968 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32969 (get_initial_def_for_induction, vectorizable_induction): Ignore
32970 debug stmts when looking for exit_phi.
32971 (vectorizable_live_operation): Fix up condition.
32973 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32975 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32976 nreverse() because it changes the content of original tree list.
32978 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32980 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32981 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32983 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
32985 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32986 GNU coding standards.
32988 2014-02-13 Jakub Jelinek <jakub@redhat.com>
32991 * dwarf2out.c (gen_subprogram_die): Don't call
32992 add_calling_convention_attribute if subr_die is old_die.
32994 2014-02-13 Sharad Singhai <singhai@google.com>
32996 * doc/optinfo.texi: Fix order of nodes.
32998 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
33000 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
33001 operands[2], not operands[3].
33003 2014-02-13 Richard Biener <rguenther@suse.de>
33006 * doc/install.texi (ISL): Update recommended version to 0.12.2,
33007 mention the possibility of an in-tree build.
33008 (CLooG): Update recommended version to 0.18.1, mention the
33009 possibility of an in-tree build and clarify that the ISL
33010 bundled with CLooG does not work.
33012 2014-02-13 Jakub Jelinek <jakub@redhat.com>
33015 * expr.c (compress_float_constant): If x is a hard register,
33016 extend into a pseudo and then move to x.
33018 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
33020 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
33021 caused by bad second argument to warning_at() with -mhotpatch and
33022 nested functions (e.g. with gfortran).
33024 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
33026 * opts.c (option_name): Remove "enabled by default" rider.
33028 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
33030 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
33032 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
33033 Uros Bizjak <ubizjak@gmail.com>
33036 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
33037 * configure: Regenerated.
33039 2014-02-12 Richard Biener <rguenther@suse.de>
33041 * vec.c (vec_prefix::calculate_allocation): Move as
33042 inline variant to vec.h.
33043 (vec_prefix::calculate_allocation_1): New out-of-line version.
33044 * vec.h (vec_prefix::calculate_allocation_1): Declare.
33045 (vec_prefix::m_has_auto_buf): Rename to ...
33046 (vec_prefix::m_using_auto_storage): ... this.
33047 (vec_prefix::calculate_allocation): Inline the easy cases
33048 and dispatch to calculate_allocation_1 which doesn't need the
33050 (va_heap::reserve): Use gcc_checking_assert.
33051 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
33052 m_using_auto_storage.
33053 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
33055 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
33056 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
33057 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
33059 2014-02-12 Richard Biener <rguenther@suse.de>
33061 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
33062 when we found a dependence.
33064 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
33066 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
33068 (maybe_fold_stmt): ... into this new function.
33069 * omp-low.c (lower_omp): Update comment.
33071 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
33074 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
33077 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
33079 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
33080 identifiers in comments.
33081 (cortexa53_extra_costs): Likewise.
33082 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
33083 (cortexa7_extra_costs): Likewise.
33084 (cortexa12_extra_costs): Likewise.
33085 (cortexa15_extra_costs): Likewise.
33086 (v7m_extra_costs): Likewise.
33088 2014-02-12 Richard Biener <rguenther@suse.de>
33090 PR middle-end/60092
33091 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
33092 of posix_memalign being successful.
33093 (lower_stmt): Restrict lowering of posix_memalign to when
33094 -ftree-bit-ccp is enabled.
33096 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
33098 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
33100 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
33102 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
33104 PR rtl-optimization/60116
33105 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
33106 other_insn once the combination has been validated.
33108 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
33111 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
33113 * ipa-devirt.c: Include demangle.h
33114 (odr_violation_reported): New static variable.
33115 (add_type_duplicate): Update odr_violations.
33116 (maybe_record_node): Add completep parameter; update it.
33117 (record_target_from_binfo): Add COMPLETEP parameter;
33118 update it as needed.
33119 (possible_polymorphic_call_targets_1): Likewise.
33120 (struct polymorphic_call_target_d): Add nonconstruction_targets;
33121 rename FINAL to COMPLETE.
33122 (record_targets_from_bases): Sanity check we found the binfo;
33123 fix COMPLETEP updating.
33124 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
33125 parameter, fix computing of COMPLETEP.
33126 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
33127 at LTO time do demangling.
33128 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
33129 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
33131 (gimple_get_virt_method_for_binfo): Likewise.
33132 * gimple-fold.h (gimple_get_virt_method_for_binfo,
33133 gimple_get_virt_method_for_vtable): Update prototypes.
33135 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
33138 * genautomata.c (add_presence_absence): Fix typo with
33139 {final_}presence_list.
33141 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
33144 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
33145 for VSX/Altivec vectors that land in GPR registers.
33147 2014-02-11 Richard Henderson <rth@redhat.com>
33148 Jakub Jelinek <jakub@redhat.com>
33151 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
33152 around drhs if type conversion to lacc->type is not useless.
33154 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33156 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
33158 (cortex-a57.cortex-a53): Likewise.
33159 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
33161 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33163 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
33166 2014-02-11 Renlin Li <Renlin.Li@arm.com>
33168 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
33169 add_options_for_arm_vfp3.
33171 2014-02-11 Jeff Law <law@redhat.com>
33173 PR middle-end/54041
33174 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
33175 object with an undesirable mode.
33177 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33180 * config/i386/sol2-9.h: New file.
33181 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
33182 *-*-solaris2.9*): Use it.
33184 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
33186 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
33187 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
33189 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
33191 * config/microblaze/microblaze.c: Extend mcpu version format
33193 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
33195 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
33197 2014-02-10 Richard Henderson <rth@redhat.com>
33200 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
33201 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
33202 ms-abi vs -mno-accumulate-outgoing-args.
33203 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
33204 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
33207 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
33209 PR middle-end/60080
33210 * cfgexpand.c (expand_asm_operands): Attach source location to
33211 ASM_INPUT rtx objects.
33212 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
33214 2014-02-10 Nick Clifton <nickc@redhat.com>
33216 * config/mn10300/mn10300.c (popcount): New function.
33217 (mn10300_expand_prologue): Include saved registers in stack usage
33220 2014-02-10 Jeff Law <law@redhat.com>
33222 PR middle-end/52306
33223 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
33224 when changing the SET_DEST of a prior insn to avoid an input reload.
33226 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
33228 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
33229 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
33230 -mcall-openbsd, or -mcall-linux.
33231 (CC1_ENDIAN_BIG_SPEC): Remove.
33232 (CC1_ENDIAN_LITTLE_SPEC): Remove.
33233 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33234 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
33235 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
33236 and %cc1_endian_default.
33237 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33239 2014-02-10 Richard Biener <rguenther@suse.de>
33241 PR tree-optimization/60115
33242 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
33243 MEM_REF handling. Properly verify that the accesses are not
33244 out of the objects bound.
33246 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33248 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
33251 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
33253 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
33254 proper constants and fix formatting.
33255 (possible_polymorphic_call_targets): Fix formatting.
33257 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
33258 Ilya Tocar <ilya.tocar@intel.com>
33260 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
33261 (_mm512_loadu_epi32): Renamed into...
33262 (_mm512_loadu_si512): This.
33263 (_mm512_storeu_epi32): Renamed into...
33264 (_mm512_storeu_si512): This.
33265 (_mm512_maskz_ceil_ps): Removed.
33266 (_mm512_maskz_ceil_pd): Ditto.
33267 (_mm512_maskz_floor_ps): Ditto.
33268 (_mm512_maskz_floor_pd): Ditto.
33269 (_mm512_floor_round_ps): Ditto.
33270 (_mm512_floor_round_pd): Ditto.
33271 (_mm512_ceil_round_ps): Ditto.
33272 (_mm512_ceil_round_pd): Ditto.
33273 (_mm512_mask_floor_round_ps): Ditto.
33274 (_mm512_mask_floor_round_pd): Ditto.
33275 (_mm512_mask_ceil_round_ps): Ditto.
33276 (_mm512_mask_ceil_round_pd): Ditto.
33277 (_mm512_maskz_floor_round_ps): Ditto.
33278 (_mm512_maskz_floor_round_pd): Ditto.
33279 (_mm512_maskz_ceil_round_ps): Ditto.
33280 (_mm512_maskz_ceil_round_pd): Ditto.
33281 (_mm512_expand_pd): Ditto.
33282 (_mm512_expand_ps): Ditto.
33283 * config/i386/i386.c (ix86_builtins): Remove
33284 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
33285 (bdesc_args): Ditto.
33286 * config/i386/predicates.md (const1256_operand): New.
33287 (const_1_to_2_operand): Ditto.
33288 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
33289 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33290 (*avx512pf_gatherpf<mode>sf): Ditto.
33291 (avx512pf_gatherpf<mode>df): Ditto.
33292 (*avx512pf_gatherpf<mode>df_mask): Ditto.
33293 (*avx512pf_gatherpf<mode>df): Ditto.
33294 (avx512pf_scatterpf<mode>sf): Ditto.
33295 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33296 (*avx512pf_scatterpf<mode>sf): Ditto.
33297 (avx512pf_scatterpf<mode>df): Ditto.
33298 (*avx512pf_scatterpf<mode>df_mask): Ditto.
33299 (*avx512pf_scatterpf<mode>df): Ditto.
33300 (avx512f_expand<mode>): Removed.
33301 (<shift_insn><mode>3<mask_name>): Change predicate type.
33303 2014-02-08 Jakub Jelinek <jakub@redhat.com>
33305 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
33306 not at the end of datarefs vector use ordered_remove to avoid
33307 reordering datarefs vector.
33310 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
33311 mark local addressable non-static vars as GOVD_PRIVATE
33312 instead of GOVD_LOCAL.
33313 * omp-low.c (lower_omp_for): Move gimple_bind_vars
33314 and BLOCK_VARS of gimple_bind_block to new_stmt rather
33317 PR middle-end/60092
33318 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
33319 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
33320 assume_aligned or alloc_align attributes.
33321 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
33322 arguments. Handle also assume_aligned and alloc_align attributes.
33323 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
33324 calls to functions with assume_aligned or alloc_align attributes.
33325 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
33327 2014-02-08 Terry Guo <terry.guo@arm.com>
33329 * doc/invoke.texi: Document ARM -march=armv7e-m.
33331 2014-02-08 Jakub Jelinek <jakub@redhat.com>
33333 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
33334 flag on __cilkrts_rethrow builtin.
33337 * ipa-cp.c (determine_versionability): Fail at -O0
33338 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
33339 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
33342 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33345 * tree-inline.c (copy_forbidden): Fail for
33346 __attribute__((optimize (0))) functions.
33348 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
33350 * varpool.c: Include pointer-set.h.
33351 (varpool_remove_unreferenced_decls): Variables in other partitions
33352 will not be output; be however careful to not lose information
33353 about partitioning.
33355 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
33357 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
33358 lookup in the vtable constructor.
33360 2014-02-07 Jeff Law <law@redhat.com>
33363 * config/m68k/m68k.md (ashldi_extsi): Turn into a
33364 define_insn_and_split.
33366 * ipa-inline.c (inline_small_functions): Fix typos.
33368 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33370 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
33371 (s390_can_use_return_insn): Declare.
33372 * config/s390/s390.h (EPILOGUE_USES): Define.
33373 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
33375 (s390_chunkify_start): Handle return JUMP_LABELs.
33376 (s390_early_mach): Emit a main_pool instruction on the entry edge.
33377 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
33378 (s390_can_use_return_insn): New functions.
33379 (s390_fix_long_loop_prediction): Handle conditional returns.
33380 (TARGET_SET_UP_BY_PROLOGUE): Define.
33381 * config/s390/s390.md (ANY_RETURN): New code iterator.
33382 (*creturn, *csimple_return, return, simple_return): New patterns.
33384 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33386 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
33387 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
33388 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
33389 REG_CFA_RESTORE list when deciding not to restore a register.
33391 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33393 * config/s390/s390.c: Include tree-pass.h and context.h.
33394 (s390_early_mach): New function, split out from...
33395 (s390_emit_prologue): ...here.
33396 (pass_data_s390_early_mach): New pass structure.
33397 (pass_s390_early_mach): New class.
33398 (s390_option_override): Create and register early_mach pass.
33399 Move to end of file.
33401 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
33403 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
33404 to match for the exit block.
33406 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33408 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
33409 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
33410 Reject misaligned operands.
33412 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33414 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33416 2014-02-07 Richard Biener <rguenther@suse.de>
33418 PR middle-end/60092
33419 * gimple-low.c (lower_builtin_posix_memalign): New function.
33420 (lower_stmt): Call it to lower posix_memalign in a way
33421 to make alignment info accessible.
33423 2014-02-07 Jakub Jelinek <jakub@redhat.com>
33426 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33427 __builtin_setjmp_receiver.
33429 2014-02-07 Richard Biener <rguenther@suse.de>
33431 PR middle-end/60092
33432 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33433 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33434 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33435 Handle BUILT_IN_POSIX_MEMALIGN.
33436 (find_func_clobbers): Likewise.
33437 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33438 (call_may_clobber_ref_p_1): Likewise.
33440 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33443 * ipa-devirt.c (record_target_from_binfo): Remove overactive
33446 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33449 * lto-cgraph.c (lto_output_node): Use
33450 symtab_get_symbol_partitioning_class.
33451 (lto_output_varpool_node): likewise.
33452 (symtab_get_symbol_partitioning_class): Move here from
33453 lto/lto-partition.c
33454 * cgraph.h (symbol_partitioning_class): Likewise.
33455 (symtab_get_symbol_partitioning_class): Declare.
33457 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33459 * ggc.h (ggc_internal_cleared_alloc): New macro.
33460 * vec.h (vec_safe_copy): Handle memory stats.
33461 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33462 * target-globals.c (save_target_globals): Likewise.
33464 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
33467 * expr.c (emit_move_resolve_push): Export; be bit more selective
33468 on when to clear alias set.
33469 * expr.h (emit_move_resolve_push): Declare.
33470 * function.h (struct function): Add tail_call_marked.
33471 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33472 * config/i386/i386-protos.h (ix86_expand_push): Remove.
33473 * config/i386/i386.md (TImode move expander): De not call
33475 (FP push expanders): Preserve memory attributes.
33476 * config/i386/sse.md (push<mode>1): Remove.
33477 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33478 (ix86_expand_push): Remove.
33479 * config/i386/mmx.md (push<mode>1): Remove.
33481 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33483 PR rtl-optimization/60030
33484 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33485 lopart with paradoxical subreg before shifting it up by hprec.
33487 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33489 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33490 Remove extra newline at end of file.
33491 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33492 (arm_issue_rate): Handle cortexa57.
33493 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33494 (cortex-a57.cortex-a53): Likewise.
33496 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33499 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33500 don't record in REG_FRAME_RELATED_EXPR registers not set in that
33502 (arm_expand_prologue): Adjust all callers.
33503 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33504 info, registers also at the lowest numbered registers side. Use
33505 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33509 * var-tracking.c (adjust_mems): Before adding a SET to
33510 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33512 2014-02-06 Alan Modra <amodra@gmail.com>
33515 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33516 change SDmode to DDmode when lra_in_progress.
33518 2014-02-06 Jakub Jelinek <jakub@redhat.com>
33520 PR middle-end/59150
33521 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33522 free_data_ref on the dr first, and before goto again also set dr
33523 to the next dr. For simd_lane_access, free old datarefs[i] before
33524 overwriting it. For get_vectype_for_scalar_type failure, don't
33525 free_data_ref if simd_lane_access.
33527 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33530 * tree.h (opts_for_fn): New inline function.
33531 (opt_for_fn): Define.
33532 * config/i386/i386.c (ix86_function_regparm): Use
33533 opt_for_fn (decl, optimize) instead of optimize.
33535 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
33537 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33538 for SYMBOL_REF in large memory model.
33540 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33542 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33543 and crypto support.
33544 (cortex-a57): Likewise.
33545 (cortex-a57.cortex-a53): Likewise.
33547 2014-02-06 Yury Gribov <y.gribov@samsung.com>
33548 Kugan Vivekanandarajah <kuganv@linaro.org>
33550 * config/arm/arm.c (arm_vector_alignment_reachable): Check
33552 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33554 2014-02-06 Richard Biener <rguenther@suse.de>
33556 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33557 set_loop_copy and initialize_original_copy_tables.
33559 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
33561 * config/aarch64/aarch64-simd.md
33562 (aarch64_ashr_simddi): Change QI to SI.
33564 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33565 Jakub Jelinek <jakub@redhat.com>
33567 PR middle-end/60013
33568 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33571 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33573 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33574 CODE_FOR_altivec_vpku[hw]um to
33575 CODE_FOR_altivec_vpku[hw]um_direct.
33576 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33577 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33578 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33579 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33581 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33583 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33584 generation for -maltivec=be.
33585 (altivec_vsumsws): Simplify redundant test.
33587 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33589 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33590 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33591 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33592 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33593 gen_altivec_vpkuwum.
33594 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33596 (altivec_vpks<VI_char>ss): Likewise.
33597 (altivec_vpks<VI_char>us): Likewise.
33598 (altivec_vpku<VI_char>us): Likewise.
33599 (altivec_vpku<VI_char>um): Likewise.
33600 (altivec_vpku<VI_char>um_direct): New (copy of
33601 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33603 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33604 target is little endian and -maltivec=be is not specified.
33605 (*altivec_vupkhs<VU_char>_direct): New (copy of
33606 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33607 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33608 target is little endian and -maltivec=be is not specified.
33609 (*altivec_vupkls<VU_char>_direct): New (copy of
33610 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33611 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33612 little endian and -maltivec=be is not specified.
33613 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33614 little endian and -maltivec=be is not specified.
33616 2014-02-05 Richard Henderson <rth@redhat.com>
33619 * combine-stack-adj.c: Revert r206943.
33620 * sched-int.h (struct deps_desc): Add last_args_size.
33621 * sched-deps.c (init_deps): Initialize it.
33622 (sched_analyze_insn): Add OUTPUT dependencies between insns that
33623 contain REG_ARGS_SIZE notes.
33625 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
33627 * lto-cgraph.c (asm_nodes_output): Make global.
33628 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33629 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33630 (driver_handle_option): Handle OPT_fwpa.
33632 2014-02-05 Jakub Jelinek <jakub@redhat.com>
33635 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33636 a comment typo and formatting issue. If odr_hash hasn't been
33637 created, return vNULL and set *completep to false.
33639 PR middle-end/57499
33640 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33641 bb with no successors.
33643 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
33646 * doc/invoke.texi (-march): Clarify documentation for ARM.
33647 (-mtune): Likewise.
33650 2014-02-05 Richard Biener <rguenther@suse.de>
33652 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33653 when not vectorizing because of too many alias checks.
33654 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33655 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33657 2014-02-05 Nick Clifton <nickc@redhat.com>
33659 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33660 accept extended registers in any mode when compiling for the MN10300.
33662 2014-02-05 Yury Gribov <y.gribov@samsung.com>
33664 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33665 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33666 sanitization attributes.
33667 (can_inline_edge_p): Likewise.
33668 (sanitize_attrs_match_for_inline_p): New function.
33670 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33672 * ipa-prop.c (detect_type_change): Shor circuit testing of
33673 type changes on THIS pointer.
33675 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
33678 * config/pa/pa.c (legitimize_tls_address): Return original address
33679 if not passed a SYMBOL_REF rtx.
33680 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33682 (pa_emit_move_sequence): Simplify TLS source operands.
33683 (pa_legitimate_constant_p): Reject all TLS constants.
33684 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33685 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33687 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33689 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33690 groups when we know they are controlled by LTO.
33691 * varasm.c (default_binds_local_p_1): If object is in other partition,
33692 it will be resolved locally.
33694 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33696 * config/host-linux.c (linux_gt_pch_use_address): Don't
33697 use SSIZE_MAX because it is not always defined.
33699 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
33702 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33703 threshold for pseudo splitting.
33704 (update_ebb_live_info): Process call argument hard registers and
33705 hard registers from insn definition too.
33706 (max_small_class_regs_num): New constant.
33707 (inherit_in_ebb): Update live hard regs through EBBs. Update
33708 reloads_num only for small register classes. Don't split for
33711 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
33714 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33717 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
33719 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33720 visibility is safe.
33722 2014-02-04 Marek Polacek <polacek@redhat.com>
33724 * gdbinit.in (pel): Define.
33726 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
33728 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33731 2014-02-04 Richard Biener <rguenther@suse.de>
33734 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33735 in function context local.
33736 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33737 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33738 similar to LTO_imported_decl_ref.
33740 2014-02-04 Jakub Jelinek <jakub@redhat.com>
33742 PR tree-optimization/60002
33743 * cgraphclones.c (build_function_decl_skip_args): Clear
33744 DECL_LANG_SPECIFIC.
33746 PR tree-optimization/60023
33747 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33748 false to gsi_replace.
33749 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33750 has been in some EH region and vec_stmt could throw, add
33751 vec_stmt into the same EH region.
33752 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33753 has no lhs, ignore it.
33754 * internal-fn.c (expand_MASK_LOAD): Likewise.
33757 * tree-inline.c (copy_forbidden): Fail for
33758 __attribute__((optimize (0))) functions.
33761 * omp-low.c (simd_clone_struct_copy): If from->inbranch
33762 is set, copy one less argument.
33763 (expand_simd_clones): Don't subtract clone_info->inbranch
33764 from simd_clone_struct_alloc argument.
33766 PR rtl-optimization/57915
33767 * recog.c (simplify_while_replacing): If all unary/binary/relational
33768 operation arguments are constant, attempt to simplify those.
33770 PR middle-end/59261
33771 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33772 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33774 2014-02-04 Richard Biener <rguenther@suse.de>
33776 PR tree-optimization/60012
33777 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33778 TBAA disambiguation to all DDRs.
33780 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33783 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33784 (LINK_SPEC): Use it for -shared, -shared-libgcc.
33786 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33789 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33791 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33793 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33794 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33796 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33799 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33800 to figure out targets of polymorphic calls with known decl.
33801 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33802 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33803 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33804 (get_polymorphic_call_info): ... here.
33805 (get_polymorphic_call_info_from_invariant): New function.
33807 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33809 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33810 lookup via vtable pointer; check for type consistency
33811 and turn inconsitent facts into UNREACHABLE.
33812 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33813 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33814 type inconsistent querries; return UNREACHABLE instead.
33816 2014-02-03 Richard Henderson <rth@twiddle.net>
33819 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33820 already processed this node.
33821 (normalize_one_pred_1): Pass along mark_set.
33822 (normalize_one_pred): Create and destroy a pointer_set_t.
33823 (normalize_one_pred_chain): Likewise.
33825 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
33827 PR gcov-profile/58602
33828 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33830 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
33833 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33834 -fno-devirtualize; try to devirtualize by the knowledge of
33835 virtual table pointer given by aggregate propagation.
33836 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33837 (ipa_print_node_jump_functions): Dump also offset that
33838 is relevant for polymorphic calls.
33839 (determine_known_aggregate_parts): Add arg_type parameter; use it
33840 instead of determining the type from pointer type.
33841 (ipa_compute_jump_functions_for_edge): Update call of
33842 determine_known_aggregate_parts.
33843 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33844 (gimple_get_virt_method_for_binfo): ... here; simplify using
33845 vtable_pointer_value_to_vtable.
33846 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33847 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33848 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33849 (vtable_pointer_value_to_vtable): Break out from ...; handle also
33851 (vtable_pointer_value_to_binfo): ... here.
33852 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33854 2014-02-03 Teresa Johnson <tejohnson@google.com>
33856 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33857 redef of outer loop index variable.
33859 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
33863 * doc/extend.texi (Function Attributes): Typo.
33865 2014-02-03 Cong Hou <congh@google.com>
33867 PR tree-optimization/60000
33868 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33869 if the vectorized statement is a store. A store statement can only
33870 appear at the end of pattern statements.
33872 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33874 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33875 (ix86_option_override_internal): Default long double to 64-bit for
33876 32-bit Bionic and to 128-bit for 64-bit Bionic.
33878 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33879 TARGET_LONG_DOUBLE_128 is true.
33880 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33882 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33883 (mlong-double-64): Negate -mlong-double-128.
33884 (mlong-double-128): New option.
33886 * config/i386/i386-c.c (ix86_target_macros): Define
33887 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33889 * doc/invoke.texi: Document -mlong-double-128.
33891 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
33893 PR rtl-optimization/60024
33894 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33896 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
33898 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33900 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33902 PR rtl-optimization/57662
33903 * sel-sched.c (code_motion_path_driver): Do not mark already not
33904 existing blocks in the visiting bitmap.
33906 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
33908 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33909 on the insn being emitted.
33911 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
33912 Will Deacon <will.deacon@arm.com>
33914 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33916 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33918 * config/arm/arm-tables.opt: Regenerate.
33920 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33922 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33923 for vector types other than V16QImode.
33924 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33925 define_expand, and call altivec_expand_vec_perm_le when producing
33926 code with little endian element order.
33927 (*altivec_vperm_<mode>_internal): New insn having previous
33928 behavior of altivec_vperm_<mode>.
33929 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33930 altivec_expand_vec_perm_le when producing code with little endian
33932 (*altivec_vperm_<mode>_uns_internal): New insn having previous
33933 behavior of altivec_vperm_<mode>_uns.
33935 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33937 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33938 (altivec_vsumsws): Add handling for -maltivec=be with a little
33940 (altivec_vsumsws_direct): New.
33941 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33942 gen_altivec_vsumsws.
33944 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33946 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33947 vtable_pointer_value_to_binfo): New functions.
33948 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33949 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33951 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
33953 * config/nios2/nios2.md (load_got_register): Initialize GOT
33954 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33955 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33957 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
33959 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33960 preserverd by passthrough, do not propagate the type.
33962 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33964 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33965 (mips_atomic_assign_expand_fenv): New function.
33966 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33968 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33970 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33971 (__builtin_mips_set_fcsr): Likewise.
33972 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33973 MIPS_USI_FTYPE_VOID.
33974 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33975 (mips16_expand_set_fcsr): Likewise.
33976 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33977 (mips16_set_fcsr_stub): Likewise.
33978 (mips16_get_fcsr_one_only_stub): New class.
33979 (mips16_set_fcsr_one_only_stub): Likewise.
33980 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33981 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33982 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33983 (hard_float): New availability predicate.
33984 (mips_builtins): Add get_fcsr and set_fcsr.
33985 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33986 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33987 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33988 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33989 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33992 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
33994 * config/mips/mips.c (mips_one_only_stub): New class.
33995 (mips_need_mips16_rdhwr_p): Replace with...
33996 (mips16_rdhwr_stub): ...this new variable.
33997 (mips16_stub_call_address): New function.
33998 (mips16_rdhwr_one_only_stub): New class.
33999 (mips_expand_thread_pointer): Use mips16_stub_call_address.
34000 (mips_output_mips16_rdhwr): Delete.
34001 (mips_finish_stub): New function.
34002 (mips_code_end): Use it to handle rdhwr stubs.
34004 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
34007 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
34008 when calculating size of integer atomic types.
34010 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
34012 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
34014 2014-02-01 Jakub Jelinek <jakub@redhat.com>
34016 PR tree-optimization/60003
34017 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
34018 * profile.c (branch_prob): Use gimple_call_builtin_p
34019 to check for BUILT_IN_SETJMP_RECEIVER.
34020 * tree-inline.c (copy_bb): Call notice_special_calls.
34022 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
34025 * lra-constraints.c (process_alt_operands): Update reload_sum only
34028 2014-01-31 Richard Henderson <rth@redhat.com>
34030 PR middle-end/60004
34031 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
34032 until after else_eh is processed.
34034 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
34036 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
34037 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
34038 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
34039 in smmintrin.h, remove them.
34040 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
34041 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
34042 * config/i386/i386.md (ROUND_SAE): Fix value.
34043 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
34044 (const48_operand): New.
34045 * config/i386/subst.md (round), (round_expand): Use
34046 const_4_or_8_to_11_operand.
34047 (round_saeonly), (round_saeonly_expand): Use const48_operand.
34049 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
34051 * config/i386/constraints.md (Yk): Swap meaning with k.
34052 * config/i386/i386.md (movhi_internal): Change Yk to k.
34053 (movqi_internal): Ditto.
34054 (*k<logic><mode>): Ditto.
34057 (kandn<mode>): Ditto.
34058 (*<code>hi_1): Ditto.
34059 (*<code>qi_1): Ditto.
34060 (kxnor<mode>): Ditto.
34061 (kortestzhi): Ditto.
34062 (kortestchi): Ditto.
34064 (*one_cmplhi2_1): Ditto.
34065 (*one_cmplqi2_1): Ditto.
34066 * config/i386/sse.md (): Change k to Yk.
34067 (avx512f_load<mode>_mask): Ditto.
34068 (avx512f_blendm<mode>): Ditto.
34069 (avx512f_store<mode>_mask): Ditto.
34070 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
34071 (avx512f_storedqu<mode>_mask): Ditto.
34072 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
34074 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
34075 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
34076 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
34077 (avx512f_maskcmp<mode>3): Ditto.
34078 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
34079 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
34080 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
34081 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
34082 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
34083 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
34084 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
34085 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
34086 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
34087 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
34088 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
34089 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
34090 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
34091 (vec_extract_lo_<mode>_maskm): Ditto.
34092 (vec_extract_hi_<mode>_maskm): Ditto.
34093 (avx512f_vternlog<mode>_mask): Ditto.
34094 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
34095 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
34096 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
34097 (avx512f_<code>v8div16qi2_mask): Ditto.
34098 (avx512f_<code>v8div16qi2_mask_store): Ditto.
34099 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
34100 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
34101 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
34102 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
34103 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
34104 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34105 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34106 (*avx512pf_scatterpf<mode>df_mask): Ditto.
34107 (avx512cd_maskb_vec_dupv8di): Ditto.
34108 (avx512cd_maskw_vec_dupv16si): Ditto.
34109 (avx512f_vpermi2var<mode>3_maskz): Ditto.
34110 (avx512f_vpermi2var<mode>3_mask): Ditto.
34111 (avx512f_vpermi2var<mode>3_mask): Ditto.
34112 (avx512f_vpermt2var<mode>3_maskz): Ditto.
34113 (*avx512f_gathersi<mode>): Ditto.
34114 (*avx512f_gathersi<mode>_2): Ditto.
34115 (*avx512f_gatherdi<mode>): Ditto.
34116 (*avx512f_gatherdi<mode>_2): Ditto.
34117 (*avx512f_scattersi<mode>): Ditto.
34118 (*avx512f_scatterdi<mode>): Ditto.
34119 (avx512f_compress<mode>_mask): Ditto.
34120 (avx512f_compressstore<mode>_mask): Ditto.
34121 (avx512f_expand<mode>_mask): Ditto.
34122 * config/i386/subst.md (mask): Change k to Yk.
34123 (mask_scalar_merge): Ditto.
34126 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
34128 * doc/extend.texi (Vector Extensions): Document ?: in C++.
34130 2014-01-31 Richard Biener <rguenther@suse.de>
34132 PR middle-end/59990
34133 * builtins.c (fold_builtin_memory_op): Make sure to not
34134 use a floating-point mode or a boolean or enumeral type for
34135 the copy operation.
34137 2014-01-30 DJ Delorie <dj@redhat.com>
34139 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
34140 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
34141 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
34142 whenever main() has an epilogue.
34144 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34146 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
34147 unused variable "field".
34148 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
34149 (vsx_mergeh_<mode>): Likewise.
34150 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
34151 (altivec_vmrghh): Likewise.
34152 (altivec_vmrghw): Likewise.
34153 (altivec_vmrglb): Likewise.
34154 (altivec_vmrglh): Likewise.
34155 (altivec_vmrglw): Likewise.
34156 (altivec_vspltb): Add missing uses.
34157 (altivec_vsplth): Likewise.
34158 (altivec_vspltw): Likewise.
34159 (altivec_vspltsf): Likewise.
34161 2014-01-30 Jakub Jelinek <jakub@redhat.com>
34164 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
34165 frame related instructions.
34167 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
34169 PR rtl-optimization/59959
34170 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
34171 any reload of register whose subreg is invalid.
34173 2014-01-30 Jakub Jelinek <jakub@redhat.com>
34175 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
34176 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
34177 Add missing return type - void.
34179 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34181 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
34182 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
34183 remove element index adjustment for endian (now handled in vsx.md
34185 (altivec_expand_vec_perm_const): Use
34186 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
34187 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
34188 (vsx_xxspltw_<mode>): Adjust element index for little endian.
34189 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
34190 define_expand and a new define_insn *altivec_vspltb_internal;
34191 adjust for -maltivec=be on a little endian target.
34192 (altivec_vspltb_direct): New.
34193 (altivec_vsplth): Divide into a define_expand and a new
34194 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
34195 little endian target.
34196 (altivec_vsplth_direct): New.
34197 (altivec_vspltw): Divide into a define_expand and a new
34198 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
34199 little endian target.
34200 (altivec_vspltw_direct): New.
34201 (altivec_vspltsf): Divide into a define_expand and a new
34202 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
34203 a little endian target.
34205 2014-01-30 Richard Biener <rguenther@suse.de>
34207 PR tree-optimization/59993
34208 * tree-ssa-forwprop.c (associate_pointerplus): Check we
34209 can propagate form the earlier stmt and avoid the transform
34210 when the intermediate result is needed.
34212 2014-01-30 Alangi Derick <alangiderick@gmail.com>
34214 * README.Portability: Fix typo.
34216 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
34218 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
34219 comparison_operator with ordered_comparison_operator.
34221 2014-01-30 Nick Clifton <nickc@redhat.com>
34223 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
34224 Rename to mn10300_store_multiple_regs.
34225 * config/mn10300/mn10300.c: Likewise.
34226 * config/mn10300/mn10300.md (store_movm): Fix typo: call
34227 store_multiple_regs.
34228 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
34229 Call mn10300_store_multiple_regs.
34231 2014-01-30 Nick Clifton <nickc@redhat.com>
34232 DJ Delorie <dj@redhat.com>
34234 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
34235 %fp 2 to keep registers after it properly word-aligned.
34236 (rl78_alloc_physical_registers_umul): Handle the case where both
34237 input operands are the same.
34239 2014-01-30 Richard Biener <rguenther@suse.de>
34241 PR tree-optimization/59903
34242 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
34245 2014-01-30 Jason Merrill <jason@redhat.com>
34248 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
34251 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
34253 2014-01-30 Richard Biener <rguenther@suse.de>
34255 PR tree-optimization/59951
34256 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
34258 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
34261 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
34262 SFmode to DFmode case.
34264 2014-01-29 DJ Delorie <dj@redhat.com>
34266 * config/msp430/msp430.opt (-minrt): New.
34267 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
34269 (ENDFILE_SPEC): Likewise.
34271 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
34273 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
34274 (estimate_function_body_sizes): Use it.
34276 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
34279 * dwarf2out.c (is_cxx_auto): New.
34280 (is_base_type): Use it.
34281 (gen_type_die_with_usage): Likewise.
34283 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34285 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
34286 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
34287 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
34288 -maltivec=be with LE targets.
34289 (vsx_mergeh_<mode>): Likewise.
34290 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
34291 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
34292 (altivec_vmrghb): Replace with define_expand and new
34293 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
34294 (altivec_vmrghb_direct): New define_insn.
34295 (altivec_vmrghh): Replace with define_expand and new
34296 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
34297 (altivec_vmrghh_direct): New define_insn.
34298 (altivec_vmrghw): Replace with define_expand and new
34299 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
34300 (altivec_vmrghw_direct): New define_insn.
34301 (*altivec_vmrghsf): Adjust for endianness.
34302 (altivec_vmrglb): Replace with define_expand and new
34303 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
34304 (altivec_vmrglb_direct): New define_insn.
34305 (altivec_vmrglh): Replace with define_expand and new
34306 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
34307 (altivec_vmrglh_direct): New define_insn.
34308 (altivec_vmrglw): Replace with define_expand and new
34309 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
34310 (altivec_vmrglw_direct): New define_insn.
34311 (*altivec_vmrglsf): Adjust for endianness.
34312 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34313 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34314 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34315 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34316 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34317 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34318 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34319 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34321 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
34323 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
34324 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
34327 2014-01-29 Richard Biener <rguenther@suse.de>
34329 PR tree-optimization/58742
34330 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
34331 associate_pointerplus_align.
34332 (associate_pointerplus_diff): New function.
34333 (associate_pointerplus): Likewise. Call associate_pointerplus_align
34334 and associate_pointerplus_diff.
34336 2014-01-29 Richard Biener <rguenther@suse.de>
34338 * lto-streamer.h (LTO_major_version): Bump to 3.
34339 (LTO_minor_version): Reset to 0.
34341 2014-01-29 Renlin Li <Renlin.Li@arm.com>
34343 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
34344 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
34345 (arm_file_start): Generate correct asm header for armv7ve.
34346 * config/arm/bpabi.h: Add multilib support for armv7ve.
34347 * config/arm/driver-arm.c: Change the architectures of cortex-a7
34348 and cortex-a15 to armv7ve.
34349 * config/arm/t-aprofile: Add multilib support for armv7ve.
34350 * doc/invoke.texi: Document -march=armv7ve.
34352 2014-01-29 Richard Biener <rguenther@suse.de>
34354 PR tree-optimization/58742
34355 * tree-ssa-forwprop.c (associate_plusminus): Return true
34356 if we changed sth, defer EH cleanup to ...
34357 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
34358 (simplify_mult): New function.
34360 2014-01-29 Jakub Jelinek <jakub@redhat.com>
34362 PR middle-end/59917
34363 PR tree-optimization/59920
34364 * tree.c (build_common_builtin_nodes): Remove
34365 __builtin_setjmp_dispatcher initialization.
34366 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
34367 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
34368 instead of gsi_after_labels + manually skipping debug stmts.
34369 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
34370 ignore bbs with IFN_ABNORMAL_DISPATCHER.
34371 * tree-inline.c (copy_edges_for_bb): Remove
34372 can_make_abnormal_goto argument, instead add abnormal_goto_dest
34373 argument. Ignore computed_goto_p stmts. Don't call
34374 make_abnormal_goto_edges. If a call might need abnormal edges
34375 for non-local gotos, see if it already has an edge to
34376 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
34377 with true argument, don't do anything then, otherwise add
34378 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
34379 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
34381 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
34382 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
34383 (lower_stmt): Don't set data->calls_builtin_setjmp.
34384 (lower_builtin_setjmp): Adjust comment.
34385 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
34386 * tree-cfg.c (found_computed_goto): Remove.
34387 (factor_computed_gotos): Remove.
34388 (make_goto_expr_edges): Return bool, true for computed gotos.
34389 Don't call make_abnormal_goto_edges.
34390 (build_gimple_cfg): Don't set found_computed_goto, don't call
34391 factor_computed_gotos.
34392 (computed_goto_p): No longer static.
34393 (make_blocks): Don't set found_computed_goto.
34394 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
34395 (make_edges): If make_goto_expr_edges returns true, push bb
34396 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
34397 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
34398 vector. Record mapping between bbs and OpenMP regions if there
34399 are any, adjust make_gimple_omp_edges caller. Call
34400 handle_abnormal_edges.
34401 (make_abnormal_goto_edges): Remove.
34402 * tree-cfg.h (make_abnormal_goto_edges): Remove.
34403 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
34404 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
34405 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
34406 * internal-fn.def (ABNORMAL_DISPATCHER): New.
34407 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
34408 filling *region also set *region_idx to (*region)->entry->index.
34411 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34412 For REGs set ORIGINAL_REGNO.
34414 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
34416 * doc/md.texi: Mention that a target shouldn't implement
34417 vec_widen_(s|u)mul_even/odd pair if it is less efficient
34420 2014-01-29 Jakub Jelinek <jakub@redhat.com>
34422 PR tree-optimization/59594
34423 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34424 a copy of the datarefs vector rather than the vector itself.
34426 2014-01-28 Jason Merrill <jason@redhat.com>
34429 * dwarf2out.c (auto_die): New static.
34430 (gen_type_die_with_usage): Handle C++1y 'auto'.
34431 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34434 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
34437 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34438 (SPEC_X32): Likewise.
34439 (SPEC_64): Likewise.
34440 * config/i386/i386.c (ix86_option_override_internal): Turn off
34441 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34443 (x86_file_start): Output .code16gcc for TARGET_16BIT.
34444 * config/i386/i386.h (TARGET_16BIT): New macro.
34445 (TARGET_16BIT_P): Likewise.
34446 * config/i386/i386.opt: Add m16.
34447 * doc/invoke.texi: Document -m16.
34449 2014-01-28 Jakub Jelinek <jakub@redhat.com>
34451 PR preprocessor/59935
34452 * input.c (location_get_source_line): Bail out on when line number
34453 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34455 2014-01-28 Richard Biener <rguenther@suse.de>
34457 PR tree-optimization/58742
34458 * tree-ssa-forwprop.c (associate_plusminus): Handle
34459 pointer subtraction of the form (T)(P + A) - (T)P.
34461 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34463 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34466 2014-01-28 Richard Biener <rguenther@suse.de>
34469 2014-01-28 Richard Biener <rguenther@suse.de>
34471 PR rtl-optimization/45364
34472 PR rtl-optimization/59890
34473 * var-tracking.c (local_get_addr_clear_given_value): Handle
34474 already cleared slot.
34475 (val_reset): Handle not allocated local_get_addr_cache.
34476 (vt_find_locations): Use post-order on the inverted CFG.
34478 2014-01-28 Richard Biener <rguenther@suse.de>
34480 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34482 2014-01-28 Richard Biener <rguenther@suse.de>
34484 PR rtl-optimization/45364
34485 PR rtl-optimization/59890
34486 * var-tracking.c (local_get_addr_clear_given_value): Handle
34487 already cleared slot.
34488 (val_reset): Handle not allocated local_get_addr_cache.
34489 (vt_find_locations): Use post-order on the inverted CFG.
34491 2014-01-28 Alan Modra <amodra@gmail.com>
34493 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34494 * configure.ac <recursive call for build != host>: Define
34495 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34496 and LD_FOR_BUILD too.
34497 * configure: Regenerate.
34499 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
34501 * config/i386/i386.c (get_builtin_code_for_version): Separate
34502 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34503 Broadwell from Haswell.
34505 2014-01-27 Steve Ellcey <sellcey@mips.com>
34507 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34508 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34509 * config/mips/mips.c (mips_option_override): Change setting
34511 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34512 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34513 Change from Mask to Var.
34515 2014-01-27 Jeff Law <law@redhat.com>
34517 * ipa-inline.c (inline_small_functions): Fix typo.
34519 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
34521 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34522 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34523 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34524 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34525 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34526 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34527 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34528 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34529 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34530 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34531 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34532 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34533 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34534 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34535 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34536 (_mm512_storeu_epi64): Ditto.
34537 (_mm512_cmpge_epi32_mask): Ditto.
34538 (_mm512_cmpge_epu32_mask): Ditto.
34539 (_mm512_cmpge_epi64_mask): Ditto.
34540 (_mm512_cmpge_epu64_mask): Ditto.
34541 (_mm512_cmple_epi32_mask): Ditto.
34542 (_mm512_cmple_epu32_mask): Ditto.
34543 (_mm512_cmple_epi64_mask): Ditto.
34544 (_mm512_cmple_epu64_mask): Ditto.
34545 (_mm512_cmplt_epi32_mask): Ditto.
34546 (_mm512_cmplt_epu32_mask): Ditto.
34547 (_mm512_cmplt_epi64_mask): Ditto.
34548 (_mm512_cmplt_epu64_mask): Ditto.
34549 (_mm512_cmpneq_epi32_mask): Ditto.
34550 (_mm512_cmpneq_epu32_mask): Ditto.
34551 (_mm512_cmpneq_epi64_mask): Ditto.
34552 (_mm512_cmpneq_epu64_mask): Ditto.
34553 (_mm512_expand_pd): Ditto.
34554 (_mm512_expand_ps): Ditto.
34555 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34556 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34557 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34558 * config/i386/i386.c (ix86_builtins): Add
34559 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34560 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34561 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34562 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34563 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34564 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34565 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34566 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34567 IX86_BUILTIN_PMOVUSQW512_MEM.
34568 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34569 __builtin_ia32_pmovsqd512mem_mask,
34570 __builtin_ia32_pmovqd512mem_mask,
34571 __builtin_ia32_pmovusqw512mem_mask,
34572 __builtin_ia32_pmovsqw512mem_mask,
34573 __builtin_ia32_pmovqw512mem_mask,
34574 __builtin_ia32_pmovusdw512mem_mask,
34575 __builtin_ia32_pmovsdw512mem_mask,
34576 __builtin_ia32_pmovdw512mem_mask,
34577 __builtin_ia32_pmovqb512mem_mask,
34578 __builtin_ia32_pmovusqb512mem_mask,
34579 __builtin_ia32_pmovsqb512mem_mask,
34580 __builtin_ia32_pmovusdb512mem_mask,
34581 __builtin_ia32_pmovsdb512mem_mask,
34582 __builtin_ia32_pmovdb512mem_mask.
34583 (bdesc_args): Add __builtin_ia32_expanddf512,
34584 __builtin_ia32_expandsf512.
34585 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34586 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34587 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34588 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34589 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34590 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34591 (avx512f_<code>v8div16qi2_mask_store): This.
34592 (avx512f_expand<mode>): New.
34594 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
34596 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34598 (_mm512_mask_prefetch_i64gather_pd): Ditto.
34599 (_mm512_prefetch_i32scatter_pd): Ditto.
34600 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34601 (_mm512_prefetch_i64scatter_pd): Ditto.
34602 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34603 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34604 (_mm512_mask_prefetch_i64gather_ps): Ditto.
34605 (_mm512_prefetch_i32scatter_ps): Ditto.
34606 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34607 (_mm512_prefetch_i64scatter_ps): Ditto.
34608 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34609 * config/i386/i386-builtin-types.def: Define
34610 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34611 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34612 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34613 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34614 IX86_BUILTIN_SCATTERPFQPD.
34615 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34616 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34617 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34618 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34619 __builtin_ia32_scatterpfqps.
34620 (ix86_expand_builtin): Expand new built-ins.
34621 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34622 fix memory access data type.
34623 (*avx512pf_gatherpf<mode>_mask): Ditto.
34624 (*avx512pf_gatherpf<mode>): Ditto.
34625 (avx512pf_scatterpf<mode>): Ditto.
34626 (*avx512pf_scatterpf<mode>_mask): Ditto.
34627 (*avx512pf_scatterpf<mode>): Ditto.
34628 (GATHER_SCATTER_SF_MEM_MODE): New.
34629 (avx512pf_gatherpf<mode>df): Ditto.
34630 (*avx512pf_gatherpf<mode>df_mask): Ditto.
34631 (*avx512pf_scatterpf<mode>df): Ditto.
34633 2014-01-27 Jakub Jelinek <jakub@redhat.com>
34636 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34637 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34640 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34642 * common/config/arm/arm-common.c
34643 (arm_rewrite_mcpu): Handle multiple names.
34645 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34647 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
34649 * gimple-builder.h (create_gimple_tmp): Delete.
34651 2014-01-27 Christian Bruel <christian.bruel@st.com>
34653 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34656 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
34658 * config/pa/pa.md (call): Generate indirect long calls to non-local
34659 functions when outputing 32-bit code.
34660 (call_value): Likewise except for special call to buggy powf function.
34662 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34663 portable runtime and PIC indirect calls.
34664 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34665 and PIC call sequences. Use ldo instead of blr to set return register
34666 in PIC call sequence.
34668 2014-01-25 Walter Lee <walt@tilera.com>
34670 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34671 avoid clobbering a live register.
34673 2014-01-25 Walter Lee <walt@tilera.com>
34675 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34676 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34677 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34678 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34680 2014-01-25 Walter Lee <walt@tilera.com>
34682 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34683 arguments on even registers.
34684 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34686 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34687 (BIGGEST_ALIGNMENT): Ditto.
34688 (BIGGEST_FIELD_ALIGNMENT): Ditto.
34690 2014-01-25 Walter Lee <walt@tilera.com>
34692 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34693 insns before bundling.
34694 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34696 2014-01-25 Walter Lee <walt@tilera.com>
34698 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34699 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34700 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34702 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34704 * config/mips/constraints.md (kl): Delete.
34705 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34706 define expands, using...
34707 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34708 instructions for MIPS16.
34709 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34710 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34712 2014-01-25 Walter Lee <walt@tilera.com>
34714 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34718 2014-01-25 Walter Lee <walt@tilera.com>
34720 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34721 (TARGET_EXPAND_TO_RTL_HOOK): Define.
34723 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
34725 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34728 2014-01-25 Jakub Jelinek <jakub@redhat.com>
34730 * print-rtl.c (in_call_function_usage): New var.
34731 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34732 EXPR_LIST mode as mode and not as reg note name.
34734 PR middle-end/59561
34735 * cfgloopmanip.c (copy_loop_info): If
34736 loop->warned_aggressive_loop_optimizations, make sure
34737 the flag is set in target loop too.
34739 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
34741 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34743 * builtins.def: Likewise.
34744 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34745 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34746 * ira.c (ira_setup_eliminable_regset): Likewise.
34747 * omp-low.c (gate_expand_omp): Likewise.
34748 (execute_lower_omp): Likewise.
34749 (diagnose_sb_0): Likewise.
34750 (gate_diagnose_omp_blocks): Likewise.
34751 (simd_clone_clauses_extract): Likewise.
34754 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
34756 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34757 correction for little endian...
34758 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34761 2014-01-24 Jeff Law <law@redhat.com>
34763 PR tree-optimization/59919
34764 * tree-vrp.c (find_assert_locations_1): Do not register asserts
34765 for non-returning calls.
34767 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
34769 * common/config/aarch64/aarch64-common.c
34770 (aarch64_rewrite_mcpu): Handle multiple names.
34771 * config/aarch64/aarch64.h
34772 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34774 2014-01-24 Dodji Seketeli <dodji@redhat.com>
34776 * input.c (add_file_to_cache_tab): Handle the case where fopen
34779 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
34782 * config/i386/i386.md (pushsf splitter): Get stack adjustment
34783 from push operand if code of push isn't PRE_DEC.
34785 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
34788 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34789 -mquad-memory-atomic. Update -mquad-memory documentation to say
34790 it is only used for non-atomic loads/stores.
34792 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34793 -mquad-memory or -mquad-memory-atomic switches.
34795 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34796 -mquad-memory-atomic to ISA 2.07 support.
34798 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34799 to separate support of normal quad word memory operations (ldq, stq)
34800 from the atomic quad word memory operations.
34802 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34803 support to separate non-atomic quad word operations from atomic
34804 quad word operations. Disable non-atomic quad word operations in
34805 little endian mode so that we don't have to swap words after the
34806 load and before the store.
34807 (quad_load_store_p): Add comment about atomic quad word support.
34808 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34809 options printed with -mdebug=reg.
34811 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34812 -mquad-memory-atomic as the test for whether we have quad word
34813 atomic instructions.
34814 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34815 or -mp8-vector are used, allow byte/half-word atomic operations.
34817 * config/rs6000/sync.md (load_lockedti): Insure that the address
34818 is a proper indexed or indirect address for the lqarx instruction.
34819 On little endian systems, swap the hi/lo registers after the lqarx
34821 (load_lockedpti): Use indexed_or_indirect_operand predicate to
34822 insure the address is valid for the lqarx instruction.
34823 (store_conditionalti): Insure that the address is a proper indexed
34824 or indirect address for the stqcrx. instruction. On little endian
34825 systems, swap the hi/lo registers before doing the stqcrx.
34827 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34828 insure the address is valid for the stqcrx. instruction.
34830 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34831 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34832 type of quad memory support is available.
34834 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
34836 PR regression/59915
34837 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34838 there is a danger of looping.
34840 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
34842 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34843 force flag_ira_loop_pressure if set via command line.
34845 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34847 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34848 (ashr_simd): New builtin handling DI mode.
34849 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34850 (aarch64_sshr_simddi): New match pattern.
34851 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34852 (vshrd_n_s64): Likewise.
34853 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34855 2014-01-23 Nick Clifton <nickc@redhat.com>
34857 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34858 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34859 favour of mcu specific scripts.
34860 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34863 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34864 Alex Velenko <Alex.Velenko@arm.com>
34866 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34867 (vaddv_s16): Likewise.
34868 (vaddv_s32): Likewise.
34869 (vaddv_u8): Likewise.
34870 (vaddv_u16): Likewise.
34871 (vaddv_u32): Likewise.
34872 (vaddvq_s8): Likewise.
34873 (vaddvq_s16): Likewise.
34874 (vaddvq_s32): Likewise.
34875 (vaddvq_s64): Likewise.
34876 (vaddvq_u8): Likewise.
34877 (vaddvq_u16): Likewise.
34878 (vaddvq_u32): Likewise.
34879 (vaddvq_u64): Likewise.
34880 (vaddv_f32): Likewise.
34881 (vaddvq_f32): Likewise.
34882 (vaddvq_f64): Likewise.
34883 (vmaxv_f32): Likewise.
34884 (vmaxv_s8): Likewise.
34885 (vmaxv_s16): Likewise.
34886 (vmaxv_s32): Likewise.
34887 (vmaxv_u8): Likewise.
34888 (vmaxv_u16): Likewise.
34889 (vmaxv_u32): Likewise.
34890 (vmaxvq_f32): Likewise.
34891 (vmaxvq_f64): Likewise.
34892 (vmaxvq_s8): Likewise.
34893 (vmaxvq_s16): Likewise.
34894 (vmaxvq_s32): Likewise.
34895 (vmaxvq_u8): Likewise.
34896 (vmaxvq_u16): Likewise.
34897 (vmaxvq_u32): Likewise.
34898 (vmaxnmv_f32): Likewise.
34899 (vmaxnmvq_f32): Likewise.
34900 (vmaxnmvq_f64): Likewise.
34901 (vminv_f32): Likewise.
34902 (vminv_s8): Likewise.
34903 (vminv_s16): Likewise.
34904 (vminv_s32): Likewise.
34905 (vminv_u8): Likewise.
34906 (vminv_u16): Likewise.
34907 (vminv_u32): Likewise.
34908 (vminvq_f32): Likewise.
34909 (vminvq_f64): Likewise.
34910 (vminvq_s8): Likewise.
34911 (vminvq_s16): Likewise.
34912 (vminvq_s32): Likewise.
34913 (vminvq_u8): Likewise.
34914 (vminvq_u16): Likewise.
34915 (vminvq_u32): Likewise.
34916 (vminnmv_f32): Likewise.
34917 (vminnmvq_f32): Likewise.
34918 (vminnmvq_f64): Likewise.
34920 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
34922 * config/aarch64/aarch64-simd.md
34923 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34924 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34925 (*aarch64_mul3_elt<mode>): Likewise.
34926 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34927 (*aarch64_mul3_elt_to_64v2df): Likewise.
34928 (*aarch64_mla_elt<mode>): Likewise.
34929 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34930 (*aarch64_mls_elt<mode>): Likewise.
34931 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34932 (*aarch64_fma4_elt<mode>): Likewise.
34933 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34934 (*aarch64_fma4_elt_to_64v2df): Likewise.
34935 (*aarch64_fnma4_elt<mode>): Likewise.
34936 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34937 (*aarch64_fnma4_elt_to_64v2df): Likewise.
34938 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34939 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34940 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34941 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34942 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34943 (aarch64_sqdmull_lane<mode>_internal): Likewise.
34944 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34946 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
34948 * config/aarch64/aarch64-simd.md
34949 (aarch64_be_checked_get_lane<mode>): New define_expand.
34950 * config/aarch64/aarch64-simd-builtins.def
34951 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34952 New builtin definition.
34953 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34954 Use new safe be builtin.
34956 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
34958 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34960 (aarch64_be_st1<mode>): Likewise.
34961 (aarch_ld1<VALL:mode>): Define_expand modified.
34962 (aarch_st1<VALL:mode>): Likewise.
34963 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34964 (UNSPEC_ST1): Likewise.
34966 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
34968 * config/microblaze/microblaze.md: Add trap insn and attribute
34970 2014-01-23 Dodji Seketeli <dodji@redhat.com>
34972 PR preprocessor/58580
34973 * input.h (location_get_source_line): Take an additional line_size
34975 (void diagnostics_file_cache_fini): Declare new function.
34976 * input.c (struct fcache): New type.
34977 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34978 New static constants.
34979 (diagnostic_file_cache_init, total_lines_num)
34980 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34981 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34982 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34983 (get_next_line, read_next_line, goto_next_line, read_line_num):
34984 New static function definitions.
34985 (diagnostic_file_cache_fini): New function.
34986 (location_get_source_line): Take an additional output line_len
34987 parameter. Re-write using lookup_or_add_file_to_cache_tab and
34989 * diagnostic.c (diagnostic_finish): Call
34990 diagnostic_file_cache_fini.
34991 (adjust_line): Take an additional input parameter for the length
34992 of the line, rather than calculating it with strlen.
34993 (diagnostic_show_locus): Adjust the use of
34994 location_get_source_line and adjust_line with respect to their new
34995 signature. While displaying a line now, do not stop at the first
34996 null byte. Rather, display the zero byte as a space and keep
34997 going until we reach the size of the line.
34998 * Makefile.in: Add vec.o to OBJS-libcommon
35000 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
35001 Ilya Tocar <ilya.tocar@intel.com>
35003 * config/i386/avx512fintrin.h (_mm512_kmov): New.
35004 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
35005 (__builtin_ia32_kmov16): Ditto.
35006 * config/i386/i386.md (UNSPEC_KMOV): New.
35009 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
35011 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
35012 (_mm512_storeu_si512): Ditto.
35014 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
35017 * rtl.h (get_referenced_operands): Declare.
35018 * recog.c (get_referenced_operands): New function.
35019 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
35020 operands have been referenced when recording LO_SUM references.
35022 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
35024 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
35026 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
35028 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
35029 Enable for generic and recent AMD targets.
35031 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
35033 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
35034 ARG_SIZE note when adjustment was eliminated.
35036 2014-01-22 Jeff Law <law@redhat.com>
35038 PR tree-optimization/59597
35039 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
35040 in file. Accept new argument REGISTERING and use it to modify
35041 dump output appropriately.
35042 (register_jump_thread): Corresponding changes.
35043 (mark_threaded_blocks): Reinstate code to cancel unprofitable
35044 thread paths involving joiner blocks. Add code to dump cancelled
35045 jump threading paths.
35047 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
35049 PR rtl-optimization/59477
35050 * lra-constraints.c (inherit_in_ebb): Process call for living hard
35051 regs. Update reloads_num and potential_reload_hard_regs for all insns.
35053 2014-01-22 Tom Tromey <tromey@redhat.com>
35055 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
35057 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
35059 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
35061 PR rtl-optimization/59896
35062 * lra-constraints.c (process_alt_operands): Check unused note for
35063 matched operands of insn with no output reloads.
35065 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
35067 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
35068 (mips_move_from_gpr_cost): Likewise.
35070 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
35072 PR rtl-optimization/59858
35073 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
35074 ira_class_hard_regs_num.
35075 (process_alt_operands): Increase reject for dying matched operand.
35077 2014-01-21 Jakub Jelinek <jakub@redhat.com>
35080 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
35081 smaller than size, perform several stores or loads and stores
35082 at dst + count - size to store or copy all of size bytes, rather
35083 than just last modesize bytes.
35085 2014-01-20 DJ Delorie <dj@redhat.com>
35087 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
35088 that CLOBBERs are REGs before propogating their values.
35090 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
35092 PR middle-end/59789
35093 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
35094 (cgraph_inline_failed_type): New function.
35095 * cgraph.h (DEFCIFCODE): Add type.
35096 (cgraph_inline_failed_type_t): New enum.
35097 (cgraph_inline_failed_type): New prototype.
35098 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
35099 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35100 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
35101 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
35102 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
35103 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
35104 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
35105 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
35106 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
35107 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
35108 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
35109 OPTIMIZATION_MISMATCH.
35110 * tree-inline.c (expand_call_inline): Emit errors during
35111 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
35113 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
35116 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
35117 mode attribute in insn output.
35119 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
35121 * output.h (output_constant): Delete.
35122 * varasm.c (output_constant): Make private.
35124 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
35126 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
35128 2014-01-20 Jakub Jelinek <jakub@redhat.com>
35130 PR middle-end/59860
35131 * tree.h (fold_builtin_strcat): New prototype.
35132 * builtins.c (fold_builtin_strcat): No longer static. Add len
35133 argument, if non-NULL, don't call c_strlen. Optimize
35134 directly into __builtin_memcpy instead of __builtin_strcpy.
35135 (fold_builtin_2): Adjust fold_builtin_strcat caller.
35136 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
35138 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
35140 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35141 for SImode_address_operand operands, having only a REG argument.
35143 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
35145 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
35146 loader name using mbig-endian.
35147 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
35149 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
35151 * doc/invoke.texi (-march): Clarify documentation for AArch64.
35152 (-mtune): Likewise.
35155 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
35157 * config/aarch64/aarch64-protos.h
35158 (aarch64_cannot_change_mode_class_ptr): Declare.
35159 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
35160 aarch64_cannot_change_mode_class_ptr): New.
35161 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
35162 backend hook aarch64_cannot_change_mode_class.
35164 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
35166 * common/config/aarch64/aarch64-common.c
35167 (aarch64_handle_option): Don't handle any option order logic here.
35168 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
35169 selected_cpu, warn on architecture version mismatch.
35170 (aarch64_override_options): Fix parsing order for option strings.
35172 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35173 Iain Sandoe <iain@codesourcery.com>
35176 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
35177 warning. Amend comment to reflect current functionality.
35179 2014-01-20 Richard Biener <rguenther@suse.de>
35181 PR middle-end/59860
35182 * builtins.c (fold_builtin_strcat): Remove case better handled
35183 by tree-ssa-strlen.c.
35185 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
35187 * config/aarch64/aarch64.opt
35188 (mcpu, march, mtune): Make case-insensitive.
35190 2014-01-20 Jakub Jelinek <jakub@redhat.com>
35193 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35194 if operands[1] is a REG or ZERO_EXTEND of a REG.
35196 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
35198 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
35200 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
35202 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
35203 long non-pic millicode calls.
35205 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
35207 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
35209 2014-01-19 Kito Cheng <kito@0xlab.org>
35211 * builtins.c (expand_movstr): Check movstr expand done or fail.
35213 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
35214 H.J. Lu <hongjiu.lu@intel.com>
35217 * config/i386/i386.md (*lea<mode>): Zero-extend return register
35218 to DImode for zero-extended addresses.
35220 2014-01-19 Jakub Jelinek <jakub@redhat.com>
35222 PR rtl-optimization/57763
35223 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
35224 on the new indirect jump_insn and increment LABEL_NUSES (label).
35226 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
35230 * config.gcc (x86_archs): New variable.
35231 (x86_64_archs): Likewise.
35232 (x86_cpus): Likewise.
35233 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
35234 --with-arch/--with-cpu= options.
35235 Support --with-arch=/--with-cpu={nehalem,westmere,
35236 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
35238 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
35240 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
35241 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
35243 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
35245 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
35247 2014-01-18 Jakub Jelinek <jakub@redhat.com>
35250 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
35251 clear cpp_get_options (parse_in)->warn_unused_macros for
35252 ix86_target_macros_internal with cpp_define.
35254 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
35256 * jump.c (delete_related_insns): Keep (use (insn))s.
35257 * reorg.c (redundant_insn): Check for barriers too.
35259 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
35261 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
35263 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
35265 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
35266 call to $$dyncall when TARGET_LONG_CALLS is true.
35268 2014-01-17 Jeff Law <law@redhat.com>
35270 * ree.c (combine_set_extension): Temporarily disable test for
35271 changing number of hard registers.
35273 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
35275 PR middle-end/58125
35276 * ipa-inline-analysis.c (inline_free_summary):
35277 Do not free summary of aliases.
35279 2014-01-17 Jakub Jelinek <jakub@redhat.com>
35281 PR middle-end/59706
35282 * gimplify.c (gimplify_expr): Use create_tmp_var
35283 instead of create_tmp_var_raw. If cond doesn't have
35284 integral type, don't add the IFN_ANNOTATE builtin at all.
35286 2014-01-17 Martin Jambor <mjambor@suse.cz>
35289 * ipa-cp.c (prev_edge_clone): New variable.
35290 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
35291 Also resize prev_edge_clone vector.
35292 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
35293 (ipcp_edge_removal_hook): New function.
35294 (ipcp_driver): Register ipcp_edge_removal_hook.
35296 2014-01-17 Andrew Pinski <apinski@cavium.com>
35297 Steve Ellcey <sellcey@mips.com>
35300 * config/mips/mips.c (mips_print_operand): Check operand mode instead
35303 2014-01-17 Jeff Law <law@redhat.com>
35305 PR middle-end/57904
35306 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
35307 so that pass_ccp runs first.
35309 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
35311 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
35312 (ix86_adjust_cost): Use !TARGET_XXX.
35313 (do_reorder_for_imul): Likewise.
35314 (swap_top_of_ready_list): Likewise.
35315 (ix86_sched_reorder): Likewise.
35317 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
35319 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35320 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
35321 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
35322 (intel_memset): New. Duplicate slm_memset.
35323 (intel_cost): New. Duplicate slm_cost.
35324 (m_INTEL): New macro.
35325 (processor_target_table): Add "intel".
35326 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
35327 with PROCESSOR_INTEL for "intel".
35328 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
35329 PROCESSOR_SILVERMONT.
35330 (ix86_issue_rate): Likewise.
35331 (ix86_adjust_cost): Likewise.
35332 (ia32_multipass_dfa_lookahead): Likewise.
35333 (swap_top_of_ready_list): Likewise.
35334 (ix86_sched_reorder): Likewise.
35335 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
35336 instead of TARGET_OPT_AGU.
35337 * config/i386/i386.h (TARGET_INTEL): New.
35338 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
35339 (processor_type): Add PROCESSOR_INTEL.
35340 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
35341 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
35343 2014-01-17 Marek Polacek <polacek@redhat.com>
35346 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
35349 2014-01-17 Richard Biener <rguenther@suse.de>
35351 PR tree-optimization/46590
35352 * opts.c (default_options_table): Add entries for
35353 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
35354 all enabled at -O1 but not for -Og.
35355 * common.opt (fbranch-count-reg): Remove Init(1).
35356 (fmove-loop-invariants): Likewise.
35357 (ftree-pta): Likewise.
35359 2014-01-17 Jakub Jelinek <jakub@redhat.com>
35361 * config/i386/i386.c (ix86_data_alignment): For compatibility with
35362 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
35363 decls to at least the GCC 4.8 used alignments.
35366 * tree-nested.c (convert_nonlocal_reference_stmt,
35367 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
35368 of GIMPLE_BIND stmts, adjust associated decls.
35370 2014-01-17 Richard Biener <rguenther@suse.de>
35372 PR tree-optimization/46590
35373 * vec.h (vec<>::bseach): New member function implementing
35374 binary search according to C89 bsearch.
35375 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
35376 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
35377 bitmap pointer again. Make accesses_in_loop a flat array.
35378 (mem_ref_obstack): New global.
35379 (outermost_indep_loop): Adjust for mem_ref->stored changes.
35380 (mark_ref_stored): Likewise.
35381 (ref_indep_loop_p_2): Likewise.
35382 (set_ref_stored_in_loop): New helper function.
35383 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
35384 (memref_free): Adjust.
35385 (record_mem_ref_loc): Simplify.
35386 (gather_mem_refs_stmt): Adjust.
35387 (sort_locs_in_loop_postorder_cmp): New function.
35388 (analyze_memory_references): Sort accesses_in_loop after
35389 loop postorder number.
35390 (find_ref_loc_in_loop_cmp): New function.
35391 (for_all_locs_in_loop): Find relevant cluster of locs in
35392 accesses_in_loop and iterate without recursion.
35393 (execute_sm): Avoid uninit warning.
35394 (struct ref_always_accessed): Simplify.
35395 (ref_always_accessed::operator ()): Likewise.
35396 (ref_always_accessed_p): Likewise.
35397 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
35398 loop postorder numbers here.
35399 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
35402 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
35405 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
35406 on decls for which assemble_alias has been called.
35408 2014-01-17 Nick Clifton <nickc@redhat.com>
35410 * config/msp430/msp430.opt: (mcpu): New option.
35411 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35412 (msp430_option_override): Parse target_cpu. If the MCU name
35413 matches a generic string, clear target_mcu.
35414 (msp430_attr): Allow numeric interrupt values up to 63.
35415 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35416 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35418 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35420 * config/msp430/msp430.md (popm): Use %J rather than %I.
35421 (addsi3): Use msp430_nonimmediate_operand for operand 2.
35422 (addhi_cy_i): Use immediate_operand for operand 2.
35423 * doc/invoke.texi: Document -mcpu option.
35425 2014-01-17 Richard Biener <rguenther@suse.de>
35427 PR rtl-optimization/38518
35428 * df.h (df_analyze_loop): Declare.
35429 * df-core.c: Include cfgloop.h.
35430 (df_analyze_1): Split out main part of df_analyze.
35431 (df_analyze): Adjust.
35432 (loop_inverted_post_order_compute): New function.
35433 (loop_post_order_compute): Likewise.
35434 (df_analyze_loop): New function avoiding whole-function
35435 postorder computes.
35436 * loop-invariant.c (find_defs): Use df_analyze_loop.
35437 (find_invariants): Adjust.
35438 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35440 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
35442 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35443 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35445 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35447 * ipa-ref.c (ipa_remove_stmt_references): Fix references
35448 traversal when removing references.
35450 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
35453 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35455 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
35457 PR middle-end/56791
35458 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35459 pushing a reload for an autoinc when we had previously reloaded an
35460 inner part of the address.
35462 2014-01-16 Jakub Jelinek <jakub@redhat.com>
35464 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35466 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35467 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35468 when not giving up or versioning for alias only because of
35470 (vect_analyze_data_ref_dependences): Set to true.
35471 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35473 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35474 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35477 PR middle-end/58344
35478 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35481 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35482 operand 0 predicate for gathers, use a new pseudo as subtarget.
35484 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
35486 PR middle-end/59609
35487 * lra-constraints.c (process_alt_operands): Add printing debug info.
35488 Check absence of input/output reloads for matched operands too.
35490 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
35492 PR rtl-optimization/59835
35493 * ira.c (ira_init_register_move_cost): Increase cost for
35496 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
35498 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35500 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
35503 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35504 non-register objects. Use gen_(high/low)part more consistently.
35507 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
35510 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35511 endian support, remove tests for WORDS_BIG_ENDIAN.
35512 (p8_mfvsrd_3_<mode>): Likewise.
35513 (reload_gpr_from_vsx<mode>): Likewise.
35514 (reload_gpr_from_vsxsf): Likewise.
35515 (p8_mfvsrd_4_disf): Likewise.
35517 2014-01-16 Richard Biener <rguenther@suse.de>
35519 PR rtl-optimization/46590
35520 * lcm.c (compute_antinout_edge): Use postorder iteration.
35521 (compute_laterin): Use inverted postorder iteration.
35523 2014-01-16 Nick Clifton <nickc@redhat.com>
35525 PR middle-end/28865
35526 * varasm.c (output_constant): Return the number of bytes actually
35528 (output_constructor_array_range): Update the field size with the
35529 number of bytes emitted by output_constant.
35530 (output_constructor_regular_field): Likewise. Also do not
35531 complain if the total number of bytes emitted is now greater
35532 than the expected fieldpos.
35533 * output.h (output_constant): Update prototype and descriptive comment.
35535 2014-01-16 Marek Polacek <polacek@redhat.com>
35537 PR middle-end/59827
35538 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35539 it is error_mark_node.
35541 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
35543 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35544 VALID_AVX256_REG_OR_OI_MODE.
35546 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
35548 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35549 current procedure should be profiled.
35551 2014-01-15 Andrew Pinski <apinski@cavium.com>
35553 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35554 of moving from/to the STACK_REG register class.
35556 2014-01-15 Richard Henderson <rth@redhat.com>
35559 * reginfo.c (global_regs_decl): Globalize.
35560 * rtl.h (global_regs_decl): Declare.
35561 * ira.c (do_reload): Diagnose frame_pointer_needed and it
35562 reserved via global_regs.
35564 2014-01-15 Teresa Johnson <tejohnson@google.com>
35566 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35568 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
35570 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35571 and vmulosh rather than call gen_vec_widen_smult_*.
35572 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35573 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35574 (vec_widen_smult_even_v16qi): Likewise.
35575 (vec_widen_umult_even_v8hi): Likewise.
35576 (vec_widen_smult_even_v8hi): Likewise.
35577 (vec_widen_umult_odd_v16qi): Likewise.
35578 (vec_widen_smult_odd_v16qi): Likewise.
35579 (vec_widen_umult_odd_v8hi): Likewise.
35580 (vec_widen_smult_odd_v8hi): Likewise.
35581 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35582 vmuloub rather than call gen_vec_widen_umult_*.
35583 (vec_widen_umult_lo_v16qi): Likewise.
35584 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35585 vmulosb rather than call gen_vec_widen_smult_*.
35586 (vec_widen_smult_lo_v16qi): Likewise.
35587 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35588 rather than call gen_vec_widen_umult_*.
35589 (vec_widen_umult_lo_v8hi): Likewise.
35590 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35591 rather than call gen_vec_widen_smult_*.
35592 (vec_widen_smult_lo_v8hi): Likewise.
35594 2014-01-15 Jeff Law <law@redhat.com>
35596 PR tree-optimization/59747
35597 * ree.c (find_and_remove_re): Properly handle case where a second
35598 eliminated extension requires widening a copy created for elimination
35599 of a prior extension.
35600 (combine_set_extension): Ensure that the number of hard regs needed
35601 for a destination register does not change when we widen it.
35603 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
35605 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35606 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35607 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35608 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35609 (avr-*-rtems*): Likewise.
35610 (bfin*-rtems*): Likewise.
35611 (moxie-*-rtems*): Likewise.
35612 (h8300-*-rtems*): Likewise.
35613 (i[34567]86-*-rtems*): Likewise.
35614 (lm32-*-rtems*): Likewise.
35615 (m32r-*-rtems*): Likewise.
35616 (m68k-*-rtems*): Likewise.
35617 (microblaze*-*-rtems*): Likewise.
35618 (mips*-*-rtems*): Likewise.
35619 (powerpc-*-rtems*): Likewise.
35620 (sh-*-rtems*): Likewise.
35621 (sparc-*-rtems*): Likewise.
35622 (sparc64-*-rtems*): Likewise.
35623 (v850-*-rtems*): Likewise.
35624 (m32c-*-rtems*): Likewise.
35626 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
35628 PR rtl-optimization/59511
35629 * ira.c (ira_init_register_move_cost): Use memory costs for some
35630 cases of register move cost calculations.
35631 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35632 instead of BB frequency.
35633 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35634 * lra-assigns.c (find_hard_regno_for): Ditto.
35636 2014-01-15 Richard Biener <rguenther@suse.de>
35638 PR tree-optimization/59822
35639 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35640 (vectorizable_load): Use it to hoist defs of uses of invariant
35641 loads out of the loop.
35643 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
35644 Kugan Vivekanandarajah <kuganv@linaro.org>
35647 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35650 2014-01-15 Richard Biener <rguenther@suse.de>
35652 PR rtl-optimization/59802
35653 * lcm.c (compute_available): Use inverted postorder to seed
35654 the initial worklist.
35656 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35659 * config/s390/s390.c (s390_preferred_reload_class): Don't return
35660 ADDR_REGS for invalid symrefs in non-PIC code.
35662 2014-01-15 Jakub Jelinek <jakub@redhat.com>
35665 * builtins.c (determine_block_size): Initialize *probable_max_size
35666 even if len_rtx is CONST_INT.
35668 2014-01-14 Andrew Pinski <apinski@cavium.com>
35670 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35671 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35672 (cortexa53_tunings): Likewise.
35673 (aarch64_sched_issue_rate): New function.
35674 (TARGET_SCHED_ISSUE_RATE): Define.
35676 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35678 * ira-costs.c (find_costs_and_classes): Add missed
35679 ira_init_register_move_cost_if_necessary.
35681 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
35684 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35686 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
35689 * config/i386/i386.c (type_natural_mode): Add a bool parameter
35690 to indicate if type is used for function return value. Warn ABI
35691 change if the vector mode isn't available for function return value.
35692 (ix86_function_arg_advance): Pass false to type_natural_mode.
35693 (ix86_function_arg): Likewise.
35694 (ix86_gimplify_va_arg): Likewise.
35695 (function_arg_32): Don't warn ABI change.
35696 (ix86_function_value): Pass true to type_natural_mode.
35697 (ix86_return_in_memory): Likewise.
35698 (ix86_struct_value_rtx): Removed.
35699 (TARGET_STRUCT_VALUE_RTX): Likewise.
35701 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
35703 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35704 converting a conditional jump into a conditional return.
35706 2014-01-14 Richard Biener <rguenther@suse.de>
35708 PR tree-optimization/58921
35709 PR tree-optimization/59006
35710 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35711 hoisting invariant stmts.
35712 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35713 invariant loads on the preheader edge if possible.
35715 2014-01-14 Joey Ye <joey.ye@arm.com>
35717 * doc/plugin.texi (Building GCC plugins): Update to C++.
35719 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
35721 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35722 (_mm_rcp28_round_ss): Ditto.
35723 (_mm_rsqrt28_round_sd): Ditto.
35724 (_mm_rsqrt28_round_ss): Ditto.
35725 (_mm_rcp28_sd): Ditto.
35726 (_mm_rcp28_ss): Ditto.
35727 (_mm_rsqrt28_sd): Ditto.
35728 (_mm_rsqrt28_ss): Ditto.
35729 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35730 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35731 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35732 (IX86_BUILTIN_RCP28SD): Ditto.
35733 (IX86_BUILTIN_RCP28SS): Ditto.
35734 (IX86_BUILTIN_RSQRT28SD): Ditto.
35735 (IX86_BUILTIN_RSQRT28SS): Ditto.
35736 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35737 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35738 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35739 (ix86_expand_special_args_builtin): Expand new FTYPE.
35740 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35741 (srcp14<mode>): Make insn unary.
35742 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35743 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35744 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35745 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35746 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35747 Fix rounding: make it SAE only.
35748 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35750 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35752 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35753 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35754 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35755 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35756 (round_saeonly_mask_scalar_operand4): Ditto.
35757 (round_saeonly_mask_scalar_op3): Ditto.
35758 (round_saeonly_mask_scalar_op4): Ditto.
35760 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35762 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35763 Implement -maltivec=be for vec_insert and vec_extract.
35765 2014-01-10 DJ Delorie <dj@redhat.com>
35767 * config/msp430/msp430.md (call_internal): Don't allow memory
35768 references with SP as the base register.
35769 (call_value_internal): Likewise.
35770 * config/msp430/constraints.md (Yc): New. For memory references
35771 that don't use SP as a base register.
35773 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35774 "an integer without a # prefix"
35775 * config/msp430/msp430.md (epilogue_helper): Use it.
35777 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35780 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35781 AVX512F gather builtins.
35782 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35783 on gather decls with INTEGER_TYPE masktype.
35784 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35785 directly into the builtin rather than hoisting it before loop.
35787 PR tree-optimization/59387
35788 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35789 (scev_const_prop): If folded_casts and type has undefined overflow,
35790 use force_gimple_operand instead of force_gimple_operand_gsi and
35791 for each added stmt if it is assign with
35792 arith_code_with_undefined_signed_overflow, call
35793 rewrite_to_defined_overflow.
35794 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35795 gimple-fold.h instead.
35796 (arith_code_with_undefined_signed_overflow,
35797 rewrite_to_defined_overflow): Moved to ...
35798 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35799 rewrite_to_defined_overflow): ... here. No longer static.
35800 Include gimplify-me.h.
35801 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35802 rewrite_to_defined_overflow): New prototypes.
35804 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35806 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35808 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
35810 * builtins.c (get_object_alignment_2): Minor tweak.
35811 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35813 2014-01-13 Christian Bruel <christian.bruel@st.com>
35815 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35816 optimized non constant lengths.
35818 2014-01-13 Jakub Jelinek <jakub@redhat.com>
35821 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35822 load as __atomic_load_N if possible.
35824 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35826 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35828 (rs6000_expand_builtin): Adjust call.
35830 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
35833 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35834 * config/rs6000/rs6000.c: Include target-globals.h.
35835 (rs6000_set_current_function): Instead of doing target_reinit
35836 unconditionally, use save_target_globals_default_opts and
35837 restore_target_globals.
35839 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35841 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35842 (rs6000_expand_builtin): Handle mffs and mtfsf.
35843 (rs6000_init_builtins): Define mffs and mtfsf.
35844 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35845 (rs6000_mffs): New pattern.
35846 (rs6000_mtfsf): New pattern.
35848 2014-01-11 Bin Cheng <bin.cheng@arm.com>
35850 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35851 Start narrowing with START. Apply candidate-use pair
35852 and check overall cost in narrowing.
35853 (iv_ca_prune): Pass new argument.
35855 2014-01-10 Jeff Law <law@redhat.com>
35857 PR middle-end/59743
35858 * ree.c (combine_reaching_defs): Ensure the defining statement
35859 occurs before the extension when optimizing extensions with
35860 different source and destination hard registers.
35862 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35865 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35866 vtables into the type inheritance graph.
35868 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35870 PR rtl-optimization/59754
35871 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35872 modes in the REGNO != REGNO case.
35874 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35876 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35878 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35880 PR tree-optimization/59745
35881 * tree-predcom.c (tree_predictive_commoning_loop): Call
35882 free_affine_expand_cache if giving up because components is NULL.
35884 * target-globals.c (save_target_globals): Allocate < 4KB structs using
35885 GC in payload of target_globals struct instead of allocating them on
35886 the heap and the larger structs separately using GC.
35887 * target-globals.h (struct target_globals): Make regs, hard_regs,
35888 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35889 of GTY((skip)) and change type to void *.
35890 (reset_target_globals): Cast loads from those fields to corresponding
35893 2014-01-10 Steve Ellcey <sellcey@mips.com>
35896 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35897 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35898 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35900 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
35903 * aarch64-modes.def (CC_Zmode): New flags mode.
35904 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35905 represents an equality.
35906 (aarch64_get_condition_code): Handle CC_Zmode.
35907 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35909 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35911 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35912 extraction in good case.
35914 2014-01-10 Richard Biener <rguenther@suse.de>
35916 PR tree-optimization/59374
35917 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35918 checking after SLP discovery. Mark stmts not participating
35919 in any SLP instance properly.
35921 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35923 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35924 when handling a SET rtx.
35926 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35928 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35929 (cortex-a57): Likewise.
35930 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35932 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35934 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35935 non-iwmmxt builtins.
35937 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
35941 * ipa-devirt.c record_target_from_binfo): Take as argument
35942 stack of binfos and lookup matching one for virtual inheritance.
35943 (possible_polymorphic_call_targets_1): Update.
35945 2014-01-10 Huacai Chen <chenhc@lemote.com>
35947 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35948 kernel strings for Loongson-2E/2F/3A.
35950 2014-01-10 Jakub Jelinek <jakub@redhat.com>
35952 PR middle-end/59670
35953 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35954 is_gimple_call before calling gimple_call_internal_p.
35956 2014-01-09 Steve Ellcey <sellcey@mips.com>
35958 * Makefile.in (TREE_FLOW_H): Remove.
35959 (TREE_SSA_H): Add file names from tree-flow.h.
35960 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35961 * tree.h: Remove tree-flow.h reference.
35962 * hash-table.h: Remove tree-flow.h reference.
35963 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35964 reference with tree-ssa-loop.h.
35966 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35968 * doc/invoke.texi: Add -maltivec={be,le} options, and document
35969 default element-order behavior for -maltivec.
35970 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35971 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35972 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35973 when targeting big endian, at least for now.
35974 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35976 2014-01-09 Jakub Jelinek <jakub@redhat.com>
35978 PR middle-end/47735
35979 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35980 var satisfies use_register_for_decl, just take into account type
35981 alignment, rather than decl alignment.
35983 PR tree-optimization/59622
35984 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
35985 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35986 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35987 Don't devirtualize for inplace at all. For targets.length () == 1,
35988 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35990 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35992 * config/i386/i386.md (cpu): Remove the unused btver1.
35994 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
35996 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35998 2014-01-09 Jakub Jelinek <jakub@redhat.com>
36001 * tree-core.h (struct target_globals): New forward declaration.
36002 (struct tree_target_option): Add globals field.
36003 * tree.h (TREE_TARGET_GLOBALS): Define.
36004 (prepare_target_option_nodes_for_pch): New prototype.
36005 * target-globals.h (struct target_globals): Define even if
36006 !SWITCHABLE_TARGET.
36007 * tree.c (prepare_target_option_node_for_pch,
36008 prepare_target_option_nodes_for_pch): New functions.
36009 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
36010 * config/i386/i386.c: Include target-globals.h.
36011 (ix86_set_current_function): Instead of doing target_reinit
36012 unconditionally, use save_target_globals_default_opts and
36013 restore_target_globals.
36015 2014-01-09 Richard Biener <rguenther@suse.de>
36017 PR tree-optimization/59715
36018 * tree-cfg.h (split_critical_edges): Declare.
36019 * tree-cfg.c (split_critical_edges): Export.
36020 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
36022 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
36024 * cfgexpand.c (expand_stack_vars): Optionally disable
36025 asan stack protection.
36026 (expand_used_vars): Likewise.
36027 (partition_stack_vars): Likewise.
36028 * asan.c (asan_emit_stack_protection): Optionally disable
36029 after return stack usage.
36030 (instrument_derefs): Optionally disable memory access instrumentation.
36031 (instrument_builtin_call): Likewise.
36032 (instrument_strlen_call): Likewise.
36033 (asan_protect_global): Optionally disable global variables protection.
36034 * doc/invoke.texi: Added doc for new options.
36035 * params.def: Added new options.
36036 * params.h: Likewise.
36038 2014-01-09 Jakub Jelinek <jakub@redhat.com>
36040 PR rtl-optimization/59724
36041 * ifcvt.c (cond_exec_process_if_block): Don't call
36042 flow_find_head_matching_sequence with 0 longest_match.
36043 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
36044 non-active insns if !stop_after.
36045 (try_head_merge_bb): Revert 2014-01-07 changes.
36047 2014-01-08 Jeff Law <law@redhat.com>
36049 * ree.c (get_sub_rtx): New function, extracted from...
36050 (merge_def_and_ext): Here.
36051 (combine_reaching_defs): Use get_sub_rtx.
36053 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
36055 * cgraph.h (varpool_variable_node): Do not choke on null node.
36057 2014-01-08 Catherine Moore <clm@codesourcery.com>
36059 * config/mips/mips.md (simple_return): Attempt to use JRC
36061 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
36063 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
36065 PR rtl-optimization/59137
36066 * reorg.c (steal_delay_list_from_target): Call update_block for
36068 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
36070 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36072 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
36073 two duplicate entries.
36075 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
36078 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
36080 * config/mips/mips.c (mips_truncated_op_cost): New function.
36081 (mips_rtx_costs): Adjust test for BADDU.
36082 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
36084 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
36086 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
36087 (*baddu_si): ...this new pattern.
36089 2014-01-08 Jakub Jelinek <jakub@redhat.com>
36092 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
36094 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
36096 PR middle-end/57748
36097 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
36099 (expand_expr, expand_normal): Adjust.
36100 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
36101 inner_reference_p. Use inner_reference_p to expand inner references.
36102 (store_expr): Adjust.
36103 * cfgexpand.c (expand_call_stmt): Adjust.
36105 2014-01-08 Rong Xu <xur@google.com>
36107 * gcov-io.c (gcov_var): Move from gcov-io.h.
36108 (gcov_position): Ditto.
36109 (gcov_is_error): Ditto.
36110 (gcov_rewrite): Ditto.
36111 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
36112 only part to libgcc/libgcov.h.
36114 2014-01-08 Marek Polacek <polacek@redhat.com>
36116 PR middle-end/59669
36117 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
36119 2014-01-08 Marek Polacek <polacek@redhat.com>
36122 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
36124 2014-01-08 Jakub Jelinek <jakub@redhat.com>
36126 PR rtl-optimization/59649
36127 * stor-layout.c (get_mode_bounds): For BImode return
36128 0 and STORE_FLAG_VALUE.
36130 2014-01-08 Richard Biener <rguenther@suse.de>
36132 PR middle-end/59630
36133 * gimple.h (is_gimple_builtin_call): Remove.
36134 (gimple_builtin_call_types_compatible_p): New.
36135 (gimple_call_builtin_p): New overload.
36136 * gimple.c (is_gimple_builtin_call): Remove.
36137 (validate_call): Rename to ...
36138 (gimple_builtin_call_types_compatible_p): ... this and export. Also
36139 check return types.
36140 (validate_type): New static function.
36141 (gimple_call_builtin_p): New overload and adjust.
36142 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
36143 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
36144 (gimple_fold_stmt_to_constant_1): Likewise.
36145 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
36147 2014-01-08 Richard Biener <rguenther@suse.de>
36149 PR middle-end/59471
36150 * gimplify.c (gimplify_expr): Gimplify register-register type
36151 VIEW_CONVERT_EXPRs to separate stmts.
36153 2014-01-07 Jeff Law <law@redhat.com>
36155 PR middle-end/53623
36156 * ree.c (combine_set_extension): Handle case where source
36157 and destination registers in an extension insn are different.
36158 (combine_reaching_defs): Allow source and destination registers
36159 in extension to be different under limited circumstances.
36160 (add_removable_extension): Remove restriction that the
36161 source and destination registers in the extension are the same.
36162 (find_and_remove_re): Emit a copy from the extension's
36163 destination to its source after the defining insn if
36164 the source and destination registers are different.
36166 PR middle-end/59285
36167 * ifcvt.c (merge_if_block): If we are merging a block with more than
36168 one successor with a block with no successors, remove any BARRIER
36169 after the second block.
36171 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
36173 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
36175 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
36178 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
36179 for 14-bit register offsets when INT14_OK_STRICT is false.
36181 2014-01-07 Roland Stigge <stigge@antcom.de>
36182 Michael Meissner <meissner@linux.vnet.ibm.com>
36185 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
36186 Only check TFmode for SPE constants. Don't check TImode or TDmode.
36188 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
36190 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
36193 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
36195 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
36196 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
36197 rtx is const0_rtx or not.
36199 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
36202 * target-globals.c (save_target_globals): Remove this_fn_optab
36204 * toplev.c: Include optabs.h.
36205 (target_reinit): Temporarily restore the global options if another
36206 set of options are in force.
36208 2014-01-07 Jakub Jelinek <jakub@redhat.com>
36210 PR rtl-optimization/58668
36211 * cfgcleanup.c (flow_find_cross_jump): Don't count
36212 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
36213 to determine what is counted.
36214 (flow_find_head_matching_sequence): Use active_insn_p to determine
36216 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
36218 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
36219 determine what is counted.
36221 PR tree-optimization/59643
36222 * tree-predcom.c (split_data_refs_to_components): If one dr is
36223 read and one write, determine_offset fails and the write isn't
36224 in the bad component, just put the read into the bad component.
36226 2014-01-07 Mike Stump <mikestump@comcast.net>
36227 Jakub Jelinek <jakub@redhat.com>
36230 * tree-core.h (struct tree_optimization_option): Change optabs
36231 type from unsigned char * to void *.
36232 * optabs.c (init_tree_optimization_optabs): Adjust
36233 TREE_OPTIMIZATION_OPTABS initialization.
36235 2014-01-06 Jakub Jelinek <jakub@redhat.com>
36238 * config/i386/i386.h (struct machine_function): Add
36239 no_drap_save_restore field.
36240 * config/i386/i386.c (ix86_save_reg): Use
36241 !cfun->machine->no_drap_save_restore instead of
36242 crtl->stack_realign_needed.
36243 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
36244 this function clears frame_pointer_needed. Set
36245 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
36246 and DRAP reg is needed.
36248 2014-01-06 Marek Polacek <polacek@redhat.com>
36251 * doc/implement-c.texi: Mention that other integer types are
36252 permitted as bit-field types in strictly conforming mode.
36254 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
36256 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
36257 is newly allocated.
36259 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
36261 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
36263 2014-01-06 Martin Jambor <mjambor@suse.cz>
36266 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
36268 * ipa-prop.c (ipa_print_node_params): Fix indentation.
36270 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
36274 * var-tracking.c (add_stores): Preserve the value of the source even if
36275 we don't record the store.
36277 2014-01-06 Terry Guo <terry.guo@arm.com>
36279 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
36281 2014-01-05 Iain Sandoe <iain@codesourcery.com>
36284 * config/darwin.c (darwin_function_section): Adjust return values to
36285 correspond to optimisation changes made in r206070.
36287 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
36289 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
36290 from prefetch_block tune setting.
36291 (nocona_cost): Correct size of prefetch block to 64.
36293 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
36295 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
36296 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
36297 used to save the static chain register in the computation of the offset
36298 from which the FP registers need to be restored.
36300 2014-01-04 Jakub Jelinek <jakub@redhat.com>
36302 PR tree-optimization/59519
36303 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
36304 ICE if get_current_def (current_new_name) is already non-NULL, as long
36305 as it is a phi result of some other phi in *new_exit_bb that has
36308 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
36309 or vmovdqu* for misaligned_operand.
36310 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
36311 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
36312 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
36313 aligned_mem for AVX512F masked aligned load and store builtins and for
36314 non-temporal moves.
36316 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
36318 PR tree-optimization/59651
36319 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36320 Address range for negative step should be added by TYPE_SIZE_UNIT.
36322 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
36324 * config/m68k/m68k.c (handle_move_double): Handle pushes with
36325 overlapping registers also for registers other than the stack pointer.
36327 2014-01-03 Marek Polacek <polacek@redhat.com>
36330 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
36333 2014-01-03 Jakub Jelinek <jakub@redhat.com>
36336 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
36339 * config/i386/i386.md (MODE_SIZE): New mode attribute.
36340 (push splitter): Use <P:MODE_SIZE> instead of
36341 GET_MODE_SIZE (<P:MODE>mode).
36342 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
36343 (mov -1, reg peephole2): Likewise.
36344 * config/i386/sse.md (*mov<mode>_internal,
36345 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
36346 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
36347 *<code><mode>3, *andnot<mode>3<mask_name>,
36348 <mask_codefor><code><mode>3<mask_name>): Likewise.
36349 * config/i386/subst.md (mask_mode512bit_condition,
36350 sd_mask_mode512bit_condition): Likewise.
36352 2014-01-02 Xinliang David Li <davidxl@google.com>
36354 PR tree-optimization/59303
36355 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
36356 (dump_predicates): Better output format.
36357 (pred_equal_p): New function.
36358 (is_neq_relop_p): Ditto.
36359 (is_neq_zero_form_p): Ditto.
36360 (pred_expr_equal_p): Ditto.
36361 (pred_neg_p): Ditto.
36362 (simplify_pred): Ditto.
36363 (simplify_preds_2): Ditto.
36364 (simplify_preds_3): Ditto.
36365 (simplify_preds_4): Ditto.
36366 (simplify_preds): Ditto.
36367 (push_pred): Ditto.
36368 (push_to_worklist): Ditto.
36369 (get_pred_info_from_cmp): Ditto.
36370 (is_degenerated_phi): Ditto.
36371 (normalize_one_pred_1): Ditto.
36372 (normalize_one_pred): Ditto.
36373 (normalize_one_pred_chain): Ditto.
36374 (normalize_preds): Ditto.
36375 (normalize_cond_1): Remove function.
36376 (normalize_cond): Ditto.
36377 (is_gcond_subset_of): Ditto.
36378 (is_subset_of_any): Ditto.
36379 (is_or_set_subset_of): Ditto.
36380 (is_and_set_subset_of): Ditto.
36381 (is_norm_cond_subset_of): Ditto.
36382 (pred_chain_length_cmp): Ditto.
36383 (convert_control_dep_chain_into_preds): Type change.
36384 (find_predicates): Ditto.
36385 (find_def_preds): Ditto.
36386 (destroy_predicates_vecs): Ditto.
36387 (find_matching_predicates_in_rest_chains): Ditto.
36388 (use_pred_not_overlap_with_undef_path_pred): Ditto.
36389 (is_pred_expr_subset): Ditto.
36390 (is_pred_chain_subset_of): Ditto.
36391 (is_included_in): Ditto.
36392 (is_superset_of): Ditto.
36394 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36396 Update copyright years.
36398 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
36400 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
36401 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
36402 config/arc/arc.md, config/arc/arc.opt,
36403 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
36404 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
36405 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
36406 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
36407 config/linux-protos.h, config/linux.c, config/winnt-c.c,
36408 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
36409 vtable-verify.c, vtable-verify.h: Use the standard form for the
36412 2014-01-02 Tobias Burnus <burnus@net-b.de>
36414 * gcc.c (process_command): Update copyright notice dates.
36415 * gcov-dump.c: Ditto.
36417 * doc/cpp.texi: Bump @copying's copyright year.
36418 * doc/cppinternals.texi: Ditto.
36419 * doc/gcc.texi: Ditto.
36420 * doc/gccint.texi: Ditto.
36421 * doc/gcov.texi: Ditto.
36422 * doc/install.texi: Ditto.
36423 * doc/invoke.texi: Ditto.
36425 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
36427 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36429 2014-01-01 Jakub Jelinek <jakub@redhat.com>
36431 * config/i386/sse.md (*mov<mode>_internal): Guard
36432 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36434 PR rtl-optimization/59647
36435 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36436 new_rtx into UNSIGNED_FLOAT rtxes.
36438 Copyright (C) 2014 Free Software Foundation, Inc.
36440 Copying and distribution of this file, with or without modification,
36441 are permitted in any medium without royalty provided the copyright
36442 notice and this notice are preserved.