ggcplug.c: Shuffle includes to include gcc-plugin.h earlier.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2014-10-27  Andrew MacLeod  <amacleod@redhat.com>
2
3         * basic-block.h: Remove all includes.
4         (enum profile_status_d, struct control_flow_graph): Move to cfg.h
5         * cfg.h (profile_status_d, struct control_flow_graph): Relocate here.
6         * Makefile.in (GTFILES): Add cfg.h to list.
7         * cgraph.h (symbol_table::create_empty): Move to cgraph.c.
8         * cgraph.c (symbol_table::create_empty): Relocate from cgraph.h.
9         * genconditions.c (write_header): Add predict.h and basic-block.h to
10         lits of includes.
11         * genemit.c (main): Ditto.
12         * genpreds.c (write_insn_preds_c): Ditto.
13         * genrecog.c (write_header): Ditto.
14         * gengtype.c (open_base_files): Add predict.h, basic-block.h, and cfg.h
15         to list of includes.
16         * alias.c: Adjust include files.
17         * asan.c: Ditto.
18         * auto-inc-dec.c: Ditto.
19         * auto-profile.c: Ditto.
20         * bb-reorder.c: Ditto.
21         * bt-load.c: Ditto.
22         * builtins.c: Ditto.
23         * caller-save.c: Ditto.
24         * calls.c: Ditto.
25         * cfg.c: Ditto.
26         * cfganal.c: Ditto.
27         * cfgbuild.c: Ditto.
28         * cfgcleanup.c: Ditto.
29         * cfgexpand.c: Ditto.
30         * cfghooks.c: Ditto.
31         * cfgloop.c: Ditto.
32         * cfgloopanal.c: Ditto.
33         * cfgloopmanip.c: Ditto.
34         * cfgrtl.c: Ditto.
35         * cgraphbuild.c: Ditto.
36         * cgraphclones.c: Ditto.
37         * cgraphunit.c: Ditto.
38         * combine-stack-adj.c: Ditto.
39         * combine.c: Ditto.
40         * compare-elim.c: Ditto.
41         * coverage.c: Ditto.
42         * cprop.c: Ditto.
43         * cse.c: Ditto.
44         * cselib.c: Ditto.
45         * data-streamer-in.c: Ditto.
46         * data-streamer-out.c: Ditto.
47         * data-streamer.c: Ditto.
48         * dce.c: Ditto.
49         * ddg.c: Ditto.
50         * ddg.h: Ditto.
51         * df-core.c: Ditto.
52         * df-problems.c: Ditto.
53         * df-scan.c: Ditto.
54         * df.h: Ditto.
55         * dojump.c: Ditto.
56         * dominance.c: Ditto.
57         * domwalk.c: Ditto.
58         * dse.c: Ditto.
59         * dwarf2cfi.c: Ditto.
60         * emit-rtl.c: Ditto.
61         * et-forest.c: Ditto.
62         * except.c: Ditto.
63         * expmed.c: Ditto.
64         * expr.c: Ditto.
65         * final.c: Ditto.
66         * fold-const.c: Ditto.
67         * function.c: Ditto.
68         * fwprop.c: Ditto.
69         * gcc-plugin.h: Ditto.
70         * gcse.c: Ditto.
71         * generic-match-head.c: Ditto.
72         * ggc-page.c: Ditto.
73         * gimple-builder.c: Ditto.
74         * gimple-expr.c: Ditto.
75         * gimple-fold.c: Ditto.
76         * gimple-iterator.c: Ditto.
77         * gimple-low.c: Ditto.
78         * gimple-match-head.c: Ditto.
79         * gimple-pretty-print.c: Ditto.
80         * gimple-ssa-isolate-paths.c: Ditto.
81         * gimple-ssa-strength-reduction.c: Ditto.
82         * gimple-streamer-in.c: Ditto.
83         * gimple-streamer-out.c: Ditto.
84         * gimple-streamer.h: Ditto.
85         * gimple-walk.c: Ditto.
86         * gimple.c: Ditto.
87         * gimplify-me.c: Ditto.
88         * gimplify.c: Ditto.
89         * graph.c: Ditto.
90         * graphite-blocking.c: Ditto.
91         * graphite-clast-to-gimple.c: Ditto.
92         * graphite-dependences.c: Ditto.
93         * graphite-interchange.c: Ditto.
94         * graphite-isl-ast-to-gimple.c: Ditto.
95         * graphite-optimize-isl.c: Ditto.
96         * graphite-poly.c: Ditto.
97         * graphite-scop-detection.c: Ditto.
98         * graphite-sese-to-poly.c: Ditto.
99         * graphite.c: Ditto.
100         * haifa-sched.c: Ditto.
101         * hw-doloop.c: Ditto.
102         * ifcvt.c: Ditto.
103         * init-regs.c: Ditto.
104         * internal-fn.c: Ditto.
105         * ipa-cp.c: Ditto.
106         * ipa-devirt.c: Ditto.
107         * ipa-icf-gimple.c: Ditto.
108         * ipa-icf.c: Ditto.
109         * ipa-inline-analysis.c: Ditto.
110         * ipa-inline.c: Ditto.
111         * ipa-polymorphic-call.c: Ditto.
112         * ipa-profile.c: Ditto.
113         * ipa-prop.c: Ditto.
114         * ipa-pure-const.c: Ditto.
115         * ipa-reference.c: Ditto.
116         * ipa-split.c: Ditto.
117         * ipa-utils.c: Ditto.
118         * ipa.c: Ditto.
119         * ira-build.c: Ditto.
120         * ira-color.c: Ditto.
121         * ira-conflicts.c: Ditto.
122         * ira-costs.c: Ditto.
123         * ira-emit.c: Ditto.
124         * ira-lives.c: Ditto.
125         * ira.c: Ditto.
126         * jump.c: Ditto.
127         * lcm.c: Ditto.
128         * loop-doloop.c: Ditto.
129         * loop-init.c: Ditto.
130         * loop-invariant.c: Ditto.
131         * loop-iv.c: Ditto.
132         * loop-unroll.c: Ditto.
133         * lower-subreg.c: Ditto.
134         * lra-assigns.c: Ditto.
135         * lra-coalesce.c: Ditto.
136         * lra-constraints.c: Ditto.
137         * lra-eliminations.c: Ditto.
138         * lra-lives.c: Ditto.
139         * lra-spills.c: Ditto.
140         * lra.c: Ditto.
141         * lto-cgraph.c: Ditto.
142         * lto-compress.c: Ditto.
143         * lto-opts.c: Ditto.
144         * lto-section-in.c: Ditto.
145         * lto-section-out.c: Ditto.
146         * lto-streamer-in.c: Ditto.
147         * lto-streamer-out.c: Ditto.
148         * lto-streamer.c: Ditto.
149         * mcf.c: Ditto.
150         * mode-switching.c: Ditto.
151         * modulo-sched.c: Ditto.
152         * omp-low.c: Ditto.
153         * optabs.c: Ditto.
154         * opts-global.c: Ditto.
155         * passes.c: Ditto.
156         * postreload-gcse.c: Ditto.
157         * postreload.c: Ditto.
158         * predict.c: Ditto.
159         * print-rtl.c: Ditto.
160         * profile.c: Ditto.
161         * recog.c: Ditto.
162         * ree.c: Ditto.
163         * reg-stack.c: Ditto.
164         * regcprop.c: Ditto.
165         * regcprop.h: Ditto.
166         * reginfo.c: Ditto.
167         * regrename.c: Ditto.
168         * regstat.c: Ditto.
169         * reload.c: Ditto.
170         * reload1.c: Ditto.
171         * reorg.c: Ditto.
172         * resource.c: Ditto.
173         * rtlanal.c: Ditto.
174         * sched-deps.c: Ditto.
175         * sched-ebb.c: Ditto.
176         * sched-int.h: Ditto.
177         * sched-rgn.c: Ditto.
178         * sched-vis.c: Ditto.
179         * sel-sched-dump.c: Ditto.
180         * sel-sched-ir.c: Ditto.
181         * sel-sched-ir.h: Ditto.
182         * sel-sched.c: Ditto.
183         * sese.c: Ditto.
184         * shrink-wrap.c: Ditto.
185         * stack-ptr-mod.c: Ditto.
186         * stmt.c: Ditto.
187         * store-motion.c: Ditto.
188         * symtab.c: Ditto.
189         * toplev.c: Ditto.
190         * tracer.c: Ditto.
191         * trans-mem.c: Ditto.
192         * tree-affine.c: Ditto.
193         * tree-call-cdce.c: Ditto.
194         * tree-cfg.c: Ditto.
195         * tree-cfgcleanup.c: Ditto.
196         * tree-chrec.c: Ditto.
197         * tree-complex.c: Ditto.
198         * tree-data-ref.c: Ditto.
199         * tree-dfa.c: Ditto.
200         * tree-eh.c: Ditto.
201         * tree-emutls.c: Ditto.
202         * tree-if-conv.c: Ditto.
203         * tree-inline.c: Ditto.
204         * tree-into-ssa.c: Ditto.
205         * tree-loop-distribution.c: Ditto.
206         * tree-nested.c: Ditto.
207         * tree-nrv.c: Ditto.
208         * tree-object-size.c: Ditto.
209         * tree-outof-ssa.c: Ditto.
210         * tree-parloops.c: Ditto.
211         * tree-phinodes.c: Ditto.
212         * tree-predcom.c: Ditto.
213         * tree-pretty-print.c: Ditto.
214         * tree-profile.c: Ditto.
215         * tree-scalar-evolution.c: Ditto.
216         * tree-sra.c: Ditto.
217         * tree-ssa-address.c: Ditto.
218         * tree-ssa-alias.c: Ditto.
219         * tree-ssa-ccp.c: Ditto.
220         * tree-ssa-coalesce.c: Ditto.
221         * tree-ssa-copy.c: Ditto.
222         * tree-ssa-copyrename.c: Ditto.
223         * tree-ssa-dce.c: Ditto.
224         * tree-ssa-dom.c: Ditto.
225         * tree-ssa-dse.c: Ditto.
226         * tree-ssa-forwprop.c: Ditto.
227         * tree-ssa-ifcombine.c: Ditto.
228         * tree-ssa-live.c: Ditto.
229         * tree-ssa-loop-ch.c: Ditto.
230         * tree-ssa-loop-im.c: Ditto.
231         * tree-ssa-loop-ivcanon.c: Ditto.
232         * tree-ssa-loop-ivopts.c: Ditto.
233         * tree-ssa-loop-manip.c: Ditto.
234         * tree-ssa-loop-niter.c: Ditto.
235         * tree-ssa-loop-prefetch.c: Ditto.
236         * tree-ssa-loop-unswitch.c: Ditto.
237         * tree-ssa-loop.c: Ditto.
238         * tree-ssa-math-opts.c: Ditto.
239         * tree-ssa-operands.c: Ditto.
240         * tree-ssa-phiopt.c: Ditto.
241         * tree-ssa-phiprop.c: Ditto.
242         * tree-ssa-pre.c: Ditto.
243         * tree-ssa-propagate.c: Ditto.
244         * tree-ssa-reassoc.c: Ditto.
245         * tree-ssa-sccvn.c: Ditto.
246         * tree-ssa-sink.c: Ditto.
247         * tree-ssa-strlen.c: Ditto.
248         * tree-ssa-structalias.c: Ditto.
249         * tree-ssa-tail-merge.c: Ditto.
250         * tree-ssa-ter.c: Ditto.
251         * tree-ssa-threadedge.c: Ditto.
252         * tree-ssa-threadupdate.c: Ditto.
253         * tree-ssa-uncprop.c: Ditto.
254         * tree-ssa-uninit.c: Ditto.
255         * tree-ssa.c: Ditto.
256         * tree-ssanames.c: Ditto.
257         * tree-stdarg.c: Ditto.
258         * tree-streamer-in.c: Ditto.
259         * tree-streamer-out.c: Ditto.
260         * tree-streamer.c: Ditto.
261         * tree-switch-conversion.c: Ditto.
262         * tree-tailcall.c: Ditto.
263         * tree-vect-data-refs.c: Ditto.
264         * tree-vect-generic.c: Ditto.
265         * tree-vect-loop-manip.c: Ditto.
266         * tree-vect-loop.c: Ditto.
267         * tree-vect-patterns.c: Ditto.
268         * tree-vect-slp.c: Ditto.
269         * tree-vect-stmts.c: Ditto.
270         * tree-vectorizer.c: Ditto.
271         * tree-vrp.c: Ditto.
272         * tree.c: Ditto.
273         * tsan.c: Ditto.
274         * ubsan.c: Ditto.
275         * valtrack.c: Ditto.
276         * valtrack.h: Ditto.
277         * value-prof.c: Ditto.
278         * var-tracking.c: Ditto.
279         * varasm.c: Ditto.
280         * varpool.c: Ditto.
281         * vtable-verify.c: Ditto.
282         * web.c: Ditto.
283         * config/aarch64/aarch64-builtins.c: Ditto.
284         * config/aarch64/aarch64.c: Ditto.
285         * config/alpha/alpha.c: Ditto.
286         * config/arc/arc.c: Ditto.
287         * config/arm/arm.c: Ditto.
288         * config/avr/avr.c: Ditto.
289         * config/bfin/bfin.c: Ditto.
290         * config/c6x/c6x.c: Ditto.
291         * config/cr16/cr16.c: Ditto.
292         * config/cris/cris.c: Ditto.
293         * config/darwin-c.c: Ditto.
294         * config/darwin.c: Ditto.
295         * config/epiphany/epiphany.c: Ditto.
296         * config/epiphany/mode-switch-use.c: Ditto.
297         * config/epiphany/resolve-sw-modes.c: Ditto.
298         * config/fr30/fr30.c: Ditto.
299         * config/frv/frv.c: Ditto.
300         * config/h8300/h8300.c: Ditto.
301         * config/i386/i386.c: Ditto.
302         * config/i386/winnt.c: Ditto.
303         * config/ia64/ia64.c: Ditto.
304         * config/iq2000/iq2000.c: Ditto.
305         * config/lm32/lm32.c: Ditto.
306         * config/m32c/m32c.c: Ditto.
307         * config/m32r/m32r.c: Ditto.
308         * config/m68k/m68k.c: Ditto.
309         * config/mcore/mcore.c: Ditto.
310         * config/mep/mep.c: Ditto.
311         * config/microblaze/microblaze.c: Ditto.
312         * config/mips/mips.c: Ditto.
313         * config/mmix/mmix.c: Ditto.
314         * config/mn10300/mn10300.c: Ditto.
315         * config/moxie/moxie.c: Ditto.
316         * config/msp430/msp430.c: Ditto.
317         * config/nds32/nds32-cost.c: Ditto.
318         * config/nds32/nds32-fp-as-gp.c: Ditto.
319         * config/nds32/nds32-intrinsic.c: Ditto.
320         * config/nds32/nds32-isr.c: Ditto.
321         * config/nds32/nds32-md-auxiliary.c: Ditto.
322         * config/nds32/nds32-memory-manipulation.c: Ditto.
323         * config/nds32/nds32-pipelines-auxiliary.c: Ditto.
324         * config/nds32/nds32-predicates.c: Ditto.
325         * config/nds32/nds32.c: Ditto.
326         * config/nios2/nios2.c: Ditto.
327         * config/pa/pa.c: Ditto.
328         * config/pdp11/pdp11.c: Ditto.
329         * config/rl78/rl78.c: Ditto.
330         * config/rs6000/rs6000.c: Ditto.
331         * config/rx/rx.c: Ditto.
332         * config/s390/s390.c: Ditto.
333         * config/sh/sh-mem.cc: Ditto.
334         * config/sh/sh.c: Ditto.
335         * config/sh/sh_optimize_sett_clrt.cc: Ditto.
336         * config/sh/sh_treg_combine.cc: Ditto.
337         * config/sparc/sparc.c: Ditto.
338         * config/spu/spu.c: Ditto.
339         * config/stormy16/stormy16.c: Ditto.
340         * config/tilegx/tilegx.c: Ditto.
341         * config/tilepro/tilepro.c: Ditto.
342         * config/v850/v850.c: Ditto.
343         * config/vax/vax.c: Ditto.
344         * config/xtensa/xtensa.c: Ditto.
345
346 2014-10-27  Alan Lawrence  <alan.lawrence@arm.com>
347
348         * config/aarch64/aarch64.c (TARGET_GIMPLE_FOLD_BUILTIN): Comment out.
349         * config/aarch64/aarch64-builtins.c (aarch64_gimple_fold_builtin):
350         Remove using preprocessor directives.
351
352 2014-10-27  Richard Biener  <rguenther@suse.de>
353
354         * match.pd (0 % X): Properly use the iterator iterating over
355         all modulo operators.
356         (X % 1): Likewise.
357
358 2014-10-27  Richard Biener  <rguenther@suse.de>
359
360         * tree-ssa-forwprop.c: Include tree-cfgcleanup.h and tree-into-ssa.h.
361         (lattice): New global.
362         (fwprop_ssa_val): New function.
363         (fold_all_stmts): Likewise.
364         (pass_forwprop::execute): Finally fold all stmts.
365
366 2014-10-26  Manuel López-Ibáñez  <manu@gcc.gnu.org>
367
368         PR c++/53061
369         * doc/invoke.texi (fmessage-length): Update text to match reality.
370
371 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
372
373         * config/microblaze/microblaze.c: Include rtl-iter.h.
374         (microblaze_tls_referenced_p_1): Delete.
375         (microblaze_tls_referenced_p): Use FOR_EACH_SUBRTX.
376
377 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
378
379         * config/mips/mips.c (mips_at_reg_p): Delete.
380         (mips_need_noat_wrapper_p): Use FOR_EACH_SUBRTX.
381
382 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
383
384         * config/mips/mips.c (mips_record_lo_sum): Replace with...
385         (mips_record_lo_sums): ...this new function.
386         (mips_reorg_process_insns): Update accordingly.
387
388 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
389
390         * config/mips/mips.c (mips_sim_insn): Update comment.
391         (mips_sim_wait_regs_2): Delete.
392         (mips_sim_wait_regs_1): Use FOR_EACH_SUBRTX_VAR.
393
394 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
395
396         * config/mips/mips.c (r10k_needs_protection_p_call): Take a const_rtx
397         and return a bool.  Iterate over all subrtxes here.
398         (r10k_needs_protection_p): Update accordingly.
399
400 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
401
402         * config/mips/mips.c (r10k_needs_protection_p_1): Take an rtx
403         rather than an rtx pointer.  Change type of insn from "void *"
404         to its real type.  Return bool rather than int.  Iterate over
405         all subrtxes here.
406         (r10k_needs_protection_p_store): Update accordingly.
407         (r10k_needs_protection_p): Likewise.
408
409 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
410
411         * config/mips/mips.c (mips16_rewrite_pool_refs_info): Delete.
412         (mips16_rewrite_pool_refs): Take the insn and constant pool as
413         parameters.  Iterate over the instruction's pattern and return void.
414         (mips16_lay_out_constants): Update accordingly.
415
416 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
417
418         * config/mips/mips.c (mips_kernel_reg_p): Replace with...
419         (mips_refers_to_kernel_reg_p): ...this new function.
420         (mips_expand_prologue): Update accordingly.
421
422 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
423
424         * config/mips/mips.c (mips_rewrite_small_data_1): Take the context
425         as a parameter instead of the containing MEM.  Iterate over all
426         subrtxes.  Don't return a value.
427         (mips_rewrite_small_data): Update call accordingly.
428
429 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
430
431         * config/mips/mips.c: Include rtl-iter.h.
432         (mips_small_data_pattern_1): Take an rtx rather than an rtx pointer.
433         Take the context as a parameter instead of the containing MEM.
434         Iterate over all subrtxes.
435         (mips_small_data_pattern_p): Update call accordingly.
436
437 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
438
439         * config/mep/mep.c (mep_mul_hilo_bypass_1): Delete.
440         (mep_mul_hilo_bypass_p): Use FOR_EACH_SUBRTX.
441
442 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
443
444         * config/mep/mep.c (mep_store_find_set): Take a const_rtx and
445         return a bool.  Replace "void *" with specific type.  Iterate
446         over all subrtxes.
447         (mep_store_data_bypass_1): Update calls accordingly.
448
449 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
450
451         * config/mep/mep.c: Include rtl-iter.h.
452         (global_reg_mentioned_p_1): Take a const_rtx and return a bool.
453         (xtensa_tls_referenced_p): Return a bool.  Use FOR_EACH_SUBRTX.
454
455 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
456
457         * config/xtensa/xtensa.c: Include rtl-iter.h.
458         (xtensa_tls_referenced_p_1): Delete.
459         (xtensa_tls_referenced_p): Use FOR_EACH_SUBRTX.
460
461 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
462
463         * config/sh/sh.c (sh_contains_memref_p_1): Delete.
464         (sh_contains_memref_p): Use FOR_EACH_SUBRTX.
465
466 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
467
468         * config/sh/sh-protos.h (shmedia_cleanup_truncate): Take an
469         rtx as argument and return the number of changes.
470         * config/sh/sh.c: Include rtl-iter.h.
471         (shmedia_cleanup_truncate): Take an rtx as argument and iterate
472         over all subrtxes.  Return the number of changes made.
473         * config/sh/sh.md: Update caller accordingly.
474
475 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
476
477         * config/m68k/m68k.c (m68k_tls_reference_p_1): Delete.
478         (m68k_tls_reference_p): Use FOR_EACH_SUBRTX_VAR.
479
480 2014-10-26  Richard Sandiford  <richard.sandiford@arm.com>
481
482         * config/m68k/m68k.c: Include rtl-iter.h.
483         (m68k_final_prescan_insn_1): Delete.
484         (m68k_final_prescan_insn): Use FOR_EACH_SUBRTX_VAR.
485
486 2014-10-25  Jakub Jelinek  <jakub@redhat.com>
487
488         PR tree-optimization/63641
489         * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Set high
490         to low + prec - 1 - clz (mask) instead of low + prec - clz (mask).
491
492 2014-10-25  Alan Modra  <amodra@gmail.com>
493
494         PR rtl-optimization/63615
495         * simplify-rtx.c (simplify_plus_minus): Set "canonicalized" on
496         decomposing PLUS or MINUS if operands are not placed adjacent
497         in the "ops" array.
498
499 2014-10-25  Joseph Myers  <joseph@codesourcery.com>
500
501         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Do
502         not allow e500 double in registers not satisyfing
503         SPE_SIMD_REGNO_P.
504
505 2014-10-24  Aldy Hernandez  <aldyh@redhat.com>
506
507         * dwarf2out.c (declare_in_namespace): Only emit external
508         declarations in the local scope once.
509
510 2014-10-24  Jonathan Wakely  <jwakely@redhat.com>
511
512         * ginclude/stdbool.h: Do not define bool, true or false in C++11.
513
514 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
515
516         * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rewrite using builtins,
517         update uses to use new macro arguments.
518         (__LD3_LANE_FUNC): Likewise.
519         (__LD4_LANE_FUNC): Likewise.
520
521 2014-10-24  Charles Baylis  <charles.baylis@linaro.org>
522
523         * config/aarch64/aarch64-builtins.c
524         (aarch64_types_loadstruct_lane_qualifiers): Define.
525         * config/aarch64/aarch64-simd-builtins.def (ld2_lane, ld3_lane,
526         ld4_lane): New builtins.
527         * config/aarch64/aarch64-simd.md (aarch64_vec_load_lanesoi_lane<mode>):
528         New pattern.
529         (aarch64_vec_load_lanesci_lane<mode>): Likewise.
530         (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
531         (aarch64_ld2_lane<mode>): New expand.
532         (aarch64_ld3_lane<mode>): Likewise.
533         (aarch64_ld4_lane<mode>): Likewise.
534         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
535         UNSPEC_LD2_LANE, UNSPEC_LD3_LANE, UNSPEC_LD4_LANE.
536
537 2014-10-24  Georg-Johann Lay  <avr@gjlay.de>
538
539         * avr-protos.h (avr_out_sign_extend): New.
540         * avr.c (avr_adjust_insn_length) [ADJUST_LEN_SEXT]: Handle.
541         (avr_out_sign_extend): New function.
542         * avr.md (extendqihi2, extendqipsi2, extendqisi2, extendhipsi2)
543         (extendhisi2, extendpsisi2): Use it.
544         (adjust_len) [sext]: New.
545
546 2014-10-24  Martin Liska  <mliska@suse.cz>
547
548         * ipa-icf.c (sem_function::compare_phi_node): PHI result comparison
549         added.
550
551 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
552
553         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Define.
554         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
555         * config/aarch64/aarch64-linux.h (CA53_ERR_835769_SPEC): Define.
556         (LINK_SPEC): Include CA53_ERR_835769_SPEC.
557
558 2014-10-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
559
560         * config/aarch64/aarch64.h (ADJUST_INSN_LENGTH): Wrap definition in
561         do while (0).
562         * config/aarch64/aarch64.c (is_mem_p): Delete.
563         (is_memory_op): Rename to...
564         (has_memory_op): ... This.  Use FOR_EACH_SUBRTX.
565         (dep_between_memop_and_curr): Assert that the input is a SET.
566         (aarch64_madd_needs_nop): Add comment.  Do not call
567         dep_between_memop_and_curr on NULL body.
568         (aarch64_final_prescan_insn): Add comment.
569         Include rtl-iter.h.
570
571 2014-10-24  Richard Biener  <rguenther@suse.de>
572
573         * Makefile.in (BUILD_CPPLIB): Move $(LIBINTL) $(LIBICONV)
574         to genmatch BUILD_LIBS instead.
575
576 2014-10-24  Richard Biener  <rguenther@suse.de>
577
578         * genmatch.c (expr::gen_transform): Use fold_buildN_loc
579         and build_call_expr_loc.
580         (dt_simplify::gen): Drop non_lvalue for GIMPLE, use
581         non_lvalue_loc to build it for GENERIC.
582         (decision_tree::gen_generic): Add location argument to
583         generic_simplify prototype.
584         (capture_info): New class.
585         (capture_info::capture_info): New constructor.
586         (capture_info::walk_match): New method.
587         (capture_info::walk_result): New method.
588         (capture_info::walk_c_expr): New method.
589         (dt_simplify::gen): Handle preserving side-effects for
590         GENERIC code generation.
591         (decision_tree::gen_generic): Do not reject operands
592         with TREE_SIDE_EFFECTS.
593         * generic-match.h: New file.
594         * generic-match-head.c: Include generic-match.h, not gimple-match.h.
595         * match.pd: Add some constant folding patterns from fold-const.c.
596         * fold-const.c: Include generic-match.h.
597         (fold_unary_loc): Dispatch to generic_simplify.
598         (fold_ternary_loc): Likewise.
599         (fold_binary_loc): Likewise.  Remove patterns now implemented
600         by generic_simplify.
601         * gimple-fold.c (replace_stmt_with_simplification): New function.
602         (fold_stmt_1): Add valueize parameter, dispatch to gimple_simplify.
603         (no_follow_ssa_edges): New function.
604         (fold_stmt): New overload with valueization hook.  Use
605         no_follow_ssa_edges for the overload without hook.
606         (fold_stmt_inplace): Likewise.
607         * gimple-fold.h (no_follow_ssa_edges): Declare.
608
609 2014-10-24  Felix Yang  <felix.yang@huawei.com>
610         Jiji Jiang  <jiangjiji@huawei.com>
611
612         PR target/63173
613         * config/aarch64/arm_neon.h (__LD2R_FUNC): Remove macro.
614         (__LD3R_FUNC): Ditto.
615         (__LD4R_FUNC): Ditto.
616         (vld2_dup_s8, vld2_dup_s16, vld2_dup_s32, vld2_dup_f32, vld2_dup_f64,
617          vld2_dup_u8, vld2_dup_u16, vld2_dup_u32, vld2_dup_p8, vld2_dup_p16
618          vld2_dup_s64, vld2_dup_u64, vld2q_dup_s8, vld2q_dup_p8,
619          vld2q_dup_s16, vld2q_dup_p16, vld2q_dup_s32, vld2q_dup_s64,
620          vld2q_dup_u8, vld2q_dup_u16, vld2q_dup_u32, vld2q_dup_u64
621          vld2q_dup_f32, vld2q_dup_f64): Rewrite using builtin functions.
622         (vld3_dup_s64, vld3_dup_u64, vld3_dup_f64, vld3_dup_s8
623          vld3_dup_p8, vld3_dup_s16, vld3_dup_p16, vld3_dup_s32
624          vld3_dup_u8, vld3_dup_u16, vld3_dup_u32, vld3_dup_f32
625          vld3q_dup_s8, vld3q_dup_p8, vld3q_dup_s16, vld3q_dup_p16
626          vld3q_dup_s32, vld3q_dup_s64, vld3q_dup_u8, vld3q_dup_u16
627          vld3q_dup_u32, vld3q_dup_u64, vld3q_dup_f32, vld3q_dup_f64): Likewise.
628         (vld4_dup_s64, vld4_dup_u64, vld4_dup_f64, vld4_dup_s8
629          vld4_dup_p8, vld4_dup_s16, vld4_dup_p16, vld4_dup_s32
630          vld4_dup_u8, vld4_dup_u16, vld4_dup_u32, vld4_dup_f32
631          vld4q_dup_s8, vld4q_dup_p8, vld4q_dup_s16, vld4q_dup_p16
632          vld4q_dup_s32, vld4q_dup_s64, vld4q_dup_u8, vld4q_dup_u16
633          vld4q_dup_u32, vld4q_dup_u64, vld4q_dup_f32, vld4q_dup_f64): Likewise.
634         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add
635         UNSPEC_LD2_DUP, UNSPEC_LD3_DUP, UNSPEC_LD4_DUP.
636         * config/aarch64/aarch64-simd-builtins.def (ld2r, ld3r, ld4r): New
637         builtins.
638         * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>): New pattern.
639         (aarch64_simd_ld3r<mode>): Likewise.
640         (aarch64_simd_ld4r<mode>): Likewise.
641         (aarch64_ld2r<mode>): New expand.
642         (aarch64_ld3r<mode>): Likewise.
643         (aarch64_ld4r<mode>): Likewise.
644
645 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
646
647         * rtlanal.c (get_base_term): Handle SCRATCH.
648
649 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
650
651         * haifa-sched.c (sched_init): Disable max_issue when scheduling for
652         register pressure.
653
654 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
655
656         * haifa-sched.c (cached_first_cycle_multipass_dfa_lookahead,)
657         (cached_issue_rate): Remove.  Use dfa_lookahead and issue_rate instead.
658         (max_issue, choose_ready, sched_init): Update.
659
660 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
661
662         * sched-int.h (struct _haifa_insn_data:last_rfs_win): New field.
663         * haifa-sched.c (INSN_LAST_RFS_WIN): New access macro.
664         (rfs_result): Set INSN_LAST_RFS_WIN.  Update signature.
665         (rank_for_schedule): Update calls to rfs_result to pass new parameters.
666         (print_rank_for_schedule_stats): Print out elements of ready list that
667         ended up on their respective places due to each of the sorting
668         heuristics.
669         (ready_sort): Update.
670         (debug_ready_list_1): Improve printout for SCHED_PRESSURE_MODEL.
671         (schedule_block): Update.
672
673 2014-10-24  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
674
675         * haifa-sched.c (sched_class_regs_num, call_used_regs_num): New static
676         arrays.  Use sched_class_regs_num instead of ira_class_hard_regs_num.
677         (print_curr_reg_pressure, setup_insn_reg_pressure_info,)
678         (model_update_pressure, model_spill_cost): Use sched_class_regs_num.
679         (model_start_schedule): Update.
680         (sched_pressure_start_bb): New static function.  Calculate
681         sched_class_regs_num.
682         (schedule_block): Use it.
683         (alloc_global_sched_pressure_data): Calculate call_used_regs_num.
684
685 2014-10-24  Richard Biener  <rguenther@suse.de>
686
687         * Makefile.in (BUILD_CPPLIB): When in stage2+ use the
688         host library and make sure to pull in the required libintl
689         and libiconv dependencies.
690
691 2014-10-24  Richard Biener  <rguenther@suse.de>
692
693         * fold-const.c (fold_binary_loc): Fix copy-and-pasto.
694
695 2014-10-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
696
697         PR bootstrap/63632
698         * collect2.c (main): Filter out -fno-lto.
699
700 2014-10-24  Martin Liska  <mliska@suse.cz>
701
702         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes): Guard
703         division by zero in dumps.
704         (sem_item_optimizer::merge_classes): Ditto.
705
706 2014-10-23  John David Anglin  <danglin@gcc.gnu.org>
707
708         * config/pa/pa.c (pa_can_combine_p): Fix typo in last change.
709
710 2014-10-23  Ian Lance Taylor  <iant@google.com>
711
712         * tree-vrp.c (extract_range_from_assert): Fix typo in comment.
713
714 2014-10-23  Ian Lance Taylor  <iant@google.com>
715
716         * config/mep/mep.h (TARGET_HAS_F_SETLKW): Don't undefine.
717
718 2014-10-23  Jakub Jelinek  <jakub@redhat.com>
719
720         PR debug/63623
721         * var-tracking.c (stack_adjust_offset_pre_post_cb): New function.
722         (stack_adjust_offset_pre_post): Use it through for_each_inc_dec,
723         instead of only handling autoinc in dest if it is a MEM.
724         (vt_stack_adjustments): Fix up formatting.
725
726 2014-10-23  DJ Delorie  <dj@redhat.com>
727
728         * config/msp430/msp430.c (msp430_print_operand): 'x' modifier is
729         independend of -mlarge.
730         * config/msp430/constraints.md (Ys): Update comment.
731
732 2014-10-23  Evgeny Stupachenko  <evstupac@gmail.com>
733
734         PR target/63534
735         PR target/63618
736         * cse.c (delete_trivially_dead_insns): Consider PIC register is used
737         while it is pseudo.
738         * dse.c (deletable_insn_p): Likewise.
739
740 2014-10-23  Georg-Johann Lay  <avr@gjlay.de>
741
742         * config/avr/avr.c: Fix GNU coding rules and typos.
743         * config/avr/avr.h: Dito.
744         * config/avr/avr-c.c: Dito.
745         * config/avr/avr.md: Dito.
746
747 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
748
749         * config/i386/sse.md (define_mode_iterator VI1248_AVX512VL_AVX512BW):
750         New.
751         (define_insn "*abs<mode>2"): Use VI1248_AVX512VL_AVX512BW mode
752         iterator.
753         (define_expand "abs<mode>2"): Ditto.
754
755 2014-10-23  Kirill Yukhin  <kirill.yukhin@intel.com>
756
757         * tree-core.h (tree_var_decl): Extend `function_code' field
758         by one bit, move `regdecl_flag' field to ...
759         (tree_decl_with_vis): Here.
760         * tree.h (DECL_STATIC_CHAIN): Update struct name.
761
762 2014-10-23  Richard Biener  <rguenther@suse.de>
763
764         * Makefile.in (BUILD_CPPLIB): Add.
765         (build/genmatch$(build_exeext)): Use BUILD_CPPLIB, not CPPLIB.
766         Drop LIBIBERTY.
767
768 2014-10-23  Richard Biener  <rguenther@suse.de>
769
770         * fold-const.c (fold_binary_loc): Preserve side-effects of
771         X - X when simplifying to 0.
772         * stor-layout.c (finish_bitfield_representative): Strip
773         side-effects of evaluating the difference of two DECL_FIELD_OFFSET.
774
775 2014-10-22  Richard Biener  <rguenther@suse.de>
776             Tobias Burnus <burnus@net-b.de>
777
778         PR lto/63603
779         * gcc.c (LINK_COMMAND_SPEC): Add %{fno-lto}.
780
781 2014-10-22  Dehao Chen  <dehao@google.com>
782
783         * auto-profile.c: Change order of header files.
784
785 2014-10-22  Guozhi Wei  <carrot@google.com>
786
787         PR tree-optimization/63530
788         tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Set
789         pointer alignment according to DR_MISALIGNMENT.
790
791 2014-10-22  David Malcolm  <dmalcolm@redhat.com>
792
793         * ipa-icf.c (ipa_icf_driver): Set optimizer to NULL when done.
794
795 2014-10-22  Andrew MacLeod  <amacleod@redhat.com>
796
797         * cfgbuild.h: New.  Add prototypes for cfgbuild.c.
798         * cfgcleanup.h: New.  Add prototypes for cfgcleanup.c.
799         * cfgloopmanip.h: New.  Add prototypes for cfgloopmanip.c.
800         * dominance.h: New.  Add prototypes for dominance.c.
801         * cfgloop.h: Move some prototypes/enum to cfgloopmanip.h and include it.
802         * cfghooks.h: (struct profile_record) Relocate here.
803         Relocate 2 prototypes from basic-block.h.
804         * basic-block.h: Move prototypes and struct to new header files.
805         Include cfgbuild.h, cfgcleanup.h, and dominance.h.
806         * rtl.h: Move a few prototypes to new header files.
807         * cfgcleanup.c (merge_memattrs): Make static.
808         * genopinit.c (main): Add predict.h to list of includes.
809         * predict.h: Update prototype list to match predict.c.
810         * predict.c (maybe_hot_count_p): Export.
811         (cgraph_edge::maybe_hot_p): Move to cgraph.c.
812         (cgraph_node::optimize_for_size_p): Move to cgraph.h.
813         * cgraph.h (cgraph_node::optimize_for_size_p): Relocate here.
814         * cgraph.c (cgraph_edge::maybe_hot_p): Relocate here.
815         * profile.h: Adjust prototypes.
816         * ifcvt.h: New.  Relocate struct ce_if_block here.
817         * ifcvt.c: Include ifcvt.h.
818         * config/frv/frv.c: Include ifcvt.h.
819         * config/frv/frv-protos.h: Add 'struct' to ce_if_block * parameters.
820
821 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
822
823         * lra.c (lra): Remove call to recog_init.
824         * config/i386/i386.md (preferred_for_speed): New attribute
825         (*float<SWI48:mode><MODEF:mode>2_sse): Override it instead of
826         "enabled".  Remove check for sched1.
827
828 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
829
830         * recog.h (recog_data_d): Remove enabled_alternatives.
831         * recog.c (extract_insn): Don't set it.
832         * reload.c (find_reloads): Call get_enabled_alternatives.
833
834 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
835
836         * recog.h (constrain_operands): Add an alternative_mask parameter.
837         (constrain_operands_cached): Likewise.
838         (get_preferred_alternatives): Declare new form.
839         * recog.c (get_preferred_alternatives): New bb-taking instance.
840         (constrain_operands): Take the set of available alternatives as
841         a parameter.
842         (check_asm_operands, insn_invalid_p, extract_constrain_insn)
843         (extract_constrain_insn_cached): Update calls to constrain_operands.
844         * caller-save.c (reg_save_code): Likewise.
845         * ira.c (setup_prohibited_mode_move_regs): Likewise.
846         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
847         * ree.c (combine_reaching_defs): Likewise.
848         * reload.c (can_reload_into): Likewise.
849         * reload1.c (reload, reload_as_needed, inc_for_reload): Likewise.
850         (gen_reload_chain_without_interm_reg_p, emit_input_reload_insns)
851         (emit_insn_if_valid_for_reload): Likewise.
852         * reorg.c (fill_slots_from_thread): Likewise.
853         * config/i386/i386.c (ix86_attr_length_address_default): Likewise.
854         * config/pa/pa.c (pa_can_combine_p): Likewise.
855         * config/rl78/rl78.c (insn_ok_now): Likewise.
856         * config/sh/sh.md (define_peephole2): Likewise.
857         * final.c (final_scan_insn): Update call to constrain_operands_cached.
858
859 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
860
861         * doc/md.texi: Document "preferred_for_size" and "preferred_for_speed"
862         attributes.
863         * genattr.c (main): Handle "preferred_for_size" and
864         "preferred_for_speed" in the same way as "enabled".
865         * recog.h (bool_attr): New enum.
866         (target_recog): Replace x_enabled_alternatives with x_bool_attr_masks.
867         (get_preferred_alternatives, check_bool_attrs): Declare.
868         * recog.c (have_bool_attr, get_bool_attr, get_bool_attr_mask_uncached)
869         (get_bool_attr_mask, get_preferred_alternatives, check_bool_attrs):
870         New functions.
871         (get_enabled_alternatives): Use get_bool_attr_mask.
872         * ira-costs.c (record_reg_classes): Use get_preferred_alternatives
873         instead of recog_data.enabled_alternatives.
874         * ira.c (ira_setup_alts): Likewise.
875         * postreload.c (reload_cse_simplify_operands): Likewise.
876         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
877         * ira-lives.c (preferred_alternatives): New variable.
878         (process_bb_node_lives): Set it.
879         (check_and_make_def_conflict, make_early_clobber_and_input_conflicts)
880         (single_reg_class, ira_implicitly_set_insn_hard_regs): Use it instead
881         of recog_data.enabled_alternatives.
882         * lra-int.h (lra_insn_recog_data): Replace enabled_alternatives
883         to preferred_alternatives.
884         * lra-constraints.c (process_alt_operands): Update accordingly.
885         * lra.c (lra_set_insn_recog_data): Likewise.
886         (lra_update_insn_recog_data): Assert check_bool_attrs.
887
888 2014-10-22  Richard Sandiford  <richard.sandiford@arm.com>
889
890         * recog.h (extract_constrain_insn): Declare.
891         * recog.c (extract_constrain_insn): New function.
892         * lra.c (check_rtl): Use it.
893         * postreload.c (reload_cse_simplify_operands): Likewise.
894         * reg-stack.c (check_asm_stack_operands): Likewise.
895         (subst_asm_stack_regs): Likewise.
896         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
897         * regrename.c (build_def_use): Likewise.
898         * sel-sched.c (get_reg_class): Likewise.
899         * config/arm/arm.c (note_invalid_constants): Likewise.
900         * config/s390/predicates.md (execute_operation): Likewise.
901
902 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
903             Yury Gribov  <y.gribov@samsung.com>
904
905         * common.opt (flag_sanitize_recover): New variable.
906         (fsanitize-recover): Remove Var/Init, deprecate.
907         (fsanitize-recover=): New option.
908         * doc/invoke.texi (fsanitize-recover): Update docs.
909         * opts.c (finish_options): Use opts->x_flag_sanitize
910         instead of flag_sanitize.  Prohibit -fsanitize-recover
911         for anything besides UBSan.  Formatting.
912         (common_handle_option): Handle OPT_fsanitize_recover_
913         and OPT_fsanitize_recover.  Use opts->x_flag_sanitize
914         instead of flag_sanitize.
915         * asan.c (pass_sanopt::execute): Fix up formatting.
916         * ubsan.c (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn,
917         ubsan_expand_objsize_ifn, ubsan_build_overflow_builtin,
918         instrument_bool_enum_load, ubsan_instrument_float_cast,
919         instrument_nonnull_arg, instrument_nonnull_return): Check
920         bits in flag_sanitize_recover bitmask instead of
921         flag_sanitize_recover as bool flag.
922
923 2014-10-22  Jiong Wang <jiong.wang@arm.com>
924
925         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Add missing '\'.
926
927 2014-10-22  Renlin Li <renlin.li@arm.com>
928
929         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define
930         __ARM_FEATURE_IDIV__.
931
932 2014-10-22  Richard Biener  <rguenther@suse.de>
933
934         * Makefile.in (s-match): Adjust dependencies to only catch
935         match.pd.
936
937 2014-10-22  Richard Biener  <rguenther@suse.de>
938         Prathamesh Kulkarni  <bilbotheelffriend@gmail.com>
939
940         * Makefile.in (OBJS): Add gimple-match.o and generic-match.o.
941         (MOSTLYCLEANFILES): Add gimple-match.c and generic-match.c.
942         (gimple-match.c): Generate by triggering s-match.
943         (generic-match.c): Likewise.
944         (s-match): Rule to build gimple-match.c and generic-match.c
945         by running the genmatch generator program.
946         (build/hash-table.o): Dependencies to build hash-table.c for the host.
947         (build/genmatch.o): Dependencies to build genmatch.
948         (genprog): Add match.
949         (build/genmatch): Likewise.
950         (TEXI_GCCINT_FILES): Add match-and-simplify.texi.
951         * generic-match-head.c: New file.
952         * gimple-match-head.c: Likewise.
953         * gimple-match.h: Likewise.
954         * genmatch.c: Likewise.
955         * match.pd: Likewise.
956         * builtins.h (fold_builtin_n): Export.
957         * builtins.c (fold_builtin_n): Likewise.
958         * gimple-fold.h (gimple_build): Declare various overloads.
959         (gimple_simplify): Likewise.
960         (gimple_convert): Re-implement in terms of gimple_build.
961         * gimple-fold.c (gimple_convert): Remove.
962         (gimple_build): New functions.
963         * doc/match-and-simplify.texi: New file.
964         * doc/gccint.texi: Add menu item Match and Simplify and include
965         match-and-simplify.texi.
966
967 2014-10-22  Jakub Jelinek  <jakub@redhat.com>
968
969         PR target/63594
970         * config/i386/i386.c (ix86_expand_vector_init_duplicate): For
971         V{8HI,16QI,16HI,32QI}mode call ix86_vector_duplicate_value
972         even for just TARGET_AVX2, not only for
973         TARGET_AVX512VL && TARGET_AVX512BW.  For V{32HI,64QI}mode,
974         call ix86_vector_duplicate_value only if TARGET_AVX512BW,
975         otherwise build it using concatenation of 256-bit
976         broadcast.
977         * config/i386/sse.md (AVX_VEC_DUP_MODE): Moved after
978         avx512 broadcast patterns.
979         (vec_dup<mode>): Likewise.  For avx2 use
980         v<sseintprefix>broadcast<bcstscalarsuff> instead of
981         vbroadcast<ssescalarmodesuffix>.
982         (AVX2_VEC_DUP_MODE): New mode iterator.
983         (*vec_dup<mode>): New TARGET_AVX2 define_insn with
984         AVX2_VEC_DUP_MODE iterator, add a splitter for that.
985
986         PR target/63542
987         * config/i386/i386.c (ix86_pic_register_p): Also return
988         true if x is a hard register with ORIGINAL_REGNO equal to
989         pic_offset_table_rtx pseudo REGNO.
990         (ix86_delegitimize_address): For ix86_use_pseudo_pic_reg ()
991         after reload, subtract GOT_SYMBOL_NAME symbol if possible.
992
993 2014-10-22  Alan Modra  <amodra@gmail.com>
994
995         * gengtype.h (obstack_chunk_alloc, obstack_chunk_free): Remove cast.
996         * coretypes.h (obstack_chunk_alloc, obstack_chunk_free): Likewise.
997         (gcc_obstack_init): Use obstack_specify_allocation in place of
998         _obstack_begin.
999         * genautomata.c (next_sep_el): Cast result of obstack_base to (char *).
1000         (regexp_representation): Likewise.
1001         * godump.c (go_output_type): Likewise.
1002
1003 2014-10-21  John David Anglin  <danglin@gcc.gnu.org>
1004
1005         * config.gcc: Remove MASK_JUMP_IN_DELAY from target_cpu_default2.
1006         * config/pa/pa.h (TARGET_DEFAULT): Remove MASK_JUMP_IN_DELAY.
1007         * config/pa/pa.opt (mjump-in-delay): Ignore option.  Update comment.
1008
1009 2014-10-21 Manuel López-Ibáñez  <manu@gcc.gnu.org>
1010
1011         * doc/invoke.texi (pedantic-errors): Explain better.
1012
1013 2014-10-21  Joern Rennecke  <joern.rennecke@embecosm.com>
1014             Vidya Praveen <vidya.praveen@atmel.com>
1015             Praveen Kumar Kaushik <Praveen_Kumar.Kaushik@atmel.com>
1016             Senthil Kumar Selvaraj <Senthil_Kumar.Selvaraj@atmel.com>
1017             Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
1018
1019         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Don't define
1020         __MEMX for avrtiny.
1021         * config/avr/avr.c (avr_insert_attributes): Reject __memx for avrtiny.
1022         (avr_nonconst_pointer_addrspace): Likewise.
1023         * config/avr/avr.h (AVR_HAVE_LPM): Define.
1024
1025         Added AVRTINY architecture to avr target.
1026         * config/avr/avr-arch.h (avr_arch): Added AVRTINY architecture.
1027         (base_arch_s): member added for AVRTINY architecture.
1028         * config/avr/avr.c: Added TINY_ADIW, TINY_SBIW macros as AVRTINY
1029         alternate for adiw/sbiw instructions. Added AVR_TMP_REGNO and
1030         AVR_ZERO_REGNO macros for tmp and zero registers. Replaced TMP_REGNO
1031         and ZERO_REGNO occurrences by AVR_TMP_REGNO and AVR_ZERO_REGNO
1032         respectively. LAST_CALLEE_SAVED_REG macro added for the last register
1033         in callee saved register list.
1034         (avr_option_override): CCP address updated for AVRTINY.
1035         (avr_init_expanders): tmp and zero rtx initialized as per arch.
1036         Reset avr_have_dimode if AVRTINY.
1037         (sequent_regs_live): Use LAST_CALLEE_SAVED_REG instead magic number.
1038         (emit_push_sfr): Use AVR_TMP_REGNO for tmp register number.
1039         (avr_prologue_setup_frame): Don't minimize prologue if AVRTINY.
1040         Use LAST_CALLEE_SAVED_REG to refer last callee saved register.
1041         (expand_epilogue): Likewise.
1042         (avr_print_operand): Print CCP address in case of AVRTINY also.
1043         <TBD>bad address
1044         (function_arg_regno_p): Check different register list for arguments
1045         if AVRTINY.
1046         (init_cumulative_args): Check for AVRTINY to update number of argument
1047         registers.
1048         (tiny_valid_direct_memory_access_range): New function. Return false if
1049         direct memory access range is not in accepted range for AVRTINY.
1050         (avr_out_movqi_r_mr_reg_disp_tiny): New function to handle register
1051         indirect load (with displacement) for AVRTINY.
1052         (out_movqi_r_mr): Updated instruction length for AVRTINY. Call
1053         avr_out_movqi_r_mr_reg_disp_tiny for load from reg+displacement.
1054         (avr_out_movhi_r_mr_reg_no_disp_tiny): New function to handle register
1055         indirect load (no displacement) for AVRTINY.
1056         (avr_out_movhi_r_mr_reg_disp_tiny): New function to handle register
1057         indirect load (with displacement) for AVRTINY.
1058         (avr_out_movhi_r_mr_pre_dec_tiny): New function to handle register
1059         indirect load for pre-decrement address.
1060         (out_movhi_r_mr): In case of AVRTINY, call tiny register indirect load
1061         functions. Update instruction length for AVRTINY.
1062         (avr_out_movsi_r_mr_reg_no_disp_tiny): New function. Likewise, for
1063         SImode.
1064         (avr_out_movsi_r_mr_reg_disp_tiny): New function. Likewise, for SImode.
1065         (out_movsi_r_mr): Likewise, for SImode.
1066         (avr_out_movsi_mr_r_reg_no_disp_tiny): New function to handle register
1067         indirect store (no displacement) for AVRTINY.
1068         (avr_out_movsi_mr_r_reg_disp_tiny): New function to handle register
1069         indirect store (with displacement) for AVRTINY.
1070         (out_movsi_mr_r): Emit out insn for IO address store. Update store
1071         instruction's size for AVRTINY. For AVRTINY, call tiny SImode indirect
1072         store functions.
1073         (avr_out_load_psi_reg_no_disp_tiny): New function to handle register
1074         indirect load (no displacement) for PSImode in AVRTINY.
1075         (avr_out_load_psi_reg_disp_tiny): New function to handle register
1076         indirect load (with displacement) for PSImode in AVRTINY.
1077         (avr_out_load_psi): Call PSImode register indirect load functions for
1078         AVRTINY. Update instruction length for AVRTINY.
1079         (avr_out_store_psi_reg_no_disp_tiny): New function to handle register
1080         indirect store (no displacement) for PSImode in AVRTINY.
1081         (avr_out_store_psi_reg_disp_tiny): New function to handle register
1082         indirect store (with displacement) for PSImode in AVRTINY.
1083         (avr_out_store_psi): Update instruction length for AVRTINY. Call tiny
1084         register indirect store functions for AVRTINY.
1085         (avr_out_movqi_mr_r_reg_disp_tiny): New function to handle QImode
1086         register indirect store (with displacement) for AVRTINY.
1087         (out_movqi_mr_r): Update instruction length for AVRTINY. Call tiny
1088         register indirect store function for QImode in AVRTINY.
1089         (avr_out_movhi_mr_r_xmega): Update instruction length for AVRTINY.
1090         (avr_out_movhi_mr_r_reg_no_disp_tiny): New function to handle register
1091         indirect store (no displacement) for HImode in AVRTINY.
1092         (avr_out_movhi_mr_r_reg_disp_tiny): New function to handle register
1093         indirect store (with displacement) for HImode in AVRTINY.
1094         (avr_out_movhi_mr_r_post_inc_tiny): New function to handle register
1095         indirect store for post-increment address in HImode.
1096         (out_movhi_mr_r): Update instruction length for AVRTINY. Call tiny
1097         register indirect store function for HImode in AVRTINY.
1098         (avr_out_compare): Use TINY_SBIW/ TINY_ADIW in place of sbiw/adiw
1099         in case of AVRTINY.
1100         (order_regs_for_local_alloc): Updated register allocation order for
1101         AVRTINY.
1102         (avr_conditional_register_usage): New function. It is a target hook
1103         (TARGET_CONDITIONAL_REGISTER_USAGE) function which updates fixed, call
1104         used registers list and register allocation order for AVRTINY.
1105         (avr_return_in_memory): Update return value size for AVRTINY.
1106         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Added builtin macros
1107         for AVRTINY arch and tiny program memory base address.
1108         * config/avr/avr-devices.c (avr_arch_types): Added AVRTINY arch.
1109         (avr_texinfo): Added description for AVRTINY arch.
1110         * config/avr/avr.h: Added macro to identify AVRTINY arch. Updated
1111         STATIC_CHAIN_REGNUM for AVRTINY.
1112         * config/avr/avr-mcus.def: Added AVRTINY arch devices.
1113         * config/avr/avr.md: Added constants for tmp/ zero registers in
1114         AVRTINY. Attributes for AVRTINY added.
1115         (mov<mode>): Move src/ dest address to register if it is not in AVRTINY
1116         memory access range.
1117         (mov<mode>_insn): Avoid QImode direct load for AVRTINY if address not
1118         in AVRTINY memory access range.
1119         (*mov<mode>): Likewise for HImode and SImode.
1120         (*movsf): Likewise for SFmode.
1121         (delay_cycles_2): Updated instructions to be emitted as AVRTINY does
1122         not have sbiw.
1123         * config/avr/avr-protos.h: Added function prototype for
1124         tiny_valid_direct_memory_access_range.
1125         * config/avr/avr-tables.opt: Regenerate.
1126         * gcc/config/avr/t-multilib: Regenerate.
1127         * doc/avr-mmcu.texi: Regenerate.
1128
1129 2014-10-21  Andrew Pinski  <apinski@cavium.com>
1130
1131         * doc/invoke.texi (AARCH64/mtune): Document thunderx as an
1132         available option also.
1133         * config/aarch64/aarch64-cost-tables.h: New file.
1134         * config/aarch64/aarch64-cores.def (thunderx): New core.
1135         * config/aarch64/aarch64-tune.md: Regenerate.
1136         * config/aarch64/aarch64.c: Include aarch64-cost-tables.h instead
1137         of config/arm/aarch-cost-tables.h.
1138         (thunderx_regmove_cost): New variable.
1139         (thunderx_tunings): New variable.
1140
1141 2014-10-21  Dehao Chen  <dehao@google.com>
1142
1143         * auto-profile.c: New file.
1144         * auto-profile.h: New file.
1145         * basic-block.h (maybe_hot_count_p): New export func.
1146         (add_working_set): New export func.
1147         * gcov-io.h (GCOV_TAG_AFDO_FILE_NAMES): New tag.
1148         (GCOV_TAG_AFDO_FUNCTION): Likewise.
1149         (GCOV_TAG_AFDO_WORKING_SET): Likewise.
1150         * opts.c (enable_fdo_optimizations): New func.
1151         (common_handle_option): Handle -fauto-profile flag.
1152         * ipa-inline.c (want_early_inline_function_p): Iterative-einline.
1153         (class pass_early_inline): Export early_inliner.
1154         (early_inliner): Likewise.
1155         (pass_early_inline::execute): Likewise.
1156         * ipa-inline.h (early_inliner): Likewise.
1157         * predict.c (maybe_hot_count_p): New export func.
1158         (counts_to_freqs): AutoFDO logic.
1159         (rebuild_frequencies): Likewise.
1160         * tree-profile.c (pass_ipa_tree_profile::gate): Likewise.
1161         * profile.c (add_working_set): New func.
1162         * Makefile.in (auto-profile.o): New object file.
1163         * passes.def (pass_ipa_auto_profile): New pass.
1164         * tree-ssa-live.c (remove_unused_scope_block_p): AutoFDO logic.
1165         * tree-pass.h (make_pass_ipa_auto_profile): New pass.
1166         * toplev.c (compile_file): AutoFDO logic.
1167         * doc/invoke.texi (-fauto-profile): New doc.
1168         * coverage.c (coverage_init): AutoFDO logic.
1169         * common.opt (-fauto-profile): New flag.
1170         * timevar.def (TV_IPA_AUTOFDO): New tag.
1171         * value-prof.c (gimple_alloc_histogram_value): New export func.
1172         (check_ic_target): Likewise.
1173         * value-prof.h (gimple_alloc_histogram_value): Likewise.
1174         (check_ic_target): Likewise.
1175
1176 2014-10-21  David Malcolm  <dmalcolm@redhat.com>
1177
1178         * cgraph.c (cgraph_c_finalize): New function.
1179         * cgraph.h (cgraph_c_finalize): New prototype.
1180         (cgraphunit_c_finalize): New prototype.
1181         * cgraphunit.c (first_analyzed): Move from analyze_functions
1182         to file-scope.
1183         (first_analyzed_var): Likewise.
1184         (analyze_functions): Move static variables into file-scope.
1185         (cgraphunit_c_finalize): New function.
1186         * diagnostic.c (diagnostic_finish): Free the memory for
1187         context->classify_diagnostic and context->printer, running the
1188         destructor for the latter.
1189         (bt_stop): Use toplev::main.
1190         * dwarf2out.c (dwarf2out_finalize): New function.
1191         * dwarf2out.h (dwarf2out_c_finalize): New prototype.
1192         * gcse.c (gcse_c_finalize): New function.
1193         * gcse.h (gcse_c_finalize): New prototype.
1194         * ggc-page.c (init_ggc): Make idempotent.
1195         * input.c (input_location): Initialize to UNKNOWN_LOCATION.
1196         * ipa-cp.c (ipa_cp_c_finalize): New function.
1197         * ipa-prop.h (ipa_cp_c_finalize): New prototype.
1198         * ipa-pure-const.c (function_insertion_hook_holder): Move to be
1199         a field of class pass_ipa_pure_const.
1200         (node_duplication_hook_holder): Likewise.
1201         (node_removal_hook_holder): Likewise.
1202         (register_hooks): Convert to method...
1203         (pass_ipa_pure_const::register_hooks): ...here, converting
1204         static variable init_p into...
1205         (pass_ipa_pure_const::init_p): ...new field.
1206         (pure_const_generate_summary): Update invocation of
1207         register_hooks to invoke as a method of current_pass.
1208         (pure_const_read_summary): Likewise.
1209         (propagate): Convert to...
1210         (pass_ipa_pure_const::execute): ...method.
1211         * ipa-reference.c (ipa_init): Move static bool init_p from here
1212         to...
1213         (ipa_init_p): New file-scope variable, so that it can be reset
1214         when repeatedly invoking the compiler within one process by...
1215         (ipa_reference_c_finalize): New function.
1216         * ipa-reference.h (ipa_reference_c_finalize): New.
1217         * main.c (main): Replace invocation of toplev_main with
1218         construction of a toplev instance, and call its "main" method.
1219         * params.c (global_init_params): Add an assert that
1220         params_finished is false.
1221         (params_c_finalize): New.
1222         * params.h (params_c_finalize): New.
1223         * passes.c (execute_ipa_summary_passes): Set "current_pass" before
1224         invoking generate_summary, for the benefit of pass_ipa_pure_const.
1225         (ipa_write_summaries_2): Assign "pass" to "current_pass" global
1226         before calling write_summary hook.
1227         (ipa_write_optimization_summaries_1): Likewise when calling
1228         write_optimization_summary hook.
1229         (ipa_read_summaries_1): Likewise for read_summary hook.
1230         (ipa_read_optimization_summaries_1): Likewise for
1231         read_optimization_summary hook.
1232         (execute_ipa_stmt_fixups): Likewise.
1233         * stringpool.c (init_stringpool): Clean up if we're called more
1234         than once.
1235         * timevar.c (timevar_init): Ignore repeated calls.
1236         * toplev.c: Include "dwarf2out.h", "ipa-reference.h", "gcse.h",
1237         "ipa-prop.h".
1238         (general_init): Reset "input_location" to UNKNOWN_LOCATION.
1239         (initialize_rtl): Move static local "initialized_once"
1240         into file scope, and rename to...
1241         (rtl_initialized): New variable.
1242         (do_compile): Move timevar initialization from here to
1243         toplev::start_timevars.
1244         (toplev::toplev, toplev::~toplev, toplev::start_timevars,
1245         toplev::finalize): New functions.
1246         (toplev_main): Rename to...
1247         (toplev::main): ...this.
1248         * toplev.h (class toplev): New class.
1249
1250 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1251
1252         * loop-doloop.c: Include loop-unroll.h.
1253
1254 2014-10-21  Andrew MacLeod  <amacleod@redhat.com>
1255
1256         * cfg.h: New.  Header file for cfg.c.
1257         * cfganal.h: New.  Header file for cfganal.c.
1258         * lcm.h: New.  Header file for lcm.c.
1259         * loop-unroll.h: New.  Header file for loop-unroll.h.
1260         * cfgloop.h: (unroll_loops): Remove prototype.
1261         * basic-block.h: Move prototypes and structs to new header files.
1262         Include cfg.h, cfganal.h, and lcm.h.
1263         * loop-init.c: Include loop-unroll.h.
1264         * loop-unroll.c: (referenced_in_one_insn_in_loop_p): Make static.
1265         * modulo-sched.c: Include loop-unroll.h.
1266
1267 2014-10-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1268
1269         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Fix creation of
1270         MARKER_BYTE_UNKNOWN markers when handling casts.
1271
1272 2014-10-21  Richard Biener  <rguenther@suse.de>
1273
1274         * tree-ssa-phiopt.c (value_replacement): Properly verify we
1275         are the non-singleton PHI.
1276
1277 2014-10-21  Jakub Jelinek  <jakub@redhat.com>
1278
1279         PR tree-optimization/63563
1280         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Bail out
1281         if either dra or drb stmts are not normal loads/stores.
1282
1283 2014-10-21  Ilya Tocar  <ilya.tocar@intel.com>
1284
1285         * config/i386/i386.c (expand_vec_perm_1): Fix
1286         expand_vec_perm_palignr case.
1287         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>_mask): Use
1288         VI1_AVX512.
1289
1290 2014-10-21  Zhenqiang Chen  <zhenqiang.chen@arm.com>
1291
1292         * cfgloopanal.c (seq_cost): Delete.
1293         * rtl.h (seq_cost): New prototype.
1294         * rtlanal.c (seq_cost): New function.
1295         * tree-ssa-loop-ivopts.c (seq_cost): Delete.
1296
1297 2014-10-20  Andrew MacLeod  <amacleod@redhat.com>
1298
1299         * cfgrtl.h: New.  Add prototypes for cfgrtl.c.
1300         * basic-block.h: Remove prototypes for cfgrtl.c.
1301         * cfghooks.h (cfg_layout_initialize, cfg_layout_finalize): Move
1302         prototypes to cfgrtl.h.
1303         * profile.h (profile_info): Add extern export declaration.
1304         * rtl.h: Remove prototypes for cfgrtl.h.
1305         * tree-cfg.h (gt_ggc_mx, gt_pch_nx): Move prototypes to here.
1306         * ipa-inline.c: Include profile.h.
1307         * loop-unroll.c: Ditto.
1308         * modulo-sched.c: Ditto.
1309         * postreload-gcse.c: Ditto.
1310         * predict.c: Ditto.
1311         * sched-ebb.c: Ditto.
1312         * sched-rgn.c: Ditto.
1313         * tracer.c: Ditto.
1314         * tree-ssa-loop-ivcanon.c: Ditto.
1315
1316 2014-10-20  Richard Biener  <rguenther@suse.de>
1317
1318         * tree-vect-slp.c (vect_get_and_check_slp_defs): Try swapping
1319         operands to get a def operand kind match.  Signal mismatches
1320         to the parent so we can try swapping its operands.
1321         (vect_build_slp_tree): Try swapping operands if they have
1322         a mismatched operand kind.
1323
1324 2014-10-20  Alan Modra  <amodra@gmail.com>
1325
1326         PR debug/60655
1327         * simplify-rtx.c (simplify_plus_minus): Delete unused "input_ops".
1328         Increase "ops" array size.  Correct array size tests.  Init
1329         n_constants in loop.  Break out of innermost loop when finding
1330         a trivial CONST expression.
1331
1332 2014-10-20  Martin Liska  <mliska@suse.cz>
1333
1334         PR ipa/63583
1335         * ipa-icf-gimple.c (func_checker::compare_gimple_asm):
1336         Gimple tempate string is compared.
1337
1338 2014-10-20  Uros Bizjak  <ubizjak@gmail.com>
1339
1340         * varasm.c (const_alias_set): Remove.
1341         (init_varasm_once): Remove initialization of const_alias_set.
1342         (build_constant_desc): Do not set alias set to const_alias_set.
1343
1344 2014-10-19  Ilya Verbin  <ilya.verbin@intel.com>
1345
1346         * configure: Regenerate.
1347         * configure.ac: Move the test for section attribute specifier "e" in GAS
1348         out to all i[34567]86-*-* | x86_64-*-* targets and add --fatal-warnings.
1349         * langhooks.c (lhd_begin_section): Set SECTION_EXCLUDE flag.
1350         * varasm.c (default_elf_asm_named_section): Guard SECTION_EXCLUDE with
1351         ifdef HAVE_GAS_SECTION_EXCLUDE.
1352
1353 2014-10-19  Andreas Schwab  <schwab@linux-m68k.org>
1354
1355         * doc/md.texi (RTL Template) [match_scratch]: Correct equivalent
1356         match_operand expression.
1357
1358 2014-10-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1359             David Edelsohn  <dje.gcc@gmail.com>
1360
1361         * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv): New
1362         function.
1363         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
1364
1365 2014-10-18  Manuel López-Ibáñez  <manu@gcc.gnu.org>
1366
1367         * doc/invoke.texi (Options to Request or Suppress Warnings):
1368         Explain options precedence.
1369         (Wtrampolines): Do not indent paragraph.
1370
1371 2014-10-18  John David Anglin  <danglin@gcc.gnu.org>
1372
1373         * doc/invoke.texi: Update documentation of hppa -mjump-in-delay option.
1374         * config/pa/pa-protos.h (pa_following_call): Delete declaration.
1375         (pa_jump_in_call_delay): Likewise.
1376         * config/pa/pa.c (pa_option_override): Remove jump in call delay
1377         override.
1378         (pa_output_millicode_call): Remove support for jump in call delay.
1379         (pa_output_call): Likewise.
1380         (pa_jump_in_call_delay): Delete.
1381         (pa_following_call): Likewise.
1382         * config/pa/pa.md (in_call_delay): Remove jump in delay check.
1383         (uncond_branch): Remove following call check from attribute length.
1384
1385 2014-10-18  Oleg Endo  <olegendo@gcc.gnu.org>
1386
1387         PR target/53513
1388         * config/sh/sh-modes.def (PSI): Remove.
1389         * config/sh/sh-protos.h (get_fpscr_rtx): Remove.
1390         * config/sh/sh.c (fpscr_rtx, get_fpscr_rtx): Remove.
1391         (sh_reorg): Remove commented out FPSCR code.
1392         (fpscr_set_from_mem): Use SImode instead of PSImode.  Emit lds_fpscr
1393         insn instead of move insn.
1394         (sh_hard_regno_mode_ok): Return SImode for FPSCR.
1395         (sh_legitimate_address_p, sh_legitimize_reload_address): Remove PSImode
1396         handling.
1397         (sh_emit_mode_set): Emit lds_fpscr and sts_fpscr insns.
1398         (sh1_builtin_p): Uncomment.
1399         (SH_BLTIN_UV 25, SH_BLTIN_VU 26): New macros.
1400         (bdesc): Add __builtin_sh_get_fpscr and __builtin_sh_set_fpscr.
1401         * config/sh/sh/predicates.md (fpscr_operand): Simplify.
1402         (fpscr_movsrc_operand, fpscr_movdst_operand): New predicates.
1403         (general_movsrc_operand, general_movdst_operand): Disallow
1404         fpscr_operand.
1405         * config/sh/sh.md (FPSCR_FR): New constant.
1406         (push_fpscr): Emit sts_fpscr insn.
1407         (pop_fpscr): Emit lds_fpscr_insn.
1408         (movsi_ie): Disallow FPSCR operands.
1409         (fpu_switch, unnamed related split, extend_psi_si,
1410         truncate_si_psi): Remove insns.
1411         (lds_fpscr, sts_fpscr): New insns.
1412         (toggle_sz, toggle_pr): Use SImode for FPSCR_REG instead of PSImode.
1413
1414 2014-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1415
1416         * ipa-inline-transform.c (master_clone_with_noninline_clones_p): New.
1417         (clone_inlined_nodes): Do not overwrite the clone if above predicate
1418         returns true.
1419
1420 2014-10-17  Ilya Tocar  <ilya.tocar@intel.com>
1421
1422         * config/i386/i386.c (MAX_VECT_LEN): Move earlier.
1423         (expand_vec_perm_d): Ditto.
1424         (ix86_expand_vec_perm_vpermi2): Handle V8HImode, V16HImode, V32HImode,
1425         V32HImode, V4SImode, V8SImode, V4SFmode, V8SFmode, V2DImode, V4DImode,
1426         V4DFmode.
1427         (ix86_expand_vec_perm): Update call to ix86_expand_vec_perm_vpermi2.
1428         (ix86_expand_sse_unpack): Handle V64QImode.
1429         (expand_vec_perm_blend): Update conditions for TARGET, handle
1430         V8DFmode, V16SFmode, V32HImode, V64QImode, V16SImode, V8DImode.
1431         (expand_vec_perm_pshufb): Handle V64QImode.
1432         (expand_vec_perm_1): Handle V64QImode, V32HImode, V16SImode, V16SFmode,
1433         V8DFmode, V8DImode, V4DFmode, V2DFmode, V8SFmode, V4SFmode.
1434         (ix86_expand_vec_perm_const_1): Call  ix86_expand_vec_perm_vpermi2.
1435         (ix86_vectorize_vec_perm_const_ok): Handle V32HImode, V64QImode.
1436         (ix86_expand_vecop_qihi): Handle V64QImode.
1437         * config/i386/sse.md (define_mode_iterator VI1_AVX512): New.
1438         (define_mode_iterator VEC_PERM_AVX2): Add V32HI.
1439         (define_mode_iterator VEC_PERM_CONST): Add V32HI.
1440         (define_insn "<ssse3_avx2>_pshufb<mode>3<mask_name>"): Add masking.
1441         (mul<mode>3): Use VI1_AVX512.
1442         (<sse2_avx2>_packsswb): Ditto.
1443         (<sse2_avx2>_packuswb): Ditto.
1444         (<ssse3_avx2>_pshufb<mode>3): Ditto.
1445         (<shift_insn><mode>3): Ditto.
1446
1447 2014-10-17  Kirill Yukhin  <kirill.yukhin@intel.com>
1448
1449         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Refactor
1450         conditions to fix bootstrap.
1451
1452 2014-10-17  Andrew MacLeod  <amacleod@redhat.com>
1453
1454         gcc-plugin.h:  Add tm.h and flattened includes from function.h.
1455
1456 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1457             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1458             Anna Tikhonova  <anna.tikhonova@intel.com>
1459             Ilya Tocar  <ilya.tocar@intel.com>
1460             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1461             Ilya Verbin  <ilya.verbin@intel.com>
1462             Kirill Yukhin  <kirill.yukhin@intel.com>
1463             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1464
1465         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Handle V64QI
1466         and V32HI modes, update V8HI, V16QI, V32QI modes handling.
1467         (ix86_expand_vector_init_general): Handle V64QI and V32HI modes.
1468         * config/i386/sse.md (define_mode_iterator VI48F_512): Rename to ...
1469         (define_mode_iterator VF48_I1248): ... this. Extend to AVX-512 modes.
1470         (define_expand "vec_init<mode>"): Use VF48_I1248.
1471
1472 2014-10-17  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1473             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1474             Anna Tikhonova  <anna.tikhonova@intel.com>
1475             Ilya Tocar  <ilya.tocar@intel.com>
1476             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1477             Ilya Verbin  <ilya.verbin@intel.com>
1478             Kirill Yukhin  <kirill.yukhin@intel.com>
1479             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1480
1481         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Extend
1482         expand_sse2_mulvxdi3.
1483
1484 2014-10-17  Richard Biener  <rguenther@suse.de>
1485
1486         * fold-const.c (fold_comparison): Remove redundant constant
1487         folding and operand swapping.
1488         (fold_binary_loc): Do comparison operand swapping here.
1489         (fold_ternary_loc): Canonicalize operand order for
1490         commutative ternary operations.
1491         * tree.c (commutative_ternary_tree_code): Add DOT_PROD_EXPR
1492         and FMA_EXPR.
1493
1494 2014-10-17  Jakub Jelinek  <jakub@redhat.com>
1495
1496         PR tree-optimization/63464
1497         * gimple.h (gimple_seq_discard): New prototype.
1498         * gimple.c: Include stringpool.h and tree-ssanames.h.
1499         (gimple_seq_discard): New function.
1500         * optabs.h (lshift_cheap_p): New prototype.
1501         * optabs.c (lshift_cheap_p): New function, moved from...
1502         * tree-switch-conversion.c (lshift_cheap_p): ... here.
1503         * tree-ssa-reassoc.c: Include gimplify.h and optabs.h.
1504         (reassoc_branch_fixups): New variable.
1505         (update_range_test): Add otherrangep and seq arguments.
1506         Unshare exp.  If otherrange is NULL, use for other ranges
1507         array of pointers pointed by otherrangep instead.
1508         Emit seq before gimplified statements for tem.
1509         (optimize_range_tests_diff): Adjust update_range_test
1510         caller.
1511         (optimize_range_tests_xor): Likewise.  Fix up comment.
1512         (extract_bit_test_mask, optimize_range_tests_to_bit_test): New
1513         functions.
1514         (optimize_range_tests): Adjust update_range_test caller.
1515         Call optimize_range_tests_to_bit_test.
1516         (branch_fixup): New function.
1517         (execute_reassoc): Call branch_fixup.
1518
1519         PR tree-optimization/63302
1520         * tree-ssa-reassoc.c (optimize_range_tests_xor,
1521         optimize_range_tests_diff): Use !integer_pow2p () instead of
1522         tree_log2 () < 0.
1523
1524 2014-10-17  Martin Liska  <mliska@suse.cz>
1525
1526         * ipa-icf.c (sem_function::merge): Local flags are set to false
1527         to enforce equal calling convention to be used.
1528         * opts.c (common_handle_option): Indentation fix.
1529
1530 2014-10-17  Marc Glisse  <marc.glisse@inria.fr>
1531
1532         * tree-into-ssa.c (is_old_name): Replace "new" with "old".
1533
1534 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1535
1536         PR rtl-optimization/61605
1537         * regcprop.c (copyprop_hardreg_forward_1): Use
1538         regs_invalidated_by_this_call instead of regs_invalidated_by_call.
1539
1540 2014-10-17  Tom de Vries  <tom@codesourcery.com>
1541
1542         PR rtl-optimization/61605
1543         * regcprop.c (copyprop_hardreg_forward_1): Add copy_p and noop_p.  Don't
1544         notice stores for noops.  Don't regard noops as copies.
1545
1546 2014-10-17  Uros Bizjak  <ubizjak@gmail.com>
1547
1548         * config/i386/cpuid.h (__cpuid): Remove definitions that handle %ebx
1549         register in a special way.
1550         (__cpuid_count): Ditto.
1551         * config/i386/driver-i386.h: Protect with
1552         "#if defined(__GNUC__) && (__GNUC__ >= 5 || !defined(__PIC__))".
1553         (host_detect_local_cpu): Mention that GCC with non-fixed %ebx
1554         is required to compile the function.
1555
1556 2014-10-16  DJ Delorie  <dj@redhat.com>
1557
1558         * flag-types.h (sanitize_code): Don't assume targets have 32-bit
1559         integers.
1560
1561         * config/rs6000/rs6000-c.c (rid_int128): New.
1562         (rs6000_macro_to_expand): Use instead of RID_INT128.
1563
1564 2014-10-16  Andrew MacLeod  <amacleod@redhat.com>
1565
1566         * function.h: Flatten file.  Remove includes, adjust prototypes to
1567         reflect only what is in function.h.
1568         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1569         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Relocate
1570         from expr.h.
1571         (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Relocate from rtl.h.
1572         (optimize_function_for_size_p, optimize_function_for_speed_p): Move
1573         prototypes to predict.h.
1574         (init_varasm_status): Move prototype to varasm.h.
1575         * expr.h: Adjust include files.
1576         (enum direction, struct args_size, struct locate_and_pad_arg_data,
1577         ADD_PARM_SIZE, SUB_PARM_SIZE, ARGS_SIZE_TREE, ARGS_SIZE_RTX): Move
1578         to function.h.
1579         (locate_and_pad_parm): Move prototype to function.h.
1580         * rtl.h: (assign_stack_local, ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD,
1581         assign_stack_local_1, assign_stack_temp, assign_stack_temp_for_type,
1582         assign_temp, reposition_prologue_and_epilogue_notes,
1583         prologue_epilogue_contains, sibcall_epilogue_contains,
1584         update_temp_slot_address, maybe_copy_prologue_epilogue_insn,
1585         set_return_jump_label): Move prototypes to function.h.
1586         * predict.h (optimize_function_for_size_p,
1587         optimize_function_for_speed_p): Relocate prototypes from function.h.
1588         * shrink-wrap.h (emit_return_into_block, active_insn_between,
1589         convert_jumps_to_returns, emit_return_for_exit): Move prototypes to
1590         function.h.
1591         * varasm.h (init_varasm_status): Relocate prototype from function.h.
1592         * genattrtab.c (write_header): Add predict.h to include list.
1593         * genconditions.c (write_header): Add predict.h to include list.
1594         * genemit.c (main): Adjust header file includes.
1595         * gengtype.c (ifiles): Add flattened function.h header files.
1596         * genoutput.c (output_prologue): Add predict.h to include list.
1597         * genpreds.c (write_insn_preds_c): Adjust header file includes.
1598         * genrecog.c (write_header): Add flattened function.h header files.
1599         * alias.c: Adjust include files.
1600         * auto-inc-dec.c: Likewise.
1601         * basic-block.h: Likewise.
1602         * bb-reorder.c: Likewise.
1603         * bt-load.c: Likewise.
1604         * builtins.c: Likewise.
1605         * caller-save.c: Likewise.
1606         * calls.c: Likewise.
1607         * cfgbuild.c: Likewise.
1608         * cfgcleanup.c: Likewise.
1609         * cfgexpand.c: Likewise.
1610         * cfgloop.c: Likewise.
1611         * cfgloop.h: Likewise.
1612         * cfgrtl.c: Likewise.
1613         * cgraph.h: Likewise.
1614         * cgraphclones.c: Likewise.
1615         * cgraphunit.c: Likewise.
1616         * combine-stack-adj.c: Likewise.
1617         * combine.c: Likewise.
1618         * coverage.c: Likewise.
1619         * cprop.c: Likewise.
1620         * cse.c: Likewise.
1621         * cselib.c: Likewise.
1622         * dbxout.c: Likewise.
1623         * ddg.c: Likewise.
1624         * df-core.c: Likewise.
1625         * df-problems.c: Likewise.
1626         * df-scan.c: Likewise.
1627         * dojump.c: Likewise.
1628         * dwarf2cfi.c: Likewise.
1629         * dwarf2out.c: Likewise.
1630         * emit-rtl.c: Likewise.
1631         * except.c: Likewise.
1632         * explow.c: Likewise.
1633         * expr.c: Likewise.
1634         * final.c: Likewise.
1635         * function.c: Likewise.
1636         * gcse.c: Likewise.
1637         * gimple-fold.c: Likewise.
1638         * gimple-low.c: Likewise.
1639         * gimple-streamer.h: Likewise.
1640         * haifa-sched.c: Likewise.
1641         * ifcvt.c: Likewise.
1642         * ira.c: Likewise.
1643         * jump.c: Likewise.
1644         * lcm.c: Likewise.
1645         * loop-invariant.c: Likewise.
1646         * lra-assigns.c: Likewise.
1647         * lra-coalesce.c: Likewise.
1648         * lra-constraints.c: Likewise.
1649         * lra-eliminations.c: Likewise.
1650         * lra-lives.c: Likewise.
1651         * lra-spills.c: Likewise.
1652         * lra.c: Likewise.
1653         * lto-cgraph.c: Likewise.
1654         * lto-section-in.c: Likewise.
1655         * lto-section-out.c: Likewise.
1656         * lto-streamer-in.c: Likewise.
1657         * lto-streamer-out.c: Likewise.
1658         * mode-switching.c: Likewise.
1659         * modulo-sched.c: Likewise.
1660         * omp-low.c: Likewise.
1661         * optabs.c: Likewise.
1662         * passes.c: Likewise.
1663         * postreload-gcse.c: Likewise.
1664         * postreload.c: Likewise.
1665         * predict.c: Likewise.
1666         * profile.c: Likewise.
1667         * recog.c: Likewise.
1668         * ree.c: Likewise.
1669         * reg-stack.c: Likewise.
1670         * regcprop.c: Likewise.
1671         * reginfo.c: Likewise.
1672         * regrename.c: Likewise.
1673         * reload.c: Likewise.
1674         * reload1.c: Likewise.
1675         * reorg.c: Likewise.
1676         * resource.c: Likewise.
1677         * rtlanal.c: Likewise.
1678         * sched-deps.c: Likewise.
1679         * sched-ebb.c: Likewise.
1680         * sched-rgn.c: Likewise.
1681         * sel-sched-dump.c: Likewise.
1682         * sel-sched-ir.c: Likewise.
1683         * sel-sched.c: Likewise.
1684         * shrink-wrap.c: Likewise.
1685         * simplify-rtx.c: Likewise.
1686         * statistics.c: Likewise.
1687         * stmt.c: Likewise.
1688         * stor-layout.c: Likewise.
1689         * store-motion.c: Likewise.
1690         * symtab.c: Likewise.
1691         * targhooks.c: Likewise.
1692         * toplev.c: Likewise.
1693         * trans-mem.c: Likewise.
1694         * tree-cfg.c: Likewise.
1695         * tree-cfgcleanup.c: Likewise.
1696         * tree-dfa.c: Likewise.
1697         * tree-eh.c: Likewise.
1698         * tree-inline.c: Likewise.
1699         * tree-into-ssa.c: Likewise.
1700         * tree-nested.c: Likewise.
1701         * tree-nrv.c: Likewise.
1702         * tree-profile.c: Likewise.
1703         * tree-ssa-alias.c: Likewise.
1704         * tree-ssa-ccp.c: Likewise.
1705         * tree-ssa-copy.c: Likewise.
1706         * tree-ssa-copyrename.c: Likewise.
1707         * tree-ssa-dom.c: Likewise.
1708         * tree-ssa-operands.c: Likewise.
1709         * tree-ssa-propagate.c: Likewise.
1710         * tree-ssa-structalias.c: Likewise.
1711         * tree-ssa-tail-merge.c: Likewise.
1712         * tree-ssa-threadedge.c: Likewise.
1713         * tree-ssa-threadupdate.c: Likewise.
1714         * tree-ssa-uncprop.c: Likewise.
1715         * tree-ssa-uninit.c: Likewise.
1716         * tree-ssa.c: Likewise.
1717         * tree-stdarg.c: Likewise.
1718         * tree-tailcall.c: Likewise.
1719         * tree.c: Likewise.
1720         * tsan.c: Likewise.
1721         * valtrack.c: Likewise.
1722         * varasm.c: Likewise.
1723         * vmsdbgout.c: Likewise.
1724         * web.c: Likewise.
1725         * config/aarch64/aarch64.c: Add flattened includes from function.h.
1726         * config/alpha/alpha.c: Likewise.
1727         * config/arc/arc.c: Likewise.
1728         * config/arm/arm.c: Likewise.
1729         * config/avr/avr-log.c: Likewise.
1730         * config/avr/avr.c: Likewise.
1731         * config/bfin/bfin.c: Likewise.
1732         * config/c6x/c6x.c: Likewise.
1733         * config/cr16/cr16.c: Likewise.
1734         * config/cris/cris.c: Likewise.
1735         * config/darwin.c: Likewise.
1736         * config/epiphany/epiphany.c: Likewise.
1737         * config/epiphany/mode-switch-use.c: Likewise.
1738         * config/epiphany/resolve-sw-modes.c: Likewise.
1739         * config/fr30/fr30.c: Likewise.
1740         * config/frv/frv.c: Likewise.
1741         * config/h8300/h8300.c: Likewise.
1742         * config/i386/i386.c: Likewise.
1743         * config/ia64/ia64.c: Likewise.
1744         * config/iq2000/iq2000.c: Likewise.
1745         * config/lm32/lm32.c: Likewise.
1746         * config/m32c/m32c.c: Likewise.
1747         * config/m32r/m32r.c: Likewise.
1748         * config/m68k/m68k.c: Likewise.
1749         * config/mcore/mcore.c: Likewise.
1750         * config/mep/mep-pragma.c: Likewise.
1751         * config/mep/mep.c: Likewise.
1752         * config/microblaze/microblaze.c: Likewise.
1753         * config/mips/mips.c: Likewise.
1754         * config/mmix/mmix.c: Likewise.
1755         * config/mn10300/mn10300.c: Likewise.
1756         * config/moxie/moxie.c: Likewise.
1757         * config/msp430/msp430.c: Likewise.
1758         * config/nds32/nds32-cost.c: Likewise.
1759         * config/nds32/nds32-fp-as-gp.c: Likewise.
1760         * config/nds32/nds32-intrinsic.c: Likewise.
1761         * config/nds32/nds32-isr.c: Likewise.
1762         * config/nds32/nds32-md-auxiliary.c: Likewise.
1763         * config/nds32/nds32-memory-manipulation.c: Likewise.
1764         * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1765         * config/nds32/nds32-predicates.c: Likewise.
1766         * config/nds32/nds32.c: Likewise.
1767         * config/nios2/nios2.c: Likewise.
1768         * config/pa/pa.c: Likewise.
1769         * config/pdp11/pdp11.c: Likewise.
1770         * config/rl78/rl78.c: Likewise.
1771         * config/rs6000/rs6000.c: Likewise.
1772         * config/rx/rx.c: Likewise.
1773         * config/s390/s390.c: Likewise.
1774         * config/score/score.c: Likewise.
1775         * config/sh/sh.c: Likewise.
1776         * config/sparc/sparc.c: Likewise.
1777         * config/spu/spu.c: Likewise.
1778         * config/stormy16/stormy16.c: Likewise.
1779         * config/tilegx/tilegx.c: Likewise.
1780         * config/tilepro/tilepro.c: Likewise.
1781         * config/v850/v850.c: Likewise.
1782         * config/vax/vax.c: Likewise.
1783         * config/xtensa/xtensa.c: Likewise.
1784
1785 2014-10-16  Richard Earnshaw  <rearnsha@arm.com>
1786
1787         * config/aarch64/aarch64.c (aarch64_legitimize_address): New function.
1788         (TARGET_LEGITIMIZE_ADDRESS): Redefine.
1789
1790 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1791
1792         * config/sh/sh-protos.h (fldi_ok): Remove.
1793         * config/sh/sh.c (fldi_ok): Likewise.
1794         (sh_secondary_reload): Don't use fldi_ok.
1795         * config/sh/constraints.md (G constraint, H constraint): Don't use
1796         fldi_ok.
1797
1798 2014-10-16  Martin Liska  <mliska@suse.cz>
1799
1800         * ipa-icf.c (sem_item_optimizer::process_cong_reduction):
1801         Cast to unsigned long.
1802         (sem_item_optimizer::dump_cong_classes): Likewise.
1803
1804 2014-10-16  Tom de Vries  <tom@codesourcery.com>
1805
1806         * tree-into-ssa.c (update_ssa): Assert that there's no ssa use operand
1807         with SSA_NAME_IN_FREELIST.
1808
1809 2014-10-16  Richard Biener  <rguenther@suse.de>
1810
1811         PR middle-end/63554
1812         * builtins.c (fold_builtin_4): Do not call fold_builtin_strncat_chk.
1813         (fold_builtin_strncat_chk): Move ...
1814         * gimple-fold.c (gimple_fold_builtin_strncat_chk): ... here.
1815         (gimple_fold_builtin): Call gimple_fold_builtin_strncat_chk.
1816
1817 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1818
1819         PR target/59401
1820         * config/sh/sh.h (CALL_REALLY_USED_REGISTERS): Expand macro and set
1821         GBR to 0.
1822
1823 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1824             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1825             Anna Tikhonova  <anna.tikhonova@intel.com>
1826             Ilya Tocar  <ilya.tocar@intel.com>
1827             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1828             Ilya Verbin  <ilya.verbin@intel.com>
1829             Kirill Yukhin  <kirill.yukhin@intel.com>
1830             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1831
1832         * config/i386/i386.c (ix86_expand_mul_widen_hilo): Handle V32HI, V16SI,
1833         V64QI modes.
1834
1835 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1836             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1837             Anna Tikhonova  <anna.tikhonova@intel.com>
1838             Ilya Tocar  <ilya.tocar@intel.com>
1839             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1840             Ilya Verbin  <ilya.verbin@intel.com>
1841             Kirill Yukhin  <kirill.yukhin@intel.com>
1842             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1843
1844         * config/i386/i386.c (ix86_expand_vector_set): Handle V8DF, V8DI, V16SF,
1845         V16SI, V32HI, V64QI modes.
1846
1847 2014-10-16  Oleg Endo  <olegendo@gcc.gnu.org>
1848
1849         PR target/53513
1850         * config/sh/sh-protos.h (emit_sf_insn, emit_df_insn, expand_sf_unop,
1851         expand_sf_binop, expand_df_unop, expand_df_binop): Remove.
1852
1853         * config/sh/sh.c (sh_emit_set_t_insn): Adjust generated insn pattern
1854         to match fp insn patterns.
1855         (calc_live_regs): Add FPSCR_MODES_REG and FPSCR_STAT_REG to the ignore
1856         list.
1857         (emit_sf_insn, emit_df_insn, expand_sf_unop, expand_sf_binop,
1858         expand_df_unop, expand_df_binop): Remove.
1859         (sh_conditional_register_usage): Mark FPSCR_MODES_REG and
1860         FPSCR_STAT_REG as not call clobbered.
1861         (sh_emit_mode_set): Emit fpscr store-modify-load sequence instead of
1862         invoking fpscr_set_from_mem.
1863
1864         * config/sh/sh.h (MAX_REGISTER_NAME_LENGTH): Increase to 6.
1865         (SH_REGISTER_NAMES_INITIALIZER): Add names for FPSCR_MODES_REG and
1866         FPSCR_STAT_REG.
1867         (REGISTER_NAMES): Adjust.
1868         (SPECIAL_REGISTER_P): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1869         (FIRST_PSEUDO_REGISTER): Increase to 156.
1870         (DWARF_FRAME_REGISTERS): Define as 153 to keep the original value.
1871         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add FPSCR_MODES_REG and
1872         FPSCR_STAT_REG.
1873         (REG_CLASS_CONTENTS): Adjust ALL_REGS bit mask to include
1874         FPSCR_MODES_REG and FPSCR_STAT_REG.
1875         (REG_ALLOC_ORDER): Add FPSCR_MODES_REG and FPSCR_STAT_REG.
1876
1877         * config/sh/sh.md (FPSCR_MODES_REG, FPSCR_STAT_REG, FPSCR_PR,
1878         FPSCR_SZ): Add new constants.
1879         (UNSPECV_FPSCR_MODES, UNSPECV_FPSCR_STAT): Add new unspecv constants.
1880
1881         (movpsi): Use TARGET_FPU_ANY condition, invoke gen_fpu_switch.
1882         (fpu_switch): Add use and set of FPSCR_STAT_REG and FPSCR_MODES_REG.
1883         Use TARGET_FPU_ANY condition.
1884         (fpu_switch peephole2): Remove.
1885         (fpu_switch split): Use simple_mem_operand to capture the mem and
1886         adjust split implementation.
1887         (extend_psi_si, truncate_si_psi): New insns.
1888         (toggle_sz, toggle_pr): Use FPSCR_SZ, FPSCR_PR constants.  Add
1889         set of FPSCR_MODES_REG.
1890
1891         (push_e, push_4, pop_e, pop_4, movdf_i4, reload_indf__frn, movsf_ie,
1892         reload_insf__frn, force_mode_for_call, calli, calli_tbr_rel,
1893         calli_pcrel, call_pcrel, call_compact, call_compact_rettramp,
1894         call_valuei, call_valuei_tbr_rel, call_valuei_pcrel, call_value_pcrel,
1895         call_value_compact, call_value_compact_rettramp, call,
1896         call_pop_compact, call_pop_compact_rettramp, call_value, sibcalli,
1897         sibcalli_pcrel, sibcalli_thunk, sibcall_pcrel, sibcall_compact,
1898         sibcall, sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
1899         sibcall_value_compact, sibcall_value, call_value_pop_compact,
1900         call_value_pop_compact_rettramp, various unnamed splits):
1901         Replace use of FPSCR_REG with use of FPSCR_MODES_REG.  Adjust gen_*
1902         function uses.
1903
1904         (floatsisf2_i4, *floatsisf2_ie): Merge into floatsisf2_i4.
1905         (fix_truncsfsi2_i4, *fixsfsi): Merge into fix_truncsfsi2_i4.
1906         (cmpgtsf_t, cmpgtsf_t_i4): Merge into cmpgtsf_t.
1907         (cmpeqsf_t, cmpeqsf_t_i4): Merge into cmpeqsf_t.
1908         (ieee_ccmpeqsf_t, *ieee_ccmpeqsf_t_4): Merge into ieee_ccmpeqsf_t.
1909
1910         (udivsi3_i4, divsi3_i4, addsf3_i, subsf3_i, mulsf3_i, fmasf4_i,
1911         *fmasf4, divsf3_i, floatsisf2_i4, fix_truncsfsi2_i4, cmpgtsf_t,
1912         cmpeqsf_t, ieee_ccmpeqsf_t, sqrtsf2_i, rsqrtsf2, fsca, adddf3_i,
1913         subdf3_i, muldf3_i, divdf3_i, floatsidf2_i, fix_truncdfsi2_i,
1914         cmpgtdf_t, cmpeqdf_t, *ieee_ccmpeqdf_t, sqrtdf2_i, extendsfdf2_i4,
1915         truncdfsf2_i4): Replace use of FPSCR_REG with clobber of FPSCR_STAT_REG
1916         and use of FPSCR_MODES_REG.  Adjust gen_* function uses.
1917
1918 2014-10-16  Martin Liska  <mliska@suse.cz>
1919             Jan Hubicka  <hubicka@ucw.cz>
1920
1921         * Makefile.in: New object files included.
1922         * cgraph.c (cgraph_node::dump): New cgraph_node flag icf_merged
1923         is printed.
1924         (verify_edge_corresponds_to_fndecl): More sensitive verification
1925         of nodes that are merged by IPA ICF.
1926         * cgraph.h (cgraph_node::num_references): New function.
1927         * cgraphunit.c (cgraph_node::expand_thunk): White space fixed.
1928         * common.opt: New options ipa-icf, ipa-icf-functions and
1929         ipa-icf-variables introduced.
1930         * doc/invoke.texi: Documentation of new options introduced.
1931         * ipa-icf-gimple.c: New file.
1932         * ipa-icf-gimple.h: New file.
1933         * ipa-icf.c: New file.
1934         * ipa-icf.h: New file.
1935         * lto-cgraph.c (lto_output_node): Streaming of icf_merged flag added.
1936         (input_overwrite_node): Likewise.
1937         * lto-section-in.c: New icf section added.
1938         * lto-streamer.h (enum lto_section_type): Likewise.
1939         * opts.c (common_handle_option): New option added.
1940         * passes.def: New pass included.
1941         * timevar.def: Time variable for IPA ICF added.
1942         * tree-pass.h: New IPA ICF pass entry point added.
1943
1944 2014-10-16  Richard Biener  <rguenther@suse.de>
1945
1946         PR tree-optimization/63168
1947         * tree-cfg.c (gimple_can_merge_blocks_p): Only protect
1948         latches if after merging they are no longer simple.
1949         * cfghooks.c (merge_blocks): Handle merging a latch block
1950         into another block.
1951
1952 2014-10-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
1953             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
1954             Anna Tikhonova  <anna.tikhonova@intel.com>
1955             Ilya Tocar  <ilya.tocar@intel.com>
1956             Andrey Turetskiy  <andrey.turetskiy@intel.com>
1957             Ilya Verbin  <ilya.verbin@intel.com>
1958             Kirill Yukhin  <kirill.yukhin@intel.com>
1959             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
1960
1961         * config/i386/sse.md
1962         (define_expand "floatuns<sseintvecmodelower><mode>2"): Extend to
1963         support AVX-512VL instructions.
1964
1965 2014-10-16  DJ Delorie  <dj@redhat.com>
1966
1967         * tree-core.h: Fix comment to not assume pointers are multiples of
1968         bytes.
1969
1970 2014-10-15  Tom Tromey  <tromey@redhat.com>
1971
1972         * timevar.h (class auto_timevar): New class.
1973
1974 2014-10-15  Uros Bizjak  <ubizjak@gmail.com>
1975
1976         PR go/59432
1977         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1978         Remove the second alternative.
1979         (regprefix): Remove mode attribute.
1980         (atomic_compare_and_swap<mode>): Do not fixup operand 2.
1981         * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): Remove.
1982
1983         Revert:
1984         2013-11-05  Ian Lance Taylor  <iant@google.com>
1985
1986         * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
1987         If possible, add .cfi directives to record change to bx.
1988         * config/i386/i386.c (ix86_emit_cfi): New function.
1989         * config/i386/i386-protos.h (ix86_emit_cfi): Declare.
1990
1991 2014-10-15  Jan Hubicka  <hubicka@ucw.cz>
1992
1993         PR lto/62026
1994         * cgraphclones.c (duplicate_thunk_for_node): Get body to have args
1995         to duplicate.
1996         * lto-streamer-out.c (lto_output): Handle correctly thunks that was born
1997         at WPA time.
1998
1999 2014-10-15  Vladimir Makarov  <vmakarov@redhat.com>
2000
2001         PR rtl-optimization/63448
2002         * lra-int.h (LRA_MAX_CONSTRAINT_ITERATION_NUMBER): Remove.
2003         (LRA_MAX_ASSIGNMENT_ITERATION_NUMBER): New.
2004         (LRA_MAX_INHERITANCE_PASSES): Use it.
2005         (lra_constraint_iter_after_spill): Remove.
2006         (lra_assignment_iter): New.
2007         (lra_assignment_iter_after_spill): New.
2008         * lra-assigns.c (lra_assignment_iter): New.
2009         (lra_assignment_iter_after_spill): New.
2010         (former_reload_pseudo_spill_p): New.
2011         (spill_for): Set up former_reload_pseudo_spill_p.
2012         (setup_live_pseudos_and_spill_after_risky): Ditto.
2013         (assign_by_spills): Ditto.
2014         (lra_assign): Increment lra_assignment_iter.  Print the iteration
2015         number.  Reset former_reload_pseudo_spill_p.  Check
2016         lra_assignment_iter_after_spill.
2017         * lra.c (lra): Remove lra_constraint_iter_after_spill.  Initialize
2018         lra_assignment_iter and lra_assignment_iter_after_spill.
2019         * lra-constraints.c (lra_constraint_iter_after_spill): Remove.
2020         (lra_constraints): Remove code with
2021         lra_assignment_iter_after_spill.
2022
2023 2014-10-15  Teresa Johnson  <tejohnson@google.com>
2024
2025         PR bootstrap/63432
2026         * tree-ssa-threadupdate.c (recompute_probabilities): Better
2027         overflow checking.
2028
2029 2014-10-15  Renlin Li <renlin.li@arm.com>
2030
2031         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2032         __ARM_BIG_ENDIAN, __ARM_SIZEOF_MINIMAL_ENUM. Add __ARM_64BIT_STATE,
2033         __ARM_ARCH_ISA_A64, __ARM_FEATURE_CLZ, __ARM_FEATURE_IDIV,
2034         __ARM_FEATURE_UNALIGNED, __ARM_PCS_AAPCS64, __ARM_SIZEOF_WCHAR_T.
2035
2036 2014-10-15  Richard Biener  <rguenther@suse.de>
2037
2038         * gimple-fold.c (gimple_fold_call): Properly keep virtual
2039         SSA form up-to-date when devirtualizing a call to
2040         __builtin_unreachable and avoid fixing up EH info here.
2041
2042 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2043             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2044             Anna Tikhonova  <anna.tikhonova@intel.com>
2045             Ilya Tocar  <ilya.tocar@intel.com>
2046             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2047             Ilya Verbin  <ilya.verbin@intel.com>
2048             Kirill Yukhin  <kirill.yukhin@intel.com>
2049             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2050
2051         * config/i386/sse.md (define_mode_iterator VI_AVX2): Extend
2052         to support AVX-512BW.
2053         (define_mode_iterator VI124_AVX2_48_AVX512F): Remove.
2054         (define_expand "<plusminus_insn><mode>3"): Remove masking support.
2055         (define_insn "*<plusminus_insn><mode>3"): Ditto.
2056         (define_expand "<plusminus_insn><VI48_AVX512VL:mode>3_mask"): New.
2057         (define_expand "<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2058         (define_insn "*<plusminus_insn><VI48_AVX512VL:mode>3_mask"): Ditto.
2059         (define_insn "*<plusminus_insn><VI12_AVX512VL:mode>3_mask"): Ditto.
2060         (define_expand "<sse2_avx2>_andnot<mode>3"): Remove masking support.
2061         (define_insn "*andnot<mode>3"): Ditto.
2062         (define_expand "<sse2_avx2>_andnot<VI48_AVX512VL:mode>3_mask"): New.
2063         (define_expand "<sse2_avx2>_andnot<VI12_AVX512VL:mode>3_mask"): Ditto.
2064         (define_insn "*andnot<VI48_AVX512VL:mode>3<mask_name>"): Ditto.
2065         (define_insn "*andnot<VI12_AVX512VL:mode>3<mask_name>"): Ditto.
2066         (define_insn "*abs<mode>2"): Remove masking support.
2067         (define_insn "abs<VI48_AVX512VL:mode>2_mask"): New.
2068         (define_insn "abs<VI12_AVX512VL:mode>2_mask"): Ditto.
2069         (define_expand "abs<mode>2"): Use VI_AVX2 mode iterator.
2070
2071 2014-10-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2072             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2073             Anna Tikhonova  <anna.tikhonova@intel.com>
2074             Ilya Tocar  <ilya.tocar@intel.com>
2075             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2076             Ilya Verbin  <ilya.verbin@intel.com>
2077             Kirill Yukhin  <kirill.yukhin@intel.com>
2078             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2079
2080         * config/i386/predicates.md (define_predicate "constm1_operand"): New.
2081         * config/i386/sse.md
2082         (define_c_enum "unspec"): Add UNSPEC_CVTINT2MASK.
2083         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI12_AVX512VL:mode>"): New.
2084         (define_insn "<avx512>_cvt<ssemodesuffix>2mask<VI48_AVX512VL:mode>"): Ditto.
2085         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2086         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI12_AVX512VL:mode>"): Ditto.
2087         (define_expand "<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2088         (define_insn "*<avx512>_cvtmask2<ssemodesuffix><VI48_AVX512VL:mode>"): Ditto.
2089
2090 2014-10-15  Renlin Li <renlin.li@arm.com>
2091
2092         * config/aarch64/aarch64.h (ARM_DEFAULT_PCS, arm_pcs_variant): Delete.
2093
2094 2014-10-15  Jakub Jelinek  <jakub@redhat.com>
2095
2096         * tree-ssa-reassoc.c (optimize_range_tests_diff): Perform
2097         MINUS_EXPR in unsigned type to avoid undefined behavior.
2098
2099 2014-10-15  Eric Botcazou  <ebotcazou@adacore.com>
2100
2101         * stor-layout.c (self_referential_size): Do not promote arguments.
2102
2103 2014-10-15  Marek Polacek  <polacek@redhat.com>
2104
2105         * doc/invoke.texi: Update to reflect that GNU11 is the default
2106         mode for C.
2107         * c-common.h (c_language_kind): Update comment.
2108
2109 2014-10-15  Richard Biener  <rguenther@suse.de>
2110
2111         * hash-table.c: Include bconfig.h if building for the host.
2112         * hash-table.h: Do not include ggc.h on the host but just declare
2113         a few ggc allocation templates.
2114
2115 2014-10-15  Joern Rennecke  <joern.rennecke@embecosm.com>
2116             Jeff Law  <law@redhat.com>
2117
2118         * caller-save.c (replace_reg_with_saved_mem): If saved_mode covers
2119         multiple hard registers, use smaller mode derived from MODE.
2120
2121 2014-10-15  Andreas Schwab  <schwab@suse.de>
2122
2123         * explow.c (convert_memory_address_addr_space_1): Mark in_const
2124         as ATTRIBUTE_UNUSED.
2125
2126 2014-10-14  Jan Hubicka  <hubicka@ucw.cz>
2127
2128         * loop-unroll.c: (decide_unrolling_and_peeling): Rename to
2129         (decide_unrolling): ... this one.
2130         (peel_loops_completely): Remove.
2131         (decide_peel_simple): Remove.
2132         (decide_peel_once_rolling): Remove.
2133         (decide_peel_completely): Remove.
2134         (peel_loop_simple): Remove.
2135         (peel_loop_completely): Remove.
2136         (unroll_and_peel_loops): Rename to ...
2137         (unroll_loops): ... this one; handle only unrolling.
2138         * cfgloop.h (lpt_dec): Remove LPT_PEEL_COMPLETELY and
2139         LPT_PEEL_SIMPLE.
2140         (UAP_PEEL): Remove.
2141         (unroll_and_peel_loops): Remove.
2142         (unroll_loops): New.
2143         * passes.def: Replace
2144         pass_rtl_unroll_and_peel_loops by pass_rtl_unroll_loops.
2145         * loop-init.c (gate_rtl_unroll_and_peel_loops,
2146         rtl_unroll_and_peel_loops): Rename to ...
2147         (gate_rtl_unroll_loops, rtl_unroll_loops): ... these; update.
2148         (pass_rtl_unroll_and_peel_loops): Rename to ...
2149         (pass_rtl_unroll_loops): ... this one.
2150         * tree-pass.h (make_pass_rtl_unroll_and_peel_loops): Remove.
2151         (make_pass_rtl_unroll_loops): New.
2152         * tree-ssa-loop-ivcanon.c: (estimated_peeled_sequence_size, try_peel_loop): New.
2153         (canonicalize_loop_induction_variables): Update.
2154
2155 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2156
2157         * config/xtensa/xtensa.h (TARGET_HARD_FLOAT_POSTINC): new macro.
2158         * config/xtensa/xtensa.md (*lsiu, *ssiu): add dependency on
2159         !TARGET_HARD_FLOAT_POSTINC.
2160         (*lsip, *ssip): new instructions.
2161
2162 2014-10-14  Max Filippov  <jcmvbkbc@gmail.com>
2163
2164         * config/xtensa/xtensa.md (divsf3, *recipsf2, sqrtsf2, *rsqrtsf2):
2165         remove.
2166
2167 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2168
2169         * explow.c (convert_memory_address_addr_space): Rename to ...
2170         (convert_memory_address_addr_space_1): This.  Add in_const argument.
2171         Inside a CONST RTL, permute the conversion and addition of constant
2172         for zero and sign extended pointers.
2173         (convert_memory_address_addr_space): New function.
2174
2175 2014-10-14  Andrew Pinski  <apinski@cavium.com>
2176
2177         Revert:
2178         2011-08-19  H.J. Lu  <hongjiu.lu@intel.com>
2179
2180         PR middle-end/49721
2181         * explow.c (convert_memory_address_addr_space): Also permute the
2182         conversion and addition of constant for zero-extend.
2183
2184 2014-10-14  DJ Delorie  <dj@redhat.com>
2185
2186         * config/msp430/msp430-modes.def (PSI): Add.
2187
2188         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs_has_padding): New.
2189         (msp430_hard_regno_nregs_with_padding): New.
2190         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): New.
2191         (msp430_hard_regno_nregs_has_padding): New.
2192         (msp430_hard_regno_nregs_with_padding): New.
2193         (msp430_unwind_word_mode): Use PSImode instead of SImode.
2194         (msp430_addr_space_legitimate_address_p): New.
2195         (msp430_asm_integer): New.
2196         (msp430_init_dwarf_reg_sizes_extra): New.
2197         (msp430_print_operand): Use X suffix for PSImode even in small model.
2198         * config/msp430/msp430.h (POINTER_SIZE): Use 20 bits, not 32.
2199         (PTR_SIZE): ...but 4 bytes for EH.
2200         (SIZE_TYPE): Use __int20.
2201         (PTRDIFF_TYPE): Likewise.
2202         (INCOMING_FRAME_SP_OFFSET): Adjust.
2203         * config/msp430/msp430.md (movqi_topbyte): New.
2204         (movpsi): Use fixed suffixes.
2205         (movsipsi2): Enable for 430X, not large model.
2206         (extendhipsi2): Likewise.
2207         (zero_extendhisi2): Likewise.
2208         (zero_extendhisipsi2): Likewise.
2209         (extend_and_shift1_hipsi2): Likewise.
2210         (extendpsisi2): Likewise.
2211         (*bitbranch<mode>4_z): Fix suffix logic.
2212
2213 2014-10-14  Eric Botcazou  <ebotcazou@adacore.com>
2214
2215         PR ada/62019
2216         * tree-eh.c (tree_could_trap) <FUNCTION_DECL>: Revamp and really
2217         do not choke on null node.
2218         <VAR_DECL>: Likewise.
2219
2220 2014-10-14  DJ Delorie  <dj@redhat.com>
2221
2222         * machmode.h (int_n_data_t): New.
2223         (int_n_enabled_p): New.
2224         (int_n_data): New.
2225         * tree.c (int_n_enabled_p): New.
2226         (int_n_trees): New.
2227         (make_or_reuse_type): Check for all __intN types, not just
2228         __int128.
2229         (build_common_tree_nodes): Likewise.  Also fill in integer_typs[]
2230         entries.
2231         * tree.h (int128_integer_type_node): Remove.
2232         (int128_unsigned_type_node): Remove.
2233         (int_n_trees_t): New.
2234         (int_n_enabled_p): New.
2235         (int_n_trees): New.
2236         * toplev.c (standard_type_bitsize): New.
2237         (do_compile): Check which __intN types are enabled for the current
2238         run.
2239         * builtin-types.def (BT_INT128): Remove.
2240         (BT_UINT128): Remove.
2241         * machmode.def: Add macro to create __int128 for all targets.
2242         * stor-layout.c (mode_for_size): Support __intN types.
2243         (smallest_mode_for_size): Likewise.
2244         (initialize_sizetypes): Support __intN types.
2245         * genmodes.c (struct mode_data): Add int_n field.
2246         (blank_mode): Likewise.
2247         (INT_N): New.
2248         (make_int_n): New.
2249         (emit_insn_modes_h): Count __intN entries and define
2250         NUM_INT_N_ENTS.
2251         (emit_mode_int_n): New.
2252         (emit_insn_modes_c): Call it.
2253         * gimple.c (gimple_signed_or_unsigned_type): Check for all __intN
2254         types, not just __int128.
2255         * tree-core.h (integer_type_kind): Remove __int128-specific
2256         entries, reserve spots for __intN entries.
2257
2258         * config/msp430/msp430-modes.def (PSI): Add.
2259
2260 2014-10-14  Kito Cheng  <kito@0xlab.org>
2261
2262         * ira.c: Fix typo in comment.
2263         * ira.h: Ditto.
2264         * ira-build.c: Ditto.
2265         * ira-color.c: Ditto.
2266         * ira-emit.c: Ditto.
2267         * ira-int.h: Ditto.
2268         * ira-lives.c: Ditto.
2269
2270 2014-10-14  Uros Bizjak  <ubizjak@gmail.com>
2271
2272         PR rtl-optimization/63475
2273         * alias.c (true_dependence_1): Always use get_addr to extract
2274         true address operands from x_addr and mem_addr.  Use extracted
2275         address operands to check for references with alignment ANDs.
2276         Use extracted address operands with find_base_term and
2277         base_alias_check. For noncanonicalized operands call canon_rtx with
2278         extracted address operand.
2279         (write_dependence_1): Ditto.
2280         (may_alias_p): Ditto.  Remove unused calls to canon_rtx.
2281
2282 2014-10-14  Evgeny Stupachenko  <evstupac@gmail.com>
2283
2284         PR target/63534
2285         * config/i386/i386.c (ix86_expand_split_stack_prologue): Make
2286         __morestack local.
2287
2288 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2289             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2290             Anna Tikhonova  <anna.tikhonova@intel.com>
2291             Ilya Tocar  <ilya.tocar@intel.com>
2292             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2293             Ilya Verbin  <ilya.verbin@intel.com>
2294             Kirill Yukhin  <kirill.yukhin@intel.com>
2295             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2296
2297         * config/i386/i386.c
2298         (ix86_expand_sse_movcc): Handle V64QI and V32HI mode.
2299         (ix86_expand_int_vcond): Ditto.
2300
2301 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2302             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2303             Anna Tikhonova  <anna.tikhonova@intel.com>
2304             Ilya Tocar  <ilya.tocar@intel.com>
2305             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2306             Ilya Verbin  <ilya.verbin@intel.com>
2307             Kirill Yukhin  <kirill.yukhin@intel.com>
2308             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2309
2310         * config/i386/i386.c
2311         (emit_reduc_half): Handle V64QI and V32HI mode.
2312         * config/i386/sse.md
2313         (define_mode_iterator VI_AVX512BW): New.
2314         (define_expand "reduc_<code>_<mode>"): Use VI512_48F_12BW.
2315
2316 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2317             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2318             Anna Tikhonova  <anna.tikhonova@intel.com>
2319             Ilya Tocar  <ilya.tocar@intel.com>
2320             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2321             Ilya Verbin  <ilya.verbin@intel.com>
2322             Kirill Yukhin  <kirill.yukhin@intel.com>
2323             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2324
2325         * config/i386/sse.md
2326         (define_mode_iterator REDUC_SMINMAX_MODE): Add V64QI and V32HI modes.
2327
2328 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2329             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2330             Anna Tikhonova  <anna.tikhonova@intel.com>
2331             Ilya Tocar  <ilya.tocar@intel.com>
2332             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2333             Ilya Verbin  <ilya.verbin@intel.com>
2334             Kirill Yukhin  <kirill.yukhin@intel.com>
2335             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2336
2337         * config/i386/i386.c
2338         (ix86_expand_vector_logical_operator): Handle V16SF and V8DF modes.
2339         * config/i386/sse.md
2340         (define_mode_iterator VI): Add V64QI and V32HI modes.
2341
2342 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2343             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2344             Anna Tikhonova  <anna.tikhonova@intel.com>
2345             Ilya Tocar  <ilya.tocar@intel.com>
2346             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2347             Ilya Verbin  <ilya.verbin@intel.com>
2348             Kirill Yukhin  <kirill.yukhin@intel.com>
2349             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2350
2351         * config/i386/sse.md (define_mode_attr avx2_avx512f): Remove.
2352
2353 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2354             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2355             Anna Tikhonova  <anna.tikhonova@intel.com>
2356             Ilya Tocar  <ilya.tocar@intel.com>
2357             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2358             Ilya Verbin  <ilya.verbin@intel.com>
2359             Kirill Yukhin  <kirill.yukhin@intel.com>
2360             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2361
2362         * config/i386/sse.md
2363         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Add masking.
2364         (define_insn "*sse4_1_<code><mode>3<mask_name>"): Ditto.
2365
2366 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2367             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2368             Anna Tikhonova  <anna.tikhonova@intel.com>
2369             Ilya Tocar  <ilya.tocar@intel.com>
2370             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2371             Ilya Verbin  <ilya.verbin@intel.com>
2372             Kirill Yukhin  <kirill.yukhin@intel.com>
2373             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2374
2375         * config/i386/sse.md
2376         (define_insn "avx512bw_umulhrswv32hi3<mask_name>"): New.
2377         (define_expand "<ssse3_avx2>_pmulhrsw<mode>3_mask"): Ditto.
2378
2379 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2380             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2381             Anna Tikhonova  <anna.tikhonova@intel.com>
2382             Ilya Tocar  <ilya.tocar@intel.com>
2383             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2384             Ilya Verbin  <ilya.verbin@intel.com>
2385             Kirill Yukhin  <kirill.yukhin@intel.com>
2386             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2387
2388         * config/i386/sse.md
2389         (define_c_enum "unspec"): Add UNSPEC_PMADDWD512.
2390         (define_mode_iterator VI2_AVX2): Add V32HI mode.
2391         (define_expand "mul<mode>3<mask_name>"): Add masking.
2392         (define_insn "*mul<mode>3<mask_name>"): Ditto.
2393         (define_expand "<s>mul<mode>3_highpart<mask_name>"): Ditto.
2394         (define_insn "*<s>mul<mode>3_highpart<mask_name>"): Ditto.
2395         (define_insn "avx512bw_pmaddwd512<mode><mask_name>"): New.
2396         (define_mode_attr SDOT_PMADD_SUF): Ditto.
2397         (define_expand "sdot_prod<mode>"): Add <SDOT_PMADD_SUF>.
2398         (define_insn "<sse2_avx2>_packssdw<mask_name>"): Add masking.
2399         (define_insn "*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>"): Ditto.
2400         (define_insn "avx2_packusdw"): Delete.
2401         (define_insn "sse4_1_packusdw"): Ditto.
2402         (define_insn "<sse4_1_avx2>_packusdw<mask_name>"): New.
2403
2404 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2405             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2406             Anna Tikhonova  <anna.tikhonova@intel.com>
2407             Ilya Tocar  <ilya.tocar@intel.com>
2408             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2409             Ilya Verbin  <ilya.verbin@intel.com>
2410             Kirill Yukhin  <kirill.yukhin@intel.com>
2411             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2412
2413         * config/i386/sse.md
2414         (define_insn "vec_dup<mode>"): Update constraints.
2415
2416 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2417             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2418             Anna Tikhonova  <anna.tikhonova@intel.com>
2419             Ilya Tocar  <ilya.tocar@intel.com>
2420             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2421             Ilya Verbin  <ilya.verbin@intel.com>
2422             Kirill Yukhin  <kirill.yukhin@intel.com>
2423             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2424
2425         * config/i386/sse.md
2426         (define_mode_iterator SSESCALARMODE): Add V4TI mode.
2427         (define_insn "<ssse3_avx2>_palignr<mode>_mask"): New.
2428         (define_insn "<ssse3_avx2>_palignr<mode>"): Add EVEX version.
2429
2430 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2431             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2432             Anna Tikhonova  <anna.tikhonova@intel.com>
2433             Ilya Tocar  <ilya.tocar@intel.com>
2434             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2435             Ilya Verbin  <ilya.verbin@intel.com>
2436             Kirill Yukhin  <kirill.yukhin@intel.com>
2437             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2438
2439         * config/i386/sse.md
2440         (define_expand "mul<mode>3<mask_name>"): Add masking.
2441
2442 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2443             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2444             Anna Tikhonova  <anna.tikhonova@intel.com>
2445             Ilya Tocar  <ilya.tocar@intel.com>
2446             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2447             Ilya Verbin  <ilya.verbin@intel.com>
2448             Kirill Yukhin  <kirill.yukhin@intel.com>
2449             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2450
2451         * config/i386/sse.md
2452         (define_insn "<sse2_avx2>_packsswb<mask_name>"): Add masking.
2453         (define_insn "<sse2_avx2>_packuswb<mask_name>"): Ditto.
2454
2455 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2456             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2457             Anna Tikhonova  <anna.tikhonova@intel.com>
2458             Ilya Tocar  <ilya.tocar@intel.com>
2459             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2460             Ilya Verbin  <ilya.verbin@intel.com>
2461             Kirill Yukhin  <kirill.yukhin@intel.com>
2462             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2463
2464         * config/i386/sse.md
2465         (define_c_enum "unspec"): Add UNSPEC_DBPSADBW, UNSPEC_PMADDUBSW512.
2466         (define_insn "avx512bw_pmaddubsw512<mode><mask_name>"): New.
2467         (define_insn "<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>"):
2468         Ditto.
2469
2470 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2471             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2472             Anna Tikhonova  <anna.tikhonova@intel.com>
2473             Ilya Tocar  <ilya.tocar@intel.com>
2474             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2475             Ilya Verbin  <ilya.verbin@intel.com>
2476             Kirill Yukhin  <kirill.yukhin@intel.com>
2477             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2478
2479         * config/i386/sse.md
2480         (define_insn "<sse>_andnot<VF_128_256:mode>3<mask_name>"): Add masking,
2481         use VF_128_256 mode iterator and update assembler emit code.
2482         (define_insn "<sse>_andnot<VF_512:mode>3<mask_name>"): New.
2483         (define_expand "<any_logic:code><VF_128_256:mode>3<mask_name>"):
2484         Add masking, use VF_128_256 mode iterator.
2485         (define_expand "<any_logic:code><VF_512:mode>3<mask_name>"): New.
2486         (define_insn "*<any_logic:code><VF_128_256:mode>3<mask_name>"):
2487         Add masking, use VF_128_256 mode iterator and update assembler emit
2488         code.
2489         (define_insn "*<any_logic:code><VF_512:mode>3<mask_name>"): New.
2490         (define_mode_attr avx512flogicsuff): Delete.
2491         (define_insn "avx512f_<logic><mode>"): Ditto.
2492         (define_insn "*andnot<mode>3<mask_name>"): Update MODE_XI, MODE_OI,
2493         MODE_TI.
2494         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
2495
2496 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2497             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2498             Anna Tikhonova  <anna.tikhonova@intel.com>
2499             Ilya Tocar  <ilya.tocar@intel.com>
2500             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2501             Ilya Verbin  <ilya.verbin@intel.com>
2502             Kirill Yukhin  <kirill.yukhin@intel.com>
2503             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2504
2505         * config/i386/sse.md
2506         (define_mode_iterator VI128_128 [V16QI V8HI V2DI]): Delete.
2507         (define_expand "vashr<mode>3<mask_name>"): Add masking,
2508         use VI12_128 mode iterator.
2509         (define_expand "ashrv2di3<mask_name>"): New.
2510
2511 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2512             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2513             Anna Tikhonova  <anna.tikhonova@intel.com>
2514             Ilya Tocar  <ilya.tocar@intel.com>
2515             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2516             Ilya Verbin  <ilya.verbin@intel.com>
2517             Kirill Yukhin  <kirill.yukhin@intel.com>
2518             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2519
2520         * config/i386/i386.c
2521         (ix86_expand_args_builtin): Handle CODE_FOR_avx512vl_cmpv4di3_mask,
2522         CODE_FOR_avx512vl_cmpv8si3_mask, CODE_FOR_avx512vl_ucmpv4di3_mask,
2523         CODE_FOR_avx512vl_ucmpv8si3_mask, CODE_FOR_avx512vl_cmpv2di3_mask,
2524         CODE_FOR_avx512vl_cmpv4si3_mask, CODE_FOR_avx512vl_ucmpv2di3_mask,
2525         CODE_FOR_avx512vl_ucmpv4si3_mask.
2526         * config/i386/sse.md
2527         (define_insn "avx512f_ucmp<mode>3<mask_scalar_merge_name>"): Delete.
2528         "<avx512>_ucmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name>"):New.
2529         (define_insn
2530         "<avx512>_ucmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name>"):Ditto.
2531         (define_expand "<avx512>_eq<mode>3<mask_scalar_merge_name>"): Ditto.
2532         (define_insn "<avx512>_eq<mode>3<mask_scalar_merge_name>_1"): Ditto.
2533         (define_insn "<avx512>_gt<mode>3<mask_scalar_merge_name>"): Ditto.
2534         (define_insn "<avx512>_testm<mode>3<mask_scalar_merge_name>"): Ditto.
2535         (define_insn "<avx512>_testnm<mode>3<mask_scalar_merge_name>"): Ditto.
2536
2537 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2538             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2539             Anna Tikhonova  <anna.tikhonova@intel.com>
2540             Ilya Tocar  <ilya.tocar@intel.com>
2541             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2542             Ilya Verbin  <ilya.verbin@intel.com>
2543             Kirill Yukhin  <kirill.yukhin@intel.com>
2544             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2545
2546         * config/i386/sse.md
2547         (define_expand "vec_widen_umult_even_v8si<mask_name>"): Add masking.
2548         (define_insn "*vec_widen_umult_even_v8si<mask_name>"): Ditto.
2549         (define_expand "vec_widen_umult_even_v4si<mask_name>"): Ditto.
2550         (define_insn "*vec_widen_umult_even_v4si<mask_name>"): Ditto.
2551         (define_expand "vec_widen_smult_even_v8si<mask_name>"): Ditto.
2552         (define_insn "*vec_widen_smult_even_v8si<mask_name>"): Ditto.
2553         (define_expand "sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2554         (define_insn "*sse4_1_mulv2siv2di3<mask_name>"): Ditto.
2555         (define_insn "avx512dq_mul<mode>3<mask_name>"): New.
2556
2557 2014-10-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
2558             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
2559             Anna Tikhonova  <anna.tikhonova@intel.com>
2560             Ilya Tocar  <ilya.tocar@intel.com>
2561             Andrey Turetskiy  <andrey.turetskiy@intel.com>
2562             Ilya Verbin  <ilya.verbin@intel.com>
2563             Kirill Yukhin  <kirill.yukhin@intel.com>
2564             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
2565
2566         * config/i386/sse.md
2567         (define_insn "avx512f_blendm<mode>"): Delete.
2568         (define_insn "<avx512>_blendm<VI48_AVX512VL:mode>"): New.
2569         (define_insn "<avx512>_blendm<VI12_AVX512VL:mode>"): Ditto..
2570         (define_mode_attr cmp_imm_predicate): Add V8SF, V4DF, V8SI, V4DI, V4SF,
2571         V2DF, V4SI, V2DI, V32HI, V64QI, V16HI, V32QI, V8HI, V16QI modes.
2572         (define_insn
2573         "avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2574         Remove.
2575         (define_insn
2576         "<avx512>_cmp<VI48_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2577         New.
2578         (define_insn
2579         "<avx512>_cmp<VI12_AVX512VL:mode>3<mask_scalar_merge_name><round_saeonly_name>"):
2580         Ditto.
2581         (define_insn "<mask_codefor>avx512f_vec_dup<mode><mask_name>"): Delete.
2582         (define_insn "<avx512>_vec_dup<V48_AVX512VL:mode><mask_name>"): New.
2583         (define_insn "<avx512>_vec_dup<V12_AVX512VL:mode><mask_name>"): Ditto.
2584         (define_insn "<mask_codefor>avx512f_vec_dup_gpr<mode><mask_name>"):
2585         Delete.
2586         (define_insn
2587         "<mask_codefor><avx512>_vec_dup_gpr<VI48_AVX512VL:mode><mask_name>"):
2588         New.
2589         (define_insn
2590         "<mask_codefor><avx512>_vec_dup_gpr<VI12_AVX512VL:mode><mask_name>"):
2591         Ditto.
2592         (define_insn·"<mask_codefor>avx512f_vec_dup_mem<mode><mask_name>"):
2593         Delete.
2594         (define_insn
2595         "<mask_codefor><avx512>_vec_dup_mem<VI48_AVX512VL:mode><mask_name>"):
2596         New.
2597         (define_insn
2598         "<mask_codefor><avx512>_vec_dup_mem<VI12_AVX512VL:mode><mask_name>"):
2599         Ditto.
2600
2601 2014-10-14  Richard Biener  <rguenther@suse.de>
2602
2603         PR tree-optimization/63512
2604         * tree-ssa-pre.c (create_expression_by_pieces): Mark stmts
2605         modified.
2606
2607 2014-10-14  Oleg Endo  <olegendo@gcc.gnu.org>
2608
2609         PR target/63260
2610         * config/sh/sh.md (negsf2, negsf2_i, negdf2, negdf2_i, abssf2,
2611         abssf2_i, absdf2, absdf2_i): Remove fp_mode attribute.  Remove use
2612         of FPSCR.
2613         (negsf2_i): Rename to *negsf2_i.
2614         (abssf2_i): Rename to *abssf2_i.
2615         (negdf2_i): Rename to *negdf2_i.
2616         (absdf2_i): Rename to *absdf2_i.
2617
2618 2014-10-14  Felix Yang  <felix.yang@huawei.com>
2619             Jeff Law  <law@redhat.com>
2620
2621         * ira.c (struct equivalence): Change member "is_arg_equivalence" and
2622         "replace" into boolean bitfields; turn member "loop_depth" into a short
2623         integer; add new member "no_equiv" and "reserved".
2624         (no_equiv): Set no_equiv of struct equivalence if register is marked
2625         as having no known equivalence.
2626         (update_equiv_regs): Check all definitions for a multiple-set
2627         register to make sure that the RHS have the same value.
2628
2629 2014-10-13  Richard Henderson  <rth@redhat.com>
2630
2631         * combine-stack-adj.c (no_unhandled_cfa): New.
2632         (maybe_merge_cfa_adjust): New.
2633         (combine_stack_adjustments_for_block): Use them.
2634
2635 2014-10-13  Aldy Hernandez  <aldyh@redhat.com>
2636
2637         * Makefile.in (TAGS): Tag ../include files.
2638
2639 2014-10-13  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
2640
2641         * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Pass format argument
2642         to rs6000_dbx_register_number.
2643         (DWARF_FRAME_REGNUM): Redefine as identity map.
2644         (DWARF2_FRAME_REG_OUT): Call rs6000_dbx_register_number.
2645         * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Update.
2646         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Add format
2647         argument to handle .debug_frame and .eh_frame directly.  Always
2648         translate SPE high register numbers.  Add special treatment for CR,
2649         but only in .debug_frame.  Respect RS6000_USE_DWARF_NUMBERING.
2650
2651         * config/rs6000/sysv.h (DBX_REGISTER_NUMBER): Do not undefine.
2652         * config/rs6000/freebsd.h (DBX_REGISTER_NUMBER): Remove.
2653         (RS6000_USE_DWARF_NUMBERING): Define.
2654         * config/rs6000/freebsd64.h (DBX_REGISTER_NUMBER): Remove.
2655         (RS6000_USE_DWARF_NUMBERING): Define.
2656         * config/rs6000/netbsd.h (DBX_REGISTER_NUMBER): Remove.
2657         (RS6000_USE_DWARF_NUMBERING): Define.
2658         * config/rs6000/lynx.h (DBX_REGISTER_NUMBER): Remove.
2659         (RS6000_USE_DWARF_NUMBERING): Define.
2660         * config/rs6000/aix.h (RS6000_USE_DWARF_NUMBERING): Define.
2661         * config/rs6000/darwin.h (RS6000_USE_DWARF_NUMBERING): Define.
2662
2663 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2664
2665         * config/i386/i386.c (ix86_address_cost): Lower cost for
2666         when address contains GOT register.
2667
2668 2014-10-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2669             Vladimir Makarov  <vmakarov@redhat.com>
2670
2671         PR target/8340
2672         PR middle-end/47602
2673         PR rtl-optimization/55458
2674         * config/i386/i386.c (ix86_use_pseudo_pic_reg): New.
2675         (ix86_init_pic_reg): New.
2676         (ix86_select_alt_pic_regnum): Add check on pseudo register.
2677         (ix86_save_reg): Likewise.
2678         (ix86_expand_prologue): Remove PIC register initialization
2679         now performed in ix86_init_pic_reg.
2680         (ix86_output_function_epilogue): Add check on pseudo register.
2681         (set_pic_reg_ever_alive): New.
2682         (legitimize_pic_address): Replace df_set_regs_ever_live with new
2683         set_pic_reg_ever_alive.
2684         (legitimize_tls_address): Likewise.
2685         (ix86_pic_register_p): New check.
2686         (ix86_delegitimize_address): Add check on pseudo register.
2687         (ix86_expand_call): Insert move from pseudo PIC register to ABI
2688         defined REAL_PIC_OFFSET_TABLE_REGNUM.
2689         (TARGET_INIT_PIC_REG): New.
2690         (TARGET_USE_PSEUDO_PIC_REG): New.
2691         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Return INVALID_REGNUM
2692         if pic_offset_table_rtx exists.
2693         * doc/tm.texi.in (TARGET_USE_PSEUDO_PIC_REG, TARGET_INIT_PIC_REG):
2694         Document.
2695         * doc/tm.texi: Regenerate.
2696         * function.c (assign_parms): Generate pseudo register for PIC.
2697         * init-regs.c (initialize_uninitialized_regs): Ignor pseudo PIC
2698         register.
2699         * ira-color.c (color_pass): Add check on pseudo register.
2700         * ira-emit.c (change_loop): Don't create copies for PIC pseudo
2701         register.
2702         * ira.c (split_live_ranges_for_shrink_wrap): Add check on pseudo
2703         register.
2704         (ira): Add target specific PIC register initialization.
2705         (do_reload): Keep PIC pseudo register.
2706         * lra-assigns.c (spill_for): Add checks on pseudo register.
2707         * lra-constraints.c (contains_symbol_ref_p): New.
2708         (lra_constraints): Enable lra risky transformations when PIC is pseudo
2709         register.
2710         * shrink-wrap.c (try_shrink_wrapping): Add check on pseudo register.
2711         * target.def (use_pseudo_pic_reg): New.
2712         (init_pic_reg): New.
2713
2714 2014-10-13  Evgeny Stupachenko  <evstupac@gmail.com>
2715
2716         * config/i386/x86-tune.def (X86_TUNE_SSE_PARTIAL_REG_DEPENDENCY):
2717         Remove m_SILVERMONT and m_INTEL from the tune.
2718
2719 2014-10-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2720
2721         PR libfortran/63471
2722         * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
2723         when _HPUX_SOURCE is defined.
2724
2725 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2726
2727         PR tree-optimization/62127
2728         * tree.c (remap_type_1): When remapping array, remap
2729         also its type.
2730
2731 2014-10-13  Christophe Lyon  <christophe.lyon@linaro.org>
2732
2733         * Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
2734         longer impact parallelization.
2735
2736 2014-10-13  Jan Hubicka  <hubicka@ucw.cz>
2737
2738         PR bootstrap/63496
2739         * ipa-polymorphic-call.c (extr_type_from_vtbl_ptr_store): Fix pasto.
2740
2741 2014-10-13  Marat Zakirov  <m.zakirov@samsung.com>
2742
2743         * asan.c (instrument_derefs): BIT_FIELD_REF added.
2744
2745 2014-10-13  Richard Biener  <rguenther@suse.de>
2746
2747         PR tree-optimization/63419
2748         * gimple-fold.h (gimple_convert): New function.
2749         * gimple-fold.c (gimple_convert): Likewise.
2750         * tree-ssa-pre.c (create_expression_by_pieces): Use gimple_convert
2751         to split out required conversions early.
2752
2753 2014-10-13  Richard Sandiford  <richard.sandiford@arm.com>
2754
2755         * rtlanal.c (generic_subrtx_iterator <T>::add_subrtxes_to_queue):
2756         Add the parts of an insn in reverse order, with the pattern at
2757         the top of the queue.  Detect when we're iterating over a SEQUENCE
2758         pattern and in that case just consider patterns of subinstructions.
2759
2760 2014-10-12  Oleg Endo  <olegendo@gcc.gnu.org>
2761
2762         PR target/59401
2763         * config/sh/sh-protos (sh_find_equiv_gbr_addr): Use rtx_insn* instead
2764         of rtx.
2765         * config/sh/sh.c (sh_find_equiv_gbr_addr): Use def chains instead of
2766         insn walking.
2767         (sh_find_equiv_gbr_addr): Do nothing if input mem is already a GBR
2768         address.  Use def chains to handle GBR clobbering call insns.
2769
2770 2014-10-12  Trevor Saunders  <tsaunders@mozilla.com>
2771
2772         * asan.c, cfgloop.c, cfgloop.h, cgraph.c, cgraph.h,
2773         config/darwin.c, config/m32c/m32c.c, config/mep/mep.c,
2774         config/mips/mips.c, config/rs6000/rs6000.c, dwarf2out.c,
2775         function.c, function.h, gimple-ssa.h, libfuncs.h, optabs.c,
2776         output.h, rtl.h, sese.c, symtab.c, tree-cfg.c, tree-dfa.c,
2777         tree-ssa.c, varasm.c: Use hash-table instead of hashtab.
2778         * doc/gty.texi (for_user): Document new option.
2779         * gengtype.c (create_user_defined_type): Don't try to get a struct for
2780         char.
2781         (walk_type): Don't error out on for_user option.
2782         (write_func_for_structure): Emit user marking routines if requested by
2783         for_user option.
2784         (write_local_func_for_structure): Likewise.
2785         (main): Mark types with for_user option as used.
2786         * ggc.h (gt_pch_nx): Add overload for unsigned int.
2787         * hash-map.h (hash_map::hash_entry::pch_nx_helper): AddOverloads.
2788         * hash-table.h (ggc_hasher): New struct.
2789         (hash_table::create_ggc): New function.
2790         (gt_pch_nx): New overload for hash_table.
2791
2792 2014-10-11  Oleg Endo  <olegendo@gcc.gnu.org>
2793
2794         * config/sh/sh.h (TARGET_SH4A_ARCH): Remove macro.
2795         * config/sh/sh.h: Replace uses of TARGET_SH4A_ARCH with TARGET_SH4A.
2796         * config/sh/sh.c: Likewise.
2797         * config/sh/sh-mem.cc: Likewise.
2798         * config/sh/sh.md: Likewise.
2799         * config/sh/predicates.md: Likewise.
2800         * config/sh/sync.md: Likewise.
2801
2802 2014-10-11  Martin Liska  <mliska@suse.cz>
2803
2804         PR middle-end/63376
2805         * cgraphunit.c (symbol_table::process_new_functions): Missing call
2806         for call_cgraph_insertion_hooks added.
2807
2808 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2809
2810         PR c/63495
2811         * stor-layout.c (min_align_of_type): Don't decrease alignment
2812         through BIGGEST_FIELD_ALIGNMENT or ADJUST_FIELD_ALIGN if
2813         TYPE_USER_ALIGN is set.
2814
2815 2014-10-10  Uros Bizjak  <ubizjak@gmail.com>
2816
2817         PR rtl-optimization/63483
2818         * alias.c (true_dependence_1): Do not exit early for MEM_READONLY_P
2819         references when alignment ANDs are involved.
2820         (write_dependence_p): Ditto.
2821         (may_alias_p): Ditto.
2822
2823 2014-10-10  Marek Polacek  <polacek@redhat.com>
2824
2825         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_OBJECT_SIZE.
2826         * doc/invoke.texi: Document -fsanitize=object-size.
2827         * flag-types.h (enum sanitize_code): Add SANITIZE_OBJECT_SIZE and
2828         or it into SANITIZE_UNDEFINED.
2829         * gimple-fold.c (gimple_fold_call): Optimize IFN_UBSAN_OBJECT_SIZE.
2830         * internal-fn.c (expand_UBSAN_OBJECT_SIZE): New function.
2831         * internal-fn.def (UBSAN_OBJECT_SIZE): Define.
2832         * opts.c (common_handle_option): Handle -fsanitize=object-size.
2833         * ubsan.c: Include tree-object-size.h.
2834         (ubsan_type_descriptor): Call tree_to_uhwi instead of tree_to_shwi.
2835         (ubsan_expand_bounds_ifn): Use false instead of 0.
2836         (ubsan_expand_objsize_ifn): New function.
2837         (instrument_object_size): New function.
2838         (pass_ubsan::execute): Add object size instrumentation.
2839         * ubsan.h (ubsan_expand_objsize_ifn): Declare.
2840
2841 2014-10-10  Richard Henderson  <rth@redhat.com>
2842
2843         PR target/63404
2844         * shrink-wrap.c (move_insn_for_shrink_wrap): Don't use single_set.
2845         Restrict the set of expressions we're willing to move.
2846
2847 2014-10-10  Jeff Law  <law@redhat.com>
2848
2849         * ira.c (struct equivalence): Promote INIT_INSNs field to
2850         an rtx_insn_list.  Add comments.
2851         (no_equiv): Promote LIST to an rtx_insn_list.  Update
2852         testing for and creating the special marker.  Use methods
2853         to extract the insn and next pointers.  Promote INSN to an
2854         rtx_insn.
2855         (update_equiv_regs): Update test for special marker in the
2856         INIT_INSNs list.
2857
2858 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2859
2860         * configure.ac: Add --enable-fix-cortex-a53-835769 option.
2861         * configure: Regenerate.
2862         * config/aarch64/aarch64.c (aarch64_override_options): Handle
2863         TARGET_FIX_ERR_A53_835769_DEFAULT.
2864         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): Set Init
2865         value to 2.
2866         * doc/install.texi (aarch64*-*-*): Document
2867         new --enable-fix-cortex-a53-835769 option.
2868
2869 2014-10-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2870             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2871
2872         * config/aarch64/aarch64.h (FINAL_PRESCAN_INSN): Define.
2873         (ADJUST_INSN_LENGTH): Define.
2874         * config/aarch64/aarch64.opt (mfix-cortex-a53-835769): New option.
2875         * config/aarch64/aarch64.c (is_mem_p): New function.
2876         (is_memory_op): Likewise.
2877         (aarch64_prev_real_insn): Likewise.
2878         (is_madd_op): Likewise.
2879         (dep_between_memop_and_curr): Likewise.
2880         (aarch64_madd_needs_nop): Likewise.
2881         (aarch64_final_prescan_insn): Likewise.
2882         * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-835769
2883         and -mno-fix-cortex-a53-835769 options.
2884
2885 2014-10-10  Jakub Jelinek  <jakub@redhat.com>
2886
2887         PR tree-optimization/63464
2888         * tree-switch-conversion.c (struct case_bit_test): Remove
2889         hi and lo fields, add wide_int mask field.
2890         (emit_case_bit_tests): Add MAXVAL argument, rewrite uses of
2891         hi/lo fields into wide_int mask operations, optimize by pretending
2892         minval to be 0 if maxval is small enough.
2893         (process_switch): Adjust caller.
2894
2895 2014-10-10  Richard Biener  <rguenther@suse.de>
2896
2897         PR tree-optimization/63379
2898         * tree-vect-slp.c (vect_get_constant_vectors): Do not compute
2899         a neutral operand for min/max when it is not a reduction chain.
2900
2901 2014-10-10  Richard Biener  <rguenther@suse.de>
2902
2903         PR tree-optimization/63476
2904         * tree-ssa-pre.c (struct bb_bitmap_sets): Add vop_on_exit member.
2905         (BB_LIVE_VOP_ON_EXIT): New define.
2906         (create_expression_by_pieces): Assign VUSEs to stmts.
2907         (compute_avail): Track BB_LIVE_VOP_ON_EXIT.
2908         (pass_pre::execute): Assert virtual SSA form is up-to-date
2909         after insertion.
2910
2911 2014-10-10  Eric Botcazou  <ebotcazou@adacore.com>
2912
2913         * lra-assigns.c (assign_by_spills): Error out on spill failure.
2914
2915 2014-10-09  Markus Trippelsdorf  <markus@trippelsdorf.de>
2916
2917         * pa-polymorphic-call.c (check_stmt_for_type_change): Move
2918         assertion.
2919
2920 2014-10-09  Richard Biener  <rguenther@suse.de>
2921
2922         PR tree-optimization/63380
2923         * tree-ssa-tail-merge.c (stmt_local_def): Exclude stmts that
2924         may trap.
2925
2926 2014-10-09  Joern Rennecke  <joern.rennecke@embecosm.com>
2927
2928         * config/avr/avr.opt (mmcu=): Change to have a string value.
2929         (mn-flash=, mskip-bug, march=, mrmw): New options.
2930         (HeaderInclude): New.
2931         (mmcu=): Remove Var / Init clauses.
2932         * config/avr/avr.h (DRIVER_SELF_SPECS): Translate -mmcu into a
2933         -specs option.
2934         (SYMBOL_FLAG_IO, SYMBOL_FLAG_ADDRESS): Define.
2935         (ASM_OUTPUT_ALIGNED_BSS): Use avr_asm_asm_output_aligned_bss.
2936         (SYMBOL_FLAG_IO_LOW): Define.
2937         (avr_device_to_as, avr_device_to_ld): Don't declare.
2938         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2939         (avr_device_to_devicelib, avr_device_to_sp8): Likewise.
2940         (EXTRA_SPEC_FUNCTIONS): Don't define.
2941         (ASM_SPEC): Translate -arch= option to -mmcu= option.
2942         (LINK_SPEC): Translate -arch= option to -m= option.
2943         Don't use device_to_ld / device_to_data_start.
2944         (STARTFILE_SPEC): Now empty.
2945         (ASM_SPEC): Add -%{mrelax: --mlink-relax}.
2946         * config/avr/gen-avr-mmcu-specs.c: New file.
2947         * config/avr/t-avr (gen-avr-mmcu-specs$(build_exeext)): New rule.
2948         (s-device-specs): Likewise.
2949         (GCC_PASSES): Add s-device-specs.
2950         (install-driver): Depend on install-device-specs.
2951         (install-device-specs): New rule.
2952         * config/avr/avr.c (avr_option_override): Look up mcu arch by
2953         avr_arch_index and provide fallback initialization for avr_n_flash.
2954         (varasm.h): #include.
2955         (avr_print_operand) <i>: Allow SYMBOL_REF with SYMBOL_FLAG_IO;
2956         (avr_handle_addr_attribute, avr_eval_addr_attrib): New functions.
2957         (avr_attribute_table): Add "io", "address" and "io_low".
2958         (avr_asm_output_aligned_decl_common): Change type of decl to tree.
2959         Add special handling for symbols with "io" and/or "address" attributes.
2960         (avr_asm_asm_output_aligned_bss): New function.
2961         (avr_encode_section_info): Set SYMBOL_FLAG_IO and SYMBOL_FLAG_ADDRESS
2962         as appropriate.  Handle io_low attribute.
2963         (avr_out_sbxx_branch): Handle symbolic io addresses.
2964         (avr_xload_libgcc_p, avr_nonconst_pointer_addrspace): Use
2965         avr_n_flash instead of avr_current_device->n_flash.
2966         (avr_pgm_check_var_decl, avr_insert_attributes): Likewise.
2967         (avr_emit_movmemhi): Likewise.
2968         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Likewise.
2969         Use TARGET_RMW instead of avr_current_device->dev_attributes.
2970         Don't define avr_current_device->macro (that's the specfile's job).
2971         Use TARGET_SKIP_BUG instead of avr_current_device->errata_skip.
2972         * config/avr/avr.c (avr_2word_insn_p): Likewise.
2973         * config/avr/avr.md (*cpse.ne): Likewise.
2974         (mov<mode>): Use avr_eval_addr_attrib.
2975         (cbi): Change constraint for low_io_address_operand operand to "i".
2976         (sbi, sbix_branch, sbix_branch_bit7, insv.io, insv.not.io): Likewise.
2977         * config/avr/predicates.md (io_address_operand):
2978         Allow SYMBOL_REF with SYMBOL_FLAG_IO.
2979         (low_io_address_operand): Allow SYMBOL_REF with SYMBOL_FLAG_IO_LOW.
2980         * config/avr/avr-protos.h (avr_asm_output_aligned_decl_common):
2981         Update prototype.
2982         (avr_eval_addr_attrib, avr_asm_asm_output_aligned_bss): Prototype.
2983         * config/avr/genmultilib.awk: Use -march=.
2984         Remove Multilib matches processing.
2985         * config/avr/t-multilib, config/avr/avr-tables.opt: Regenerate.
2986         * config/avr/avr-arch.h: Add double include guard.
2987         (avr_mcu_t) <library_name>: Update comment.
2988         * config/avr/driver-avr.c (avr_device_to_as): Delete.
2989         (avr_device_to_ld, avr_device_to_data_start): Likewise.
2990         (avr_device_to_startfiles, avr_device_to_devicelib): Likewise.
2991         (avr_device_to_sp8): Likewise.
2992         * config/avr/genopt.sh:  Instead avr_mcu, emit an Enum for avr_arch.
2993
2994         * doc/extend.texi (io, address): Document new AVR variable attributes.
2995         (io_low): Likewise.
2996
2997 2014-10-09  Marek Polacek  <polacek@redhat.com>
2998
2999         * doc/invoke.texi: Document -fsanitize=bool and -fsanitize=enum.
3000
3001 2014-10-08  Richard Biener  <rguenther@suse.de>
3002
3003         PR tree-optimization/61969
3004         * tree-nrv.c (pass_nrv::execute): Properly test for automatic
3005         variables.
3006
3007 2014-10-09  Richard Biener  <rguenther@suse.de>
3008
3009         PR tree-optimization/63445
3010         * tree-vrp.c (simplify_cond_using_ranges): Only warn about
3011         overflow for non-equality compares.
3012
3013 2014-10-09  Uros Bizjak  <ubizjak@gmail.com>
3014
3015         PR rtl-optimization/57003
3016         * regcprop.c (copyprop_hardreg_forward_1): If ksvd.ignore_set_reg,
3017         also check CALL_INSN_FUNCTION_USAGE for clobbers again after
3018         killing regs_invalidated_by_call.
3019
3020 2014-10-08  Teresa Johnson  <tejohnson@google.com>
3021
3022         PR bootstrap/63432.
3023         * tree-ssa-threadupdate.c (estimated_freqs_path): New function.
3024         (ssa_fix_duplicate_block_edges): Invoke it.
3025         (mark_threaded_blocks): Make two passes to avoid ordering dependences.
3026
3027 2014-10-08  Oleg Endo  <olegendo@gcc.gnu.org>
3028
3029         PR target/52941
3030         * config/sh/sync.md (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
3031         atomic_fetch_<fetchop_name>si_hard,
3032         atomic_fetch_<fetchop_name><mode>_hard, atomic_fetch_nandsi_hard,
3033         atomic_fetch_nand<mode>_hard, atomic_<fetchop_name>_fetchsi_hard,
3034         atomic_<fetchop_name>_fetch<mode>_hard, atomic_nand_fetchsi_hard,
3035         atomic_nand_fetch<mode>_hard): Add missing set of T_REG.
3036
3037 2014-10-08  Rong Xu  <xur@google.com>
3038
3039         * gcov-tool.c (profile_overlap): New driver function
3040         to compute profile overlap.
3041         (print_overlap_usage_message): New.
3042         (overlap_usage): New.
3043         (do_overlap): New.
3044         (print_usage): Add calls to overlap function.
3045         (main): Ditto.
3046         * doc/gcov-tool.texi: Add documentation.
3047
3048 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3049
3050         * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Change
3051         LINUX64_DRIVER_SELF_SPECS to LINUX_DRIVER_SELF_SPECS
3052
3053 2014-10-08  Jan Hubicka  <hubicka@ucw.cz>
3054
3055         * ipa-polymorphic-call.c (extr_type_from_vtbl_store): Do better
3056         pattern matching of MEM_REF.
3057         (check_stmt_for_type_change): Update.
3058
3059 2014-10-08  Steve Ellcey  <sellcey@mips.com>
3060
3061         * config/mips/linux64.h: Remove.
3062         * config/mips/gnu-user64.h: Remove.
3063         * gcc.config (mips*-*-*): Remove references to linux64.h and
3064         gnu-user64.h
3065         * config/mips/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Replace
3066         with modified version from gnu-user64.h.
3067         (LINUX_DRIVER_SELF_SPECS): Update parts from gnu-user64.h.
3068         (LOCAL_LABEL_PREFIX): Copy from gnu-user64.h.
3069         * config/mips/linux.h (GNU_USER_LINK_EMULATION32): Copy from
3070         linux64.h.
3071         (GNU_USER_LINK_EMULATION64): Ditto.
3072         (GNU_USER_LINK_EMULATIONN32): Ditto.
3073         (GLIBC_DYNAMIC_LINKER32): Ditto.
3074         (GLIBC_DYNAMIC_LINKER64): Ditto.
3075         (GLIBC_DYNAMIC_LINKERN32): Ditto.
3076         (UCLIBC_DYNAMIC_LINKER32): Ditto.
3077         (UCLIBC_DYNAMIC_LINKER64): Ditto.
3078         (UCLIBC_DYNAMIC_LINKERN32): Ditto.
3079         (BIONIC_DYNAMIC_LINKERN32): Ditto.
3080         (GNU_USER_DYNAMIC_LINKERN32): Ditto.
3081         (GLIBC_DYNAMIC_LINKER): Delete.
3082         (UCLIBC_DYNAMIC_LINKER): Delete.
3083
3084 2014-10-08  Joern Rennecke  <joern.rennecke@embecosm.com>
3085             Richard Biener  <rguenther@suse.de>
3086
3087         * cfgexpand.c (expand_debug_expr) <TARGET_MEM_REF>:
3088         Get address space from operand 0 (BASE).
3089
3090 2014-10-07  Iain Sandoe  <iain@codesourcery.com>
3091
3092         PR target/61387
3093         * config/i386/i386.c (x86_output_mi_thunk): Fix darwin fallout.
3094
3095 2014-10-07  Aldy Hernandez  <aldyh@redhat.com>
3096
3097         * dwarf2out.c: Remove current_function_has_inlines.
3098         (gen_subprogram_die): Same.
3099         (gen_inlined_subroutine_die): Same.
3100
3101 2014-10-07  Ilya Tocar  <ilya.tocar@intel.com>
3102
3103         * config/i386/adxintrin.h (_subborrow_u64): Use long long for param
3104         type.
3105         (_addcarry_u64): Ditto.
3106         (_addcarryx_u64): Ditto.
3107
3108 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3109
3110         * cgraph.h (cgraph_node::get_fun): Declare.
3111         * cgraph.c (cgraph_node::get_fun): New method.
3112         * ipa-inline.c (can_inline_edge_p): Use it.
3113
3114 2014-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3115
3116         * lto-opts.c (lto_write_options): Handle -fmath-errno, -fsigned-zeros
3117         and -ftrapping-math.
3118         * lto-wrapper.c (merge_and_complain): Likewise.
3119         (run_gcc): Likewise.
3120
3121 2014-10-06  Rong Xu  <xur@google.com>
3122
3123         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): New param.
3124         * tree-profile.c: (params.h): New include.
3125         (init_ic_make_global_vars): Make __gcov_indirect_call_topn_callee
3126         and __gcov_indirect_call_topn_counters for
3127         indirect_call_topn_profile.
3128         (gimple_init_edge_profiler): New decls for
3129         __gcov_indirect_call_topn_profiler.
3130         (gimple_gen_ic_profiler): Generate the correct profiler call.
3131         (gimple_gen_ic_func_profiler): Fix format.
3132         * value-prof.c (params.h): New include.
3133         (dump_histogram_value): Hanlde indirect_call_topn counters.
3134         (stream_in_histogram_value): Ditto.
3135         (gimple_indirect_call_to_profile): Use indirect_call_topn
3136         profile when PARAM_INDIR_CALL_TOPN_PROFILE is set.
3137         (gimple_find_values_to_profile): Hanlde indirect_call_topn
3138         counters.
3139         * value-prof.h (enum hist_type): Histrogram type for
3140         indirect_call_topn counters.
3141         * profile.c (instrument_values): Instrument
3142         indirect_call_topn counters.
3143
3144 2014-10-06  Rong Xu  <xur@google.com>
3145
3146         * Makefile.in: Fix dependence.
3147         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV): Add
3148         indirect call topn profiler.
3149         * gcov-io.h: Ditto.
3150
3151 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3152
3153         * calls.c (expand_call): Do not use the target as the return slot if
3154         it is not sufficiently aligned.
3155
3156 2014-10-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3157
3158         * config/rs6000/rs6000.c (analyze_swaps commentary): Add
3159         discussion of permutes and why we don't handle them.
3160
3161 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3162
3163         * config/sparc/predicates.md (int_register_operand): Delete.
3164
3165 2014-10-06  Eric Botcazou  <ebotcazou@adacore.com>
3166
3167         * dwarf2cfi.c (create_pseudo_cfg): Fix trace numbering.
3168
3169 2014-10-06  Jakub Jelinek  <jakub@redhat.com>
3170
3171         * ubsan.h (ubsan_get_source_location): New prototype.
3172         * ubsan.c (ubsan_source_location_type): New variable.
3173         Function renamed to ...
3174         (ubsan_get_source_location_type): ... this.  Cache
3175         return value in ubsan_source_location_type variable.
3176         (ubsan_source_location, ubsan_create_data): Use
3177         ubsan_get_source_location_type instead of
3178         ubsan_source_location_type.
3179         * asan.c (asan_protect_global): Don't protect globals
3180         with ubsan_get_source_location_type () type.
3181         (asan_add_global): Provide global decl location info
3182         if possible.
3183
3184 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3185
3186         * ipa-prop.c (try_make_edge_direct_virtual_call): Remove overactive
3187         sanity check.
3188
3189 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3190
3191         * ipa-polymorphic-call.c (possible_placement_new): Fix condition
3192         on size.
3193         (ipa_polymorphic_call_context::restrict_to_inner_type): Do not walk
3194         into vptr pointer.
3195         (ipa_polymorphic_call_context::dump): Fix formating.
3196         (walk_ssa_copies): Add logic avoiding loops; update uses.
3197         * ipa-prop.c (ipa_analyze_call_uses): Compute vptr_changed.
3198
3199 2014-10-02  Mark Wielaard  <mjw@redhat.com>
3200
3201         PR debug/63239
3202         * dwarf2out.c (gen_subprogram_die): When a member function is
3203         explicitly deleted then add a DW_AT_GNU_deleted attribute.
3204         * langhooks.h (struct lang_hooks_for_decls): Add
3205         function_decl_deleted_p langhook.
3206         * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Define.
3207         (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_DELETED_P.
3208
3209 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3210
3211         * ipa-polymorphic-call.c (walk_ssa_copies): Recognize
3212         NULL pointer checks.
3213         (ipa_polymorphic_call_context::get_dynamic_type): Return true
3214         if type doesn't change.
3215         * cgraph.h (cgraph_indirect_call_info): New flag.
3216         * cgraph.c (cgraph_node::create_indirect_edge): Initialize it.
3217         (cgraph_node::dump): Dump it.
3218         * ipa-prop.c (ipa_analyze_call_uses):  Ignore return valud
3219         of context.get_dynamic_type.
3220         (ipa_make_edge_direct_to_target): Do not speculate
3221         edge that is already speuclative.
3222         (try_make_edge_direct_virtual_call): Use VPTR_CHANGED; Do not
3223         speculate to __builtin_unreachable
3224         (ipa_write_indirect_edge_info, ipa_read_indirect_edge_info): Stream
3225         vptr_changed.
3226         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use vptr_changed.
3227
3228 2014-10-04  Jan Hubicka  <hubicka@ucw.cz>
3229
3230         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Call
3231         get_dynamic_type; drop TODO.
3232         * ipa-polymorphic-call.c
3233         (ipa_polymorphic_call_context::get_dynamic_type): Be ready
3234         for otr_type to be unknown.
3235
3236 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3237
3238         * common/config/score/score-common.c: Remove.
3239         * config.gcc: Remove support for score-*.
3240         * config/score/constraints.md: Remove.
3241         * config/score/elf.h: Remove.
3242         * config/score/predicates.md: Remove.
3243         * config/score/score-conv.h: Remove.
3244         * config/score/score-generic.md: Remove.
3245         * config/score/score-modes.def: Remove.
3246         * config/score/score-protos.h: Remove.
3247         * config/score/score.c: Remove.
3248         * config/score/score.h: Remove.
3249         * config/score/score.md: Remove.
3250         * config/score/score.opt: Remove.
3251         * doc/md.texi: Don't document score-*.
3252
3253 2014-10-04  Trevor Saunders  <tsaunders@mozilla.com>
3254
3255         PR pch/63429
3256         * genconditions.c: Directly include ggc.h before rtl.h.
3257
3258 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3259
3260         * ipa-polymorphic-call.c
3261         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Fix
3262         code determining speculative type.
3263         (ipa_polymorphic_call_context::combine_with): Fix speculation merge.
3264
3265 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3266
3267         * altivec.md (altivec_lvsl): New define_expand.
3268         (altivec_lvsl_direct): Rename define_insn from altivec_lvsl.
3269         (altivec_lvsr): New define_expand.
3270         (altivec_lvsr_direct): Rename define_insn from altivec_lvsr.
3271         * rs6000.c (rs6000_expand_builtin): Change to use
3272         altivec_lvs[lr]_direct; remove commented-out code.
3273
3274 2014-10-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3275
3276         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3277         Issue a warning message when vec_lvsl or vec_lvsr is used with a
3278         little endian target.
3279
3280 2014-10-03  Manuel López-Ibáñez  <manu@gcc.gnu.org>
3281
3282         * tree-pretty-print.c (dump_location): Make it extern. Dump also
3283         the column.
3284         * tree-pretty-print.h (dump_location): Declare.
3285         * gimple-pretty-print.c (dump_gimple_phi): Use dump_location.
3286         (pp_gimple_stmt_1): Likewise.
3287         (dump_implicit_edges): Likewise.
3288         * gimplify.c (gimplify_call_expr): Use LOCATION_FILE and
3289         LOCATION_LINE.
3290
3291
3292 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3293
3294         * gcc.c (driver::global_initializations): Remove "const" so
3295         that GCC_DRIVER_HOST_INITIALIZATION can modify decoded_options
3296         and decoded_options_count.
3297
3298 2014-10-03  Maciej W. Rozycki  <macro@codesourcery.com>
3299
3300         * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Remove
3301         macro.
3302         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Handle
3303         TARGET_E500_DOUBLE case here.
3304
3305 2014-10-03  Marc Glisse  <marc.glisse@inria.fr>
3306
3307         PR c++/54427
3308         PR c++/57198
3309         PR c++/58845
3310         * doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
3311
3312 2014-10-03  Jan Hubicka  <hubicka@ucw.cz>
3313
3314         * cgraph.h (struct indirect_call_info): Add IN_POLYMORPHIC_CDTOR
3315         * lto-cgraph.c (lto_output_edge, input_edge): Stream
3316         in_polymorphic_cdtor
3317         * cgraph.c (symbol_table::create_edge): Compute in_polymorphic_cdtor.
3318         (cgraph_edge::make_speculative): Copy in_polymorphic_cdtor.
3319         * cgraphclones.c (cgraph_edge::clone): Likewise.
3320         * ipa-prop.c (update_jump_functions_after_inlining,
3321         try_make_edge_direct_virtual_call): Pass in_polymorphic_cdtor
3322         to possible_dynamic_type_change.
3323         (decl_maybe_in_construction_p): Allow empty OUTER_TYPE and BASE.
3324         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3325         IN_POLY_CDOTR argument.
3326
3327         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Be ready
3328         for BASE and OUTER_TYPE being NULL.
3329         (ipa_polymorphic_call_context::possible_dynamic_type_change): Add
3330         in_poly_cdtor parameter.
3331
3332 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3333
3334         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Fix up formatting.
3335         (ix86_expand_vec_perm): Only call ix86_expand_vec_perm_vpermi2 if
3336         TARGET_AVX512F.
3337         (expand_vec_perm_1): Likewise.
3338
3339 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3340             Uros Bizjak  <ubizjak@gmail.com>
3341
3342         PR tree-optimization/61403
3343         * config/i386/i386.c (expand_vec_perm_palignr): Fix a spelling
3344         error in comment.  Also optimize 256-bit vectors for AVX2
3345         or AVX (floating vectors only), provided the first permutation
3346         can be performed in one insn.
3347
3348 2014-10-03  David Malcolm  <dmalcolm@redhat.com>
3349
3350         * gcc.c (class driver): New class.
3351         (main): Reimplement in terms of driver::main, moving most of the
3352         locals to be locals within individual methods of class driver.
3353         The remaining locals "explicit_link_files", "decoded_options" and
3354         "decoded_options_count" are used by multiple driver:: methods, and
3355         so become member data.  Doing so isolates the argc/argv reads and
3356         writes.  Replace "goto out" with a special exit code from
3357         new method driver::prepare_infiles.  Split out the old
3358         implementation of main into the following...
3359         (driver::main): New function, corresponding to the old "main"
3360         implementation.
3361         (driver::set_progname): New function, taken from the old
3362         "main" implementation.
3363         (driver::expand_at_files): Likewise.
3364         (driver::decode_argv): Likewise.
3365         (driver::global_initializations): Likewise.
3366         (driver::build_multilib_strings): Likewise.
3367         (driver::set_up_specs): Likewise.
3368         (driver::putenv_COLLECT_GCC): Likewise.
3369         (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Likewise.
3370         (driver::handle_unrecognized_options): Likewise.
3371         (driver::maybe_print_and_exit): Likewise.
3372         (driver::prepare_infiles): Likewise.
3373         (driver::do_spec_on_infiles): Likewise.
3374         (driver::maybe_run_linker): Likewise.
3375         (driver::final_actions): Likewise.
3376         (driver::get_exit_code): Likewise.
3377
3378 2014-10-03  Yury Gribov  <y.gribov@samsung.com>
3379
3380         * asan.c (asan_finish_file): Disable __asan_init calls for KASan;
3381         don't emit empty ctors.
3382
3383 2014-10-03  Eric Botcazou  <ebotcazou@adacore.com>
3384
3385         * convert.c (convert_to_integer): Do not introduce useless conversions
3386         between integral types.
3387
3388 2014-10-03  David Sherwood  <david.sherwood@arm.com>
3389
3390         * ira-int.h (ira_allocno): Mark hard_regno as signed.
3391
3392 2014-10-03  Ilya Enkovich  <ilya.enkovich@intel.com>
3393
3394         * lra-constraints.c (inherit_in_ebb): Handle calls with
3395         multiple return values.
3396         * caller-save.c (save_call_clobbered_regs): Likewise.
3397
3398 2014-10-03  Jakub Jelinek  <jakub@redhat.com>
3399
3400         * tree-vect-data-refs.c (vect_permute_load_chain,
3401         vect_shift_permute_load_chain): Fix a typo in temporary var names,
3402         suffle3 to shuffle3.
3403
3404         PR libgomp/61200
3405         * omp-low.c (taskreg_contexts): New variable.
3406         (scan_omp_parallel): Push newly created context into taskreg_contexts
3407         vector and move record layout code to finish_taskreg_scan.
3408         (scan_omp_task): Likewise.
3409         (finish_taskreg_scan): New function.
3410         (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts
3411         vector elements and release it.
3412
3413         PR target/62128
3414         * config/i386/i386.c (expand_vec_perm_palignr): If op1, op0 order
3415         of palignr arguments can't be used due to min 0 or max - min
3416         too high, try also op0, op1 order of palignr arguments.
3417
3418 2014-10-02  Jan Hubicka  <hubicka@ucw.cz>
3419
3420         * cgraph.h (ipa_polymorphic_call_context):
3421         Turn bools into bitfields; add DYNAMIC; make MAKE_SPECULATIVE
3422         private, add POSSIBLE_DYNAMIC_TYPE_CHANGE.
3423         * ipa-polymorphic-call.c
3424         (ipa_polymorphic_call_context::restrict_to_inner_class): Allow accesses
3425         past end of dynamic types.
3426         (ipa_polymorphic_call_context::stream_out,
3427         speculative_outer_type): Stream dynamic flag.
3428         (ipa_polymorphic_call_context::set_by_decl): Clear DYNAMIC.
3429         (ipa_polymorphic_call_context::ipa_polymorphic_call_context):
3430         Clear DYNAMIC.
3431         (ipa_polymorphic_call_context::get_dynamic_type): Use DYNAMIC;
3432         set it.
3433         (ipa_polymorphic_call_context::combine_with): Propagate dynamic.
3434         * ipa-prop.c (update_jump_functions_after_inlining,
3435         try_make_edge_direct_virtual_call): Use possible_dynamic_type_change.
3436
3437 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3438
3439         * tree-ssa-threadupdate.c (freqs_to_counts_path): Scale frequencies
3440         up when synthesizing counts to avoid rounding errors.
3441
3442 2014-10-02  Teresa Johnson  <tejohnson@google.com>
3443
3444         PR middle-end/63422
3445         * tree-ssa-threadupdate.c (freqs_to_counts_path): Remove
3446         asserts to handle incoming insanities.
3447
3448 2014-10-02  Martin Jambor  <mjambor@suse.cz>
3449
3450         PR tree-optimization/63375
3451         * tree-sra.c (build_access_from_expr_1): Disqualify volatile
3452         references.
3453
3454 2014-10-02  Olivier Hainque  <hainque@adacore.com>
3455
3456         * Makefile.in (CROSS): Define, to @CROSS.
3457
3458 2014-10-02  Jakub Jelinek  <jakub@redhat.com>
3459
3460         PR target/62128
3461         * config/i386/i386.c (expand_vec_perm_1): Try expand_vec_perm_palignr
3462         if it expands to a single insn only.
3463         (expand_vec_perm_palignr): Add SINGLE_INSN_ONLY_P argument.  If true,
3464         fail unless in_order is true.  Add forward declaration.
3465         (expand_vec_perm_vperm2f128): Fix up comment about which permutation
3466         is useful for one_operand_p.
3467         (ix86_expand_vec_perm_const_1): Adjust expand_vec_perm_palignr caller.
3468
3469 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3470
3471         * cgraphclones.c (build_function_type_skip_args): Do not make new
3472         type variant of old.
3473
3474 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3475
3476         * ipa-prop.h (ipa_get_controlled_uses): Add hack to avoid ICE
3477         when speculation is added.
3478         (ipa_edge_args): Add polymorphic_call_contexts.
3479         (ipa_get_ith_polymorhic_call_context): New accesor.
3480         (ipa_make_edge_direct_to_target): Add SPECULATIVE parameter.
3481         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Print contexts.
3482         (ipa_compute_jump_functions_for_edge): Compute contexts.
3483         (update_jump_functions_after_inlining): Update contexts.
3484         (ipa_make_edge_direct_to_target): Add SPECULATIVE argument;
3485         update dumping; add speculative edge creation.
3486         (try_make_edge_direct_virtual_call): Add CTX_PTR parameter; handle
3487         context updating.
3488         (update_indirect_edges_after_inlining): Pass down context.
3489         (ipa_edge_duplication_hook): Duplicate contexts.
3490         (ipa_write_node_info): Stream out contexts.
3491         (ipa_read_node_info): Stream in contexts.
3492         * ipa-devirt.c (type_all_derivations_known_p): Avoid ICE on non-ODR
3493         types.
3494         (try_speculative_devirtualization): New function.
3495         * ipa-utils.h (try_speculative_devirtualization): Declare.
3496
3497 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3498
3499         * ipa.c (walk_polymorphic_call_targets): Avoid ICE when
3500         dumping during WPA.
3501
3502 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3503
3504         * ipa-prop.c (ipa_modify_formal_parameters): Do not merge
3505         type variants.
3506
3507 2014-10-01  Jan Hubicka  <hubicka@ucw.cz>
3508
3509         * ipa-polymorphic-call.c
3510         (ipa_polymorphic_call_context::restrict_to_inner_class):
3511         Rename EXPECTED_TYPE to OTR_TYPE; Validate speculation late;
3512         use speculation_consistent_p to do so; Add CONSDER_BASES
3513         and CONSIDER_PLACEMENT_NEW parameters.
3514         (contains_type_p): Add CONSDER_PLACEMENT_NEW and CONSIDER_BASES;
3515         short circuit obvious cases.
3516         (ipa_polymorphic_call_context::dump): Improve formatting.
3517         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Use
3518         combine_speculation_with to record speculations; Do not ICE when
3519         object is located in pointer type decl; do not ICE for methods
3520         of UNION_TYPE; do not record nonpolymorphic types.
3521         (ipa_polymorphic_call_context::speculation_consistent_p): New method.
3522         (ipa_polymorphic_call_context::combine_speculation_with): New method.
3523         (ipa_polymorphic_call_context::combine_with): New method.
3524         (ipa_polymorphic_call_context::make_speculative): Move here; use
3525         combine speculation.
3526         * cgraph.h (ipa_polymorphic_call_context): Update
3527         restrict_to_inner_class prototype; add offset_by, make_speculative,
3528         combine_with, useless_p, combine_speculation_with and
3529         speculation_consistent_p methods.
3530         (ipa_polymorphic_call_context::offset_by): New method.
3531         (ipa_polymorphic_call_context::useless_p): New method.
3532
3533 2014-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
3534
3535         PR rtl-optimization/62151
3536         * combine.c (can_combine_p): Allow the destination register of INSN
3537         to be clobbered in I3.
3538         (subst): Do not substitute into clobbers of registers.
3539
3540 2014-10-01  Jakub Jelinek  <jakub@redhat.com>
3541
3542         PR debug/63342
3543         * dwarf2out.c (loc_list_from_tree): Handle MEM_REF with non-zero
3544         offset, TARGET_MEM_REF and SSA_NAME.
3545
3546         * config/i386/i386.c (expand_vec_perm_palignr): Handle
3547         256-bit vectors for TARGET_AVX2.
3548
3549         * config/i386/i386.c (expand_vec_perm_vperm2f128): Canonicalize
3550         dfirst permutation.
3551
3552         PR target/63428
3553         * config/i386/i386.c (expand_vec_perm_pshufb): Fix up rperm[0]
3554         argument to avx2_permv2ti.
3555
3556 2014-10-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3557
3558         * config/arm/arm.md (*store_minmaxsi): Disable for arm_restrict_it.
3559
3560 2014-09-30  Uros Bizjak  <ubizjak@gmail.com>
3561
3562         * config/i386/i386.md (fmodxf3): Enable for flag_finite_math_only only.
3563         (fmod<mode>3): Ditto.
3564         (fpremxf4_i387): Ditto.
3565         (reminderxf3): Ditto.
3566         (reminder<mode>3): Ditto.
3567         (fprem1xf4_i387): Ditto.
3568
3569 2014-09-30  Teresa Johnson  <tejohnson@google.com>
3570
3571         * tree-ssa-threadupdate.c (struct ssa_local_info_t): New
3572         duplicate_blocks bitmap.
3573         (remove_ctrl_stmt_and_useless_edges): Ditto.
3574         (create_block_for_threading): Ditto.
3575         (compute_path_counts): New function.
3576         (update_profile): Ditto.
3577         (recompute_probabilities): Ditto.
3578         (update_joiner_offpath_counts): Ditto.
3579         (freqs_to_counts_path): Ditto.
3580         (clear_counts_path): Ditto.
3581         (ssa_fix_duplicate_block_edges): Update profile info.
3582         (ssa_create_duplicates): Pass new parameter.
3583         (ssa_redirect_edges): Remove old profile update.
3584         (thread_block_1): New duplicate_blocks bitmap,
3585         remove old profile update.
3586         (thread_single_edge): Pass new parameter.
3587
3588 2014-09-30  Ilya Tocar  <ilya.tocar@intel.com>
3589
3590         PR middle-end/62120
3591         * varasm.c (decode_reg_name_and_count): Check availability for
3592         registers from ADDITIONAL_REGISTER_NAMES.
3593
3594 2014-09-30  David Malcolm  <dmalcolm@redhat.com>
3595
3596         PR plugins/63410
3597         * Makefile.in (PRETTY_PRINT_H): Add wide-int-print.h.
3598         (PLUGIN_HEADERS): Add pass-instances.def.
3599
3600 2014-09-30  James Greenhalgh  <james.greenhalgh@arm.com>
3601
3602         * config/aarch64/aarch64-simd-builtins.def (sqdmull_laneq): Expand
3603         iterator.
3604         * config/aarch64/aarch64-simd.md
3605         (aarch64_sqdmull_laneq<mode>): Expand iterator.
3606         * config/aarch64/arm_neon.h (vqdmullh_laneq_s16): New.
3607         (vqdmulls_lane_s32): Fix return type.
3608         (vqdmulls_laneq_s32): New.
3609
3610 2014-09-30  Jakub Jelinek  <jakub@redhat.com>
3611
3612         PR inline-asm/63282
3613         * ifcvt.c (dead_or_predicable): Don't call redirect_jump_1
3614         or invert_jump_1 if jump isn't any_condjump_p.
3615
3616 2014-09-30  Terry Guo  <terry.guo@arm.com>
3617
3618         * config/arm/arm-cores.def (cortex-m7): New core name.
3619         * config/arm/arm-fpus.def (fpv5-sp-d16): New fpu name.
3620         (fpv5-d16): Ditto.
3621         * config/arm/arm-tables.opt: Regenerated.
3622         * config/arm/arm-tune.md: Regenerated.
3623         * config/arm/arm.h (TARGET_VFP5): New macro.
3624         * config/arm/bpabi.h (BE8_LINK_SPEC): Include cortex-m7.
3625         * config/arm/vfp.md (<vrint_pattern><SDF:mode>2,
3626         smax<mode>3, smin<mode>3): Enabled for FPU FPv5.
3627         * doc/invoke.texi: Document new cpu and fpu names.
3628
3629 2014-09-30  Jiong Wang  <jiong.wang@arm.com>
3630
3631         * shrink-wrap.c (move_insn_for_shrink_wrap): Check "can_throw_internal"
3632         before sinking insn.
3633
3634 2014-09-30  David Sherwood  <david.sherwood@arm.com>
3635
3636         * ira-int.h (ira_allocno): Add "wmode" field.
3637         * ira-build.c (create_insn_allocnos): Add new "parent" function
3638         parameter.
3639         * ira-conflicts.c (ira_build_conflicts): Add conflicts for registers
3640         that cannot be accessed in wmode.
3641
3642 2014-09-30  Markus Trippelsdorf  <markus@trippelsdorf.de>
3643
3644         * data-streamer.c (bp_unpack_var_len_int): Avoid signed
3645         integer overflow.
3646
3647 2014-09-29  Andi Kleen  <ak@linux.intel.com>
3648
3649         * opts.c (print_filtered_help): Print --param min/max/default
3650         with -Q.
3651
3652 2014-09-29  Kaz Kojima  <kkojima@gcc.gnu.org>
3653
3654         * config/sh/sh.md: Use define_c_enum for "unspec" and "unspecv".
3655
3656 2014-09-29  Eric Botcazou  <ebotcazou@adacore.com>
3657
3658         * tree-vrp.c (get_single_symbol): New function.
3659         (build_symbolic_expr): Likewise.
3660         (symbolic_range_based_on_p): New predicate.
3661         (extract_range_from_binary_expr_1): Deal with single-symbolic ranges
3662         for PLUS and MINUS.  Do not drop symbolic ranges at the end.
3663         (extract_range_from_binary_expr): Try harder for PLUS and MINUS if
3664         operand is symbolic and based on the other operand.
3665
3666 2014-09-29  Chen Gang  <gang.chen.5i5j@gmail.com>
3667
3668         * config/microblaze/microblaze.md (call_internal1): Use VOID
3669         instead of SI to fix "((void (*)(void)) 0)()" issue
3670
3671 2014-09-29  Nick Clifton  <nickc@redhat.com>
3672
3673         * config/msp430/msp430.c (msp430_expand_prologue): Return a
3674         CLOBBER rtx for naked functions.
3675         (msp430_expand_epilogue): Likewise.
3676         (msp430_use_f5_series_hwmult): Cache result.
3677         (use_32bit_hwmult): Cache result.
3678         (msp430_no_hwmult): New function.
3679         (msp430_output_labelref): Use it.
3680
3681 2014-09-29  Jakub Jelinek  <jakub@redhat.com>
3682
3683         PR middle-end/63247
3684         * omp-low.c (lower_omp_target): For OMP_CLAUSE_MAP_POINTER
3685         of ARRAY_TYPE, if not OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION
3686         use the alignment of avar rather than ovar.
3687
3688 2014-09-28  John David Anglin  <danglin@gcc.gnu.org>
3689
3690         * config/pa/pa.c (pa_output_function_epilogue): Only update
3691         last_address when a nonnote insn is found.
3692
3693 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3694
3695         PR ipa/60665
3696         * ipa-devirt.c (possible_polymorphic_call_targets): Silence clang warning.
3697
3698 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3699
3700         PR ipa/62121
3701         * ipa-polymorphic-call.c (ipa_polymorphic_call_context::restrict_to_inner_class):
3702         fix pasto in checking array size.
3703
3704 2014-09-26  Jan Hubicka  <hubicka@ucw.cz>
3705
3706         PR middle-end/35545
3707         * passes.def (pass_tracer): Move before last dominator pass.
3708
3709 2014-09-26  Thomas Schwinge  <thomas@codesourcery.com>
3710
3711         * gcc.c (try_generate_repro): Remove argument "prog".  Change all
3712         users.
3713         (run_attempt): Handle errors of "pex_run" invocation.
3714
3715 2014-09-26  Christophe Lyon  <christophe.lyon@linaro.org>
3716
3717         * config/aarch64/aarch64-linux.h (ASAN_CC1_SPEC): Define.
3718         (CC1_SPEC): Define.
3719         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset): New function.
3720         (TARGET_ASAN_SHADOW_OFFSET): Define.
3721
3722 2014-09-26  Martin Liska  <mliska@suse.cz>
3723
3724         * cgraph.c (cgraph_node::release_body): New argument keep_arguments
3725         introduced.
3726         * cgraph.h: Likewise.
3727         * cgraphunit.c (cgraph_node::create_wrapper): Usage of new argument introduced.
3728         * ipa-utils.h (polymorphic_type_binfo_p): Safe check for binfos created by Java.
3729         * tree-ssa-alias.c (ao_ref_base_alias_set): Static function transformed to global.
3730         * tree-ssa-alias.h: Likewise.
3731
3732 2014-09-26  Jakub Jelinek  <jakub@redhat.com>
3733             Max Ostapenko  <m.ostapenko@partner.samsung.com>
3734
3735         * common.opt: New option.
3736         * doc/invoke.texi: Describe new option.
3737         * gcc.c (execute): Don't free first string early, but at the end
3738         of the function.  Call retry_ice if compiler exited with
3739         ICE_EXIT_CODE.
3740         (main): Factor out common code.
3741         (print_configuration): New function.
3742         (files_equal_p): Likewise.
3743         (check_repro): Likewise.
3744         (run_attempt): Likewise.
3745         (do_report_bug): Likewise.
3746         (append_text): Likewise.
3747         (try_generate_repro): Likewise
3748
3749 2014-09-25  Andi Kleen  <ak@linux.intel.com>
3750
3751         * config/i386/i386.c (x86_print_call_or_nop): New function.
3752         (x86_function_profiler): Support -mnop-mcount and
3753         -mrecord-mcount.
3754         * config/i386/i386.opt (-mnop-mcount, -mrecord-mcount): Add
3755         * doc/invoke.texi: Document -mnop-mcount, -mrecord-mcount.
3756
3757 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3758
3759         * ipa-prop.c (ipa_intraprocedural_devirtualization): Remove.
3760         * ipa-prop.h (ipa_intraprocedural_devirtualization): Remove.
3761         * tree-ssa-prop.c (eliminate_dom_walker::before_dom_children):
3762         Remove.
3763
3764 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3765
3766         * ipa-utils.h (subbinfo_with_vtable_at_offset, type_all_derivations_known_p,
3767         type_known_to_have_no_deriavations_p, types_must_be_same_for_odr,
3768         types_odr_comparable): Declare.
3769         (polymorphic_type_binfo_p): Move here from ipa-devirt.c
3770         * ipa-polymorphic-call.c: New file.
3771         (contains_polymorphic_type_p, possible_placement_new,
3772         ipa_polymorphic_call_context::restrict_to_inner_class,
3773         contains_type_p, decl_maybe_in_construction_p,
3774         ipa_polymorphic_call_context::stream_out,
3775         ipa_polymorphic_call_context::debug,
3776         ipa_polymorphic_call_context::stream_in,
3777         ipa_polymorphic_call_context::set_by_decl,
3778         ipa_polymorphic_call_context::set_by_invariant,
3779         walk_ssa_copies,
3780         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3781         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3782         extr_type_from_vtbl_ptr_store, record_known_type
3783         check_stmt_for_type_change,
3784         ipa_polymorphic_call_context::get_dynamic_type): Move here from
3785         ipa-devirt.c
3786         * ipa-devirt.c: No longer include data-streamer.h, lto-streamer.h
3787         and streamer-hooks.h
3788         (contains_polymorphic_type_p, possible_placement_new,
3789         ipa_polymorphic_call_context::restrict_to_inner_class,
3790         contains_type_p, decl_maybe_in_construction_p,
3791         ipa_polymorphic_call_context::stream_out,
3792         ipa_polymorphic_call_context::debug,
3793         ipa_polymorphic_call_context::stream_in,
3794         ipa_polymorphic_call_context::set_by_decl,
3795         ipa_polymorphic_call_context::set_by_invariant,
3796         walk_ssa_copies,
3797         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
3798         type_change_info, noncall_stmt_may_be_vtbl_ptr_store,
3799         extr_type_from_vtbl_ptr_store, record_known_type
3800         check_stmt_for_type_change,
3801         ipa_polymorphic_call_context::get_dynamic_type): Move to
3802         ipa-polymorphic-call.c
3803         (type_all_derivations_known_p, types_odr_comparable,
3804         types_must_be_same_for_odr): Export.
3805         (type_known_to_have_no_deriavations_p): New function.
3806         * Makefile.in: Add ipa-polymorphic-call.c
3807
3808 2014-09-25  Jan Hubicka  <hubicka@ucw.cz>
3809
3810         * ipa-devirt.c (polymorphic_call_target_d): Add SPECULATIVE; reorder
3811         for better storage.
3812         (polymorphic_call_target_hasher::hash): Hash SPECULATIVE.
3813         (possible_polymorphic_call_targets): Instead of computing both
3814         speculative and non-speculative answers, do just one at a time.
3815         Replace NONSPECULATIVE_TARGETSP parameter with SPECULATIVE flag.
3816         (dump_targets): Break out from ...
3817         (dump_possible_polymorphic_call_targets): ... here; dump both speculative
3818         and non-speculative lists.
3819         (ipa_devirt): Update for new possible_polymorphic_call_targets API.
3820         * ipa-utils.h (possible_polymorphic_call_targets): Update.
3821
3822 2014-09-25  Uros Bizjak  <ubizjak@gmail.com>
3823
3824         PR rtl-optimization/63348
3825         * emit-rtl.c (try_split): Do not emit extra barrier.
3826
3827 2014-09-25  James Greenhalgh  <james.greenhalgh@arm.com>
3828
3829         * config/aarch64/aarch64-protos.h (aarch64_simd_const_bounds): Delete.
3830         * config/aarch64/aarch64-simd.md (aarch64_<sur>q<r>shl<mode>): Use
3831         new predicates.
3832         (aarch64_<sur>shll2_n<mode>): Likewise.
3833         (aarch64_<sur>shr_n<mode>): Likewise.
3834         (aarch64_<sur>sra_n<mode>: Likewise.
3835         (aarch64_<sur>s<lr>i_n<mode>): Likewise.
3836         (aarch64_<sur>qshl<u>_n<mode>): Likewise.
3837         * config/aarch64/aarch64.c (aarch64_simd_const_bounds): Delete.
3838         * config/aarch64/iterators.md (ve_mode): New.
3839         (offsetlr): Remap to infix text for use in new predicates.
3840         * config/aarch64/predicates.md (aarch64_simd_shift_imm_qi): New.
3841         (aarch64_simd_shift_imm_hi): Likewise.
3842         (aarch64_simd_shift_imm_si): Likewise.
3843         (aarch64_simd_shift_imm_di): Likewise.
3844         (aarch64_simd_shift_imm_offset_qi): Likewise.
3845         (aarch64_simd_shift_imm_offset_hi): Likewise.
3846         (aarch64_simd_shift_imm_offset_si): Likewise.
3847         (aarch64_simd_shift_imm_offset_di): Likewise.
3848         (aarch64_simd_shift_imm_bitsize_qi): Likewise.
3849         (aarch64_simd_shift_imm_bitsize_hi): Likewise.
3850         (aarch64_simd_shift_imm_bitsize_si): Likewise.
3851         (aarch64_simd_shift_imm_bitsize_di): Likewise.
3852
3853 2014-09-25  Jiong Wang  <jiong.wang@arm.com>
3854
3855         * shrink-wrap.c (move_insn_for_shrink_wrap): Initialize the live-in of
3856         new created BB as the intersection of live-in from "old_dest" and
3857         live-out from "bb".
3858
3859 2014-09-25  Felix Yang  <felix.yang@huawei.com>
3860
3861         * lra.c (lra_set_insn_recog_data): Fix typo in comment.
3862         * genautomata.c (merge_states): Ditto.
3863
3864 2014-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
3865
3866         PR target/62218
3867         * config/sh/sync.md (atomic_test_and_set_soft_imask): Fix typo
3868         in instruction sequence.
3869
3870 2014-09-25  Nick Clifton  <nickc@redhat.com>
3871
3872         PR target/62218
3873         * config/sh/sync.md (atomic_fetch_nand<mode>_soft_imask): Fix typo
3874         in instruction sequence.
3875
3876 2014-09-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3877
3878         PR target/63335
3879         * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin):
3880         Exclude VSX_BUILTIN_XVCMPGEDP_P from special handling.
3881
3882 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3883             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3884             Anna Tikhonova  <anna.tikhonova@intel.com>
3885             Ilya Tocar  <ilya.tocar@intel.com>
3886             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3887             Ilya Verbin  <ilya.verbin@intel.com>
3888             Kirill Yukhin  <kirill.yukhin@intel.com>
3889             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3890
3891         * config/i386/sse.md
3892         (define_expand "<avx2_avx512f>_perm<mode>"): Rename to ...
3893         (define_expand "<avx2_avx512>_perm<mode>"): ... this.
3894         (define_expand "avx512f_perm<mode>_mask"): Rename to ...
3895         (define_expand "<avx512>_perm<mode>_mask"): ... this.
3896         Use VI8F_256_512 mode iterator.
3897         (define_insn "<avx2_avx512f>_perm<mode>_1<mask_name>"): Rename to ...
3898         (define_insn "<avx2_avx512bw>_perm<mode>_1<mask_name>"): ... this.
3899
3900 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3901             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3902             Anna Tikhonova  <anna.tikhonova@intel.com>
3903             Ilya Tocar  <ilya.tocar@intel.com>
3904             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3905             Ilya Verbin  <ilya.verbin@intel.com>
3906             Kirill Yukhin  <kirill.yukhin@intel.com>
3907             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3908
3909         * config/i386/sse.md
3910         (define_insn "avx_movshdup256<mask_name>"): Add masking.
3911         (define_insn "sse3_movshdup<mask_name>"): Ditto.
3912         (define_insn "avx_movsldup256<mask_name>"): Ditto.
3913         (define_insn "sse3_movsldup<mask_name>"): Ditto.
3914         (define_insn "vec_dupv2df<mask_name>"): Ditto.
3915         (define_insn "*vec_concatv2df"): Add EVEX version.
3916
3917 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3918             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3919             Anna Tikhonova  <anna.tikhonova@intel.com>
3920             Ilya Tocar  <ilya.tocar@intel.com>
3921             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3922             Ilya Verbin  <ilya.verbin@intel.com>
3923             Kirill Yukhin  <kirill.yukhin@intel.com>
3924             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3925
3926         * config/i386/sse.md
3927         (define_insn "vec_set<mode>_0"): Add EVEX version.
3928
3929 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3930             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3931             Anna Tikhonova  <anna.tikhonova@intel.com>
3932             Ilya Tocar  <ilya.tocar@intel.com>
3933             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3934             Ilya Verbin  <ilya.verbin@intel.com>
3935             Kirill Yukhin  <kirill.yukhin@intel.com>
3936             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3937
3938         * config/i386/sse.md
3939         (define_insn
3940         "<fixsuffix>fix_trunc<mode><sselongvecmodelower>2<mask_name><round_saeonly_name>"):
3941         New.
3942         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
3943         (define_insn "ufix_trunc<mode><sseintvecmodelower>2<mask_name>"): Ditto.
3944         (define_insn "sse2_cvtss2sd<round_saeonly_name>"): Change
3945         "nonimmediate_operand" to "<round_saeonly_nimm_predicate>".
3946         (define_insn "avx_cvtpd2ps256<mask_name>"): Add masking.
3947         (define_expand "sse2_cvtpd2ps_mask): New.
3948         (define_insn "*sse2_cvtpd2ps<mask_name>"): Add masking.
3949         (define_insn "sse2_cvtps2pd<mask_name>"): Add masking.
3950
3951 2014-09-25  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3952             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
3953             Anna Tikhonova  <anna.tikhonova@intel.com>
3954             Ilya Tocar  <ilya.tocar@intel.com>
3955             Andrey Turetskiy  <andrey.turetskiy@intel.com>
3956             Ilya Verbin  <ilya.verbin@intel.com>
3957             Kirill Yukhin  <kirill.yukhin@intel.com>
3958             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
3959
3960         * config/i386/i386.c
3961         (avx512f_ufix_notruncv8dfv8si_mask_round): Rename to ...
3962         (ufix_notruncv8dfv8si2_mask_round): ... this.
3963         * config/i386/sse.md
3964         (define_insn "avx512f_cvtdq2pd512_2): Update TARGET check.
3965         (define_insn "avx_cvtdq2pd256_2"): Add EVEX version.
3966         (define_insn "sse2_cvtdq2pd<mask_name>"): Add masking.
3967         (define_insn "avx_cvtpd2dq256<mask_name>"): Ditto.
3968         (define_expand "sse2_cvtpd2dq"): Delete.
3969         (define_insn "sse2_cvtpd2dq<mask_name>"): Add masking and
3970         make 2nd operand const0 vector.
3971         (define_insn "avx512f_ufix_notruncv8dfv8si<mask_name><round_name>"):
3972         Delete.
3973         (define_mode_attr pd2udqsuff): New.
3974         (define_insn
3975         "ufix_notrunc<mode><si2dfmodelower>2<mask_name><round_name>"): Ditto.
3976         (define_insn "ufix_notruncv2dfv2si2<mask_name>"): Ditto.
3977         (define_insn "*avx_cvttpd2dq256_2"): Delete.
3978         (define_expand "sse2_cvttpd2dq"): Ditto.
3979         (define_insn "sse2_cvttpd2dq<mask_name>"): Add masking and
3980         make 2nd operand const0 vector.
3981
3982 2014-09-25  Jakub Jelinek  <jakub@redhat.com>
3983
3984         PR tree-optimization/63341
3985         * tree-vectorizer.h (vect_create_data_ref_ptr,
3986         vect_create_addr_base_for_vector_ref): Add another tree argument
3987         defaulting to NULL_TREE.
3988         * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add byte_offset
3989         argument, pass it down to vect_create_addr_base_for_vector_ref.
3990         (vect_create_addr_base_for_vector_ref): Add byte_offset argument,
3991         add that to base_offset too if non-NULL.
3992         * tree-vect-stmts.c (vectorizable_load): Add byte_offset variable,
3993         for dr_explicit_realign_optimized set it to vector byte size
3994         - 1 instead of setting offset, pass byte_offset down to
3995         vect_create_data_ref_ptr.
3996
3997 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
3998
3999         * ipa-devirt.c (possible_polymorphic_call_targets): Remove
4000         forgotten debug output; canonicalize querries more wtih LTO.
4001
4002 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4003
4004         * cgraph.h (class ipa_polymorphic_call_context): Move here from
4005         ipa-utils.h; add stream_int and stream_out methods.
4006         (cgraph_indirect_call_info): Remove SPECILATIVE_OFFSET,
4007         OUTER_TYPE, SPECULATIVE_OUTER_TYPE, MAYBE_IN_CONSTRUCTION
4008         MAYBE_DERIVED_TYPE and SPECULATIEVE_MAYBE_DERIVED_TYPE;
4009         add CONTEXT.
4010         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4011         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4012         ipa_polymorphic_call_context::clear_speculation,
4013         ipa_polymorphic_call_context::clear_outer_type): Move here from
4014         ipa-utils.h
4015         * ipa-utils.h (class ipa_polymorphic_call_context): Move to cgraph.h
4016         (ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4017         ipa_polymorphic_call_context::ipa_polymorphic_call_context,
4018         ipa_polymorphic_call_context::clear_speculation,
4019         ipa_polymorphic_call_context::clear_outer_type): Likewise.
4020         * ipa-devirt.c: Include data-streamer.h, lto-streamer.h and
4021         streamer-hooks.h
4022         (ipa_polymorphic_call_context::stream_out): New method.
4023         (ipa_polymorphic_call_context::stream_in): New method.
4024         (noncall_stmt_may_be_vtbl_ptr_store): Add forgotten static.
4025         * ipa-prop.c (ipa_analyze_indirect_call_uses): Do not care about
4026         OUTER_TYPE.
4027         (ipa_analyze_call_uses): Simplify.
4028         (update_indirect_edges_after_inlining): Do not care about outer_type.
4029         (ipa_write_indirect_edge_info): Update.
4030         (ipa_write_indirect_edge_info): Likewise.
4031         * cgraph.c (cgraph_node::create_indirect_edge): Simplify.
4032         (dump_edge_flags): Break out from ...
4033         (cgraph_node::dump): ... here; dump indirect edges.
4034
4035 2014-09-24  Jan Hubicka  <hubicka@ucw.cz>
4036
4037         * ipa-utils.h (polymorphic_call_context): Add
4038         metdhos dump, debug and clear_outer_type.
4039         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4040         (ipa_polymorphic_call_context::clear_outer_type): New method.
4041         * ipa-prop.c (ipa_analyze_call_uses): Do not overwrite offset.
4042         * ipa-devirt.c (types_odr_comparable): New function.
4043         (types_must_be_same_for_odr): New function.
4044         (odr_subtypes_equivalent_p): Simplify.
4045         (possible_placement_new): Break out from ...
4046         (ipa_polymorphic_call_context::restrict_to_inner_type): ... here;
4047         be more cuatious about returning false in cases the context may be
4048         valid in derived type or via placement new.
4049         (contains_type_p): Clear maybe_derived_type
4050         (ipa_polymorphic_call_context::dump): New method.
4051         (ipa_polymorphic_call_context::debug): New method.
4052         (ipa_polymorphic_call_context::set_by_decl): Cleanup comment.
4053         (ipa_polymorphic_call_context::set_by_invariant): Simplify.
4054         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Simplify.
4055         (possible_polymorphic_call_targets): Trust context.restrict_to_inner_class
4056         to suceed on all valid cases; remove confused sanity check.
4057         (dump_possible_polymorphic_call_targets): Simplify.
4058
4059 2014-09-24  Aldy Hernandez  <aldyh@redhat.com>
4060
4061         * cgraph.h, dbxout.c, dwarfout2.c, gimple-fold.c,
4062         lto-streamer-out.c, print-tree.c, symtab.c, tree-inline.c,
4063         tree-streamer-in.c, tree-streamer-out.c, tree.c, tree.h,
4064         varpool.c: Rename all instances of DECL_ABSTRACT to
4065         DECL_ABSTRACT_P.
4066
4067 2014-09-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4068
4069         * config/rs6000/rs6000.c (insn_is_swappable_p): Don't provide
4070         special handling for stores whose SET_SRC is an UNSPEC (such as
4071         UNSPEC_STVE).
4072
4073 2014-09-24  Jiong Wang  <jiong.wang@arm.com>
4074
4075         * shrink-wrap.c (move_insn_for_shrink_wrap): Add further check when
4076         !REG_P (src) to release more instruction sink opportunities.
4077
4078 2014-09-24  Wilco Dijkstra  <wilco.dijkstra@arm.com>
4079
4080         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add register
4081         move costs for 128-bit types.
4082
4083 2014-09-24  Martin Jambor  <mjambor@suse.cz>
4084
4085         * ipa-prop.c (ipa_edge_duplication_hook): Update controlled_use_count
4086         when duplicating a PASS_THROUGH jump function when creating a
4087         speculative edge.
4088
4089 2014-09-24  Marek Polacek  <polacek@redhat.com>
4090
4091         PR c/61405
4092         PR c/53874
4093         * asan.c (maybe_instrument_call): Add default case.
4094         * ipa-pure-const.c (special_builtin_state): Likewise.
4095         * predict.c (expr_expected_value_1): Likewise.
4096         * lto-streamer-out.c (write_symbol): Initialize variable.
4097
4098 2014-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4099
4100         * config/aarch64/arm_neon.h (vmuld_lane_f64): Use macro for getting
4101         the lane.
4102         (vmuld_laneq_f64): Likewise.
4103         (vmuls_lane_f32): Likewise.
4104         (vmuls_laneq_f32): Likewise.
4105
4106 2014-09-24  Kirill Yukhin  <kirill.yukhin@intel.com>
4107
4108         PR bootstrap/63235
4109         * varpool.c (varpool_node::add): Pass decl attributes
4110         to lookup_attribute.
4111
4112 2014-09-24  Jakub Jelinek  <jakub@redhat.com>
4113
4114         PR sanitizer/63316
4115         * asan.c (asan_expand_check_ifn): Fix up align >= 8 optimization.
4116
4117 2014-09-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4118
4119         PR tree-optimization/63266
4120         * tree-ssa-math-opts.c (struct symbolic_number): Add comment about
4121         marker for unknown byte value.
4122         (MARKER_MASK): New macro.
4123         (MARKER_BYTE_UNKNOWN): New macro.
4124         (HEAD_MARKER): New macro.
4125         (do_shift_rotate): Mark bytes with unknown values due to sign
4126         extension when doing an arithmetic right shift. Replace hardcoded
4127         mask for marker by new MARKER_MASK macro.
4128         (find_bswap_or_nop_1): Likewise and adjust ORing of two symbolic
4129         numbers accordingly.
4130
4131 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4132             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4133             Anna Tikhonova  <anna.tikhonova@intel.com>
4134             Ilya Tocar  <ilya.tocar@intel.com>
4135             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4136             Ilya Verbin  <ilya.verbin@intel.com>
4137             Kirill Yukhin  <kirill.yukhin@intel.com>
4138             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4139
4140         * config/i386/sse.md
4141         (define_insn
4142         "<sse2_avx_avx512f>_fix_notrunc<sf2simodelower><mode><mask_name>"):
4143         Add masking.
4144         (define_insn "fix_truncv8sfv8si2<mask_name>"): Ditto.
4145         (define_insn "fix_truncv4sfv4si2<mask_name>"): Ditto.
4146
4147 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4148             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4149             Anna Tikhonova  <anna.tikhonova@intel.com>
4150             Ilya Tocar  <ilya.tocar@intel.com>
4151             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4152             Ilya Verbin  <ilya.verbin@intel.com>
4153             Kirill Yukhin  <kirill.yukhin@intel.com>
4154             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4155
4156         * config/i386/sse.md
4157         (define_c_enum "unspec"): Add UNSPEC_PSHUFHW, UNSPEC_PSHUFLW.
4158         (define_insn "<mask_codefor>avx512bw_pshuflwv32hi<mask_name>"): New.
4159         (define_expand "avx512vl_pshuflwv3_mask"): Ditto.
4160         (define_insn "avx2_pshuflw_1<mask_name>"): Add masking.
4161         (define_expand "avx512vl_pshuflw_mask"): New.
4162         (define_insn "sse2_pshuflw_1<mask_name>"): Add masking.
4163         (define_insn "<mask_codefor>avx512bw_pshufhwv32hi<mask_name>"): New.
4164         (define_expand "avx512vl_pshufhwv3_mask"): Ditto.
4165         (define_insn "avx2_pshufhw_1<mask_name>"): Add masking.
4166         (define_expand "avx512vl_pshufhw_mask"): New.
4167         (define_insn "sse2_pshufhw_1<mask_name>"): Add masking.
4168
4169 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4170             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4171             Anna Tikhonova  <anna.tikhonova@intel.com>
4172             Ilya Tocar  <ilya.tocar@intel.com>
4173             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4174             Ilya Verbin  <ilya.verbin@intel.com>
4175             Kirill Yukhin  <kirill.yukhin@intel.com>
4176             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4177
4178         * config/i386/i386.c
4179         (ix86_expand_args_builtin): Handle CODE_FOR_sse2_shufpd,
4180         CODE_FOR_sse2_sse2_shufpd_mask, CODE_FOR_sse2_avx512dq_shuf_f64x2_mask,
4181         CODE_FOR_sse2_avx512dq_shuf_i64x2_mask,
4182         CODE_FOR_sse2_avx512vl_shuf_i32x4_mask and
4183         CODE_FOR_sse2_avx512vl_shuf_f32x4_mask.
4184         * config/i386/sse.md
4185         (define_expand "avx512dq_shuf_<shuffletype>64x2_mask"): New.
4186         (define_insn
4187         "<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>"): Ditto.
4188         (define_expand "avx512vl_shuf_<shuffletype>32x4_mask"): Ditto.
4189         (define_insn
4190         "<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>"): Ditto.
4191         (define_expand "avx512vl_pshufdv3_mask"): Ditto.
4192         (define_insn "avx2_pshufd_1<mask_name>"): Add masking.
4193         (define_expand "avx512vl_pshufd_mask"): New.
4194         (define_insn "sse2_pshufd_1<mask_name>"): Add masking.
4195
4196 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4197             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4198             Anna Tikhonova  <anna.tikhonova@intel.com>
4199             Ilya Tocar  <ilya.tocar@intel.com>
4200             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4201             Ilya Verbin  <ilya.verbin@intel.com>
4202             Kirill Yukhin  <kirill.yukhin@intel.com>
4203             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4204
4205         * config/i386/i386.c
4206         (CODE_FOR_avx2_extracti128): Rename to ...
4207         (CODE_FOR_avx_vextractf128v4di): this.
4208         (CODE_FOR_avx2_inserti128): Rename to ...
4209         (CODE_FOR_avx_vinsertf128v4di): this.
4210         (ix86_expand_args_builtin): Handle CODE_FOR_avx_vinsertf128v4di,
4211         CODE_FOR_avx_vextractf128v4di.
4212         (ix86_expand_args_builtin): Handle CODE_FOR_avx512dq_vinsertf32x8_mask,
4213         CODE_FOR_avx512dq_vinserti32x8_mask, CODE_FOR_avx512vl_vinsertv4df,
4214         CODE_FOR_avx512vl_vinsertv4di, CODE_FOR_avx512vl_vinsertv8sf,
4215         CODE_FOR_avx512vl_vinsertv8si.
4216         * config/i386/sse.md
4217         (define_expand
4218         "<extract_type>_vinsert<shuffletype><extract_suf>_mask"): Use
4219         AVX512_VEC mode iterator.
4220         (define_insn
4221         "<mask_codefor><extract_type>_vinsert<shuffletype><extract_suf>_1<mask_name>"):
4222         Ditto.
4223         (define_expand
4224         "<extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask"): Use
4225         AVX512_VEC_2 mode iterator.
4226         (define_insn "vec_set_lo_<mode><mask_name>"): New.
4227         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4228         (define_expand "avx512vl_vinsert<mode>"): Ditto.
4229         (define_insn "avx2_vec_set_lo_v4di"): Delete.
4230         (define_insn "avx2_vec_set_hi_v4di"): Ditto.
4231         (define_insn "vec_set_lo_<mode><mask_name>"): Add masking.
4232         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4233         (define_insn "vec_set_lo_<mode><mask_name>"): Ditto.
4234         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
4235         (define_expand "avx2_extracti128"): Delete.
4236         (define_expand "avx2_inserti128"): Ditto.
4237
4238 2014-09-24  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4239             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4240             Anna Tikhonova  <anna.tikhonova@intel.com>
4241             Ilya Tocar  <ilya.tocar@intel.com>
4242             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4243             Ilya Verbin  <ilya.verbin@intel.com>
4244             Kirill Yukhin  <kirill.yukhin@intel.com>
4245             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4246
4247         * config/i386/sse.md
4248         (define_insn "avx2_<code>v16qiv16hi2<mask_name>"): Add masking.
4249         (define_insn "avx512bw_<code>v32qiv32hi2<mask_name>"): New.
4250         (define_insn "sse4_1_<code>v8qiv8hi2<mask_name>"): Add masking.
4251         (define_insn "avx2_<code>v8qiv8si2<mask_name>"): Ditto.
4252         (define_insn "sse4_1_<code>v4qiv4si2<mask_name>"): Ditto.
4253         (define_insn "avx2_<code>v8hiv8si2<mask_name>"): Ditto.
4254         (define_insn "sse4_1_<code>v4hiv4si2<mask_name>"): Ditto.
4255         (define_insn "avx2_<code>v4qiv4di2<mask_name>"): Ditto.
4256         (define_insn "sse4_1_<code>v2qiv2di2<mask_name>"): Ditto.
4257         (define_insn "avx2_<code>v4hiv4di2<mask_name>"): Ditto.
4258         (define_insn "sse4_1_<code>v2hiv2di2<mask_name>"): Ditto.
4259         (define_insn "avx2_<code>v4siv4di2<mask_name>"): Ditto.
4260         (define_insn "sse4_1_<code>v2siv2di2<mask_name>"): Ditto.
4261
4262 2014-09-24  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4263
4264         PR rtl-optimization/63210
4265         * ira-color.c (assign_hard_reg): Ignore conflict cost if the
4266         HARD_REGNO is not available for CONFLICT_A.
4267
4268 2014-09-23  Andi Kleen  <ak@linux.intel.com>
4269
4270         * cgraph.h (symtab_node): Add no_reorder attribute.
4271         (symbol_table::output_asm_statements): Remove.
4272         * cgraphclones.c (cgraph_node::create_clone): Copy no_reorder.
4273         (cgraph_node::create_version_clone): Dito.
4274         (symbol_table::output_asm_statements): Remove.
4275         * trans-mem.c (ipa_tm_create_version_alias): Dito.
4276         * cgraphunit.c (varpool_node::finalize_decl): Check no_reorder.
4277         (output_in_order): Add no_reorder flag. Only handle no_reorder
4278         nodes when set.
4279         (symbol_table::compile): Add separate pass for no_reorder nodes.
4280         (process_common_attributes): Set no_reorder flag in symtab node.
4281         Add node argument.
4282         (process_function_and_variable_attributes): Pass symtab nodes to
4283         process_common_attributes.
4284         * doc/extend.texi (no_reorder): Document no_reorder attribute.
4285         * lto-cgraph.c (lto_output_node): Serialize no_reorder.
4286         (lto_output_varpool_node): Dito.
4287         (input_overwrite_node): Dito.
4288         (input_varpool_node): Dito.
4289         * varpool.c (varpool_node::add): Set no_reorder attribute.
4290         (symbol_table::remove_unreferenced_decls): Handle no_reorder.
4291         (symbol_table::output_variables): Dito.
4292         * symtab.c (symtab_node::dump_base): Print no_reorder.
4293
4294 2014-09-23  Jiong Wang  <jiong.wang@arm.com>
4295
4296         * shrink-wrap.c (try_shrink_wrapping): Check PIC_OFFSET_TABLE_REGNUM not
4297         be INVALID_REGNUM.
4298
4299 2014-09-23  Thomas Schwinge  <thomas@codesourcery.com>
4300
4301         * configure: Regenerate.
4302
4303 2014-09-23  Alan Lawrence  <alan.lawrence@arm.com>
4304
4305         * combine.c (simplify_shift_const_1): Allow commuting (ashiftrt (xor))
4306         when result_mode == shift_mode.
4307
4308 2014-09-23  Kostya Serebryany  <kcc@google.com>
4309
4310         Update to match the changed asan API.
4311         * asan.c (asan_global_struct): Update the __asan_global definition
4312         to match the new API.
4313         (asan_add_global): Ditto.
4314         * sanitizer.def (BUILT_IN_ASAN_INIT): Rename __asan_init_v3
4315         to __asan_init_v4.
4316
4317 2014-09-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4318
4319         * config/rs6000/rs6000.md (f32_vsx): New mode attributes to
4320         refine the constraints used on 32/64-bit floating point moves.
4321         (f32_av): Likewise.
4322         (f64_vsx): Likewise.
4323         (f64_dm): Likewise.
4324         (f64_av): Likewise.
4325         (BOOL_REGS_OUTPUT): Use wt constraint for TImode instead of wa.
4326         (BOOL_REGS_OP1): Likewise.
4327         (BOOL_REGS_OP2): Likewise.
4328         (BOOL_REGS_UNARY): Likewise.
4329         (mov<mode>_hardfloat, SFmode/SDmode): Tighten down constraints for
4330         32/64-bit floating point moves.  Do not use wa, instead use ww/ws
4331         for moves involving VSX registers.  Do not use constraints that
4332         target VSX registers for decimal types.
4333         (mov<mode>_hardfloat32, DFmode/DDmode): Likewise.
4334         (mov<mode>_hardfloat64, DFmode/DDmode): Likewise.
4335
4336 2014-09-23  Jan Hubicka  <hubicka@ucw.cz>
4337
4338         * tree.h (int_bit_position): Turn into inline function;
4339         implement using wide int.
4340         * tree.c (int_bit_position): Remove.
4341
4342 2014-09-23  Richard Sandiford  <richard.sandiford@arm.com>
4343
4344         PR bootstrap/63280
4345         * target-globals.c (target_globals::~target_globals): Fix location
4346         of ira_int destruction.
4347
4348 2014-09-23  Renlin Li  <renlin.li@arm.com>
4349
4350         * config/aarch64/aarch64.md (return): New.
4351         (simple_return): Likewise.
4352         * config/aarch64/aarch64.c (aarch64_use_return_insn_p): New.
4353         * config/aarch64/aarch64-protos.h (aarch64_use_return_insn_p): New.
4354
4355 2014-09-23  Wilco Dijkstra  <wdijkstr@arm.com>
4356
4357         * common/config/aarch64/aarch64-common.c:
4358         (default_options aarch_option_optimization_table):
4359         Default to -fsched-pressure.
4360
4361 2014-09-23  Ilya Enkovich  <ilya.enkovich@intel.com>
4362
4363         * cfgcleanup.c (try_optimize_cfg): Do not remove label
4364         with LABEL_PRESERVE_P flag set.
4365
4366 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4367             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4368             Anna Tikhonova  <anna.tikhonova@intel.com>
4369             Ilya Tocar  <ilya.tocar@intel.com>
4370             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4371             Ilya Verbin  <ilya.verbin@intel.com>
4372             Kirill Yukhin  <kirill.yukhin@intel.com>
4373             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4374
4375         * config/i386/sse.md
4376         (define_expand "avx_shufpd256<mask_expand4_name>"): Add masking.
4377         (define_insn "avx_shufpd256_1<mask_name>"): Ditto.
4378         (define_expand "sse2_shufpd<mask_expand4_name>"): Ditto.
4379         (define_insn "sse2_shufpd_v2df_mask"): New.
4380
4381 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4382             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4383             Anna Tikhonova  <anna.tikhonova@intel.com>
4384             Ilya Tocar  <ilya.tocar@intel.com>
4385             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4386             Ilya Verbin  <ilya.verbin@intel.com>
4387             Kirill Yukhin  <kirill.yukhin@intel.com>
4388             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4389
4390         * config/i386/sse.md
4391         (define_expand "avx_shufps256<mask_expand4_name>"): Add masking.
4392         (define_insn "avx_shufps256_1<mask_name>"): Ditto.
4393         (define_expand "sse_shufps<mask_expand4_name>"): Ditto.
4394         (define_insn "sse_shufps_v4sf_mask"): New.
4395
4396 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4397             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4398             Anna Tikhonova  <anna.tikhonova@intel.com>
4399             Ilya Tocar  <ilya.tocar@intel.com>
4400             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4401             Ilya Verbin  <ilya.verbin@intel.com>
4402             Kirill Yukhin  <kirill.yukhin@intel.com>
4403             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4404
4405         * config/i386/sse.md
4406         (define_insn "avx_unpckhps256<mask_name>"): Add masking.
4407         (define_insn "vec_interleave_highv4sf<mask_name>"): Ditto.
4408         (define_insn "avx_unpcklps256<mask_name>"): Ditto.
4409         (define_insn "unpcklps128_mask"): New.
4410
4411 2014-09-23  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4412             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4413             Anna Tikhonova  <anna.tikhonova@intel.com>
4414             Ilya Tocar  <ilya.tocar@intel.com>
4415             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4416             Ilya Verbin  <ilya.verbin@intel.com>
4417             Kirill Yukhin  <kirill.yukhin@intel.com>
4418             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
4419
4420         * config/i386/sse.md
4421         (define_insn "avx_unpckhpd256<mask_name>"): Add masking.
4422         (define_insn "avx512vl_unpckhpd128_mask"): New.
4423         (define_expand "avx_movddup256<mask_name>"): Add masking.
4424         (define_expand "avx_unpcklpd256<mask_name>"): Ditto.
4425         (define_insn "*avx_unpcklpd256<mask_name>"): Ditto.
4426         (define_insn "avx512vl_unpcklpd128_mask"): New.
4427
4428 2014-09-22  Joseph Myers  <joseph@codesourcery.com>
4429
4430         * doc/tm.texi.in (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4431         * doc/tm.texi: Regenerate.
4432         * system.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Poison.
4433         * config/alpha/alpha.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4434         * config/i386/i386-interix.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4435         Remove.
4436         * config/i386/i386.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4437         * config/i386/rtemself.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4438         * config/ia64/ia64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4439         * config/m68k/m68k.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4440         * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4441         Remove.
4442         * config/mips/mips.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4443         * config/mips/n32-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4444         * config/msp430/msp430.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4445         * config/rl78/rl78.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4446         * config/rs6000/rs6000.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4447         * config/rx/rx.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4448         * config/s390/s390.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4449         * config/sparc/freebsd.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4450         * config/sparc/linux.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4451         * config/sparc/linux64.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Remove.
4452         * config/sparc/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE):
4453         Remove.
4454
4455 2014-09-22  Jan Hubicka  <hubicka@ucw.cz>
4456
4457         * tree-ssa-ccp.c (prop_value_d): Rename to ...
4458         (ccp_prop_value_t): ... this one to avoid ODR violation; update uses.
4459         * ipa-prop.c (struct type_change_info): Rename to ...
4460         (prop_type_change_info): ... this; update uses.
4461         * ggc-page.c (globals): Rename to ...
4462         (static struct ggc_globals): ... this; update uses.
4463         * tree-ssa-loop-im.c (mem_ref): Rename to ...
4464         (im_mem_ref): ... this; update uses.
4465         * ggc-common.c (loc_descriptor): Rename to ...
4466         (ggc_loc_descriptor): ... this; update uses.
4467         * lra-eliminations.c (elim_table): Rename to ...
4468         (lra_elim_table): ... this; update uses.
4469         * bitmap.c (output_info): Rename to ...
4470         (bitmap_output_info): ... this; update uses.
4471         * gcse.c (expr): Rename to ...
4472         (gcse_expr) ... this; update uses.
4473         (occr): Rename to ...
4474         (gcse_occr): .. this; update uses.
4475         * tree-ssa-copy.c (prop_value_d): Rename to ...
4476         (prop_value_t): ... this.
4477         * predict.c (block_info_def): Rename to ...
4478         (block_info): ... this; update uses.
4479         (edge_info_def): Rename to ...
4480         (edge_info): ... this; update uses.
4481         * profile.c (bb_info): Rename to ...
4482         (bb_profile_info): ... this; update uses.
4483         * alloc-pool.c (output_info): Rename to ...
4484         (pool_output_info): ... this; update uses.
4485         * ipa-cp.c (topo_info): Rename to ..
4486         (ipa_topo_info): ... this; update uses.
4487         * tree-nrv.c (nrv_data): Rename to ...
4488         (nrv_data_t): ... this; update uses.
4489         * ipa-split.c (bb_info): Rename to ...
4490         (split_bb_info): ... this one.
4491         * profile.h (edge_info): Rename to ...
4492         (edge_profile_info): ... this one; update uses.
4493         * dse.c (bb_info): Rename to ...
4494         (dse_bb_info): ... this one; update uses.
4495         * cprop.c (occr): Rename to ...
4496         (cprop_occr): ... this one; update uses.
4497         (expr): Rename to ...
4498         (cprop_expr): ... this one; update uses.
4499
4500 2014-09-22  Jason Merrill  <jason@redhat.com>
4501
4502         * Makefile.in (check-parallel-%): Add @.
4503
4504 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4505
4506         * config/aarch64/geniterators.sh: New.
4507         * config/aarch64/iterators.md (VDQF_DF): New.
4508         * config/aarch64/t-aarch64: Generate aarch64-builtin-iterators.h.
4509         * config/aarch64/aarch64-builtins.c (BUILTIN_*) Remove.
4510
4511 2014-09-22  Peter A. Bigot  <pab@pabigot.com>
4512
4513         * config/msp430/msp430.h (LIB_SPEC): Remove automatic addition of
4514         -lnosys when -msim absent.
4515
4516 2014-09-22  Alan Lawrence  <alan.lawrence@arm.com>
4517
4518         * fold-const.c (tree_swap_operands_p): Strip only sign-preserving NOPs.
4519
4520 2014-09-22  Richard Biener  <rguenther@suse.de>
4521
4522         * gimplify.c (gimplify_init_constructor): Do not leave
4523         non-GIMPLE vector constructors around.
4524         * tree-cfg.c (verify_gimple_assign_single): Verify that
4525         CONSTRUCTORs have gimple elements.
4526
4527 2014-09-22  Jakub Jelinek  <jakub@redhat.com>
4528
4529         PR debug/63328
4530         * omp-low.c (ipa_simd_modify_stmt_ops): For debug stmts
4531         insert a debug source bind stmt setting DEBUG_EXPR_DECL
4532         instead of a normal gimple assignment stmt.
4533
4534 2014-09-22  James Greenhalgh  <james.greenhalgh@arm.com>
4535
4536         * config/bfin/bfin.md: Fix use of constraints in define_split.
4537
4538 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4539
4540         * config/i386/i386.c (ix86_cannot_change_mode_class): Remove
4541         GET_MODE_SIZE (to) < GET_MODE_SIZE (from) test.
4542
4543 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4544
4545         * hard-reg-set.h: Include hash-table.h.
4546         (target_hard_regs): Add a finalize method and a x_simplifiable_subregs
4547         field.
4548         * target-globals.c (target_globals::~target_globals): Call
4549         hard_regs->finalize.
4550         * rtl.h (subreg_shape): New structure.
4551         (shape_of_subreg): New function.
4552         (simplifiable_subregs): Declare.
4553         * reginfo.c (simplifiable_subreg): New structure.
4554         (simplifiable_subregs_hasher): Likewise.
4555         (simplifiable_subregs): New function.
4556         (invalid_mode_changes): Delete.
4557         (alid_mode_changes, valid_mode_changes_obstack): New variables.
4558         (record_subregs_of_mode): Remove subregs_of_mode parameter.
4559         Record valid mode changes in valid_mode_changes.
4560         (find_subregs_of_mode): Remove subregs_of_mode parameter.
4561         Update calls to record_subregs_of_mode.
4562         (init_subregs_of_mode): Remove invalid_mode_changes and bitmap
4563         handling.  Initialize new variables.  Update call to
4564         find_subregs_of_mode.
4565         (invalid_mode_change_p): Check new variables instead of
4566         invalid_mode_changes.
4567         (finish_subregs_of_mode): Finalize new variables instead of
4568         invalid_mode_changes.
4569         (target_hard_regs::finalize): New function.
4570         * ira-costs.c (print_allocno_costs): Call invalid_mode_change_p
4571         even when CLASS_CANNOT_CHANGE_MODE is undefined.
4572
4573 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4574
4575         * combine.c (subst): Use simplify_subreg_regno rather than
4576         REG_CANNOT_CHANGE_MODE_P to detect invalid mode changes.
4577
4578 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4579
4580         * rtl.h (subreg_info): Expand commentary
4581         * rtlanal.c (subreg_get_info): Likewise.
4582
4583 2014-09-22  Richard Sandiford  <richard.sandiford@arm.com>
4584
4585         * hard-reg-set.h (COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
4586         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
4587         (IOR_COMPL_HARD_REG_SET): Allow the "from" set to be constant.
4588
4589 2014-09-22  Zhenqiang Chen  <zhenqiang.chen@arm.com>
4590
4591         * config/arm/arm.c: #include "tm-constrs.h"
4592         (thumb1_size_rtx_costs): Adjust rtx costs.
4593
4594 2014-09-22  Hans-Peter Nilsson  <hp@axis.com>
4595
4596         * configure.ac (target_header_dir): Move block defining
4597         this to before the block setting inhibit_libc.
4598         (inhibit_libc): When considering $with_headers, just
4599         check it it's explicitly "no".  If not, also check if
4600         $target_header_dir/stdio.h is present.  If not, set
4601         inhibit_libc=true.
4602         * configure: Regenerate.
4603
4604 2014-09-21  Patrick Oppenlander  <pattyo.lists@gmail.com>
4605
4606         * config/rs6000/t-spe (MULTILIB_EXCEPTIONS): Allow isel without SPE.
4607
4608 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4609
4610         * config/rs6000/rs6000.md (div<mode>3): Fix comment.  Use a different
4611         insn for divides by integer powers of two.
4612         (div<mode>3_sra, *div<mode>3_sra_dot, *div<mode>3_sra_dot2): New.
4613         (mod<mode>3): Fix formatting.
4614         (three anonymous define_insn and two define_split): Delete.
4615
4616 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4617
4618         * config/rs6000/rs6000.md (ashr<mode>3, *ashr<mode>3, *ashrsi3_64,
4619         *ashr<mode>3_dot, *ashr<mode>3_dot2): Clobber CA_REGNO.
4620         (floatdisf2_internal2): Ditto.
4621         (ashrdi3_no_power): Ditto.  Fix formatting.
4622
4623 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4624
4625         * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
4626         popcntb<mode>2, popcntd<mode>2, parity<mode>2, parity<mode>2_cmpb):
4627         Tidy.
4628
4629 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4630
4631         * config/rs6000/rs6000.md (strlensi): Don't use subsi3 with a
4632         constant, use addsi3 directly.
4633         (three anonymous define_insn, two define_split): Delete.
4634         (sub<mode>3): Move.  Do not allow constant second operand.
4635         Generate different insn for constant first operand.
4636         (*subf<mode>3, *subf<mode>3_dot, *subf<mode>3_dot2): New.
4637         (subf<mode>3_imm): New.
4638         (ctz<mode>2, ffs<mode>2): Clobber CA_REGNO where required.
4639         (*plus_ltu<mode>): Only handle registers.
4640         (*plus_ltu<mode>_1): New.  Handle integer third operand.
4641         (*plus_gtu<mode>): Only handle registers.
4642         (*plus_gtu<mode>_1): New.  Handle integer third operand.
4643
4644 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4645
4646         * config/rs6000/rs6000.md (iorxor): New code_iterator.
4647         (iorxor): New code_attr.
4648         (IORXOR): New code_attr.
4649         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): Delete.
4650         (ior<mode>3, xor<mode>3): Delete.
4651         (<iorxor><mode>3): New.
4652         (splitter for "big" integer ior, xor): New.
4653         (*bool<mode>3): Move.  Also handle AND.
4654         (*bool<mode>3_dot, *bool<mode>3_dot2): Also handle AND.
4655         (splitter for "big" integer ior, xor): Delete.
4656
4657 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4658
4659         * config/rs6000/rs6000.md (*neg<mode>2_internal): Delete.
4660         (two anonymous define_insn and two define_split): Delete.
4661         (*neg<mode>2, *neg<mode>2_dot, *neg<mode>2_dot2): New.
4662
4663 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4664
4665         * config/rs6000/rs6000.md (*one_cmpl<mode>2): Generate "not" insn.
4666         (two anonymous define_insn and two define_split): Delete.
4667         (*one_cmpl<mode>2_dot, *one_cmpl<mode>2_dot2): New.
4668
4669 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4670
4671         * config/rs6000/rs6000.c (rs6000_rtx_costs) <NE>: New.
4672
4673 2014-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4674
4675         * config/rs6000/predicates.md (ca_operand): Allow subregs.
4676         (input_operand): Do not allow ca_operand.
4677         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): For the
4678         carry bit, allow SImode and Pmode.
4679         (rs6000_init_hard_regno_mode_ok): Make the carry bit class NO_REGS.
4680
4681 2014-09-21  Uros Bizjak  <ubizjak@gmail.com>
4682
4683         * config/i386/i386.c (ix86_expand_call): Generate MS->SYSV extra
4684         clobbered registers using clobber_reg.  Remove UNSPEC decoration.
4685         * config/i386/i386.md (unspec) <UNSPEC_MS_TO_SYSV_CALL>: Remove.
4686         (*call_rex64_ms_sysv): Remove.
4687         (*call_value_rex64_ms_sysv): Ditto.
4688         * config/i386/predicates.md (call_rex64_ms_sysv_operation): Remove.
4689
4690 2014-09-20  Joern Rennecke  <joern.rennecke@embecosm.com>
4691
4692         * config/epiphany/epiphany.md (sub_f_add_imm): Change constraint of
4693         operand 3 to "CnL".
4694
4695 2014-09-20  Andreas Schwab  <schwab@suse.de>
4696
4697         * config/ia64/ia64.md: Remove constraints from define_split
4698         patterns.
4699
4700 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4701
4702         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
4703         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
4704         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
4705         (get_dynamic_type): Remove.
4706         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
4707         (clear_speculation): Bring to ipa-deivrt.h
4708         (get_class_context): Rename to ...
4709         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
4710         (contains_type_p): Update.
4711         (get_dynamic_type): Rename to ...
4712         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
4713         (possible_polymorphic_call_targets): UPdate.
4714         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
4715         * ipa-prop.c (ipa_analyze_call_uses): Update.
4716
4717 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4718
4719         * ipa-visibility.c (varpool_node::externally_visible_p): Do not
4720         privatize dynamic TLS variables.
4721
4722 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4723
4724         * diagnostic.c (warning_n): New function.
4725         * diagnostic-core.h (warning_n): Declare.
4726         * ipa-devirt.c (ipa_devirt): Handle singulars correctly;
4727         output dynamic counts when available.
4728
4729 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4730
4731         PR tree-optimization/63255
4732         * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering
4733         issue in setting body_removed flag.
4734
4735 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4736
4737         PR c++/61825
4738         * c-family/c-common.c (handle_alias_ifunc_attribute): Check
4739         that visibility change is possible
4740         (handle_weakref_attribute): Likewise.
4741         * cgraph.h (symtab_node): Add method get_create and
4742         field refuse_visibility_changes.
4743         (symtab_node::get_create): New method.
4744         * fold-const.c (tree_single_nonzero_warnv_p): Use get_create.
4745         * varasm.c (mark_weak): Verify that visibility change is
4746         possible.
4747
4748 2014-09-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
4749
4750         * config/rs6000/predicates.md (fusion_gpr_mem_load): Move testing
4751         for base_reg_operand to be common between LO_SUM and PLUS.
4752         (fusion_gpr_mem_combo): New predicate to match a fused address
4753         that combines the addis and memory offset address.
4754
4755         * config/rs6000/rs6000-protos.h (fusion_gpr_load_p): Change
4756         calling signature.
4757         (emit_fusion_gpr_load): Likewise.
4758
4759         * config/rs6000/rs6000.c (fusion_gpr_load_p): Change calling
4760         signature to pass each argument separately, rather than
4761         using an operands array.  Rewrite the insns found by peephole2 to
4762         be a single insn, rather than hoping the insns will still be
4763         together when the peephole pass is done.  Drop being called via a
4764         normal peephole.
4765         (emit_fusion_gpr_load): Change calling signature to be called from
4766         the fusion_gpr_load_<mode> insns with a combined memory address
4767         instead of the peephole pass passing the addis and offset
4768         separately.
4769
4770         * config/rs6000/rs6000.md (UNSPEC_FUSION_GPR): New unspec for GPR
4771         fusion.
4772         (power8 fusion peephole): Drop support for doing power8 via a
4773         normal peephole that was created by the peephole2 pass.
4774         (power8 fusion peephole2): Create a new insn with the fused
4775         address, so that the fused operation is kept together after
4776         register allocation is done.
4777         (fusion_gpr_load_<mode>): Likewise.
4778
4779 2014-09-19  Jan Hubicka  <hubicka@ucw.cz>
4780
4781         PR lto/63286
4782         * tree.c (need_assembler_name_p): Do not mangle variadic types.
4783
4784 2014-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
4785
4786         * recog.c (scratch_operand): Do not simply allow all hard registers:
4787         only allow those that are allocatable.
4788
4789 2014-09-19  Felix Yang  <felix.yang@huawei.com>
4790
4791         * cfgrtl.c ira.c ira-color.c ira-conflicts ira-lives.c: Update
4792         comments and fix spacing to conform to coding style.
4793
4794 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4795
4796         * genrecog.c (validate_pattern): Allow empty constraints in
4797         a match_scratch.
4798
4799 2014-09-19  Aldy Hernandez  <aldyh@redhat.com>
4800
4801         * dwarf2out.c (decl_ultimate_origin): Update comment.
4802         * tree.c (block_ultimate_origin): Same.
4803
4804 2014-09-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4805
4806         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
4807         Update GCC version name to GCC 5.
4808         (rs6000_function_arg_boundary): Likewise.
4809         (rs6000_function_arg): Likewise.
4810
4811 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4812
4813         * config/sh/sh.md: Fix use of constraints in define_split.
4814
4815 2014-09-19  Markus Trippelsdorf  <markus@trippelsdorf.de>
4816
4817         PR ipa/61998
4818         * ipa-devirt.c (ipa_devirt): Bail out if odr_types_ptr is NULL.
4819
4820 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4821
4822         * doc/md.texi (Modifiers): Consistently use "read/write"
4823         nomenclature rather than "input/output".
4824         * genrecog.c (constraints_supported_in_insn_p): New.
4825         (validate_pattern): If needed, also check constraints on
4826         MATCH_SCRATCH operands.
4827         * genoutput.c (validate_insn_alternatives): Catch earlyclobber
4828         operands with no '=' or '+' modifier.
4829
4830 2014-09-19  James Greenhalgh  <james.greenhalgh@arm.com>
4831
4832         * config/aarch64/aarch64.md (stack_protect_test_<mode>): Mark
4833         scratch register as written.
4834
4835 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4836
4837         * config/s390/s390.c (s390_emit_epilogue): Remove bogus
4838         assignment.
4839
4840 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4841
4842         * config/s390/s390.md ("trunctdsd2", "extendsdtd2"): New
4843         expanders.
4844
4845 2014-09-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4846
4847         PR target/62662
4848         * config/s390/s390.c (s390_emit_epilogue): When doing the return
4849         address load optimization force s390_optimize_prologue to leave it
4850         that way.  Only do the optimization if we already decided to push
4851         r14 into a stack slot.
4852
4853 2014-09-19  Marat Zakirov  <m.zakirov@samsung.com>
4854
4855         * asan.c (build_check_stmt): Alignment arg was added.
4856         (asan_expand_check_ifn): Optimization for alignment >= 8.
4857
4858 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4859
4860         * config/i386/vxworksae.h: Remove obsolete definitions.
4861         (STACK_CHECK_PROTECT): Define.
4862         * config/i386/vx-common.h: Remove.  Merge contents within
4863         config/i386/vxworks.h.
4864         * config.gcc (i?86-vxworks*): Use i386/vxworks.h instead of
4865         i386/vx-common.h.
4866
4867 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4868
4869         * config.gcc (powerpc-wrs-vxworksmils): New configuration.
4870         * config/rs6000/t-vxworksmils: New file.
4871         * config/rs6000/vxworksmils.h: New file.
4872
4873 2014-09-19  Olivier Hainque  <hainque@adacore.com>
4874
4875         * varasm.c (default_section_type_flags): Flag .persistent.bss
4876         sections as SECTION_BSS.
4877
4878 2014-09-19  Nick Clifton  <nickc@redhat.com>
4879
4880         * config/rl78/rl78.c (rl78_expand_epilogue): Generate a USE of the
4881         pop'ed registers so that DCE does not eliminate them.
4882
4883 2014-09-18  Jan Hubicka  <hubicka@ucw.cz>
4884
4885         PR lto/63298
4886         * ipa-devirt.c (odr_subtypes_equivalent_p): Fix thinko in a condition.
4887
4888 2014-09-18  Joseph Myers  <joseph@codesourcery.com>
4889
4890         * system.h (LIBGCC2_TF_CEXT): Poison.
4891         * config/i386/cygming.h (LIBGCC2_TF_CEXT): Remove.
4892         * config/i386/darwin.h (LIBGCC2_TF_CEXT): Likewise.
4893         * config/i386/dragonfly.h (LIBGCC2_TF_CEXT): Likewise.
4894         * config/i386/freebsd.h (LIBGCC2_TF_CEXT): Likewise.
4895         * config/i386/gnu-user-common.h (LIBGCC2_TF_CEXT): Likewise.
4896         * config/i386/openbsdelf.h (LIBGCC2_TF_CEXT): Likewise.
4897         * config/i386/sol2.h (LIBGCC2_TF_CEXT): Likewise.
4898         * config/ia64/ia64.h (LIBGCC2_TF_CEXT): Likewise.
4899         * config/ia64/linux.h (LIBGCC2_TF_CEXT): Likewise.
4900
4901 2014-09-19  Kito Cheng  <kito@0xlab.org>
4902
4903         * except.h: Fix header guard.
4904         * addresses.h: Add missing header guard.
4905         * cfghooks.h: Likewise.
4906         * collect-utils.h: Likewise.
4907         * collect2-aix.h: Likewise.
4908         * conditions.h: Likewise.
4909         * cselib.h: Likewise.
4910         * dwarf2asm.h: Likewise.
4911         * graphds.h: Likewise.
4912         * graphite-scop-detection.h: Likewise.
4913         * gsyms.h: Likewise.
4914         * hw-doloop.h: Likewise.
4915         * incpath.h: Likewise.
4916         * ipa-inline.h: Likewise.
4917         * ipa-ref.h: Likewise.
4918         * ira-int.h: Likewise.
4919         * ira.h: Likewise.
4920         * lra-int.h: Likewise.
4921         * lra.h: Likewise.
4922         * lto-section-names.h: Likewise.
4923         * read-md.h: Likewise.
4924         * reload.h: Likewise.
4925         * rtl-error.h: Likewise.
4926         * sdbout.h: Likewise.
4927         * targhooks.h: Likewise.
4928         * tree-affine.h: Likewise.
4929         * xcoff.h: Likewise.
4930         * xcoffout.h: Likewise.
4931
4932 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4933
4934         PR debug/63285
4935         * haifa-sched.c (schedule_block): Advance cycle at the end of BB
4936         if advance != 0.
4937
4938 2014-09-18  Vladimir Makarov  <vmakarov@redhat.com>
4939
4940         PR target/61360
4941         * lra.c (lra): Call recog_init.
4942
4943 2014-09-18  Jakub Jelinek  <jakub@redhat.com>
4944
4945         PR c++/62017
4946         * asan.c (transform_statements): Don't instrument clobber statements.
4947
4948 2014-09-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4949
4950         * config/arm/neon.md (*movmisalign<mode>_neon_load): Change type
4951         to neon_load1_1reg<q>.
4952
4953 2014-09-17  Jakub Jelinek  <jakub@redhat.com>
4954
4955         PR debug/63284
4956         * tree-cfgcleanup.c (fixup_noreturn_call): Don't split block
4957         if there are only debug stmts after the noreturn call, instead
4958         remove the debug stmts.
4959
4960 2014-09-17  Jan Hubicka  <hubicka@ucw.cz>
4961
4962         * ipa-devirt.c (type_pair, default_hashset_traits): New types.
4963         (odr_types_equivalent_p): Use pair hash.
4964         (odr_subtypes_equivalent_p): Likewise, do structural compare
4965         on ODR types that may be mismatched.
4966         (warn_odr): Support warning when only one field is given.
4967         (odr_types_equivalent_p): Strenghten comparsions made;
4968         support VOIDtype.
4969         (add_type_duplicate): Update VISITED hash set.
4970
4971 2014-09-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4972
4973         * config.gcc (*-*-rtems*): Default to 'rtems' thread model.
4974         Enable selection of 'posix' or no thread model.
4975
4976 2014-09-17  Andrew Stubbs  <ams@codesourcery.com>
4977
4978         * config/arm/arm.c (arm_option_override): Reject -mfpu=neon
4979         when architecture is older than ARMv7.
4980
4981 2014-09-16  John David Anglin  <danglin@gcc.gnu.org>
4982
4983         PR target/61853
4984         * config/pa/pa.c (pa_function_value): Directly handle aggregates
4985         that fit exactly in a word or double word.
4986
4987 2014-09-16  Ilya Tocar  <ilya.tocar@intel.com>
4988
4989         * config/i386/driver-i386.c (host_detect_local_cpu): Detect lack of
4990         zmm/k regs support.
4991
4992 2014-09-16  Alexander Ivchenko  <alexander.ivchenko@intel.com>
4993             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
4994             Anna Tikhonova  <anna.tikhonova@intel.com>
4995             Ilya Tocar  <ilya.tocar@intel.com>
4996             Andrey Turetskiy  <andrey.turetskiy@intel.com>
4997             Ilya Verbin  <ilya.verbin@intel.com>
4998             Kirill Yukhin  <kirill.yukhin@intel.com>
4999             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5000
5001         * config/i386/i386.c
5002         (ix86_expand_vector_extract): Handle V32HI and V64QI modes.
5003         * config/i386/sse.md
5004         (define_mode_iterator VI48F_256): New.
5005         (define_mode_attr extract_type): Ditto.
5006         (define_mode_attr extract_suf): Ditto.
5007         (define_mode_iterator AVX512_VEC): Ditto.
5008         (define_expand
5009         "<extract_type>_vextract<shuffletype><extract_suf>_mask"): Use
5010         AVX512_VEC.
5011         (define_insn "avx512dq_vextract<shuffletype>64x2_1_maskm"): New.
5012         (define_insn
5013         "<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>"):
5014         Ditto.
5015         (define_mode_attr extract_type_2): Ditto.
5016         (define_mode_attr extract_suf_2): Ditto.
5017         (define_mode_iterator AVX512_VEC_2): Ditto.
5018         (define_expand
5019         "<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask"): Use
5020         AVX512_VEC_2 mode iterator.
5021         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5022         (define_expand "avx512vl_vextractf128<mode>"): Ditto.
5023         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5024         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5025         (define_split for V16FI mode): Ditto.
5026         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5027         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5028         (define_split for VI8F_256 mode): Ditto.
5029         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5030         (define_insn_and_split "vec_extract_lo_<mode>"): Delete.
5031         (define_insn "vec_extract_lo_<mode><mask_name>"): New.
5032         (define_split for VI4F_256 mode): Ditto.
5033         (define_insn "vec_extract_lo_<mode>_maskm"): Ditto.
5034         (define_insn "vec_extract_hi_<mode>_maskm"): Ditto.
5035         (define_insn "vec_extract_hi_<mode><mask_name>"): Add masking.
5036         (define_mode_iterator VEC_EXTRACT_MODE): Add V64QI and V32HI modes.
5037         (define_insn "vcvtph2ps<mask_name>"): Fix pattern condition.
5038         (define_insn "avx512f_vextract<shuffletype>32x4_1_maskm"): Ditto.
5039         (define_insn "<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>"):
5040         Update `type' attribute, remove explicit `memory' attribute calculation.
5041
5042 2014-09-16  Kito Cheng  <kito@0xlab.org>
5043
5044         * ira.c (ira): Don't initialize ira_spilled_reg_stack_slots and
5045         ira_spilled_reg_stack_slots_num if using lra.
5046         (do_reload): Remove release ira_spilled_reg_stack_slots part.
5047         * ira-color.c (ira_sort_regnos_for_alter_reg): Add assertion to
5048         make sure not using lra.
5049         (ira_reuse_stack_slot): Likewise.
5050         (ira_mark_new_stack_slot): Likewise.
5051
5052 2014-09-15  Andi Kleen  <ak@linux.intel.com>
5053
5054         * function.c (allocate_struct_function): Force
5055         DECL_NO_INSTRUMENT_FUNCTION_ENTRY_EXIT to one when
5056         profiling is disabled.
5057
5058 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5059
5060         * cfgrtl.c, combine.c, config/arc/arc.c, config/mcore/mcore.c,
5061         config/rs6000/rs6000.c, config/sh/sh.c, cprop.c, dwarf2out.c,
5062         emit-rtl.c, final.c, function.c, gcse.c, jump.c, reg-stack.c,
5063         reload1.c, reorg.c, resource.c, sel-sched-ir.c: Replace INSN_DELETED_P
5064         macro with statically checked member functions.
5065         * rtl.h (rtx_insn::deleted): New method.
5066         (rtx_insn::set_deleted): Likewise.
5067         (rtx_insn::set_undeleted): Likewise.
5068         (INSN_DELETED_P): Remove.
5069
5070 2014-09-15  Trevor Saunders  <tsaunders@mozilla.com>
5071
5072         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Assign the
5073         result of emit_jump_insn_before to a new variable.
5074         * jump.c (mark_jump_label): Change the type of insn to rtx_insn *.
5075         (mark_jump_label_1): Likewise.
5076         (mark_jump_label_asm): Likewise.
5077         * reload1.c (gen_reload): Change type of tem to rtx_insn *.
5078         * rtl.h (mark_jump_label): Adjust.
5079
5080 2014-09-15  Jakub Jelinek  <jakub@redhat.com>
5081
5082         * Makefile.in (dg_target_exps): Remove.
5083         (check_gcc_parallelize): Change to just an upper bound number.
5084         (check-%-subtargets): Always print the non-parallelized goals.
5085         (check_p_vars, check_p_comma, check_p_subwork): Remove.
5086         (check_p_count, check_p_numbers0, check_p_numbers1, check_p_numbers2,
5087         check_p_numbers3, check_p_numbers4, check_p_numbers5,
5088         check_p_numbers6): New variables.
5089         (check_p_numbers): Set to sequence from 1 to 9999.
5090         (check_p_subdirs): Set to sequence from 1 to minimum of
5091         $(check_p_count) and either GCC_TEST_PARALLEL_SLOTS env var if set,
5092         or 128.
5093         (check-%, check-parallel-%): Rewritten so that for parallelized
5094         testing each job runs all the *.exp files, with
5095         GCC_RUNTEST_PARALLELIZE_DIR set in environment.
5096
5097 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5098
5099         * config/arc/arc-protos.h (arc_attr_type): Strengthen param from
5100         rtx to rtx_insn *.
5101         (arc_sets_cc_p): Likewise.
5102         * config/arc/arc.c (arc_print_operand): Use methods of
5103         "final_sequence" for clarity, and to enable strengthening of
5104         locals "jump" and "delay" from rtx to rtx_insn *.
5105         (arc_adjust_insn_length): Strengthen local "prev" from rtx to
5106         rtx_insn *; use method of rtx_sequence for typesafety.
5107         (arc_get_insn_variants): Use insn method of rtx_sequence for
5108         typesafety.
5109         (arc_pad_return): Likewise.
5110         (arc_attr_type): Strengthen param from rtx to rtx_insn *.
5111         (arc_sets_cc_p): Likewise.  Also, convert a GET_CODE check to a
5112         dyn_cast to rtx_sequence *, using insn method for typesafety.
5113         * config/arc/arc.h (ADJUST_INSN_LENGTH): Add checked casts to
5114         rtx_sequence * and use insn method when invoking get_attr_length.
5115         * config/bfin/bfin.c (type_for_anomaly): Strengthen param from rtx
5116         to rtx_insn *.  Replace a GET_CODE check with a dyn_cast to
5117         rtx_sequence *, introducing a local "seq", using its insn method
5118         from typesafety and clarity.
5119         (add_sched_insns_for_speculation): Strengthen local "next" from
5120         rtx to rtx_insn *.
5121         * config/c6x/c6x.c (get_insn_side): Likewise for param "insn".
5122         (predicate_insn): Likewise.
5123         * config/cris/cris-protos.h (cris_notice_update_cc): Likewise for
5124         second param.
5125         * config/cris/cris.c (cris_notice_update_cc): Likewise.
5126         * config/epiphany/epiphany-protos.h
5127         (extern void epiphany_insert_mode_switch_use): Likewise for param
5128         "insn".
5129         (get_attr_sched_use_fpu): Likewise for param.
5130         * config/epiphany/epiphany.c (epiphany_insert_mode_switch_use):
5131         Likewise for param "insn".
5132         * config/epiphany/mode-switch-use.c (insert_uses): Likewise for
5133         param "insn" of "target_insert_mode_switch_use" callback.
5134         * config/frv/frv.c (frv_insn_unit): Likewise for param "insn".
5135         (frv_issues_to_branch_unit_p): Likewise.
5136         (frv_pack_insn_p): Likewise.
5137         (frv_compare_insns): Strengthen locals "insn1" and "insn2" from
5138         const rtx * (i.e. mutable rtx_def * const *) to
5139         rtx_insn * const *.
5140         * config/i386/i386-protos.h (standard_sse_constant_opcode):
5141         Strengthen first param from rtx to rtx_insn *.
5142         (output_fix_trunc): Likewise.
5143         * config/i386/i386.c (standard_sse_constant_opcode): Likewise.
5144         (output_fix_trunc): Likewise.
5145         (core2i7_first_cycle_multipass_filter_ready_try): Likewise for
5146         local "insn".
5147         (min_insn_size): Likewise for param "insn".
5148         (get_mem_group): Likewise.
5149         (is_cmp): Likewise.
5150         (get_insn_path): Likewise.
5151         (get_insn_group): Likewise.
5152         (count_num_restricted): Likewise.
5153         (fits_dispatch_window): Likewise.
5154         (add_insn_window): Likewise.
5155         (add_to_dispatch_window): Likewise.
5156         (debug_insn_dispatch_info_file): Likewise.
5157         * config/m32c/m32c-protos.h (m32c_output_compare): Likewise for
5158         first param.
5159         * config/m32c/m32c.c (m32c_compare_redundant): Likewise for param
5160         "cmp" and local "prev".
5161         (m32c_output_compare): Likewise for param "insn".
5162         * config/m32r/predicates.md (define_predicate "small_insn_p"): Add
5163         a checked cast to rtx_insn * on "op" after we know it's an INSN_P.
5164         (define_predicate "large_insn_p"): Likewise.
5165         * config/m68k/m68k-protos.h (m68k_sched_attr_size): Strengthen
5166         param from rtx to rtx_insn *.
5167         (attr_op_mem m68k_sched_attr_op_mem): Likewise.
5168         * config/m68k/m68k.c (sched_get_attr_size_int): Likewise.
5169         (m68k_sched_attr_size): Likewise.
5170         (sched_get_opxy_mem_type): Likewise for param "insn".
5171         (m68k_sched_attr_op_mem): Likewise.
5172         (sched_mem_operand_p): Likewise.
5173         * config/mep/mep-protos.h (mep_multi_slot): Likewise for param.
5174         * config/mep/mep.c (mep_multi_slot): Likewise.
5175         * config/mips/mips-protos.h (mips_output_sync_loop): Likewise for
5176         first param.
5177         (mips_sync_loop_insns): Likewise.
5178         * config/mips/mips.c (mips_print_operand_punctuation): Use insn
5179         method of "final_sequence" for typesafety.
5180         (mips_process_sync_loop): Strengthen param "insn" from rtx to
5181         rtx_insn *.
5182         (mips_output_sync_loop): Likewise.
5183         (mips_sync_loop_insns): Likewise.
5184         (mips_74k_agen_init): Likewise.
5185         (mips_sched_init): Use NULL rather than NULL_RTX when working with
5186         insns.
5187         * config/nds32/nds32-fp-as-gp.c (nds32_symbol_load_store_p):
5188         Strengthen param "insn" from rtx to rtx_insn *.
5189         * config/nds32/nds32.c (nds32_target_alignment): Likewise for
5190         local "insn".
5191         * config/pa/pa-protos.h (pa_insn_refs_are_delayed): Likewise for
5192         param.
5193         * config/pa/pa.c (pa_output_function_epilogue): Likewise for local
5194         "insn".  Use method of rtx_sequence for typesafety.
5195         (branch_to_delay_slot_p): Strengthen param "insn" from rtx to
5196         rtx_insn *.
5197         (branch_needs_nop_p): Likewise.
5198         (use_skip_p): Likewise.
5199         (pa_insn_refs_are_delayed): Likewise.
5200         * config/rl78/rl78.c (rl78_propogate_register_origins): Likewise
5201         for locals "insn", "ninsn".
5202         * config/rs6000/rs6000.c (is_microcoded_insn): Likewise for param
5203         "insn".
5204         (is_cracked_insn): Likewise.
5205         (is_branch_slot_insn): Likewise.
5206         (is_nonpipeline_insn): Likewise.
5207         (insn_terminates_group_p): Likewise.
5208         (insn_must_be_first_in_group): Likewise.
5209         (insn_must_be_last_in_group): Likewise.
5210         (force_new_group): Likewise for param "next_insn".
5211         * config/s390/s390.c (s390_get_sched_attrmask): Likewise for param
5212         "insn".
5213         (s390_sched_score): Likewise.
5214         * config/sh/sh-protos.h (output_branch): Likewise for param 2.
5215         (rtx sfunc_uses_reg): Likewise for sole param.
5216         * config/sh/sh.c (sh_print_operand): Use insn method of
5217         final_sequence for typesafety.
5218         (output_branch): Strengthen param "insn" from rtx to rtx_insn *.
5219         Use insn method of final_sequence for typesafety.
5220         (sfunc_uses_reg): Strengthen param "insn" from rtx to rtx_insn *.
5221         * config/sparc/sparc-protos.h (eligible_for_call_delay): Likewise
5222         for param.
5223         (eligible_for_return_delay): Likewise.
5224         (eligible_for_sibcall_delay): Likewise.
5225         * config/sparc/sparc.c (eligible_for_call_delay): Likewise.
5226         (eligible_for_return_delay): Likewise.
5227         (eligible_for_sibcall_delay): Likewise.
5228         * config/stormy16/stormy16-protos.h
5229         (xstormy16_output_cbranch_hi): Likewise for final param.
5230         (xstormy16_output_cbranch_si): Likewise.
5231         * config/stormy16/stormy16.c (xstormy16_output_cbranch_hi): LIkewise.
5232         (xstormy16_output_cbranch_si): Likewise.
5233         * config/v850/v850-protos.h (notice_update_cc): Likewise.
5234         * config/v850/v850.c (notice_update_cc): Likewise.
5235
5236         * final.c (get_attr_length_1): Strengthen param "insn" and param
5237         of "fallback_fn" from rtx to rtx_insn *, eliminating a checked cast.
5238         (get_attr_length): Strengthen param "insn" from rtx to rtx_insn *.
5239         (get_attr_min_length): Likewise.
5240         (shorten_branches): Likewise for signature of locals "length_fun"
5241         and "inner_length_fun".  Introduce local rtx_sequence * "seqn"
5242         from a checked cast and use its methods for clarity and to enable
5243         strengthening local "inner_insn" from rtx to rtx_insn *.
5244         * genattr.c (gen_attr): When writing out the prototypes of the
5245         various generated "get_attr_" functions, strengthen the params of
5246         the non-const functions from rtx to rtx_insn *.
5247         Similarly, strengthen the params of insn_default_length,
5248         insn_min_length, insn_variable_length_p, insn_current_length.
5249         (main): Similarly, strengthen the param of num_delay_slots,
5250         internal_dfa_insn_code, insn_default_latency, bypass_p,
5251         insn_latency, min_issue_delay, print_reservation,
5252         insn_has_dfa_reservation_p and of the "internal_dfa_insn_code" and
5253         "insn_default_latency" callbacks.  Rename hook_int_rtx_unreachable
5254         to hook_int_rtx_insn_unreachable.
5255         * genattrtab.c (write_attr_get): When writing out the generated
5256         "get_attr_" functions, strengthen the param "insn" from rtx to
5257         rtx_insn *, eliminating a checked cast.
5258         (make_automaton_attrs): When writing out prototypes of
5259         "internal_dfa_insn_code_", "insn_default_latency_" functions
5260         and the "internal_dfa_insn_code" and "insn_default_latency"
5261         callbacks, strengthen their params from rtx to rtx_insn *
5262         * genautomata.c (output_internal_insn_code_evaluation): When
5263         writing out code, add a checked cast from rtx to rtx_insn * when
5264         invoking DFA_INSN_CODE_FUNC_NAME aka dfa_insn_code.
5265         (output_dfa_insn_code_func): Strengthen param of generated
5266         function "dfa_insn_code_enlarge" from rtx to rtx_insn *.
5267         (output_trans_func): Likewise for generated function
5268         "state_transition".
5269         (output_internal_insn_latency_func): When writing out generated
5270         function "internal_insn_latency", rename params from "insn" and
5271         "insn2" to "insn_or_const0" and "insn2_or_const0".  Reintroduce
5272         locals "insn" and "insn2" as rtx_insn * with checked casts once
5273         we've proven that we're not dealing with const0_rtx.
5274         (output_insn_latency_func):  Strengthen param of generated
5275         function "insn_latency" from rtx to rtx_insn *.
5276         (output_print_reservation_func): Likewise for generated function
5277         "print_reservation".
5278         (output_insn_has_dfa_reservation_p): Likewise for generated
5279         function "insn_has_dfa_reservation_p".
5280         * hooks.c (hook_int_rtx_unreachable): Rename to...
5281         (hook_int_rtx_insn_unreachable): ...this, and strengthen param
5282         from rtx to rtx_insn *.
5283         * hooks.h (hook_int_rtx_unreachable): Likewise.
5284         (extern int hook_int_rtx_insn_unreachable): Likewise.
5285         * output.h (get_attr_length): Strengthen param from rtx to rtx_insn *.
5286         (get_attr_min_length): Likewise.
5287         * recog.c (get_enabled_alternatives): Likewise.
5288         * recog.h (alternative_mask get_enabled_alternatives): Likewise.
5289         * reorg.c (find_end_label): Introduce local rtx "pat" and
5290         strengthen local "insn" from rtx to rtx_insn *.
5291         (redundant_insn): Use insn method of "seq" rather than element for
5292         typesafety; strengthen local "control" from rtx to rtx_insn *.
5293         * resource.c (mark_referenced_resources): Add checked cast to
5294         rtx_insn * within INSN/JUMP_INSN case.
5295         (mark_set_resources): Likewise.
5296         * sel-sched.c (estimate_insn_cost): Strengthen param "insn" from
5297         rtx to rtx_insn *.
5298
5299 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5300
5301         * config/rs6000/rs6000.c (rs6000_loop_align_max_skip): Strengthen
5302         param "label" from rtx to rtx_insn *.
5303         * config/rx/rx.c (rx_max_skip_for_label): Likewise for param "lab"
5304         and local "op".
5305         * doc/tm.texi (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Autogenerated changes.
5306         (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Likewise.
5307         (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
5308         (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
5309         * final.c (default_label_align_after_barrier_max_skip): Strengthen
5310         param from rtx to rtx_insn *.
5311         (default_loop_align_max_skip): Likewise.
5312         (default_label_align_max_skip): Likewise.
5313         (default_jump_align_max_skip): Likewise.
5314         * target.def (label_align_after_barrier_max_skip): Likewise.
5315         (loop_align_max_skip): Likewise.
5316         (label_align_max_skip): Likewise.
5317         (jump_align_max_skip): Likewise.
5318         * targhooks.h (default_label_align_after_barrier_max_skip):
5319         Likewise.
5320         (default_loop_align_max_skip): Likewise.
5321         (default_label_align_max_skip): Likewise.
5322         (default_jump_align_max_skip): Likewise.
5323
5324 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5325
5326         * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
5327         from const_rtx to const rtx_insn *.  Update union members from rtx
5328         to rtx_insn *.
5329         * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
5330         * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
5331         (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
5332         strengthen both params from const_rtx to const rtx_insn *.
5333         * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
5334         (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
5335         * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
5336         rtx_insn *.
5337         * target.def (can_follow_jump): Strengthen both params from
5338         const_rtx to const rtx_insn *, and update default implementation
5339         from hook_bool_const_rtx_const_rtx_true to
5340         hook_bool_const_rtx_insn_const_rtx_insn_true.
5341
5342 2014-09-15  David Malcolm  <dmalcolm@redhat.com>
5343
5344         * sched-deps.c (deps_start_bb): Strengthen param "head" and local
5345         "insn" from rtx to rtx_insn *.
5346         * sched-int.h (deps_start_bb): Likewise for 2nd param.
5347
5348 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5349             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5350             Anna Tikhonova  <anna.tikhonova@intel.com>
5351             Ilya Tocar  <ilya.tocar@intel.com>
5352             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5353             Ilya Verbin  <ilya.verbin@intel.com>
5354             Kirill Yukhin  <kirill.yukhin@intel.com>
5355             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5356
5357         * config/i386/sse.md
5358         (define_insn "vcvtph2ps<mask_name>"): Add masking.
5359         (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
5360         (define_insn "vcvtph2ps256<mask_name>"): Ditto.
5361         (define_expand "vcvtps2ph_mask"): New.
5362         (define_insn "*vcvtps2ph<mask_name>"): Add masking.
5363         (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
5364         (define_insn "vcvtps2ph256<mask_name>"): Ditto.
5365
5366 2014-09-15  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5367             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5368             Anna Tikhonova  <anna.tikhonova@intel.com>
5369             Ilya Tocar  <ilya.tocar@intel.com>
5370             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5371             Ilya Verbin  <ilya.verbin@intel.com>
5372             Kirill Yukhin  <kirill.yukhin@intel.com>
5373             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5374
5375         * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
5376         New.
5377         (define_mode_iterator VI24_AVX512BW_1): Ditto.
5378         (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
5379         (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
5380         (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
5381         also for TARGET_AVX512VL.
5382         (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
5383
5384 2014-09-15  Markus Trippelsdorf  <markus@trippelsdorf.de>
5385
5386         * doc/install.texi (Options specification): add
5387         --disable-libsanitizer item.
5388
5389 2014-09-14  James Clarke  <jrtc27@jrtc27.com>
5390             Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
5391
5392         PR target/61407
5393         * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
5394         and above.
5395         * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
5396         kernel version check to avoid incrementing it after every major OS X
5397         release.
5398         (darwin_default_min_version): Avoid static memory buffer.
5399
5400 2014-09-13  Jan Hubicka  <hubicka@ucw.cz>
5401
5402         * tree.c (need_assembler_name_p): Store C++ type mangling only
5403         for aggregates.
5404
5405 2014-09-13  Marek Polacek  <polacek@redhat.com>
5406
5407         * tree.c (protected_set_expr_location): Don't check whether T is
5408         non-null here.
5409
5410 2014-09-12  DJ Delorie  <dj@redhat.com>
5411
5412         * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
5413         (extend_and_shift1_hipsi2): Likewise.
5414         (extend_and_shift2_hipsi2): Likewise.
5415
5416 2014-09-12  David Malcolm  <dmalcolm@redhat.com>
5417
5418         * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
5419         with NULL when dealing with an insn.
5420         * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
5421         from rtx to rtx_insn *.
5422         * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
5423         const_rtx to const rtx_insn *.
5424         * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
5425
5426 2014-09-12  Trevor Saunders  <tsaunders@mozilla.com>
5427
5428         * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
5429         assert.
5430
5431 2014-09-12  Joseph Myers  <joseph@codesourcery.com>
5432
5433         * target.def (libgcc_floating_mode_supported_p): New hook.
5434         * targhooks.c (default_libgcc_floating_mode_supported_p): New
5435         function.
5436         * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
5437         * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
5438         (LIBGCC2_HAS_TF_MODE): Remove.
5439         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
5440         * doc/tm.texi: Regenerate.
5441         * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
5442         machine mode.
5443         * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
5444         (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
5445         * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
5446         * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
5447         * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5448         * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
5449         * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
5450         * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
5451         * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
5452         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
5453         function.
5454         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
5455         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5456         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5457         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5458         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5459         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5460         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5461         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
5462         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
5463         * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
5464         * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
5465         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
5466         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
5467         * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
5468         Remove.
5469         * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
5470         New macro.
5471         (ia64_libgcc_floating_mode_supported_p): New function.
5472         * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
5473         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
5474         (IA64_NO_LIBGCC_TFMODE): Define.
5475         * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
5476         * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
5477         macro.
5478         (pdp11_scalar_mode_supported_p): New function.
5479         * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
5480         * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
5481
5482 2014-09-12  Richard Biener  <rguenther@suse.de>
5483
5484         PR middle-end/63237
5485         * gimple-fold.c (get_maxval_strlen): Gimplify string length.
5486
5487 2014-09-12  Marc Glisse  <marc.glisse@inria.fr>
5488
5489         * tree.c (integer_each_onep): New function.
5490         * tree.h (integer_each_onep): Declare it.
5491         * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
5492         -A - 1 to ~A.  Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
5493         (X & 1) == 0 for vector and complex.
5494
5495 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5496
5497         * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
5498         for A57.
5499         (cortexa53_regmove_cost): New cost table for A53.  Increase GP2FP/FP2GP
5500         cost to spilling from integer to FP registers.
5501
5502 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5503
5504         * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
5505         move handling.
5506         (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
5507         are now handled correctly.
5508
5509 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5510
5511         * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
5512         handling of CALLER_SAVE_REGS and POINTER_REGS.
5513
5514 2014-09-12  Wilco Dijkstra  <wilco.dijkstra@arm.com>
5515
5516         * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
5517         the number of hard registers.
5518
5519 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5520             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5521             Anna Tikhonova  <anna.tikhonova@intel.com>
5522             Ilya Tocar  <ilya.tocar@intel.com>
5523             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5524             Ilya Verbin  <ilya.verbin@intel.com>
5525             Kirill Yukhin  <kirill.yukhin@intel.com>
5526             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5527
5528         * config/i386/sse.md
5529         (define_mode_iterator VI48_AVX512VL): New.
5530         (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
5531         "avx512f_vternlog<mode>_maskz" and update mode iterator.
5532         (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
5533         from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
5534         (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
5535         "avx512f_vternlog<mode>_mask" and update mode iterator.
5536         (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
5537         from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
5538         iterator.
5539         (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
5540         "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
5541         (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
5542         "avx512f_<rotate><mode><mask_name>" and update mode iterator.
5543         (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
5544         (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
5545
5546 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5547             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5548             Anna Tikhonova  <anna.tikhonova@intel.com>
5549             Ilya Tocar  <ilya.tocar@intel.com>
5550             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5551             Ilya Verbin  <ilya.verbin@intel.com>
5552             Kirill Yukhin  <kirill.yukhin@intel.com>
5553             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5554
5555         * config/i386/sse.md (VI128_256): Delete.
5556         (define_mode_iterator VI124_256): New.
5557         (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
5558         (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
5559         (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
5560         (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
5561         "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
5562         (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
5563         (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
5564         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
5565         iterator.
5566         (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
5567         in presence of AVX-512.
5568
5569 2014-09-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5570             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5571             Anna Tikhonova  <anna.tikhonova@intel.com>
5572             Ilya Tocar  <ilya.tocar@intel.com>
5573             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5574             Ilya Verbin  <ilya.verbin@intel.com>
5575             Kirill Yukhin  <kirill.yukhin@intel.com>
5576             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5577
5578         * config/i386/sse.md
5579         (define_expand "<avx512>_gathersi<mode>"): Rename from
5580         "avx512f_gathersi<mode>".
5581         (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
5582         (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
5583         (define_expand "<avx512>_gatherdi<mode>"): Rename from
5584         "avx512f_gatherdi<mode>".
5585         (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
5586         (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
5587         wide versions.
5588         (define_expand "<avx512>_scattersi<mode>"): Rename from
5589         "avx512f_scattersi<mode>".
5590         (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
5591         (define_expand "<avx512>_scatterdi<mode>"): Rename from
5592         "avx512f_scatterdi<mode>".
5593         (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
5594
5595 2014-09-12  Richard Sandiford  <richard.sandiford@arm.com>
5596
5597         * ira.h (ira_finish_once): Delete.
5598         * ira-int.h (target_ira_int::~target_ira_int): Declare.
5599         (target_ira_int::free_ira_costs): Likewise.
5600         (target_ira_int::free_register_move_costs): Likewise.
5601         (ira_finish_costs_once): Delete.
5602         * ira.c (free_register_move_costs): Replace with...
5603         (target_ira_int::free_register_move_costs): ...this new function.
5604         (target_ira_int::~target_ira_int): Define.
5605         (ira_init): Call free_register_move_costs as a member function rather
5606         than a global function.
5607         (ira_finish_once): Delete.
5608         * ira-costs.c (free_ira_costs): Replace with...
5609         (target_ira_int::free_ira_costs): ...this new function.
5610         (ira_init_costs): Call free_ira_costs as a member function rather
5611         than a global function.
5612         (ira_finish_costs_once): Delete.
5613         * target-globals.c (target_globals::~target_globals): Call the
5614         target_ira_int destructor.
5615         * toplev.c: Include lra.h.
5616         (finalize): Call lra_finish_once rather than ira_finish_once.
5617
5618 2014-09-11  Jan Hubicka  <hubicka@ucw.cz>
5619
5620         * common.opt (flto-odr-type-merging): New flag.
5621         * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
5622         (types_same_for_odr): Likewise.
5623         (odr_subtypes_equivalent_p): Likewise.
5624         (add_type_duplicate): Do not walk type variants.
5625         (register_odr_type): New function.
5626         * ipa-utils.h (register_odr_type): Declare.
5627         (odr_type_p): New function.
5628         * langhooks.c (lhd_set_decl_assembler_name): Do not compute
5629         TYPE_DECLs
5630         * doc/invoke.texi (-flto-odr-type-merging): Document.
5631         * tree.c (need_assembler_name_p): Compute ODR names when asked
5632         for it.
5633         * tree.h (DECL_ASSEMBLER_NAME): Update comment.
5634
5635 2014-09-11  H.J. Lu  <hongjiu.lu@intel.com>
5636
5637         PR target/63228
5638         * config/i386/i386.c (ix86_option_override_internal): Also turn
5639         off OPTION_MASK_ABI_X32 for -m16.
5640
5641 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5642
5643         * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
5644         GPR instead of P.
5645
5646 2014-09-11  Marc Glisse  <marc.glisse@inria.fr>
5647
5648         PR target/58757
5649         * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
5650         Directly forward to __*_DENORM_MIN__.
5651
5652 2014-09-11  David Malcolm  <dmalcolm@redhat.com>
5653
5654         * rtl.h (LABEL_REF_LABEL): New macro.
5655
5656         * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
5657         of XEXP (, 0), where we know that we have a LABEL_REF.
5658         * cfgbuild.c (make_edges): Likewise.
5659         (purge_dead_tablejump_edges): Likewise.
5660         * cfgexpand.c (convert_debug_memory_address): Likewise.
5661         * cfgrtl.c (patch_jump_insn): Likewise.
5662         * combine.c (distribute_notes): Likewise.
5663         * cse.c (hash_rtx_cb): Likewise.
5664         (exp_equiv_p): Likewise.
5665         (fold_rtx): Likewise.
5666         (check_for_label_ref): Likewise.
5667         * cselib.c (rtx_equal_for_cselib_1): Likewise.
5668         (cselib_hash_rtx): Likewise.
5669         * emit-rtl.c (mark_label_nuses): Likewise.
5670         * explow.c (convert_memory_address_addr_space): Likewise.
5671         * final.c (output_asm_label): Likewise.
5672         (output_addr_const): Likewise.
5673         * gcse.c (add_label_notes): Likewise.
5674         * genconfig.c (walk_insn_part): Likewise.
5675         * genrecog.c (validate_pattern): Likewise.
5676         * ifcvt.c (cond_exec_get_condition): Likewise.
5677         (noce_emit_store_flag): Likewise.
5678         (noce_get_alt_condition): Likewise.
5679         (noce_get_condition): Likewise.
5680         * jump.c (maybe_propagate_label_ref): Likewise.
5681         (mark_jump_label_1): Likewise.
5682         (redirect_exp_1): Likewise.
5683         (rtx_renumbered_equal_p): Likewise.
5684         * lra-constraints.c (operands_match_p): Likewise.
5685         * reload.c (operands_match_p): Likewise.
5686         (find_reloads): Likewise.
5687         * reload1.c (set_label_offsets): Likewise.
5688         * reorg.c (get_branch_condition): Likewise.
5689         * rtl.c (rtx_equal_p_cb): Likewise.
5690         (rtx_equal_p): Likewise.
5691         * rtlanal.c (reg_mentioned_p): Likewise.
5692         (rtx_referenced_p): Likewise.
5693         (get_condition): Likewise.
5694         * sched-vis.c (print_value): Likewise.
5695         * varasm.c (const_hash_1): Likewise.
5696         (compare_constant): Likewise.
5697         (const_rtx_hash_1): Likewise.
5698         (output_constant_pool_1): Likewise.
5699
5700 2014-09-11  Segher Boessenkool  <segher@kernel.crashing.org>
5701
5702         * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
5703         tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
5704         instead of minus.
5705         * config/rs6000/vector.md (cr6_test_for_zero_reverse,
5706         cr6_test_for_lt_reverse): Ditto.
5707
5708 2014-09-11  Paolo Carlini  <paolo.carlini@oracle.com>
5709
5710         PR c++/61489
5711         * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
5712
5713 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5714
5715         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
5716         TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
5717         aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
5718         aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
5719         Delete.
5720
5721         (aarch64_fold_builtin): Remove all reinterpret cases.
5722
5723         * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
5724
5725         * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
5726
5727         * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
5728         aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
5729         aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
5730         aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
5731         aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
5732         aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
5733         aarch64_reinterpretv2df<mode>): Delete.
5734
5735         * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
5736
5737         * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
5738         vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
5739         vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
5740         vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
5741         vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
5742         vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
5743         vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
5744         vreinterpret_u32_f64): Use cast.
5745
5746         * config/aarch64/iterators.md (VD_RE): Delete.
5747
5748 2014-09-11  Alan Lawrence  <alan.lawrence@arm.com>
5749
5750         * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
5751         (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
5752         vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
5753         vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
5754         vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
5755         vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
5756         vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
5757         Replace inline assembler with __aarch64_vset_lane_any.
5758
5759 2014-09-11  James Greenhalgh  <james.greenhalgh@arm.com>
5760
5761         * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
5762         types.
5763         (vmull_high_lane_s32): Likewise.
5764         (vmull_high_lane_u16): Likewise.
5765         (vmull_high_lane_u32): Likewise.
5766
5767 2014-09-11  Jason Merrill  <jason@redhat.com>
5768
5769         PR c++/58678
5770         * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
5771
5772 2014-09-11  Georg-Johann Lay  <avr@gjlay.de>
5773
5774         PR target/63223
5775         * config/avr/avr.md (*tablejump.3byte-pc): New insn.
5776         (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL.  Add void clobber.
5777         (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
5778
5779 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5780             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5781             Anna Tikhonova  <anna.tikhonova@intel.com>
5782             Ilya Tocar  <ilya.tocar@intel.com>
5783             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5784             Ilya Verbin  <ilya.verbin@intel.com>
5785             Kirill Yukhin  <kirill.yukhin@intel.com>
5786             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5787
5788         * config/i386/sse.md
5789         (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
5790         "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
5791         (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
5792         New.
5793         (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
5794         from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
5795         iterator.
5796         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5797         New.
5798         (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
5799         "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
5800         (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
5801         (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
5802         "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
5803         (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
5804         (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
5805         from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
5806         iterator.
5807         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
5808         New.
5809         (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
5810         "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
5811         (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
5812
5813 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5814
5815         * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
5816         to access removed nodes.
5817
5818 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
5819
5820         PR tree-optimization/63186
5821         * ipa-split.c (test_nonssa_use): Skip nonforced labels.
5822         (mark_nonssa_use): Likewise.
5823         (verify_non_ssa_vars): Verify all header blocks for label
5824         definitions.
5825
5826 2014-09-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5827             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5828             Anna Tikhonova  <anna.tikhonova@intel.com>
5829             Ilya Tocar  <ilya.tocar@intel.com>
5830             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5831             Ilya Verbin  <ilya.verbin@intel.com>
5832             Kirill Yukhin  <kirill.yukhin@intel.com>
5833             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5834
5835         * config/i386/sse.md
5836         (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
5837         (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
5838         (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
5839         "<avx2_avx512f>_permvar<mode><mask_name>".
5840         (define_insn "<avx512>_permvar<mode><mask_name>"): New.
5841         (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
5842         Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
5843         (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
5844         Ditto.
5845         (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
5846         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5847         (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
5848         Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
5849
5850 2014-09-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5851
5852         * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
5853         V2DF, V4SF, DF, and DI modes.
5854         (vsx_fmav2df2): Likewise.
5855         (vsx_float_fix_<mode>2): Likewise.
5856         (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
5857
5858 2014-09-10  Xinliang David Li  <davidxl@google.com>
5859
5860         PR target/63209
5861         * config/arm/arm.md (movcond_addsi): Handle case where source
5862         and target operands are the same.
5863
5864 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5865
5866         * final.c (this_is_asm_operands): Strengthen this variable from
5867         rtx to const rtx_insn *.
5868         * output.h (this_is_asm_operands): Likewise.
5869         * rtl-error.c (location_for_asm): Strengthen param "insn" from
5870         const_rtx to const rtx_insn *.
5871         (diagnostic_for_asm): Likewise.
5872         * rtl-error.h (error_for_asm): Likewise.
5873         (warning_for_asm): Likewise.
5874
5875 2014-09-10  David Malcolm  <dmalcolm@redhat.com>
5876
5877         * genextract.c (print_header): When writing out insn_extract to
5878         insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
5879         * recog.h (insn_extract): Strengthen the param from rtx to
5880         rtx_insn *.
5881
5882 2014-09-10  Mike Stump  <mikestump@comcast.net>
5883
5884         * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
5885         8.6.1.
5886
5887 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5888
5889         * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
5890         (analyze): Do not set analyze flag if expand_thunk returns false;.
5891         (create_wrapper): Likewise.
5892         * cgraphclones.c (duplicate_thunk_for_node): Likewise.
5893
5894 2014-09-10  Martin Jambor  <mjambor@suse.cz>
5895
5896         PR ipa/61654
5897         * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
5898         new decl properly.  Analyze the new thunk if it is expanded.
5899
5900 2014-09-10  Andreas Schwab  <schwab@suse.de>
5901
5902         * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
5903         [USED_FOR_TARGET]: Define.
5904
5905 2014-09-10  Matthew Fortune  <matthew.fortune@imgtec.com>
5906
5907         * config/mips/mips.c (mips_secondary_reload_class): Handle
5908         regno < 0 case.
5909
5910 2014-09-10  Robert Suchanek   <robert.suchanek@imgtec.com>
5911
5912         * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
5913         assignment.
5914
5915 2014-09-10  Jakub Jelinek  <jakub@redhat.com>
5916
5917         * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
5918         and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
5919         * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
5920         SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
5921         flag_delete_null_pointer_checks for them.
5922         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
5923         BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
5924         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
5925         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
5926         * ubsan.c (instrument_bool_enum_load): Set *gsi back to
5927         stmt's iterator.
5928         (instrument_nonnull_arg, instrument_nonnull_return): New functions.
5929         (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
5930         or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
5931         (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
5932         * doc/invoke.texi (-fsanitize=nonnull-attribute,
5933         -fsanitize=returns-nonnull-attribute): Document.
5934
5935         * ubsan.h (struct ubsan_mismatch_data): Removed.
5936         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5937         * ubsan.c (ubsan_source_location): For unknown locations,
5938         pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
5939         (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
5940         Allow more than one location and arbitrary extra arguments passed
5941         in ... instead of through MISMATCH pointer.
5942         (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
5943         ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
5944         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
5945         callers.
5946
5947 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5948             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5949             Anna Tikhonova  <anna.tikhonova@intel.com>
5950             Ilya Tocar  <ilya.tocar@intel.com>
5951             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5952             Ilya Verbin  <ilya.verbin@intel.com>
5953             Kirill Yukhin  <kirill.yukhin@intel.com>
5954             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5955
5956         * config/i386/sse.md
5957         (define_mode_iterator VI48F): New.
5958         (define_insn "<avx512>_compress<mode>_mask"): Rename from
5959         "avx512f_compress<mode>_mask" and update mode iterator.
5960         (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
5961         "avx512f_compressstore<mode>_mask" and update mode iterator.
5962         (define_expand "<avx512>_expand<mode>_maskz"): Rename from
5963         "avx512f_expand<mode>_maskz" and update mode iterator.
5964         (define_insn "<avx512>_expand<mode>_mask"): Rename from
5965         "avx512f_expand<mode>_mask" and update mode iterator.
5966
5967 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5968             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5969             Anna Tikhonova  <anna.tikhonova@intel.com>
5970             Ilya Tocar  <ilya.tocar@intel.com>
5971             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5972             Ilya Verbin  <ilya.verbin@intel.com>
5973             Kirill Yukhin  <kirill.yukhin@intel.com>
5974             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
5975
5976         * config/i386/i386.c
5977         (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
5978         avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
5979         avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
5980         avx512dq_rangepv4sf_mask.
5981         * config/i386/sse.md
5982         (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
5983         UNSPEC_RANGE.
5984         (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
5985         (define_insn "reduces<mode>"): Ditto.
5986         (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5987         Ditto.
5988         (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
5989         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
5990         (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
5991
5992 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
5993             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
5994             Anna Tikhonova  <anna.tikhonova@intel.com>
5995             Ilya Tocar  <ilya.tocar@intel.com>
5996             Andrey Turetskiy  <andrey.turetskiy@intel.com>
5997             Ilya Verbin  <ilya.verbin@intel.com>
5998             Kirill Yukhin  <kirill.yukhin@intel.com>
5999             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6000
6001         * config/i386/i386.c
6002         (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
6003         (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
6004         (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
6005         avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
6006         avx512vl_getmantv2df_mask.
6007         (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
6008         avx512f_vgetmantv4sf_round.
6009         * config/i386/sse.md
6010         (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
6011         Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
6012         mode iterator.
6013         (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
6014         (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
6015         (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
6016         from "avx512f_scalef<mode><mask_name><round_name>" and update mode
6017         iterator..
6018         (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
6019         Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
6020         update mode iterator.
6021         (define_expand
6022         "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
6023         "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
6024         mode iterator.
6025         (define_insn
6026         "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
6027         from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
6028         update mode iterator.
6029         (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
6030         from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
6031         iterator..
6032         (define_insn
6033         "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
6034         "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
6035         mode iterator..
6036         (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
6037         Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
6038         update mode iterator.
6039         (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
6040         "avx512f_getmant<mode><round_saeonly_name>".
6041
6042 2014-09-10  Jan Hubicka  <hubicka@ucw.cz>
6043
6044         PR ipa/63166
6045         * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
6046
6047 2014-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
6048             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
6049             Anna Tikhonova  <anna.tikhonova@intel.com>
6050             Ilya Tocar  <ilya.tocar@intel.com>
6051             Andrey Turetskiy  <andrey.turetskiy@intel.com>
6052             Ilya Verbin  <ilya.verbin@intel.com>
6053             Kirill Yukhin  <kirill.yukhin@intel.com>
6054             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
6055
6056         * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
6057         (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
6058         (define_mode_iterator FMAMODE_AVX512): New.
6059         (define_mode_iterator FMAMODE): Remove conditions.
6060         (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
6061         (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
6062         from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
6063         mode iterator.
6064         (define_mode_iterator FMAMODE_NOVF512): Remove.
6065         (define_insn "*fma_fmadd_<mode>"): Rename from
6066         "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
6067         FMAMODE mode iterator.
6068         (define_mode_iterator VF_SF_AVX512VL): New.
6069         (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
6070         Use VF_SF_AVX512VL mode iterator.
6071         (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
6072         "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6073         iterator.
6074         (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
6075         "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6076         iterator.
6077         (define_insn "*fma_fmsub_<mode>"): Rename from
6078         "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
6079         FMAMODE mode iterator.
6080         (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
6081         Use VF_SF_AVX512VL mode iterator.
6082         (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
6083         "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6084         iterator.
6085         (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
6086         "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6087         iterator.
6088         (define_insn "*fma_fnmadd_<mode>"): Rename from
6089         "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
6090         use FMAMODE mode iterator.
6091         (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
6092         Use VF_SF_AVX512VL mode iterator.
6093         (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
6094         "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6095         iterator.
6096         (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
6097         "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6098         iterator.
6099         (define_insn "*fma_fnmsub_<mode>"): Rename from
6100         "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
6101         FMAMODE mode iterator.
6102         (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
6103         Use VF_SF_AVX512VL mode iterator.
6104         (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
6105         "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6106         iterator.
6107         (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
6108         "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6109         iterator.
6110         (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
6111         Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
6112         use VF_AVX512VL mode iterator.
6113         (define_insn "*fma_fmaddsub_<mode>"): Rename from
6114         "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
6115         remove subst usage.
6116         (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
6117         Use VF_SF_AVX512VL mode iterator.
6118         (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
6119         "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
6120         iterator.
6121         (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
6122         "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6123         iterator.
6124         (define_insn "*fma_fmsubadd_<mode>"): Rename from
6125         "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
6126         remove usage of subst.
6127         (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
6128         Use VF_SF_AVX512VL mode iterator.
6129         (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
6130         "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
6131         iterator.
6132         (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
6133         "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
6134         iterator.
6135
6136 2014-09-10  Kugan Vivekanandarajah  <kuganv@linaro.org>
6137
6138         Revert r213751:
6139         * calls.c (precompute_arguments): Check
6140          promoted_for_signed_and_unsigned_p and set the promoted mode.
6141         (promoted_for_signed_and_unsigned_p): New function.
6142         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
6143         and set the promoted mode.
6144         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
6145         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
6146         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
6147
6148 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6149
6150         * opth-gen.awk: Generate mapping from cpp message reasons to the
6151         options that enable them.
6152         * doc/options.texi (CppReason): Document.
6153
6154 2014-09-09  Manuel López-Ibáñez  <manu@gcc.gnu.org>
6155
6156         * doc/invoke.texi (Wnormalized=): Update.
6157
6158 2014-09-09  Segher Boessenkool  <segher@kernel.crashing.org>
6159
6160         PR target/63195
6161         * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
6162         operands.  Split off the constant operand alternative to ...
6163         (*bool<mode>3_imm): New.
6164
6165 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6166
6167         * rtl.h (single_set_2): Strengthen first param from const_rtx to
6168         const rtx_insn *, and move prototype to above...
6169         (single_set): ...this.  Convert this from a macro to an inline
6170         function, enforcing the requirement that the param is a const
6171         rtx_insn *.
6172         (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
6173
6174         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
6175         Strengthen both params from rtx to rtx_insn *.
6176         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6177         Likewise; introduce locals "producer_set", "consumer_set", using
6178         them in place of "producer" and "consumer" when dealing with SET
6179         rather than insn.
6180         * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
6181         when invoking single_set in region guarded by INSN_P.
6182         (avr_out_bitop): Likewise.
6183         (_reg_unused_after): Introduce local rtx_sequence * "seq" in
6184         region guarded by GET_CODE check, using methods to strengthen
6185         local "this_insn" from rtx to rtx_insn *, and for clarity.
6186         * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
6187         Strengthen local "insn" from rtx to rtx_insn *.
6188         (define_insn_and_split "xload<mode>_A"): Likewise.
6189         * config/bfin/bfin.c (trapping_loads_p): Likewise for param
6190         "insn".
6191         (find_load): Likewise for return type.
6192         (workaround_speculation): Likewise for both locals named
6193         "load_insn".
6194         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
6195         local "cc0_user".
6196         * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
6197         for local "prev".
6198         * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
6199         param 2.
6200         * config/h8300/h8300.c (notice_update_cc): Likewise.
6201         * config/i386/i386.c (ix86_flags_dependent): Likewise for params
6202         "insn" and "dep_insn".
6203         (exact_store_load_dependency): Likewise for both params.
6204         (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
6205         since this now clashes with inline function.  Instead, delay
6206         calling single_set until the point where its needed, and then
6207         assign the result to "compare_set" and rework the conditional that
6208         follows.
6209         * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
6210         local "last" from rtx to rtx_insn *.
6211         * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
6212         second param.
6213         (mips_store_data_bypass_p): Likewise for both params.
6214         * config/mips/mips.c (mips_load_store_insns): Likewise for second
6215         param.
6216         (mips_store_data_bypass_p): Likewise for both params.
6217         (mips_orphaned_high_part_p): Likewise for param "insn".
6218         * config/mn10300/mn10300.c (extract_bundle): Likewise.
6219         (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
6220         Introduce local rtx "insn2_pat".
6221         * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
6222         "ninsn".
6223         (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
6224         Introduce local rtx "set", using it in place of "insn" for the
6225         result of single_set.  This appears to fix a bug, since the call
6226         to find_regno_note on a SET does nothing.
6227         * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
6228         params from rtx to rtx_insn *.
6229         (set_to_load_agen): Likewise.
6230         * config/s390/s390.c (s390_label_align): Likewise for local
6231         "prev_insn".  Introduce new rtx locals "set" and "src", using
6232         them in place of "prev_insn" for the results of single_set
6233         and SET_SRC respectively.
6234         (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
6235         Introduce new rtx local "set" using in place of "jump" for the
6236         result of single_set.  Use SET_SRC (set) rather than plain
6237         XEXP (set, 1).
6238         * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
6239         rtx to rtx_insn *.
6240         (noncall_uses_reg): Likewise.
6241         (reg_unused_after): Introduce local rtx_sequence * "seq" in region
6242         guarded by GET_CODE check, using its methods for clarity, and to
6243         enable strengthening local "this_insn" from rtx to rtx_insn *.
6244         * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
6245         "insn" from rtx to rtx_insn *.
6246         (define_expand "umulhisi3"): Likewise.
6247         (define_expand "smulsi3_highpart"): Likewise.
6248         (define_expand "umulsi3_highpart"): Likewise.
6249         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
6250         local "after".  Replace GET_CODE check with a dyn_cast,
6251         introducing new local rtx_sequence * "seq", using insn method for
6252         typesafety.
6253
6254         * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
6255         from rtx to rtx_insn *.  Introduce local rtx "pat", using it in
6256         place of "insn" once we're dealing with patterns rather than the
6257         input insn.
6258         (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
6259         (scan_trace): Likewise for local "elt", updating lookups within
6260         sequence to use insn method rather than element method.
6261         * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
6262         to rtx_insn *.
6263         * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
6264         * ifcvt.c (noce_try_abs): Likewise for local "insn".
6265         * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
6266         invoking single_set.
6267         * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
6268         "insn" from rtx to rtx_insn *.
6269         (skip_usage_debug_insns): Likewise for return type, adding a
6270         checked cast.
6271         (check_secondary_memory_needed_p): Likewise for local "insn".
6272         (inherit_reload_reg): Likewise.
6273         * modulo-sched.c (sms_schedule): Likewise for local "count_init".
6274         * recog.c (peep2_attempt): Likewise for local "old_insn", adding
6275         checked casts.
6276         (store_data_bypass_p): Likewise for both params.
6277         (if_test_bypass_p): Likewise.
6278         * recog.h (store_data_bypass_p): Likewise for both params.
6279         (if_test_bypass_p): Likewise.
6280         * reload.c (find_equiv_reg): Likewise for local "where".
6281         * reorg.c (delete_jump): Likewise for param "insn".
6282         * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
6283         to const rtx_insn *.
6284         * store-motion.c (replace_store_insn): Likewise for param "del".
6285         (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
6286         and use its methods for clarity, and to strengthen local "del"
6287         from rtx to rtx_insn *.
6288         (build_store_vectors): Use insn method of "st" when calling
6289         replace_store_insn for typesafety and clarity.
6290
6291 2014-09-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6292
6293         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
6294         UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
6295         on how to make it legal in future.
6296
6297 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6298
6299         * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
6300         to rtx_insn *.
6301         (restinsn): Likewise.
6302         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
6303         Likewise for param.
6304         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
6305         Likewise.
6306         * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
6307         first param.
6308         (arc_hazard): Likewise for both params.
6309         * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
6310         checked casts to rtx_sequence * and uses of the insn method for
6311         type-safety.
6312         (arc_hazard): Strengthen both params from rtx to rtx_insn *.
6313         (arc_adjust_insn_length): Likewise for param "insn".
6314         (struct insn_length_parameters_s): Likewise for first param of
6315         "get_variants" callback field.
6316         (arc_get_insn_variants): Likewise for first param and local
6317         "inner".  Replace a check of GET_CODE with a dyn_cast to
6318         rtx_sequence *, using methods for type-safety and clarity.
6319         * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
6320         rtx_sequence * and uses of the insn method for type-safety when
6321         invoking arc_adjust_insn_length.
6322         * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
6323         for param.
6324         (arm_address_offset_is_imm): Likewise.
6325         (struct tune_params): Likewise for params 1 and 3 of the
6326         "sched_adjust_cost" callback field.
6327         * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
6328         params 1 and 3 ("insn" and "dep").
6329         (xscale_sched_adjust_cost): Likewise.
6330         (fa726te_sched_adjust_cost): Likewise.
6331         (cortexa7_older_only): Likewise for param "insn".
6332         (cortexa7_younger): Likewise.
6333         (arm_attr_length_move_neon): Likewise.
6334         (arm_address_offset_is_imm): Likewise.
6335         * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
6336         * config/avr/avr.c (avr_notice_update_cc): Likewise.
6337         * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
6338         (workaround_speculation): Likewise for local "last_condjump".
6339         * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
6340         (shadow_or_blockage_p): Likewise.
6341         (get_unit_reqs): Likewise.
6342         (get_unit_operand_masks): Likewise.
6343         (c6x_registers_update): Likewise.
6344         (returning_call_p): Likewise.
6345         (can_use_callp): Likewise.
6346         (convert_to_callp): Likewise.
6347         (find_last_same_clock): Likwise for local "t".
6348         (reorg_split_calls): Likewise for local "shadow".
6349         (hwloop_pattern_reg): Likewise for param "insn".
6350         * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
6351         * config/frv/frv.c (frv_final_prescan_insn): Likewise.
6352         (frv_extract_membar): Likewise.
6353         (frv_optimize_membar_local): Strengthen param "last_membar" from
6354         rtx * to rtx_insn **.
6355         (frv_optimize_membar_global): Strengthen param "membar" from rtx
6356         to rtx_insn *.
6357         (frv_optimize_membar): Strengthen local "last_membar" from rtx *
6358         to rtx_insn **.
6359         * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
6360         both params from rtx to rtx_insn *.
6361         (ia64_ld_address_bypass_p): Likewise.
6362         * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
6363         "insn".
6364         (ia64_safe_type): Likewise.
6365         (group_barrier_needed): Likewise.
6366         (safe_group_barrier_needed): Likewise.
6367         (ia64_single_set): Likewise.
6368         (is_load_p): Likewise.
6369         (record_memory_reference): Likewise.
6370         (get_mode_no_for_insn): Likewise.
6371         (important_for_bundling_p): Likewise.
6372         (unknown_for_bundling_p): Likewise.
6373         (ia64_st_address_bypass_p): Likewise for both params.
6374         (ia64_ld_address_bypass_p): Likewise.
6375         (expand_vselect): Introduce new local rtx_insn * "insn", using it
6376         in place of rtx "x" after the emit_insn call.
6377         * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
6378         Strengthen param from rtx to rtx_insn *.
6379         (ix86_agi_dependent): Likewise for both params.
6380         (ix86_attr_length_immediate_default): Likewise for param 1.
6381         (ix86_attr_length_address_default): Likewise for param.
6382         (ix86_attr_length_vex_default): Likewise for param 1.
6383         * config/i386/i386.c (ix86_attr_length_immediate_default):
6384         Likewise for param "insn".
6385         (ix86_attr_length_address_default): Likewise.
6386         (ix86_attr_length_vex_default): Likewise.
6387         (ix86_agi_dependent): Likewise for both params.
6388         (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
6389         (vselect_insn): Likewise for this variable.
6390         * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
6391         for param 1.
6392         (m68k_sched_attr_opy_type): Likewise.
6393         * config/m68k/m68k.c (sched_get_operand): Likewise.
6394         (sched_attr_op_type): Likewise.
6395         (m68k_sched_attr_opx_type): Likewise.
6396         (m68k_sched_attr_opy_type): Likewise.
6397         (sched_get_reg_operand): Likewise.
6398         (sched_get_mem_operand): Likewise.
6399         (m68k_sched_address_bypass_p): Likewise for both params.
6400         (sched_get_indexed_address_scale): Likewise.
6401         (m68k_sched_indexed_address_bypass_p): Likewise.
6402         * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
6403         (m68k_sched_indexed_address_bypass_p): Likewise.
6404         * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
6405         "label", "ret" from rtx to rtx_insn *, adding a checked cast and
6406         removing another.
6407         * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
6408         params from rtx to rtx_insn *.
6409         (mips_fmadd_bypass): Likewise.
6410         * config/mips/mips.c (mips_fmadd_bypass): Likewise.
6411         (mips_linked_madd_p): Likewise.
6412         (mips_macc_chains_last_hilo): Likewise for this variable.
6413         (mips_macc_chains_record): Likewise for param.
6414         (vr4130_last_insn): Likewise for this variable.
6415         (vr4130_swap_insns_p): Likewise for both params.
6416         (mips_ls2_variable_issue): Likewise for param.
6417         (mips_need_noat_wrapper_p): Likewise for param "insn".
6418         (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
6419         in place of "x" after the emit_insn.
6420         * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
6421         params from rtx to rtx_insn *.
6422         * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
6423         (pa_combine_instructions): Introduce local "par" for result of
6424         gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
6425         to make_insn_raw.
6426         (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
6427         * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
6428         (rl78_alloc_physical_registers_op1): Likewise.
6429         (rl78_alloc_physical_registers_op2): Likewise.
6430         (rl78_alloc_physical_registers_ro1): Likewise.
6431         (rl78_alloc_physical_registers_cmp): Likewise.
6432         (rl78_alloc_physical_registers_umul): Likewise.
6433         (rl78_alloc_address_registers_macax): Likewise.
6434         (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
6435         * config/s390/predicates.md (execute_operation): Likewise for
6436         local "insn".
6437         * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
6438         params.
6439         * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
6440         (addr_generation_dependency_p): Likewise for param "insn".
6441         (s390_agen_dep_p): Likewise for both params.
6442         (s390_fpload_toreg): Likewise for param "insn".
6443         * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
6444         * config/sh/sh.c (sh_loop_align): Likewise for param and local
6445         "next".
6446         * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
6447         * config/sh/sh_treg_combine.cc
6448         (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
6449         and local "i".
6450         (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
6451         * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
6452         "and_insn", "load", "shift".
6453         * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
6454         "insn".
6455         * final.c (final_scan_insn): Introduce local rtx_insn * "other"
6456         for XEXP (note, 0) of the REG_CC_SETTER note.
6457         (cleanup_subreg_operands): Strengthen param "insn" from rtx to
6458         rtx_insn *, eliminating a checked cast made redundant by this.
6459         * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
6460         to rtx_insn *.
6461         * genattr.c (main): When writing out the prototype to
6462         const_num_delay_slots, strengthen the param from rtx to
6463         rtx_insn *.
6464         * genattrtab.c (write_const_num_delay_slots): Likewise when
6465         writing out the implementation of const_num_delay_slots.
6466         * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
6467         "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
6468         * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
6469         favor of new rtx locals "src" and "set" and new local rtx_insn *
6470         "insn" and "seq".
6471         (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
6472         to rtx_insn *.
6473         (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
6474         locals "cond", "if_then_else", "set" and new rtx_insn * locals
6475         "insn" and "seq".
6476         (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
6477         "last" from rtx to rtx_insn *.  Likewise for a local "tmp",
6478         renaming to "tmp_insn".  Eliminate the other local rtx "tmp" from
6479         the top-level scope, replacing with new more tightly-scoped rtx
6480         locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
6481         "new_insn", "copy_of_insn_b", and make local rtx "set" more
6482         tightly-scoped.
6483         * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
6484         rtx_insn *.
6485         * ira.c (setup_prohibited_mode_move_regs): Likewise for local
6486         "move_insn".
6487         (ira_setup_alts): Likewise for param "insn".
6488         * lra-constraints.c (emit_inc): Likewise for local "add_insn".
6489         * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
6490         and an rtx_insn *.
6491         (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
6492         new more-tightly scoped rtx locals "add3_insn", "insn",
6493         "add2_insn" and rtx_insn * "move_insn".
6494         * postreload-gcse.c (eliminate_partially_redundant_load): Add
6495         checked cast on result of gen_move_insn when invoking
6496         extract_insn.
6497         * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
6498         rtx_insn *.
6499         (verify_changes): Add a checked cast on "object" when invoking
6500         insn_invalid_p.
6501         (extract_insn_cached): Strengthen param "insn" from rtx to
6502         rtx_insn *.
6503         (extract_constrain_insn_cached): Likewise.
6504         (extract_insn): Likewise.
6505         * recog.h (insn_invalid_p): Likewise for param 1.
6506         (recog_memoized): Likewise for param.
6507         (extract_insn): Likewise.
6508         (extract_constrain_insn_cached): Likewise.
6509         (extract_insn_cached): Likewise.
6510         * reload.c (can_reload_into): Likewise for local "test_insn".
6511         * reload.h (cleanup_subreg_operands): Likewise for param.
6512         * reload1.c (emit_insn_if_valid_for_reload): Rename param from
6513         "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
6514         result of emit_insn.  Remove a checked cast made redundant by this
6515         change.
6516         * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
6517         rtx to rtx_insn *.
6518         * sel-sched.c (get_reg_class): Likewise.
6519
6520 2014-09-09  Marcus Shawcroft  <marcus.shawcroft@arm.com>
6521             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
6522
6523         * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
6524         * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
6525         Define.
6526         (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
6527
6528 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6529
6530         * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
6531         const rtx_insn *, and from rtx to rtx_insn * for the other
6532         overloaded variant.
6533         (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
6534         INSN_LOCATION, since we know INSN_P holds.
6535         (insn_line): Strengthen param from const_rtx to const rtx_insn *.
6536         (insn_file): Likewise.
6537         (insn_scope): Likewise.
6538         (insn_location): Likewise.
6539
6540         * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
6541         "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
6542         for the result of gen_load_const_gp.
6543         * config/rs6000/rs6000-protos.h (output_call): Strengthen first
6544         param from rtx to rtx_insn *.
6545         * config/rs6000/rs6000.c (output_call): Likewise.
6546         * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
6547         introducing a checked cast to rtx_sequence * and use of the insn
6548         method.
6549         * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
6550         from rtx to rtx_insn *.
6551         (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
6552         (insn_line): Likewise.
6553         (insn_file): Likewise.
6554         (insn_location): Likewise.
6555         * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
6556         from rtx to rtx_insn *.
6557         * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
6558         cast, using it for calls to INSN_HAS_LOCATION and insn_location.
6559         * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
6560         via a checked cast.
6561         * reorg.c (relax_delay_slots): Strengthen locals named "after"
6562         from rtx to rtx_insn *; use methods of "pat" for type-safety.
6563
6564 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6565
6566         * combine.c (try_combine): Eliminate checked cast on result of
6567         gen_rtx_INSN.
6568         * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
6569         autogenerated one by strengthening the return type and params 2 and 3
6570         from rtx to rtx_insn *, and by naming the params.
6571         * gengenrtl.c (special_rtx): Add INSN to those that are
6572         special-cased.
6573         * rtl.h (gen_rtx_INSN): New prototype.
6574
6575 2014-09-09  David Malcolm  <dmalcolm@redhat.com>
6576
6577         * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
6578         than NULL_RTX.
6579         (no_equiv): Likewise.
6580         (update_equiv_regs): Likewise.
6581         (setup_reg_equiv): Likewise.  Strengthen locals "elem",
6582         "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
6583         from rtx to rtx_insn *.  Use methods of "elem" for typesafety and
6584         clarity.
6585         * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
6586         from rtx to rtx_insn_list *.
6587         * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
6588         rtx_insn_list * and use methods for clarity and typesafety.
6589         * lra-constraints.c (contains_deleted_insn_p): Likewise for param
6590         "list".
6591         (init_insn_rhs_dead_pseudo_p): Likewise for local "insns".  Remove
6592         redundant check on INSN_P (insns): this cannot hold, as "insns" is
6593         an INSN_LIST, not an insn.
6594         (reverse_equiv_p): Strengthen local "insns" from rtx to
6595         rtx_insn_list * and use methods for clarity and typesafety.
6596         (contains_reloaded_insn_p): Likewise for local "list".
6597
6598 2014-09-09  Jiong Wang  <jiong.wang@arm.com>
6599
6600         * config/arm/arm.c (NEON_COPYSIGNF): New enum.
6601         (arm_init_neon_builtins): Support NEON_COPYSIGNF.
6602         (arm_builtin_vectorized_function): Likewise.
6603         * config/arm/arm_neon_builtins.def: New macro for copysignf.
6604         * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
6605
6606 2014-09-09  Richard Sandiford  <richard.sandiford@arm.com>
6607
6608         * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
6609         * builtins.h (default_target_builtins): Likewise.
6610         * gcse.h (default_target_gcse): Likewise.
6611         * target-globals.h (target_globals): Add a destructor.  Convert
6612         void-pointer fields back to their real type and change from
6613         GTY((atomic)) to GTY((skip)).
6614         (restore_target_globals): Remove casts accordingly.
6615         * target-globals.c (save_target_globals): Use XCNEW rather than
6616         ggc_internal_cleared_alloc to allocate non-GC structures.
6617         Use ggc_cleared_alloc to allocate the target_globals structure
6618         itself.
6619         (target_globals::~target_globals): Define.
6620
6621 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6622
6623         * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
6624         mnemonic instead of fldmfdd.
6625         * config/arm/arm.c (vfp_output_fstmd): Rename to...
6626         (vfp_output_vstmd): ... This.  Convert output to UAL syntax.
6627         Output vpush when address register is SP.
6628         * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
6629         (vfp_output_vstmd): ... This.
6630         * config/arm/vfp.md (push_multi_vfp): Update call to
6631         vfp_output_vstmd.
6632
6633 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6634
6635         * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
6636
6637 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6638
6639         * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
6640         (*sqrtdf2_vfp): Likewise.
6641         (*cmpsf_vfp): Likewise.
6642         (*cmpsf_trap_vfp): Likewise.
6643         (*cmpdf_vfp): Likewise.
6644         (*cmpdf_trap_vfp): Likewise.
6645
6646 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6647
6648         * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
6649         (*truncdfsf2_vfp): Likewise.
6650         (*truncsisf2_vfp): Likewise.
6651         (*truncsidf2_vfp): Likewise.
6652         (fixuns_truncsfsi2): Likewise.
6653         (fixuns_truncdfsi2): Likewise.
6654         (*floatsisf2_vfp): Likewise.
6655         (*floatsidf2_vfp): Likewise.
6656         (floatunssisf2): Likewise.
6657         (floatunssidf2): Likewise.
6658
6659 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6660
6661         * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
6662         (*muldf3_vfp): Likewise.
6663         (*mulsf3negsf_vfp): Likewise.
6664         (*muldf3negdf_vfp): Likewise.
6665         (*mulsf3addsf_vfp): Likewise.
6666         (*muldf3adddf_vfp): Likewise.
6667         (*mulsf3subsf_vfp): Likewise.
6668         (*muldf3subdf_vfp): Likewise.
6669         (*mulsf3negsfaddsf_vfp): Likewise.
6670         (*fmuldf3negdfadddf_vfp): Likewise.
6671         (*mulsf3negsfsubsf_vfp): Likewise.
6672         (*muldf3negdfsubdf_vfp): Likewise.
6673
6674 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6675
6676         * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
6677         (*absdf2_vfp): Likewise.
6678         (*negsf2_vfp): Likewise.
6679         (*negdf2_vfp): Likewise.
6680         (*addsf3_vfp): Likewise.
6681         (*adddf3_vfp): Likewise.
6682         (*subsf3_vfp): Likewise.
6683         (*subdf3_vfp): Likewise.
6684         (*divsf3_vfp): Likewise.
6685         (*divdf3_vfp): Likewise.
6686
6687 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6688
6689         * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
6690         multiple.
6691         (arm_print_operand): Don't convert real values to decimal
6692         representation in default case.
6693         (fp_immediate_constant): Delete.
6694         * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
6695         * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
6696         syntax.
6697         (*thumb2_movsi_vfp): Likewise.
6698         (*movdi_vfp): Likewise.
6699         (*movdi_vfp_cortexa8): Likewise.
6700         (*movhf_vfp_neon): Likewise.
6701         (*movhf_vfp): Likewise.
6702         (*movsf_vfp): Likewise.
6703         (*thumb2_movsf_vfp): Likewise.
6704         (*movdf_vfp): Likewise.
6705         (*thumb2_movdf_vfp): Likewise.
6706         (*movsfcc_vfp): Likewise.
6707         (*thumb2_movsfcc_vfp): Likewise.
6708         (*movdfcc_vfp): Likewise.
6709         (*thumb2_movdfcc_vfp): Likewise.
6710
6711 2014-09-09  James Greenhalgh  <james.greenhalgh@arm.com>
6712
6713         * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
6714         (-mtune): Likewise.
6715         (-mcpu): Likewise.
6716
6717 2014-09-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6718
6719         PR target/61749
6720         * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
6721         Use qualifier_immediate for last operand.  Rename to...
6722         (aarch64_types_ternop_lane_qualifiers): ... This.
6723         (TYPES_QUADOP): Rename to...
6724         (TYPES_TERNOP_LANE): ... This.
6725         (aarch64_simd_expand_args): Return const0_rtx when encountering user
6726         error.  Change return of 0 to return of NULL_RTX.
6727         (aarch64_crc32_expand_builtin): Likewise.
6728         (aarch64_expand_builtin): Return NULL_RTX instead of 0.
6729         ICE when expanding unknown builtin.
6730         * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
6731         TERNOP_LANE qualifiers.
6732         (sqdmlsl_lane): Likewise.
6733         (sqdmlal_laneq): Likewise.
6734         (sqdmlsl_laneq): Likewise.
6735         (sqdmlal2_lane): Likewise.
6736         (sqdmlsl2_lane): Likewise.
6737         (sqdmlal2_laneq): Likewise.
6738         (sqdmlsl2_laneq): Likewise.
6739
6740 2014-09-09  Nick Clifton  <nickc@redhat.com>
6741
6742         * doc/invoke.texi (Optimization Options): Add missing @gol to the
6743         end of a line.
6744         (S/390 and zSeries Options): Remove superfluous word from the
6745         description of the -mhotpatch option.
6746
6747 2014-09-09  Zhenqiang Chen  <zhenqiang.chen@arm.com>
6748
6749         * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
6750         * ira.c: #include "shrink-wrap.h"
6751         (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
6752         * ifcvt.c: #include "shrink-wrap.h"
6753         (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
6754
6755 2014-09-08  Trevor Saunders  <tsaunders@mozilla.com>
6756
6757         * common/config/picochip/picochip-common.c: Remove.
6758         * config.gcc: Remove support for picochip.
6759         * config/picochip/constraints.md: Remove.
6760         * config/picochip/dfa_space.md: Remove.
6761         * config/picochip/dfa_speed.md: Remove.
6762         * config/picochip/picochip-protos.h: Remove.
6763         * config/picochip/picochip.c: Remove.
6764         * config/picochip/picochip.h: Remove.
6765         * config/picochip/picochip.md: Remove.
6766         * config/picochip/picochip.opt: Remove.
6767         * config/picochip/predicates.md: Remove.
6768         * config/picochip/t-picochip: Remove.
6769         * doc/md.texi: Don't document picochi.
6770
6771 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6772
6773         * basic-block.h (control_flow_insn_p): Strengthen param from
6774         const_rtx to const rtx_insn *.
6775         * cfgbuild.c (control_flow_insn_p): Likewise.
6776
6777 2014-09-08  David Malcolm  <dmalcolm@redhat.com>
6778
6779         * gcse.c (modify_mem_list): Strengthen this variable from
6780         vec<rtx> * to vec<rtx_insn *> *.
6781         (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
6782         vec<rtx_insn *>.
6783         (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
6784         vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
6785         (record_last_mem_set_info): Strengthen param "insn" from rtx to
6786         rtx_insn *.
6787         (record_last_set_info): Likewise for local "last_set_insn".
6788
6789 2014-09-08  DJ Delorie  <dj@redhat.com>
6790
6791         * doc/invoke.texi (MSP430 Options): Add -minrt.
6792
6793 2014-09-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6794
6795         * config/rs6000/rs6000.c (special_handling_values):  Add SH_SPLAT.
6796         (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
6797         statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
6798         handling SH_SPLAT.
6799         (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
6800         of extracted lane.
6801         (adjust_splat): New function.
6802         (handle_special_swappables): Call adjust_splat for SH_SPLAT.
6803         (dump_swap_insn_table): Add case for SH_SPLAT.
6804
6805 2014-09-08  Richard Biener  <rguenther@suse.de>
6806
6807         PR ipa/63196
6808         * tree-inline.c (copy_loops): The source loop header should
6809         always be non-NULL.
6810         (tree_function_versioning): If loops need fixup after removing
6811         unreachable blocks fix them.
6812         * omp-low.c (simd_clone_adjust): Do not add incr block to
6813         loop under construction.
6814
6815 2014-09-08  Alan Lawrence  <alan.lawrence@arm.com>
6816
6817         * config/aarch64/aarch64-builtins.c
6818         (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
6819
6820 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6821
6822         * config/i386/cygming.h (TF_SIZE): Remove.
6823         * config/i386/darwin.h (TF_SIZE): Remove.
6824         * config/i386/dragonfly.h (TF_SIZE): Remove.
6825         * config/i386/freebsd.h (TF_SIZE): Remove.
6826         * config/i386/gnu-user-common.h (TF_SIZE): Remove.
6827         * config/i386/openbsdelf.h (TF_SIZE): Remove.
6828         * config/i386/sol2.h (TF_SIZE): Remove.
6829         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
6830         * config/ia64/linux.h (TF_SIZE): Remove.
6831         * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
6832         * doc/tm.texi: Regenerate.
6833         * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
6834
6835 2014-09-08  Joseph Myers  <joseph@codesourcery.com>
6836
6837         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6838         Remove.
6839         * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
6840         Remove.
6841         * doc/tm.texi: Regenerate.
6842         * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
6843         Poison.
6844         * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
6845         * config/cris/cris.h (__make_dp): Remove.
6846
6847 2014-09-08  Richard Biener  <rguenther@suse.de>
6848
6849         PR bootstrap/63204
6850         * cfgloop.c (mark_loop_for_removal): Track former header
6851         unconditionally.
6852         * cfgloop.h (struct loop): Add former_header member unconditionally.
6853         * loop-init.c (fix_loop_structure): Enable bogus loop removal
6854         diagnostic unconditionally.
6855
6856 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
6857
6858         PR target/63190
6859         * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
6860         constraint for operand0 and remove write only modifier from operand3.
6861
6862 2014-09-07  Richard Sandiford  <richard.sandiford@arm.com>
6863
6864         PR rtl-optimization/62208
6865         * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
6866         rather than const0_rtx in eq/ne-xor simplifications.
6867
6868 2014-09-06  Joern Rennecke  <joern.rennecke@embecosm.com>
6869
6870         * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
6871         (arc_output_mi_thunk): Likewise.
6872
6873         * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
6874         arguments to silence bogus warning.
6875
6876 2014-09-06  Richard Sandiford  <richard.sandiford@arm.com>
6877
6878         PR middle-end/63171
6879         * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
6880
6881 2014-09-06  Tom de Vries  <tom@codesourcery.com>
6882
6883         * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
6884         IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
6885         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
6886
6887 2014-09-05  Dominique Dhumieres  <dominiq@lps.ens.fr>
6888
6889         PR target/63188
6890         * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
6891         * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
6892
6893 2014-09-05  Easwaran Raman  <eraman@google.com>
6894
6895         PR rtl-optimization/62146
6896         * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
6897         hoisted instruction unconditional.
6898
6899 2014-09-05  Segher Boessenkool  <segher@kernel.crashing.org>
6900
6901         PR target/63187
6902         * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
6903         Do not allow any_mask_operand for operands[2].
6904         (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
6905
6906 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6907
6908         * config/arc/arc.c (arc_print_operand): Use insn method of
6909         final_sequence for type-safety.
6910         * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
6911         "insn" from rtx to rtx_insn *.
6912         * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
6913         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
6914         Likewise for locals "branch", "label".
6915         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
6916         locals "i1", "i2".  Use NULL rather than NULL_RTX in comparisons.
6917         (same_cmp_following_p): Likewise for locals "i2", "i3".
6918         * config/sh/sh_optimize_sett_clrt.cc
6919         (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
6920         param "cbranch_insn".
6921         * function.c (convert_jumps_to_returns): Likewis for local "jump".
6922         * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
6923         * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
6924         const rtx_insn *.
6925         (condjump_p): Likewise.
6926         (condjump_in_parallel_p): Likewise.
6927         (pc_set): Likewise.
6928         (any_uncondjump_p): Likewise.
6929         (any_condjump_p): Likewise.
6930         (condjump_label): Likewise.
6931         (returnjump_p): Strengthen param "insn" from rtx to
6932         const rtx_insn *.
6933         (onlyjump_p): Strengthen param "insn" from const_rtx to
6934         const rtx_insn *.
6935         (jump_to_label_p): Likewise.
6936         (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
6937         (invert_jump): Likewise.
6938         * reorg.c (simplejump_or_return_p): Add checked cast when calling
6939         simplejump_p.
6940         (get_jump_flags): Strengthen param "insn" from rtx to
6941         const rtx_insn *.
6942         (get_branch_condition): Likewise.
6943         (condition_dominates_p): Likewise.
6944         (make_return_insns): Move declaration of local "pat" earlier, to
6945         after we've handled NONJUMP_INSN_P and non-sequences, using its
6946         methods to simplify the code and for type-safety.
6947         * rtl.h (find_constant_src): Strengthen param from const_rtx to
6948         const rtx_insn *.
6949         (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
6950         (condjump_p): Strengthen param from const_rtx to
6951         const rtx_insn *.
6952         (any_condjump_p): Likewise.
6953         (any_uncondjump_p): Likewise.
6954         (pc_set): Likewise.
6955         (condjump_label): Likewise.
6956         (simplejump_p): Likewise.
6957         (returnjump_p): Likewise.
6958         (onlyjump_p): Likewise.
6959         (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
6960         (invert_jump): Likewise.
6961         (condjump_in_parallel_p): Strengthen param from const_rtx to
6962         const rtx_insn *.
6963         * rtlanal.c (find_constant_src): Strengthen param from const_rtx
6964         to const rtx_insn *.
6965         * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
6966         to const rtx_insn *.
6967         * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
6968
6969 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6970
6971         * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
6972         above the conditional, and convert the check on GET_CODE to a
6973         dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
6974         the conditional.  Simplify the conditional by using methods of
6975         "trial_seq".
6976
6977 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6978
6979         * haifa-sched.c (check_clobbered_conditions): Strengthen local
6980         "link" from rtx to rtx_insn_list *, and use its methods for
6981         clarity and type-safety.
6982         (toggle_cancelled_flags): Likewise.
6983         (restore_last_backtrack_point): Likewise.
6984         (queue_to_ready): Use insn method of "link" in one place.
6985         (schedule_block): Strengthen local "link" from rtx to
6986         rtx_insn_list *, and use its methods for clarity and type-safety.
6987
6988 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
6989
6990         * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
6991         param "insn" from const_rtx to const rtx_insn *.
6992         (sched_get_reverse_condition_uncached): Likewise.
6993         (sched_get_condition_with_rev): Likewise.
6994         (sched_has_condition_p): Likewise.
6995         (sched_insns_conditions_mutex_p): Likewise for both params.
6996         (sched_insn_is_legitimate_for_speculation_p): Likewise for param
6997         "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
6998         (setup_insn_reg_uses): Move local "list" to be more tightly
6999         scoped, strengthening it from an rtx to an rtx_insn_list *.  Use
7000         its methods for clarity and type-safety.
7001         (sched_analyze_1): Strengthen local "pending" from rtx to
7002         rtx_insn_list *, and local "pending_mem" from rtx to
7003         rtx_expr_list *.  Use methods of each for clarity and type-safety.
7004         (sched_analyze_2): Likewise.
7005         (sched_analyze_insn): Likewise.
7006
7007         * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
7008         param from const_rtx to const rtx_insn *.
7009         (sched_insns_conditions_mutex_p): Likewise for both params.
7010         (sched_insn_is_legitimate_for_speculation_p): Likewise for first
7011         param.
7012
7013         * system.h (CONST_CAST_RTX_INSN): New macro.
7014
7015 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7016
7017         * recog.c (peep2_attempt): Strengthen return type from rtx to
7018         rtx_insn *.
7019         (peep2_update_life): Likewise for params "last", "prev", removing
7020         a checked cast made redundant by this.
7021         (peephole2_optimize): Likewise for local "last".
7022
7023 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7024
7025         * basic-block.h (set_block_for_insn): Eliminate this macro in
7026         favor of...
7027         * rtl.h (set_block_for_insn): New inline function, imposing the
7028         requirement that the "insn" param is an rtx_insn *.
7029
7030 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7031
7032         * caller-save.c (setup_save_areas): Strengthen local "insn" from
7033         rtx to rtx_insn *.
7034         * final.c (get_call_reg_set_usage): Likewise for first param,
7035         eliminating a checked cast.
7036         * regs.h (get_call_reg_set_usage): Likewise for first param.
7037         * resource.c (mark_set_resources): Introduce local rtx_call_insn *
7038         "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
7039         cast, replacing references to "x" with "call_insn" where
7040         appropriate.
7041         (mark_target_live_regs): Strengthen local "real_insn" from rtx to
7042         rtx_insn *, adding a checked cast.
7043
7044 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7045
7046         * output.h (final_scan_insn): Strengthen first param from rtx to
7047         rtx_insn *.
7048
7049         * final.c (final_scan_insn): Likewise, renaming it back from
7050         "uncast_insn" to "insn", eliminating the checked cast.
7051
7052         * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
7053         "vec" with an rtx_sequence * "seq", taking a copy of
7054         "final_sequence", and using methods of "seq" for clarity, and for
7055         type-safety in the calls to final_scan_insn.
7056         * config/mips/mips.c (mips_output_conditional_branch): Use methods
7057         of "final_sequence" for clarity, and for type-safety in the call to
7058         final_scan_insn.
7059         * config/sh/sh.c (print_slot): Strengthen param from rtx to
7060         rtx_sequence * and rename from "insn" to "seq".
7061
7062 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7063
7064         * jump.c (delete_related_insns): Introduce a new local "table" by
7065         replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
7066         get_labels method of "table" to simplify access to the labels in
7067         the jump table.
7068
7069 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7070
7071         * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
7072         f_minmaxs, f_minmaxd types.
7073
7074 2014-09-05  Richard Biener  <rguenther@suse.de>
7075
7076         * cfgloop.c (mark_loop_for_removal): Record former header
7077         when ENABLE_CHECKING.
7078         * cfgloop.h (strut loop): Add former_header member when
7079         ENABLE_CHECKING.
7080         * loop-init.c (fix_loop_structure): Sanity check loops
7081         marked for removal if they re-appeared.
7082
7083 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7084
7085         * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
7086         uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
7087
7088         (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
7089         vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
7090         vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
7091         vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
7092         vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
7093         vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
7094         vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
7095         vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
7096         vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
7097         vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
7098         vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
7099         vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
7100         vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
7101         vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
7102         vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
7103         vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
7104         vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
7105         vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
7106         vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
7107         vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
7108         with int{32,16,8}_t.
7109
7110 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7111
7112         * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
7113         (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
7114         vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
7115         vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
7116         Remove temporary __asm__ and reimplement.
7117
7118 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7119
7120         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
7121         handling cmge, cmgt, cmeq, cmtst.
7122
7123         * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
7124         cmlt, cmgeu, cmgtu, cmtst): Remove.
7125
7126         * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
7127         vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
7128         vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
7129         vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
7130
7131 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7132
7133         * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
7134         TYPES_TST): Define.
7135         (aarch64_fold_builtin): Update pattern for cmtst.
7136
7137         * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
7138         Declare.
7139
7140         * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
7141
7142         * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
7143         Switch operands, separate out more cases, refactor.
7144
7145         (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
7146
7147         * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
7148         argument; rename old version to...
7149         (aarch64_const_vec_all_same_in_range_p): ...this.
7150         (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
7151
7152         * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
7153
7154 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7155
7156         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
7157         Remove qualifier_const_pointer, update comment.
7158
7159 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7160
7161         * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
7162
7163 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7164
7165         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
7166         varargs with pointer parameter.
7167         (aarch64_simd_expand_builtin): pass pointer into previous.
7168
7169 2014-09-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7170
7171         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
7172         alus_ext.
7173
7174 2014-09-05  Alan Lawrence  <alan.lawrence@arm.com>
7175
7176         * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
7177         * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
7178         * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
7179         Replace temporary asm with call to builtin.
7180         (vrbit_p8, vrbitq_p8): New functions.
7181
7182 2014-09-05  Richard Biener  <rguenther@suse.de>
7183
7184         * cfgloop.c (mark_loop_for_removal): New function.
7185         * cfgloop.h (mark_loop_for_removal): Declare.
7186         * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
7187         (merge_blocks): Likewise.
7188         (duplicate_block): Likewise.
7189         * except.c (sjlj_emit_dispatch_table): Likewise.
7190         * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
7191         * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
7192         (thread_through_loop_header): Likewise.
7193
7194 2014-09-05  Richard Biener  <rguenther@suse.de>
7195
7196         PR middle-end/63148
7197         * fold-const.c (try_move_mult_to_index): Remove.
7198         (fold_binary_loc): Do not call it.
7199         * tree-data-ref.c (dr_analyze_indices): Strip conversions
7200         from the base object again.
7201
7202 2014-09-05  James Greenhalgh  <james.greenhalgh@arm.com>
7203
7204         * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
7205         DImode.
7206
7207 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7208
7209         PR target/55701
7210         * config/arm/arm.md (setmem): New pattern.
7211         * config/arm/arm-protos.h (struct tune_params): New fields.
7212         (arm_gen_setmem): New prototype.
7213         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
7214         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
7215         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
7216         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
7217         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
7218         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
7219         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
7220         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
7221         (arm_const_inline_cost): New function.
7222         (arm_block_set_max_insns): New function.
7223         (arm_block_set_non_vect_profit_p): New function.
7224         (arm_block_set_vect_profit_p): New function.
7225         (arm_block_set_unaligned_vect): New function.
7226         (arm_block_set_aligned_vect): New function.
7227         (arm_block_set_unaligned_non_vect): New function.
7228         (arm_block_set_aligned_non_vect): New function.
7229         (arm_block_set_vect, arm_gen_setmem): New functions.
7230
7231 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7232
7233         * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
7234
7235 2014-09-05  Bin Cheng  <bin.cheng@arm.com>
7236
7237         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
7238
7239 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7240
7241         * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
7242         an rtx.
7243         * valtrack.h: Adjust.
7244
7245 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7246
7247         * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
7248         an rtx.
7249         (emit_jump_insn_before_noloc): Likewise.
7250         (emit_call_insn_before_noloc): Likewise.
7251         (emit_label_before): Likewise.
7252         (emit_label_after): Likewise.
7253         (emit_insn_before_setloc): Likewise.
7254         (emit_jump_insn_before_setloc): Likewise.
7255         (emit_call_insn_before_setloc): Likewise.
7256         (emit_call_insn_before): Likewise.
7257         * rtl.h: Adjust.
7258
7259 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7260
7261         * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
7262         rtx_insn *, eliminating a checked cast.
7263
7264 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7265
7266         * rtl.h (modified_between_p): Strengthen params 2 and 3 from
7267         const_rtx to const rtx_insn *.
7268         * rtlanal.c (modified_between_p): Likewise, eliminating a checked
7269         cast.
7270
7271 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7272
7273         * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
7274         fixup_args_size_notes.
7275         * expr.c (fixup_args_size_notes): Strengthen first two params from
7276         rtx to rtx_insn *, eliminating a checked cast.
7277         * rtl.h (fixup_args_size_notes): Strengthen first two params from
7278         rtx to rtx_insn *.
7279
7280 2014-09-05  David Malcolm  <dmalcolm@redhat.com>
7281
7282         * haifa-sched.c (get_ready_element): Strengthen return type from
7283         rtx to rtx_insn *.
7284         * sched-int.h (get_ready_element): Likewise.
7285
7286 2014-09-04  Segher Boessenkool  <segher@kernel.crashing.org>
7287
7288         PR target/63165
7289         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
7290         indexed_or_indirect_operand instead of memory_operand.
7291         (floatsi<mode>2_lfiwzx_mem): Ditto.
7292
7293 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7294
7295         * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
7296         config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
7297         ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
7298
7299 2014-09-04  Trevor Saunders  <tsaunders@mozilla.com>
7300
7301         * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
7302         rtx.
7303         (get_last_nonnote_insn): Likewise.
7304         (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
7305         * resource.c (find_basic_block): Likewise.
7306         * rtl.h: Adjust.
7307         * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
7308         const_rtx.
7309
7310 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7311
7312         * genattr.c (main): Within the prototype of insn_latency written
7313         out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
7314         * genautomata.c (output_internal_maximal_insn_latency_func):
7315         Within the implementation of insn_latency written out to
7316         insn-automata.c, strengthen both params from rtx to rtx_insn *,
7317         eliminating a pair of checked casts.
7318
7319 2014-09-04  David Malcolm  <dmalcolm@redhat.com>
7320
7321         * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
7322         rtx_insn *.
7323
7324         * rtl.h (eh_returnjump_p): Likewise.
7325
7326 2014-09-04  Aldy Hernandez  <aldyh@redhat.com>
7327
7328         * Makefile.in (TAGS): Handle constructs in timevar.def.
7329
7330 2014-09-04  Guozhi Wei  <carrot@google.com>
7331
7332         PR target/62040
7333         * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
7334         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
7335         it into two patterns.
7336         (move_lo_quad_internal_be_<mode>): Likewise.
7337
7338 2014-09-04  Manuel López-Ibáñez  <manu@gcc.gnu.org>
7339
7340         * doc/options.texi: Document that Var and Init are required if CPP
7341         is given.
7342         * optc-gen.awk: Require Var and Init if CPP is given.
7343         * common.opt (Wpedantic): Use Init.
7344
7345 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7346
7347         * config/rs6000/rs6000.c (special_handling_values): Add
7348         SH_EXTRACT.
7349         (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
7350         wrapped in a VEC_DUPLICATE, representing an extract.  Mark these
7351         as swappable with special handling SH_EXTRACT.  Remove
7352         UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
7353         optimization.
7354         (adjust_extract): New function.
7355         (handle_special_swappables): Add default to case statement; add
7356         case for SH_EXTRACT that calls adjust_extract.
7357         (dump_swap_insn_table): Handle SH_EXTRACT.
7358
7359 2014-09-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7360
7361         * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
7362         selection of 0th memory doubleword, regardless of endianness.
7363
7364 2014-09-04  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7365
7366         * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
7367
7368 2014-09-04  Alan Modra  <amodra@gmail.com>
7369
7370         PR debug/60655
7371         * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
7372         can't be output.
7373
7374 2014-09-03  Matthew Fortune  <matthew.fortune@imgtec.com>
7375
7376         * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
7377         * targhooks.c (default_dwarf_frame_reg_mode): New function.
7378         * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
7379         * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
7380         * doc/tm.texi: Regenerate.
7381         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
7382         selection logic to default_dwarf_frame_reg_mode.
7383
7384 2014-09-03  Marek Polacek  <polacek@redhat.com>
7385
7386         * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
7387         by -Wall.
7388
7389 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7390
7391         * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
7392         the automodified register.
7393
7394 2014-09-03  Richard Sandiford  <richard.sandiford@arm.com>
7395
7396         * output.h (get_some_local_dynamic_name): Declare.
7397         * final.c (some_local_dynamic_name): New variable.
7398         (get_some_local_dynamic_name): New function.
7399         (final_end_function): Clear some_local_dynamic_name.
7400         * config/alpha/alpha.c (machine_function): Remove some_ld_name.
7401         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7402         (print_operand): Report an error if '%&' is used inappropriately.
7403         * config/i386/i386.c (get_some_local_dynamic_name): Delete.
7404         (get_some_local_dynamic_name_1): Delete.
7405         * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
7406         (rs6000_get_some_local_dynamic_name): Delete.
7407         (rs6000_get_some_local_dynamic_name_1): Delete.
7408         (print_operand): Report an error if '%&' is used inappropriately.
7409         * config/s390/s390.c (machine_function): Remove some_ld_name.
7410         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7411         (print_operand): Assert that get_some_local_dynamic_name is nonnull.
7412         * config/sparc/sparc.c: Include rtl-iter.h.
7413         (machine_function): Remove some_ld_name.
7414         (sparc_print_operand): Report an error if '%&' is used inappropriately.
7415         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
7416
7417 2014-09-03  Richard Henderson  <rth@redhat.com>
7418
7419         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
7420         (aarch64_popwb_pair_reg): Remove.
7421         (aarch64_set_frame_expr): Remove.
7422         (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
7423         the restore ops performed by the insns generated.
7424         (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
7425         insn.  Perform the calls_eh_return addition later; do not attempt to
7426         preserve the CFA in that case.  Don't use aarch64_set_frame_expr.
7427         (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
7428         special markup at all.  Load cfun->machine->frame.hard_fp_offset
7429         into a local variable.
7430         (aarch64_frame_pointer_required): Don't check calls_alloca.
7431
7432 2014-09-03  Richard Biener  <rguenther@suse.de>
7433
7434         * opts.c (default_options_optimization): Adjust
7435         max-combine-insns to 2 for -Og.
7436
7437 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7438
7439         PR ipa/62015
7440         * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
7441         pass-trough jump functions correctly.
7442
7443 2014-09-03  Martin Jambor  <mjambor@suse.cz>
7444
7445         PR ipa/61986
7446         * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
7447         created replacements in ascending order of offsets.
7448         (known_aggs_to_agg_replacement_list): Likewise.
7449
7450 2014-09-03  Martin Liska  <mliska@suse.cz>
7451
7452         * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
7453         is set to set uninitialized value for vnresult.
7454
7455 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7456
7457         * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
7458         for TARGET_MUST_PASS_IN_STACK.
7459
7460 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7461
7462         * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
7463         for TARGET_ARG_PARTIAL_BYTES.
7464
7465 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7466
7467         * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
7468         instructions for varargs implementation.
7469         (nds32_expand_epilogue): Emit stack adjustment instructions for
7470         varargs implementation.
7471
7472 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7473
7474         * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
7475         optimization detection.
7476
7477 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7478
7479         * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
7480         arguments.
7481         (nds32_function_arg_advance): Deal with nameless arguments.
7482         * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
7483         (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
7484         (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
7485
7486 2014-09-03  Richard Biener  <rguenther@suse.de>
7487
7488         * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
7489         (struct bb_bitmap_sets): Remove deferred member.
7490         (BB_DEFERRED): Remove.
7491         (defer_or_phi_translate_block): Remove.
7492         (compute_antic_aux): Remove deferring of blocks, assert
7493         proper iteration order.
7494         (compute_antic): Do not set BB_DEFERRED.
7495         (eliminate): Allocate el_avail of proper size initially.
7496
7497 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7498
7499         * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
7500         according to the value of crtl->args.pretend_args_size.
7501
7502 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7503
7504         * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
7505         varargs information.
7506
7507 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7508
7509         * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
7510         implementation for TARGET_SETUP_INCOMING_VARARGS.
7511         (nds32_strict_argument_naming): Refine comment.
7512         * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
7513         Define for future implementation.
7514
7515 2014-09-03  Ilya Tocar  <ilya.tocar@intel.com>
7516
7517         * config/i386/adxintrin.h (_subborrow_u32): New.
7518         (_addcarry_u32): Ditto.
7519         (_subborrow_u64): Ditto.
7520         (_addcarry_u64): Ditto.
7521         * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
7522         IX86_BUILTIN_SBB64.
7523         (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
7524         __builtin_ia32_sbb_u64
7525
7526 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7527
7528         * config/nds32/nds32.c (nds32_function_arg): Define and rename some
7529         GPR-specific stuff.
7530         (nds32_function_arg_advance): Likewise.
7531         (nds32_init_cumulative_args): Likewise.
7532         * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
7533         (NDS32_FIRST_GPR_REGNUM): Define.
7534         (NDS32_LAST_GPR_REGNUM): Define.
7535         (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
7536         (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7537         (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
7538         (machine_function): Use GRP-specific stuff.
7539
7540 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7541
7542         * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
7543         (nds32_expand_epilogue): Likewise.
7544         (nds32_expand_prologue_v3push): Likewise.
7545         (nds32_expand_epilogue_v3pop): Likewise.
7546
7547 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7548
7549         * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
7550         v3push/v3pop for variadic function.
7551         * config/nds32/nds32.md (prologue, epilogue): Likewise.
7552
7553 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7554
7555         * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
7556         Check rtx for varargs implementation.
7557         (nds32_output_stack_pop): Likewise.
7558         * config/nds32/nds32-protos.h: Have a rtx argument for
7559         nds32_output_stack_push and nds32_output_stack_pop.
7560         * config/nds32/nds32.md: Likewise.
7561
7562 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7563
7564         * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
7565         to check if FUNC is an interrupt service routine.
7566         * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
7567
7568 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7569
7570         * config/nds32/nds32.h (machine_function): Add some fields for variadic
7571         arguments implementation.
7572
7573 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7574
7575         * config/nds32/nds32-predicates.c
7576         (nds32_valid_stack_push_pop): Rename to ...
7577         (nds32_valid_stack_push_pop_p): ... this.
7578         * config/nds32/nds32-protos.h: Likewise.
7579         * config/nds32/predicates.md: Likewise.
7580
7581 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7582
7583         * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
7584         (nds32_emit_stack_v3push): ... this.
7585         (nds32_gen_stack_v3pop): Rename to ...
7586         (nds32_emit_stack_v3pop): ... this and consider CFA restore
7587         information.
7588
7589 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7590
7591         * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
7592         (nds32_emit_stack_push_multiple): ... this.
7593         (nds32_gen_stack_pop_multiple): Rename to ...
7594         (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
7595         information.
7596
7597 2014-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7598
7599         PR target/61078
7600         * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
7601         and add a second splitter to handle the remaining cases.
7602
7603 2014-09-03  Chung-Ju Wu  <jasonwucj@gmail.com>
7604
7605         * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
7606
7607 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7608
7609         * cfgexpand.c (label_rtx_for_bb): Change type to
7610         hash_map<basic_block, rtx_code_label *> *.
7611         (expand_gimple_basic_block): Adjust.
7612         (pass_expand::execute): Likewise.
7613
7614 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7615
7616         * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
7617         config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
7618         config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
7619         config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
7620         config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
7621         config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
7622         stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
7623         of rtx.
7624
7625 2014-09-02  Trevor Saunders  <tsaunders@mozilla.com>
7626
7627         * alloc-pool.c: Include coretypes.h.
7628         * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
7629         function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
7630         hash_set instead of htab.
7631         * ggc-page.c (in_gc): New variable.
7632         (ggc_free): Do nothing if a collection is taking place.
7633         (ggc_collect): Set in_gc appropriately.
7634         * ggc.h (gt_ggc_mx(const char *)): New function.
7635         (gt_pch_nx(const char *)): Likewise.
7636         (gt_ggc_mx(int)): Likewise.
7637         (gt_pch_nx(int)): Likewise.
7638         * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
7639         (hash_map::hash_entry::pch_nx): Likewise.
7640         (hash_map::hash_entry::pch_nx_helper): Likewise.
7641 (hash_map::hash_map): Adjust.
7642 (hash_map::create_ggc): New function.
7643 (gt_ggc_mx): Likewise.
7644 (gt_pch_nx): Likewise.
7645         * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
7646 (default_hashset_traits::pch_nx): Likewise.
7647 (hash_set::hash_entry::ggc_mx): Likewise.
7648 (hash_set::hash_entry::pch_nx): Likewise.
7649 (hash_set::hash_entry::pch_nx_helper): Likewise.
7650 (hash_set::hash_set): Adjust.
7651 (hash_set::create_ggc): New function.
7652 (hash_set::elements): Likewise.
7653 (gt_ggc_mx): Likewise.
7654 (gt_pch_nx): Likewise.
7655         * hash-table.h (hash_table::hash_table): Adjust.
7656 (hash_table::m_ggc): New member.
7657         (hash_table::~hash_table): Adjust.
7658         (hash_table::expand): Likewise.
7659         (hash_table::empty): Likewise.
7660 (gt_ggc_mx): New function.
7661         (hashtab_entry_note_pointers): Likewise.
7662 (gt_pch_nx): Likewise.
7663
7664 2014-09-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7665
7666         * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE):  New
7667         built-in definition.
7668         (XVCVUXDDP_SCALE): Likewise.
7669         (XVCVDPSXDS_SCALE): Likewise.
7670         (XVCVDPUXDS_SCALE): Likewise.
7671         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):  Add
7672         entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
7673         VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
7674         VSX_BUILTIN_XVCVDPUXDS_SCALE.
7675         * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
7676         prototype.
7677         * config/rs6000/rs6000.c (real.h): New include.
7678         (rs6000_scale_v2df): New function.
7679         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
7680         (UNSPEC_VSX_XVCVUXDDP): Likewise.
7681         (UNSPEC_VSX_XVCVDPSXDS): Likewise.
7682         (UNSPEC_VSX_XVCVDPUXDS): Likewise.
7683         (vsx_xvcvsxddp_scale): New define_expand.
7684         (vsx_xvcvsxddp): New define_insn.
7685         (vsx_xvcvuxddp_scale): New define_expand.
7686         (vsx_xvcvuxddp): New define_insn.
7687         (vsx_xvcvdpsxds_scale): New define_expand.
7688         (vsx_xvcvdpsxds): New define_insn.
7689         (vsx_xvcvdpuxds_scale): New define_expand.
7690         (vsx_xvcvdpuxds): New define_insn.
7691         * doc/extend.texi (vec_ctf): Add new prototypes.
7692         (vec_cts): Likewise.
7693         (vec_ctu): Likewise.
7694         (vec_splat): Likewise.
7695         (vec_div): Likewise.
7696         (vec_mul): Likewise.
7697
7698 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7699
7700         PR target/62275
7701         * config/arm/neon.md
7702         (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
7703         <v_cmp_result>): New pattern.
7704         * config/arm/iterators.md (NEON_VCVT): New int iterator.
7705         * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
7706         vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
7707         vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
7708         * config/arm/arm.c (arm_builtin_vectorized_function): Handle
7709         BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
7710
7711 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7712
7713         PR target/62275
7714         * config/arm/iterators.md (FIXUORS): New code iterator.
7715         (VCVT): New int iterator.
7716         (su_optab): New code attribute.
7717         (su): Likewise.
7718         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
7719
7720 2014-09-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7721
7722         * config/aarch64/predicates.md (aarch64_comparison_operation):
7723         New special predicate.
7724         * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
7725         aarch64_comparison_operation instead of matching an operator.
7726         Update operand numbers.
7727         (csinc3<mode>_insn): Likewise.
7728         (*csinv3<mode>_insn): Likewise.
7729         (*csneg3<mode>_insn): Likewise.
7730         (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
7731         * config/aarch64/aarch64.c (aarch64_get_condition_code):
7732         Return -1 instead of aborting on invalid condition codes.
7733         (aarch64_print_operand): Update aarch64_get_condition_code callsites
7734         to assert that the returned condition code is valid.
7735         * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
7736
7737 2014-09-02  Aldy Hernandez  <aldyh@redhat.com>
7738
7739         * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
7740         tree.def, and gimple.def
7741
7742 2014-09-02  Jakub Jelinek  <jakub@redhat.com>
7743             Balaji V. Iyer  <balaji.v.iyer@intel.com>
7744             Igor Zamyatin  <igor.zamyatin@intel.com>
7745
7746         * cilk-builtins.def (__cilkrts_cilk_for_32): New.
7747         (__cilkrts_cilk_for_64): Likewise.
7748         * cilk-common.c (declare_cilk_for_builtin): New function.
7749         (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
7750         __cilkrts_cilk_for_64 bultins.
7751         * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
7752         CILK_TI_F_LOOP_64.
7753         (cilk_for_32_fndecl): New define.
7754         (cilk_for_64_fndecl): Likewise.
7755         * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
7756         GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
7757         * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
7758         GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
7759         GF_OMP_FOR_COMBINED_INTO.
7760         * gimplify.c (gimplify_scan_omp_clauses): Added
7761         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7762         (gimplify_adjust_omp_clauses): Ditto.
7763         (gimplify_omp_for): Added CILK_FOR case.
7764         (gimplify_expr): Ditto.
7765         * omp-low.c: Include cilk.h.
7766         (extract_omp_for_data): Set appropriate kind for
7767         GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
7768         (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
7769         (create_omp_child_function_name): Added second argument to handle
7770         cilk_for case.
7771         (cilk_for_check_loop_diff_type): New function.
7772         (expand_cilk_for_call): Likewise.
7773         (expand_cilk_for): Likewise.
7774         (create_omp_child_function): Set cilk_for_count; handle the cases when
7775         it is true; call create_omp_child_function_name with second argument.
7776         (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
7777         (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
7778         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
7779         * tree-nested.c (convert_nonlocal_omp_clauses): Added
7780         OMP_CLAUSE__CILK_FOR_COUNT_ case.
7781         (convert_local_omp_clauses): Ditto.
7782         * tree-pretty-print.c (dump_omp_clause): Added
7783         OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
7784         (dump_generic_node): Added CILK_FOR case.
7785         * tree.c (omp_clause_num_ops): New element
7786         OMP_CLAUSE__CILK_FOR_COUNT_ (1).
7787         (omp_clause_code_name): New element _Cilk_for_count_.
7788         (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
7789         * tree.def: Add tree code for CILK_FOR.
7790
7791 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7792
7793         * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
7794         (ppc403-compare): Add "exts with dot" case.
7795         * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
7796         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
7797         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
7798         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
7799         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
7800         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
7801         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
7802         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
7803         cell-cmp-microcoded): Similarly.
7804         * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
7805         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
7806         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
7807         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
7808         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
7809         * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
7810         * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
7811         * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
7812         (power6-compare): Add "exts with dot" case.
7813         * config/rs6000/power7.md (power7-integer, power7-compare): As before.
7814         * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
7815         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
7816
7817         * config/rs6000/predicates.md (lwa_operand): Don't allow memory
7818         if avoiding Cell microcode.
7819         * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
7820         (is_cracked_insn): Ditto.
7821         (insn_must_be_first_in_group): Ditto.
7822         * config/rs6000/rs6000.md (dot): Adjust comment.
7823         (cell_micro): Handle exts+dot.
7824         (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
7825         *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
7826         extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
7827         (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
7828         extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
7829         *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
7830         *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
7831
7832 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7833
7834         * config/rs6000/rs6000.md (QHSI): Delete.
7835         (EXTQI, EXTHI, EXTSI): New mode iterators.
7836         (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
7837         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
7838         *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
7839         9 anonymous instructions, and 8 splitters): Delete.
7840         (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
7841         *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
7842         *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
7843         zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
7844         *zero_extendsi<mode>2_dot2): New.
7845
7846 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7847
7848         * config/rs6000/rs6000.md (any_extend): New code iterator.
7849         (u, su): New code attributes.
7850         (dmode, DMODE): New mode attributes.
7851         (<su>mul<mode>3_highpart): New.
7852         (*<su>mul<mode>3_highpart): New.
7853         (<su>mulsi3_highpart_le): New.
7854         (<su>muldi3_highpart_le): New.
7855         (<su>mulsi3_highpart_64): New.
7856         (<u>mul<mode><dmode>3): New.
7857         (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
7858         splitters): Delete.
7859         (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
7860         splitters): Delete.
7861
7862 2014-09-02  Segher Boessenkool  <segher@kernel.crashing.org>
7863
7864         * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
7865         *mulsi3_internal2, and two splitters): Delete.
7866         (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
7867         Delete.
7868         (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
7869
7870 2014-09-02  Richard Biener  <rguenther@suse.de>
7871
7872         PR tree-optimization/62695
7873         * tree-ssa-structalias.c (find_func_clobbers): Add missing
7874         vector truncate.
7875
7876 2014-09-01  Oleg Endo  <olegendo@gcc.gnu.org>
7877
7878         PR target/62312
7879         * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
7880
7881 2014-09-01  Andi Kleen  <ak@linux.intel.com>
7882
7883         * file-find.c (add_prefix_begin): Add.
7884         (do_add_prefix): Rename from add_prefix with first argument.
7885         (add_prefix): Add new wrapper.
7886         * file-find.h (add_prefix_begin): Add.
7887         * gcc-ar.c (main): Support -B option.
7888
7889 2014-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7890
7891         * genemit.c: Include dumpfile.h.
7892         (gen_split): Print name of splitter function to dump file.
7893
7894 2014-09-01  Richard Biener  <rguenther@suse.de>
7895
7896         * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
7897         Use stack auto_vecs for constraint expressions.
7898         (find_func_aliases_for_call): Likewise.
7899         (find_func_aliases): Likewise.
7900         (find_func_clobbers): Likewise.
7901
7902 2014-09-01  Richard Biener  <rguenther@suse.de>
7903
7904         * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
7905         operands vector in most cases.  Remove redundant code.
7906
7907 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7908
7909         * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
7910         $WIND_BASE instead of designating a harcoded arbitrary home dir.
7911         (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
7912
7913 2014-09-01  Richard Biener  <rguenther@suse.de>
7914
7915         * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
7916         copy_reference_ops_from_call, vn_nary_op_compute_hash,
7917         vn_reference_compute_hash, vn_reference_insert): Remove.
7918         (vn_reference_lookup_call): New function.
7919         * tree-ssa-sccvn.c (vn_reference_compute_hash,
7920         copy_reference_ops_from_ref, copy_reference_ops_from_call,
7921         vn_reference_insert, vn_nary_op_compute_hash): Make static.
7922         (create_reference_ops_from_call): Remove.
7923         (vn_reference_lookup_3): Properly update shared_lookup_references.
7924         (vn_reference_lookup_pieces): Assert that we updated
7925         shared_lookup_references properly.
7926         (vn_reference_lookup): Likewise.
7927         (vn_reference_lookup_call): New function.
7928         (visit_reference_op_call): Use it.  Avoid re-building the
7929         reference ops.
7930         (visit_reference_op_load): Remove redundant lookup.
7931         (visit_reference_op_store): Perform special tail-merging work
7932         only when possibly doing tail-merging.
7933         (visit_use): Likewise.
7934         * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
7935
7936 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7937
7938         PR target/62025
7939         * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
7940         returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
7941         (find_inc): Revert 2014-08-13 change.
7942
7943 2014-09-01  Marek Polacek  <polacek@redhat.com>
7944
7945         PR middle-end/61903
7946         * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
7947         Change the type of V to unsigned HOST_WIDE_INT.
7948
7949 2014-09-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7950
7951         * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
7952         the size of byte markers.
7953         (do_shift_rotate): Fix confusion between host, target and marker byte
7954         size.
7955         (verify_symbolic_number_p): Likewise.
7956         (find_bswap_or_nop_1): Likewise.
7957         (find_bswap_or_nop): Likewise.
7958
7959 2014-09-01  Olivier Hainque  <hainque@adacore.com>
7960
7961         * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
7962         INSTALL_SCRIPT and INSTALL_PROGRAM as well.
7963
7964 2014-09-01  Jakub Jelinek  <jakub@redhat.com>
7965
7966         * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
7967         * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
7968         (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
7969
7970 2014-09-01  Yury Gribov  <y.gribov@samsung.com>
7971
7972         PR sanitizer/61897
7973         PR sanitizer/62140
7974         * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
7975         (build_check_stmt): Likewise.
7976         (instrument_strlen_call): Likewise.
7977         (asan_expand_check_ifn): Likewise and fix types.
7978         (maybe_cast_to_ptrmode): New function.
7979
7980 2014-09-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
7981
7982         * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
7983
7984 2014-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
7985
7986         * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
7987
7988 2014-08-30  John David Anglin  <danglin@gcc.gnu.org>
7989
7990         * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
7991         prefix to function labels when generating fast indirect calls.
7992
7993 2014-08-30  David Malcolm  <dmalcolm@redhat.com>
7994
7995         PR bootstrap/62304
7996
7997         * gcc/reorg.c (skip_consecutive_labels): Convert return type and
7998         param back from rtx_insn * to rtx.  Rename param from "label" to
7999         "label_or_return", reintroducing "label" as an rtx_insn * after
8000         we've ensured it's not a RETURN.
8001         (first_active_target_insn): Likewise for return type and param;
8002         add a checked cast to rtx_insn * once we've ensured "insn" is not
8003         a RETURN.
8004         (steal_delay_list_from_target): Convert param "pnew_thread" back
8005         from rtx_insn ** to rtx *.  Replace use of JUMP_LABEL_AS_INSN
8006         with JUMP_LABEL.
8007         (own_thread_p): Convert param "thread" back from an rtx_insn * to
8008         an rtx.  Introduce local rtx_insn * "thread_insn" with a checked
8009         cast once we've established we're not dealing with a RETURN,
8010         renaming subsequent uses of "thread" to "thread_insn".
8011         (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
8012         to JUMP_LABEL.
8013         (follow_jumps): Convert return type and param "label" from
8014         rtx_insn * back to rtx.  Move initialization of "value" to after
8015         the handling for ANY_RETURN_P, adding a checked cast there to
8016         rtx_insn *.  Convert local rtx_insn * "this_label" to an rtx and
8017         rename to "this_label_or_return", reintroducing "this_label" as
8018         an rtx_insn * once we've handled the case where it could be an
8019         ANY_RETURN_P.
8020         (fill_slots_from_thread): Rename param "thread" to
8021         "thread_or_return", converting from an rtx_insn * back to an rtx.
8022         Reintroduce name "thread" as an rtx_insn * local with a checked
8023         cast once we've handled the case of it being an ANY_RETURN_P.
8024         Convert local "new_thread" from an rtx_insn * back to an rtx.
8025         Add a checked cast when assigning to "trial" from "new_thread".
8026         Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL.  Add a
8027         checked cast to rtx_insn * from "new_thread" when invoking
8028         get_label_before.
8029         (fill_eager_delay_slots): Convert locals "target_label",
8030         "insn_at_target" from rtx_insn * back to rtx.
8031         Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
8032         (relax_delay_slots): Convert locals "trial", "target_label" from
8033         rtx_insn * back to rtx.  Convert uses of JUMP_LABEL_AS_INSN back
8034         to JUMP_LABEL.  Add a checked cast to rtx_insn * on "trial" when
8035         invoking update_block.
8036         (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
8037         JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
8038
8039         * resource.h (mark_target_live_regs): Undo erroneous conversion
8040         of second param of r214693, converting it back from rtx_insn * to
8041         rtx, since it could be a RETURN.
8042
8043         * resource.c (find_dead_or_set_registers): Similarly, convert
8044         param "jump_target" back from an rtx_insn ** to an rtx *, as we
8045         could be writing back a RETURN.  Rename local rtx_insn * "next" to
8046         "next_insn", and introduce "lab_or_return" as a local rtx,
8047         handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
8048         (mark_target_live_regs): Undo erroneous conversion
8049         of second param of r214693, converting it back from rtx_insn * to
8050         rtx, since it could be a RETURN.  Rename it from "target" to
8051         "target_maybe_return", reintroducing the name "target" as a local
8052         rtx_insn * with a checked cast, after we've handled the case of
8053         ANY_RETURN_P.
8054
8055 2014-08-29  DJ Delorie  <dj@redhat.com>
8056
8057         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
8058         pointer size up to a power of two.
8059         * defaults.h (DWARF2_ADDR_SIZE): Round up.
8060         (POINTER_SIZE_UNITS): New, rounded up value.
8061         * dwarf2asm.c (size_of_encoded_value): Use it.
8062         (dw2_output_indirect_constant_1): Likewise.
8063         * expmed.c (init_expmed_one_conv): We now know the sizes of
8064         partial int modes.
8065         * loop-iv.c (iv_number_of_iterations): Use precision, not size.
8066         * optabs.c (expand_float): Use precision, not size.
8067         (expand_fix): Likewise.
8068         * simplify-rtx (simplify_unary_operation_1): Likewise.
8069         * tree-dfa.c (get_ref_base_and_extent): Likewise.
8070         * varasm.c (assemble_addr_to_section): Round up pointer sizes.
8071         (default_assemble_integer) Likewise.
8072         (dump_tm_clone_pairs): Likewise.
8073         * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
8074         * var-tracking.c (adjust_mems): Allow partial-int modes also.
8075         (prepare_call_arguments): Likewise.
8076         * stor-layout.c (finalize_type_size): Preserve precision.
8077         (layout_type): Use precision, not size.
8078
8079         * expr.c (convert_move): If the target has an explicit converter,
8080         use it.
8081
8082 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8083
8084         * gdbinit.in: Skip various inline functions in rtl.h when
8085         stepping.
8086
8087 2014-08-29  Richard Sandiford  <richard.sandiford@arm.com>
8088
8089         PR bootstrap/62301
8090         * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
8091
8092 2014-08-29  Richard Biener  <rguenther@suse.de>
8093
8094         PR tree-optimization/62291
8095         * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
8096         exactly the vector size needed and use quick_push.
8097         (phi_translate_1): Adjust comment.
8098         (valid_in_sets): Remove block argument and remove pointless
8099         checking of NAMEs.
8100         (dependent_clean): Adjust for removal of block argument.
8101         (clean): Likewise.
8102         (compute_antic_aux): Likewise.
8103         (compute_partial_antic_aux): Likewise.
8104
8105 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8106             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8107             Anna Tikhonova  <anna.tikhonova@intel.com>
8108             Ilya Tocar  <ilya.tocar@intel.com>
8109             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8110             Ilya Verbin  <ilya.verbin@intel.com>
8111             Kirill Yukhin  <kirill.yukhin@intel.com>
8112             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8113
8114         * config/i386/sse.md
8115         (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
8116         (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
8117         (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
8118         (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
8119
8120 2014-08-29  Alexander Ivchenko  <alexander.ivchenko@intel.com>
8121             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
8122             Anna Tikhonova  <anna.tikhonova@intel.com>
8123             Ilya Tocar  <ilya.tocar@intel.com>
8124             Andrey Turetskiy  <andrey.turetskiy@intel.com>
8125             Ilya Verbin  <ilya.verbin@intel.com>
8126             Kirill Yukhin  <kirill.yukhin@intel.com>
8127             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
8128
8129         * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
8130         * config/i386/sse.md
8131         (define_mode_iterator VI4_128_8_256): New.
8132         (define_mode_iterator VI2_128_4_256): Ditto.
8133         (define_mode_iterator PMOV_DST_MODE): Rename into
8134         (define_mode_iterator PMOV_DST_MODE_1): this.
8135         (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
8136         Use PMOV_DST_MODE_1 mode iterator.
8137         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8138         Ditto.
8139         (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
8140         Ditto.
8141         (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
8142         (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
8143         (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
8144         (define_mode_iterator PMOV_DST_MODE_2): New.
8145         (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
8146         (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
8147         (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
8148         Ditto.
8149         (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
8150         (define_mode_attr pmov_dst_3): Ditto.
8151         (define_mode_attr pmov_dst_zeroed_3): Ditto.
8152         (define_mode_attr pmov_suff_3): Ditto.
8153         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
8154         (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
8155         (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
8156         (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
8157         (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
8158         (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
8159         (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
8160         (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
8161         (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
8162         (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
8163         (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
8164         (define_mode_attr pmov_dst_4): Ditto.
8165         (define_mode_attr pmov_dst_zeroed_4): Ditto.
8166         (define_mode_attr pmov_suff_4): Ditto.
8167         (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
8168         (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
8169         (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
8170         (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
8171         (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
8172         (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
8173         (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
8174         (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
8175         (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
8176         (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
8177         (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
8178
8179 2014-08-29  Richard Biener  <rguenther@suse.de>
8180
8181         * tree-cfg.c (verify_gimple_assign_unary): Do not allow
8182         NON_LVALUE_EXPR in gimple.
8183
8184 2014-08-29  Richard Biener  <rguenther@suse.de>
8185
8186         PR middle-end/62292
8187         * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
8188         from previous refactoring.
8189         (gimple_fold_builtin_strncpy): Likewise.
8190
8191 2014-08-29  David Malcolm  <dmalcolm@redhat.com>
8192
8193         PR bootstrap/62300
8194         * function.c (assign_parm_setup_reg): Remove erroneous checked
8195         cast to rtx_insn * on result of gen_extend_insn in favor of
8196         introducing a new local rtx "pat".
8197
8198 2014-08-29  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
8199
8200         * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
8201         to silence warning.
8202         * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
8203
8204 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8205
8206         * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
8207         (next_insn): Likewise.
8208         * emit-rtl.c (next_insn): Likewise.
8209         (previous_insn): Likewise.
8210         * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
8211         "insn" and "next" from rtx to rtx_insn *.
8212         * config/picochip/picochip.c (picochip_reorg): Likewise for locals
8213         "insn", "insn1", "vliw_start",  "prologue_end_note",
8214         "last_insn_in_packet".
8215
8216 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8217
8218         * shrink-wrap.h (active_insn_between): Strengthen both params from
8219         rtx to rtx_insn *.
8220         * function.c (active_insn_between): Likewise.
8221
8222 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8223
8224         * genattr.c (main): When writing out insn-attr.h, strengthen param
8225         of dfa_clear_single_insn_cache from rtx to rtx_insn *.
8226         * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
8227         writing out the definition of dfa_clear_single_insn_cache to the
8228         generated insn-automata.c
8229
8230 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8231
8232         * resource.h (clear_hashed_info_for_insn): Strengthen param from
8233         rtx to rtx_insn *.
8234         (incr_ticks_for_insn): Likewise.
8235         (init_resource_info): Likewise.
8236
8237         * resource.c (init_resource_info): Likewise.
8238         (clear_hashed_info_for_insn): Likewise.
8239         (incr_ticks_for_insn): Likewise.
8240
8241         * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
8242         rtx to rtx_insn *.
8243         (steal_delay_list_from_target): Use methods of "seq".
8244         (try_merge_delay_insns): Use methods of "merged_insns".
8245         (update_block): Strengthen param "insn" from rtx to rtx_insn *.
8246         (reorg_redirect_jump): Likewise for param "jump".
8247
8248 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8249
8250         * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
8251         rtx to rtx_insn *.
8252         * config/s390/s390.c (s390_split_branches): Eliminate top-level
8253         local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
8254         "set_insn".
8255         (s390_mainpool_finish): In three places, split out a local rtx
8256         "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
8257         "insn".  Strengthen local "pool_end" from rtx to rtx_code_label *
8258         and split another local rtx "insn" out into rtx "pat" and
8259         rtx_insn * "insn".
8260         * config/sh/sh.c (output_branchy_insn): Rather than working
8261         directly on operands[9], introduce local rtx_code_label *
8262         variables named "lab" in two places, working on them, and then
8263         assigning them to operands[9], so that the intervening operations
8264         are known by the type system to be on insns.
8265
8266 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8267
8268         * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
8269         const rtx_insn *.
8270
8271         * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
8272         in invocation of INSN_HAS_LOCATION.
8273
8274 2014-08-28  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8275
8276         * config/rs6000/altivec.h (vec_xl): New #define.
8277         (vec_xst): Likewise.
8278         * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
8279         (XXSPLTD_V2DI): Likewise.
8280         (DIV_V2DI): Likewise.
8281         (UDIV_V2DI): Likewise.
8282         (MUL_V2DI): Likewise.
8283         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8284         entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
8285         VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
8286         VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
8287         * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
8288         (UNSPEC_VSX_DIVSD): Likewise.
8289         (UNSPEC_VSX_DIVUD): Likewise.
8290         (UNSPEC_VSX_MULSD): Likewise.
8291         (vsx_mul_v2di): New insn-and-split.
8292         (vsx_div_v2di): Likewise.
8293         (vsx_udiv_v2di): Likewise.
8294         (vsx_xxspltd_<mode>): New insn.
8295
8296 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8297
8298         * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
8299         NEXT_INSN.
8300         (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
8301         (NEXT_INSN): Likewise.
8302         (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
8303         (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
8304         const rtx_insn *.
8305         (no_labels_between_p): Likewise for both params.
8306
8307         * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
8308         cast when using NEXT_INSN on operands[2].
8309         * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
8310         "insn" from rtx to rtx_insn *, adding a checked cast.
8311         (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
8312         rtx_insn *.
8313         * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
8314         for third param.
8315         (arc_text_label): Likewise for param "insn".
8316         * config/arc/arc.c (arc_expand_epilogue): Likewise for local
8317         "insn".
8318         (arc_ccfsm_record_condition): Likewise for param "jump".
8319         (arc_text_label): Likewise for local "label".
8320         * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
8321         Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
8322         a method for typesafety.  Add a checked cast.
8323         * config/arc/constraints.md (Clb): Add a checked cast when getting
8324         the CODE_LABEL from a LABEL_REF.
8325         * config/arm/arm.c (require_pic_register): Strengthen locals
8326         "seq", "insn" from rtx to rtx_insn *.
8327         (create_fix_barrier): Likewise for locals "selected", "next".
8328         (thumb1_reorg): Likewise for locals "prev", "insn".
8329         (arm_expand_prologue): Likewise for local "last".
8330         (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
8331         operands[0].
8332         (thumb2_output_casesi): Likewise for operands[2].
8333         * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
8334         strengthen local "insn" from rtx to rtx_insn *.
8335         * config/bfin/bfin.c (find_next_insn_start): Likewise for return
8336         type and param "insn".
8337         (find_prev_insn_start): Likewise.
8338         (hwloop_optimize): Likewise for locals "insn", "last_insn",
8339         "prev".
8340         (gen_one_bundle): Likewise for loal "t".
8341         (find_load): Likewise for param "insn".
8342         (workaround_speculation): Likewise for locals "insn", "next",
8343         "target", "next_tgt".
8344         * config/c6x/c6x.c (assign_reservations): Likewise for both params
8345         and for locals "insn", "within", "last".
8346         (count_unit_reqs): Likewise for params "head", "tail" and local
8347         "insn".
8348         (try_rename_operands): Likewise for params "head", "tail".
8349         (reshuffle_units): Likewise for locals "head", "tail", "insn".
8350         (struct c6x_sched_context): Likewise for fields
8351         "last_scheduled_insn", "last_scheduled_iter0".
8352         (init_sched_state): Replace NULL_RTX with NULL.
8353         (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
8354         to rtx_insn *.
8355         (undo_split_delayed_nonbranch): Likewise for param and for local
8356         "prev".
8357         (conditionalize_after_sched): Likewise for local "insn".
8358         (bb_earliest_end_cycle): Likewise.
8359         (filter_insns_above): Likewise for locals "insn", "next".
8360         (hwloop_optimize): Remove redundant checked cast.
8361         (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
8362         * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
8363         NULL_RTX with NULL.
8364         (cris_simple_epilogue): Likewise.
8365         (cris_expand_prologue): Likewise.
8366         (cris_expand_epilogue): Likewise.
8367         * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
8368         local "insn" from rtx to rtx_insn *.
8369         (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
8370         (struct frv_packet_group): Likewise for the elements within array
8371         fields "insns", "sorted", and for field "nop".
8372         (frv_packet): Likewise for the elements within array field
8373         "insns".
8374         (frv_add_insn_to_packet): Likewise for param "insn".
8375         (frv_insert_nop_in_packet): Likewise for param "insn" and local
8376         "last".
8377         (frv_for_each_packet): Likewise for locals "insn", "next_insn".
8378         (frv_sort_insn_group_1): Likewise for local "insn".
8379         (frv_optimize_membar_local): Likewise.
8380         (frv_align_label): Likewise for locals "x", "last", "barrier",
8381         "label".
8382         * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
8383         local.
8384         (ia64_sched_init): Likewise for local "insn".
8385         (scheduled_good_insn): Likewise for param "last".
8386         (struct _ia64_sched_context): Likewise for field
8387         "last_scheduled_insn".
8388         (ia64_init_sched_context): Replace NULL_RTX with NULL.
8389         (struct bundle_state): Likewise for field "insn".
8390         (issue_nops_and_insn): Likewise for param "insn".
8391         (get_next_important_insn): Likewise for return type and both
8392         params.
8393         (ia64_add_bundle_selector_before): Likewise for param "insn".
8394         (bundling): Likewise for params "prev_head_insn", "tail" and
8395         locals "insn", "next_insn", "b".  Eliminate top-level local rtx
8396         "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
8397         * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
8398         Strengthen final param from rtx to rtx_insn *.
8399         (iq2000_move_1word): Likewise for second param.
8400         * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
8401         param "cur_insn" and local "next_insn".
8402         (iq2000_move_1word): Likewise for param "insn".
8403         * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
8404         casts when using NEXT_INSN on operands[1].
8405         * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
8406         "insn" from rtx to rtx_insn *.
8407         * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
8408         "x", introducing local rtx_insn * "insn" for when working with the
8409         CODE_LABEL of the LABEL_REF.
8410         (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
8411         rtx_insn *.
8412         * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
8413         param.
8414         * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
8415         type.
8416         (conditionalize_block): Likewise for return type and param.
8417         (mcore_is_dead): Likewise for param "first" and local "insn".
8418         (emit_new_cond_insn): Likewise for return type.
8419         (conditionalize_block): Likewise for return type, param, and
8420         locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
8421         "newinsn".
8422         (conditionalize_optimization): Likewise for local "insn".
8423         * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
8424         using NEXT_INSN.
8425         * config/microblaze/microblaze.md: Add checked casts when using
8426         NEXT_INSN.
8427         * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
8428         rtx "insn" in favor of various more tightly-scoped rtx "insn" and
8429         and rtx_insn * "insn".
8430         * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
8431         checked cast when using NEXT_INSN on operands[2].
8432         * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
8433         local "insn" from rtx to rtx_insn *.
8434         * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
8435         Likewise.
8436         * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
8437         Add a checked cast when using NEXT_INSN on operands[1].
8438         * config/pa/pa-protos.h (pa_following_call): Strengthen param from
8439         rtx to rtx_insn *.
8440         (pa_output_cbranch): Likewise for final param.
8441         (pa_output_lbranch): Likewise for second param.
8442         (pa_output_bb): Likewise for third param.
8443         (pa_output_bvb): Likewise.
8444         (pa_output_dbra): Likewise for second param.
8445         (pa_output_movb): Likewise.
8446         (pa_output_parallel_movb): Likewise.
8447         (pa_output_parallel_addb): Likewise.
8448         (pa_output_millicode_call): Likewise for first param.
8449         (pa_output_mul_insn): Likewise for second param.
8450         (pa_output_div_insn): Likewise for third param.
8451         (pa_output_mod_insn): Likewise for second param.
8452         (pa_jump_in_call_delay): Likewise for param.
8453         * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
8454         (pa_output_div_insn): Likewise.
8455         (pa_output_mod_insn): Likewise.
8456         (pa_output_cbranch): Likewise.
8457         (pa_output_lbranch): Likewise.
8458         (pa_output_bb): Likewise.
8459         (pa_output_bvb): Likewise.
8460         (pa_output_dbra): Likewise.
8461         (pa_output_movb): Likewise.
8462         (pa_output_millicode_call): Likewise; use method of rtx_sequence *
8463         to simplify and for typesafety.
8464         (pa_output_call): Use method of rtx_sequence *.
8465         (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
8466         (pa_jump_in_call_delay): Likewise.
8467         (pa_output_parallel_movb): Likewise.
8468         (pa_output_parallel_addb): Likewise.
8469         (pa_following_call): Likewise.
8470         (pa_combine_instructions): Likewise for locals "anchor",
8471         "floater".
8472         (pa_can_combine_p): Likewise for params "anchor", "floater" and
8473         locals "start", "end".
8474         * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
8475         param "insn" and local "local_insn".
8476         (picochip_final_prescan_insn): Likewise for local "local_insn".
8477         * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
8478         local "insn".
8479         (uses_TOC): Likewise.
8480         * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
8481         (s390_mainpool_finish): Eliminate top-level local rtx "insn",
8482         splitting out to more tightly-scoped locals, 3 as rtx and one as
8483         rtx_insn *.
8484         (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
8485         to rtx_insn *.
8486         (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
8487         where needed.
8488         * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
8489         to rtx_insn *.
8490         (fixup_addr_diff_vecs): Likewise.
8491         (reg_unused_after): Likewise for param 2.
8492         (sh_can_redirect_branch): Likewise for both params.
8493         (check_use_sfunc_addr): Likewise for param 1.
8494         * config/sh/sh.c (fixup_mova): Likewise for local "worker".
8495         (find_barrier): Likewise for local "last_got".
8496         (gen_block_redirect): Likewise for return type, param "jump" and
8497         locals "prev", "scan", "next", "insn".
8498         (struct far_branch): Likewise for fields "near_label",
8499         "insert_place", "far_label".
8500         (gen_far_branch): Likewise for local "jump".
8501         (fixup_addr_diff_vecs): Likewise for param "first" and locals
8502         "insn", "prev".
8503         (barrier_align): Likewise for param and for locals "prev", "x".
8504         Introduce local rtx_sequence * "prev_seq" and use insn method for
8505         typesafety and clarity.
8506         (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
8507         (get_dest_uid): Likewise for local "dest".
8508         (split_branches): Likewise for locals "next", "beyond", "label",
8509         "block", "far_label".  Add checked casts when assigning to
8510         bp->far_label and "far_label".
8511         (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
8512         (sequence_insn_p): Likewise.
8513         (mark_constant_pool_use): Likewise for locals "insn", "lab".  Add a
8514         more loop-scoped rtx "insn" when walking LABEL_REFS.
8515         (sh_can_redirect_branch): Strengthen both params from rtx to
8516         rtx_insn *.
8517         (check_use_sfunc_addr): Likewise for param "insn".  Introduce a
8518         new local rtx_sequence * "seq" via a dyn_cast, and use a method
8519         for clarity and typesafety.
8520         * config/sh/sh.md (define_expand "epilogue"): Strengthen local
8521         "insn" from rtx to rtx_insn *.
8522         (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
8523         when using NEXT_INSN on the CODE_LABEL in operands[2].
8524         (define_insn "casesi_worker_2"): Likewise.
8525         (define_insn "casesi_shift_media"): Likewise.
8526         (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
8527         operands[3].
8528         * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
8529         Strengthen field "insn" from rtx to rtx_insn *.
8530         (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
8531         (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
8532         param "start_insn" and local "start_insn".
8533         * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
8534         field "insn".
8535         (find_set_of_reg_bb): Likewise for param "insn".
8536         (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
8537         (trace_reg_uses): Likewise for param "start_insn".
8538         (sh_treg_combine::cbranch_trace): Likewise for field
8539         "cbranch_insn".
8540         (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
8541         param "insn".
8542         (sh_treg_combine::record_set_of_reg): Likewise for param
8543         "start_insn" and local "i".
8544         (sh_treg_combine::can_remove_cstore): Likewise for local
8545         "prev_insn".
8546         (sh_treg_combine::try_optimize_cbranch): Likewise for param
8547         "insn".
8548         (sh_treg_combine::execute): Likewise for local "i".
8549         * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
8550         param.
8551         (sparc_check_64): Likewise for second param.
8552         * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
8553         locals "insn", "next".  Introduce local rtx_sequence * "seq" via a
8554         dyn_cast, using its insn method for typesafety and clarity.
8555         (empty_delay_slot): Strengthen param "insn" from rtx to
8556         rtx_insn *.
8557         (set_extends): Likewise.
8558         (sparc_check_64): Likewise.
8559         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
8560         for locals "seq", "last_insn".
8561         (combine_bnp): Likewise for param "insn".
8562         (xstormy16_reorg): Likewise for local "insn".
8563         * config/v850/v850.c (substitute_ep_register): Likewise for params
8564         "first_insn", "last_insn" and local "insn".
8565         (v850_reorg): Likewise for fields "first_insn", "last_insn" within
8566         elements of "regs" array, and local "insn".
8567         * except.c (emit_note_eh_region_end): Likewise for param "insn".
8568         * final.c (final_sequence): Strengthen this global from rtx to
8569         rtx_sequence *.
8570         (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
8571         rtx_insn *.
8572         (final_scan_insn): Update assignment to "final_sequence" to be
8573         from "seq", the cast version of "body", for type-safety.
8574         * function.c (assign_parm_setup_reg): Strengthen locals "insn",
8575         "insns" from rtx to rtx_insn *.
8576         (thread_prologue_and_epilogue_insns): Likewise for local "seq".
8577         * genattr.c (main): When writing out generated insn-attr.h,
8578         strengthen params 1 and 3 of eligible_for_delay,
8579         eligible_for_annul_true, eligible_for_annul_false from rtx to
8580         rtx_insn *.
8581         * genattrtab.c (write_eligible_delay): Likewise when writing out
8582         generated insn-attrtab.c; also local "insn" the generated
8583         functions.
8584         * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
8585         to rtx_insn *.
8586         * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
8587         "start_label" from rtx to rtx_insn *.
8588         * ira.c (decrease_live_ranges_number): Likewise for local "p".
8589         (ira_update_equiv_info_by_shuffle_insn): Likewise for param
8590         "insns" and local "insn".
8591         (validate_equiv_mem): Likewise for param "start" and local "insn".
8592         (memref_used_between_p): Likewise for params "start", "end" and
8593         local "insn".
8594         * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
8595         final param.
8596         * loop-doloop.c (doloop_optimize): Within region guarded by
8597         INSN_P (doloop_pat), introduce a new local rtx_insn *
8598         "doloop_insn" via a checked cast, and use it for typesafety,
8599         eventually writing the value back into doloop_pat.
8600         * output.h (final_sequence): Strengthen this global from rtx to
8601         rtx_sequence *.
8602         * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
8603         reintroducing "insn" as an rtx_insn * via a checked cast.
8604         Strengthen param "attempt" and local "new_insn"from rtx to
8605         rtx_insn *.
8606         (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
8607         to rtx_insn *.
8608         * ree.c (emit_note_eh_region_end): Likewise for local "insn".
8609         * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
8610         "p" in favor of more tightly-scoped replacements, sometimes rtx
8611         and sometimes rtx_insn *, as appropriate.
8612         (delete_output_reload): Eliminate top-level rtx "i1", splitting
8613         into two loop-scoped locals, one an rtx, the other an rtx_insn *.
8614         * reorg.c (delete_scheduled_jump): Add checked cast.  Strengthen
8615         local "trial" from rtx to rtx_insn *.
8616         (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
8617         rtx to rtx_insn *.  Strenghten local "pat" from rtx to
8618         rtx_sequence * and use methods for clarity and typesafety.
8619         (redirect_with_delay_list_safe_p): Strengthen param "jump" from
8620         rtx to rtx_insn *.  Strenghten local "li" from rtx to
8621         rtx_insn_list * and use its methods for clarity and typesafety.
8622         (steal_delay_list_from_target): Strengthen param "insn" from rtx
8623         to rtx_insn *.
8624         (steal_delay_list_from_fallthrough): Likewise.
8625         (try_merge_delay_insns): Likewise for param "thread" and locals
8626         "trial", "next_trial", "delay_insn".
8627         (redundant_insn): Likewise for param "target" and local "trial".
8628         (own_thread_p): Likewise for param "thread" and locals
8629         "active_insn", "insn".
8630         (get_label_before): Likewise for param "insn".
8631         (fill_simple_delay_slots): Likewise for local "new_label"; use
8632         JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
8633         (label_before_next_insn): Strengthen return type and local "insn"
8634         from rtx to rtx_insn *.
8635         (relax_delay_slots): Likewise for locals "other", "tmp".
8636         (make_return_insns): Likewise for param "first" and locals "insn",
8637         "jump_insn", "prev".  Move declaration of "pat" to its assignment
8638         and strengthen from rtx to rtx_sequence *.  Use its methods for
8639         clarity and typesafety.
8640         * rtlanal.c (no_labels_between_p): Strengthen params from
8641         const_rtx to const rtx_insn *.  Strengthen local "p" from rtx to
8642         rtx_insn *.
8643         (reg_used_between_p): Strengthen params "from_insn", "to_insn"
8644         from const_rtx to const rtx_insn *.
8645         (reg_set_between_p): Rename param "from_insn" to
8646         "uncast_from_insn", and reintroduce "from_insn" as a
8647         const rtx_insn * via a checked cast.
8648         (modified_between_p): Likewise for param "start" as "uncast_start".
8649         (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
8650         * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
8651         "tmp", head" from rtx to rtx_insn *.
8652         (recompute_rev_top_order): Likewise for local "insn".
8653         * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
8654         * store-motion.c (build_store_vectors): Likewise for local "insn".
8655         Strengthen local "st" from rtx to rtx_insn_list * and use methods
8656         for clarity and typesafety.
8657         * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
8658         rtx to rtx_insn *.
8659         (computation_cost): Likewise for local "seq".
8660         (get_address_cost): Likewise.
8661
8662 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8663
8664         * rtl.h (tablejump_p): Strengthen first param from const_rtx to
8665         const rtx_insn *.
8666         (label_is_jump_target_p): Likewise for second param.
8667
8668         * rtlanal.c (tablejump_p): Likewise for param "insn".
8669         (label_is_jump_target_p): Likewise for param "jump_insn".
8670
8671 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8672
8673         * rtl.h (find_first_parameter_load): Strengthen return type and
8674         both params from rtx to rtx_insn *.
8675         * rtlanal.c (find_first_parameter_load): Strengthen return type,
8676         both params and locals "before", "first_set" from rtx to
8677         rtx_insn *.  Remove now-redundant cast.
8678         * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
8679
8680 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8681
8682         * rtl.h (find_last_value): Delete.
8683         * rtlanal.c (find_last_value): Delete.
8684
8685 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8686
8687         * cfgexpand.c (pass_expand::execute): Strengthen local "after"
8688         from rtx to rtx_insn *.
8689         * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
8690         rtx "note" with new local rtx_insn * "new_head" when calculating
8691         head insn of new basic block.
8692         * combine.c (combine_split_insns): Strengthen return type and local
8693         "ret" from rtx to rtx_insn *.
8694         (likely_spilled_retval_p): Likewise for locals "use" and "p".
8695         (try_combine): Eliminate local "m_split", splitting into new
8696         locals "m_split_insn" and "m_split_pat".
8697         (find_split_point): Strengthen local "seq" from rtx into
8698         rtx_insn *.
8699         * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
8700         locals "label", "branch".
8701         * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
8702         for local "insn".
8703         (define_expand "umulsi3_highpart"): Likewise for local "insn".
8704         * dse.c (note_add_store_info): Likewise for fields "first",
8705         "current".
8706         (note_add_store): Likewise for local "insn".
8707         (emit_inc_dec_insn_before): Likewise for locals "insn",
8708         "new_insn", "cur".
8709         (find_shift_sequence): Likewise for locals "shift_seq", "insn".
8710         (replace_read): Likewise for locals "insns", "this_insn".
8711         * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
8712         (notice_eh_throw): Likewise for param "insn".
8713         (before_next_cfi_note): Likewise for return type, param, and local
8714         "prev".
8715         (connect_traces): Likewise for local "note".
8716         * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
8717         (verify_rtl_sharing): Likewise.
8718         (unshare_all_rtl_in_chain): Likewise for param "insn".
8719         (get_first_nonnote_insn): Likewise for local "insn".
8720         (get_last_nonnote_insn): Likewise.  Introduce local rtx_sequence *
8721         "seq" and use its methods to clarify things.
8722         (next_insn): Strengthen return type from rtx to rtx_insn *.
8723         Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
8724         local rtx_insn * using a checked cast, dropping a checked cast
8725         made redundant by this change.  Use a cast to and method of
8726         rtx_sequence to clarify the code.
8727         (previous_insn): Rename param "insn" to "uncast_insn" and
8728         reintroduce "insn" as a local rtx_insn * using a checked cast,
8729         dropping a checked cast made redundant by this change.  Use a cast
8730         to and method of rtx_sequence to clarify the code.
8731         (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
8732         reintroduce "insn" as a local rtx_insn * using a checked cast,
8733         dropping a checked cast made redundant by this change.
8734         (next_nonnote_insn_bb): Likewise.
8735         (prev_nonnote_insn): Likewise.
8736         (prev_nonnote_insn_bb): Likewise.
8737         (next_nondebug_insn): Likewise.
8738         (prev_nondebug_insn): Likewise.
8739         (next_nonnote_nondebug_insn): Likewise.
8740         (prev_nonnote_nondebug_insn): Likewise.
8741         (next_real_insn): Likewise.
8742         (prev_real_insn): Likewise.
8743         (next_active_insn): Likewise.
8744         (prev_active_insn): Likewise.
8745         (next_cc0_user): Likewise.  Use rtx_sequence and a method for
8746         clarity.
8747         (prev_cc0_setter): Likewise.
8748         (try_split): Rename param "trial" to "uncast_trial" and
8749         reintroduce "insn" as a local rtx_insn * using a checked cast,
8750         dropping checked casts made redundant by this change.
8751         Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
8752         rtx to rtx_insn *.
8753         (remove_insn): Rename param "insn" to "uncast_insn" and
8754         reintroduce "insn" as a local rtx_insn * using a checked cast.
8755         (emit_pattern_after_setloc): Likewise for param "after", as
8756         "uncast_after".
8757         (emit_pattern_after): Likewise.  Strengthen local "prev" from
8758         rtx to rtx_insn *.
8759         (emit_pattern_before_setloc): Rename param "before" to
8760         "uncast_before" and reintroduce "before" as a local rtx_insn *
8761         using a checked cast.  Strengthen locals "first", "last" from
8762         rtx to rtx_insn *.
8763         (emit_pattern_before): Likewise rename/cast param "before" to
8764         "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
8765         * except.c (copy_reg_eh_region_note_forward): Strengthen param
8766         "first" and local "insn" from rtx to rtx_insn *.
8767         (copy_reg_eh_region_note_backward): Likewise for param "last"
8768         and local "insn".
8769         * expr.c (fixup_args_size_notes): Rename param "last" to
8770         "uncast_last" and reintroduce "last" as a local rtx_insn *
8771         using a checked cast.  Strengthen local "insn" from rtx to
8772         rtx_insn *.
8773         * function.c (set_insn_locations): Strengthen param "insn" from
8774         rtx to rtx_insn *.
8775         (record_insns): Likewise for param "insns" and local "tmp".
8776         (active_insn_between): Rename param "tail" to
8777         "uncast_tail" and reintroduce "tail" as a local rtx_insn *
8778         using a checked cast.
8779         (thread_prologue_and_epilogue_insns): Split out top-level local
8780         rtx "seq" into three different rtx_insn * locals.  Strengthen
8781         local "prologue_seq" from rtx to rtx_insn *.
8782         * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
8783         from rtx to rtx_insn *.
8784         * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
8785         (priority): Likewise for locals "prev_first", "twin".
8786         (setup_insn_max_reg_pressure): Likewise for param "after".
8787         (sched_setup_bb_reg_pressure_info): Likewise.
8788         (no_real_insns_p): Strengthen params from const_rtx to
8789         const rtx_insn *.
8790         (schedule_block): Strengthen local "next_tail" from rtx to
8791         rtx_insn *.
8792         * ifcvt.c (find_active_insn_before): Strengthen return type and
8793         param "insn" from rtx to rtx_insn *.
8794         (find_active_insn_after): Likewise.
8795         (cond_exec_process_insns): Likewise for param "start" and local "insn".
8796         (cond_exec_process_if_block): Likewise for locals "then_start",
8797         "then_end", "else_start", "else_end", "insn", "start", "end", "from".
8798         (noce_process_if_block): Likewise for local "jump".
8799         (merge_if_block): Likewise for two locals named "end".
8800         (cond_exec_find_if_block): Likewise for local "last_insn".
8801         * jump.c (delete_related_insns): Rename param "insn" to
8802         "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
8803         checked cast.  Strengthen local "p" from rtx to rtx_insn *.
8804         * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
8805         NULL.
8806         (split_reg): Likewise.
8807         * lra.c (lra_process_new_insns): Likewise.
8808         * modulo-sched.c (permute_partial_schedule): Strengthen param
8809         "last" from rtx to rtx_insn *.
8810         * optabs.c (add_equal_note): Likewise for param "insns" and local
8811         "last_insn".
8812         (expand_binop_directly): Add checked casts to rtx_insn * within
8813         NEXT_INSN (pat) uses.
8814         (expand_unop_direct): Likewise.
8815         (maybe_emit_unop_insn): Likewise.
8816         * recog.c (peep2_attempt): Strengthen locals "last",
8817         "before_try", "x" from rtx to rtx_insn *.
8818         * reorg.c (optimize_skip): Strengthen return type and local
8819         "delay_list" from rtx to rtx_insn_list *.  Strengthen param "insn"
8820         and locals "trial", "next_trial" from rtx to rtx_insn *.
8821         * resource.c (next_insn_no_annul): Strengthen return type and
8822         param "insn" from rtx to rtx_insn *.  Use a cast to and method of
8823         rtx_sequence to clarify the code.
8824         (mark_referenced_resources): Add a checked cast to rtx_insn *
8825         within PREV_INSN (x).
8826         (find_dead_or_set_registers): Strengthen return type, param
8827         "target", locals "insn", "next", "jump_insn", "this_jump_insn"
8828         from rtx to rtx_insn *.  Strengthen param "jump_target" from rtx *
8829         to rtx_insn **.
8830         (mark_target_live_regs): Strengthen params "insns" and "target",
8831         locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
8832         to rtx_insn *.  Use cast to and method of rtx_sequence to clarify
8833         the code.
8834         * resource.h (mark_target_live_regs): Strengthen params 1 and 2
8835         from rtx to rtx_insn *.
8836         * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
8837         from rtx to rtx_insn *.
8838         (copy_reg_eh_region_note_backward): Likewise.
8839         (unshare_all_rtl_in_chain): Likewise for sole param.
8840         (dump_rtl_slim): Strengthen second and third params from const_rtx
8841         to const rtx_insn *.
8842         * sched-deps.c (sched_free_deps): Strengthen params "head" and
8843         "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
8844         * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
8845         "next_tail" from rtx to rtx_insn *.
8846         (begin_move_insn): Likewise for local "next".
8847         * sched-int.h (sched_free_deps): Likewise for first and second
8848         params.
8849         (no_real_insns_p): Strengthen both params from const_rtx to
8850         const rtx_insn *.
8851         (sched_setup_bb_reg_pressure_info): Strengthen second params from
8852         rtx to rtx_insn *.
8853         * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
8854         "next_tail".
8855         * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
8856         and locals "insn", "tail" from const_rtx to const rtx_insn *.
8857         (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
8858         rtx_insn *.
8859         (debug_rtl_slim): Strengthen params "first" and "last" from
8860         const_rtx to const rtx_insn *.
8861         * shrink-wrap.c (try_shrink_wrapping): Strengthen param
8862         "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
8863         (convert_to_simple_return): Likewise for param "returnjump".
8864         * shrink-wrap.h (try_shrink_wrapping): Likewise for param
8865         "prologue_seq".
8866         (convert_to_simple_return): Likewise for param "returnjump".
8867         * valtrack.c (propagate_for_debug): Likewise for params
8868         "insn", "last".
8869         * valtrack.h (propagate_for_debug): Likewise for second param.
8870
8871 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8872
8873         * output.h (insn_current_reference_address): Strengthen param
8874         from rtx to rtx_insn *.
8875         * final.c (insn_current_reference_address): Likewise.
8876
8877 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8878
8879         * basic-block.h (inside_basic_block_p): Strengthen param from
8880         const_rtx to const rtx_insn *.
8881         * cfgbuild.c (inside_basic_block_p): Likewise.
8882
8883 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8884
8885         * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
8886         rtx_insn *.
8887         (get_trace_info): Likewise for param "insn".
8888         (save_point_p): Likewise.
8889         (maybe_record_trace_start): Likewise for both params.
8890         (maybe_record_trace_start_abnormal): Likewise.
8891         (create_trace_edges): Likewise for sole param and for three of the
8892         locals named "lab".
8893         (scan_trace): Strengthen local "prev", "insn", "control" from rtx
8894         to rtx_insn *, and update a call to pat->element to pat->insn.
8895
8896 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8897
8898         * function.h (struct expr_status): Convert field "x_forced_labels"
8899         from rtx_expr_list * to rtx_insn_list *.
8900
8901         * cfgbuild.c (make_edges): Convert local "x" from an
8902         rtx_expr_list * to an rtx_insn_list *, replacing use of
8903         "element" method with "insn" method.
8904         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8905         * except.c (sjlj_emit_dispatch_table): Replace use of
8906         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
8907         forced_labels.
8908         * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
8909         rtx_expr_list * to an rtx_insn_list *, replacing use of
8910         "element" method with "insn" method.
8911         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8912         * stmt.c (label_rtx): Strengthen local "ref" from rtx to
8913         rtx_insn *, adding a checked cast.  Replace use of
8914         gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
8915         forced_labels.
8916         (expand_label): Likewise for local "label_r".
8917
8918 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8919
8920         * function.h (struct rtl_data): Convert field
8921         "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
8922         rtx_insn_list *.
8923         * rtl.h (remove_node_from_insn_list): New prototype.
8924
8925         * builtins.c (expand_builtin): When prepending to
8926         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8927         gen_rtx_EXPR_LIST.
8928         * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
8929         to rtx_insn_list *, and use its "insn" method rather than
8930         "element" method.
8931         * cfgrtl.c (delete_insn): Use new function
8932         remove_node_from_insn_list rather than
8933         remove_node_from_expr_list.
8934         (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
8935         to rtx_insn_list *, and use its "insn" method rather than
8936         "element" method.
8937         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
8938         * reload1.c (set_initial_label_offsets): Likewise for local "x".
8939         * rtlanal.c (remove_node_from_insn_list): New function, adapted
8940         from remove_node_from_expr_list.
8941         * stmt.c (expand_label): When prepending to
8942         nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
8943         gen_rtx_EXPR_LIST.
8944
8945 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8946
8947         * function.h (struct rtl_data): Strengthen fields "x_return_label"
8948         and "x_naked_return_label" from rtx to rtx_code_label *.
8949
8950 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
8951
8952         * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
8953         (SET_NEXT_INSN): Likewise.
8954         (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
8955
8956         * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
8957         rtx * to rtx_insn **.  Introduce a new local rtx "seq", using it
8958         to split out the SEQUENCE from local "bundle", strengthening the
8959         latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
8960         Strengthen locals "t" and "insn" from rtx to rtx_insn *.
8961         (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
8962         and the type of the elements of the "slot" array from rtx to
8963         rtx_insn *.
8964         (reorg_split_calls): Likewise for locals "insn" and "next", and
8965         the type of the elements of the "slot" array.
8966
8967         * config/frv/frv.c (frv_nops): Likewise for the elements of this
8968         array.
8969         (frv_function_prologue): Likewise for locals "insn", "next",
8970         "last_call".
8971         (frv_register_nop): Introduce a local "nop_insn" to be the
8972         rtx_insn * containing rtx "nop".
8973
8974         * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
8975         used as an insn and sometimes as a pattern, so rename it to
8976         "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
8977         using it where dealing with the core insn.
8978
8979         * config/picochip/picochip.c (reorder_var_tracking_notes):
8980         Strengthen locals "insn", "next", "last_insn", "queue",
8981         "next_queue", "prev" from rtx to rtx_insn *.
8982
8983         * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
8984         the second param is an rtx_insn ** rather than an rtx **.
8985         (link_insn_into_chain): Strengthen locals "seq" and "sequence"
8986         from rtx to rtx_sequence *, and introduce local named "sequence",
8987         using methods of rtx_sequence to clarify the code.
8988         (remove_insn): Introduce local rtx_sequence * named "sequence" and
8989         use its methods.
8990         (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
8991         Rename param "after" to "uncast_after", reintroducing "after" as a
8992         local rtx_insn * with a checked cast.
8993         (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
8994         reintroducing "after" as a local rtx_insn * with a checked cast.
8995         Strengthen local "last" from rtx to rtx_insn * and remove the
8996         now-redundant checked casts.
8997         (copy_delay_slot_insn): Strengthen return type and param from rtx
8998         to rtx_insn *.
8999
9000         * haifa-sched.c (reemit_notes): Strengthen params "insn" and
9001         "last" from rtx to rtx_insn *.
9002
9003 2014-08-28  David Malcolm  <dmalcolm@redhat.com>
9004
9005         * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
9006         param from rtx to rtx_insn *.
9007
9008         * emit-rtl.c (copy_delay_slot_insn): Likewise.
9009
9010         * reorg.c (skip_consecutive_labels): Strengthen return type, param
9011         and local "insn" from rtx to rtx_insn *.
9012         (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
9013         (unfilled_slots_next): Likewise.
9014         (function_return_label): Strengthen from rtx to rtx_code_label *.
9015         (function_simple_return_label): Likewise.
9016         (first_active_target_insn): Strengthen return type and param from
9017         rtx to rtx_insn *.
9018         (find_end_label): Strengthen return type from rtx to
9019         rtx_code_label *; strengthen locals as appropriate.
9020         (emit_delay_sequence): Strengthen return type, param "insn" and
9021         local "seq_insn" from rtx to rtx_insn *.  Strengthen param "list"
9022         and local "li" from rtx to rtx_insn_list *, using methods of
9023         rtx_insn_list for clarity and typesafety.
9024         (add_to_delay_list): Strengthen return type and param "insn" from
9025         rtx to rtx_insn *.  Strengthen param "delay_list" from rtx to
9026         rtx_insn_list * and use methods of rtx_insn_list.
9027         (delete_from_delay_slot): Strengthen return type, param "insn",
9028         locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
9029         Strengthen local "seq" from rtx to rtx_sequence *, and local
9030         "delay_list" from rtx to rtx_insn_list *, using methods of
9031         rtx_sequence for clarity and type-safety.
9032         (delete_scheduled_jump): Add checked cast when invoking
9033         delete_from_delay_slot.  Strengthen local "trial" from rtx to
9034         rtx_insn *.
9035         (optimize_skip): Strengthen return type and local "delay_list"
9036         from rtx to rtx_insn_list *.  Strengthen local "trial" from rtx to
9037         rtx_insn *.
9038         (steal_delay_list_from_target): Strengthen return type, param
9039         "delay_list" and local "new_delay_list" from rtx to
9040         rtx_insn_list *.  Strengthen param "seq" from rtx to
9041         rtx_sequence *.  Strengthen param "pnew_thread" from rtx * to
9042         rtx_insn **.
9043         Split out local "temp" into multiple more-tightly scoped locals:
9044         sometimes an rtx_insn_list *, and once a rtx_insn *.  Use methods
9045         of rtx_insn_list and rtx_sequence for clarity and typesafety.
9046         Strengthen locals named "trial" from rtx to rtx_insn *.
9047         (steal_delay_list_from_fallthrough): Strengthen return type and
9048         param "delay_list" from rtx to rtx_insn_list *.  Strengthen param
9049         "seq" from rtx to rtx_sequence *.  Use methods of rtx_sequence.
9050         Strengthen local "trial" from rtx to rtx_insn *.
9051         (try_merge_delay_insns): Strength local "merged_insns" from rtx
9052         to rtx_insn_list * and use its methods.  Strengthen local "pat"
9053         from rtx to rtx_sequence * and use its methods.  Strengthen locals
9054         "dtrial" and "new_rtx" from rtx to rtx_insn *.
9055         (get_label_before): Strengthen return type and local "label" from
9056         rtx to rtx_insn *.
9057         (fill_simple_delay_slots): Likewise for locals "insn", "trial",
9058         "next_trial", "next", prev".  Strengthen local "delay_list" from
9059         rtx to rtx_insn_list *  Strengthen local "tmp" from rtx * to
9060         rtx_insn **.
9061         (follow_jumps): Strengthen return type, param "label" and locals
9062         "insn", "next", "value", "this_label" from rtx to rtx_insn *.
9063         (fill_slots_from_thread): Strengthen return type, param
9064         "delay_list" from rtx to rtx_insn_list *.  Strengthen params
9065         "insn", "thread", "opposite_thread" and locals "new_thread",
9066         "trial", "temp", "ninsn" from rtx to rtx_insn *.  Introduce local
9067         "sequence" from a checked cast to rtx_sequence so that we can call
9068         steal_delay_list_from_target and steal_delay_list_from_fallthrough
9069         with an rtx_sequence *.
9070         (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
9071         "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
9072         Strengthen local "delay_list" from rtx to rtx_insn_list *.
9073         (relax_delay_slots): Strengthen param "first" and locals "insn",
9074         "next", "trial", "delay_insn", "target_label" from rtx to
9075         rtx_insn *.  Strengthen local "pat" from rtx to rtx_sequence *.
9076         Introduce a local "trial_seq" for PATTERN (trial) of type
9077         rtx_sequence *, in both cases using methods of rtx_sequence.
9078         (dbr_schedule): Strengthen param "first" and locals "insn",
9079         "next", "epilogue_insn" from rtx to rtx_insn *.
9080
9081 2014-08-28  Richard Biener  <rguenther@suse.de>
9082
9083         PR tree-optimization/62283
9084         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9085         Do not peel loops for alignment where the vector loop likely
9086         doesn't run at least VF times.
9087
9088 2014-08-28  Bin Cheng  <bin.cheng@arm.com>
9089
9090         * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
9091         important_candidates.  Consider all important candidates if
9092         IVS doesn't give any result.  Remove check on ivs->upto.
9093         (try_add_cand_for): Call iv_ca_add_use only once.
9094
9095 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9096             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9097             Anna Tikhonova  <anna.tikhonova@intel.com>
9098             Ilya Tocar  <ilya.tocar@intel.com>
9099             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9100             Ilya Verbin  <ilya.verbin@intel.com>
9101             Kirill Yukhin  <kirill.yukhin@intel.com>
9102             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9103
9104         (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
9105         (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
9106         masking.
9107         (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
9108         (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9109         (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
9110         (define_insn "*mul<mode>3"): Add EVEX version.
9111
9112 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9113             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9114             Anna Tikhonova  <anna.tikhonova@intel.com>
9115             Ilya Tocar  <ilya.tocar@intel.com>
9116             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9117             Ilya Verbin  <ilya.verbin@intel.com>
9118             Kirill Yukhin  <kirill.yukhin@intel.com>
9119             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9120
9121         * config/i386/sse.md
9122         (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
9123         (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
9124         (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
9125         (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
9126         (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
9127         (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
9128         (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
9129         (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
9130         (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
9131         (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
9132         (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
9133         (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
9134         (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
9135         (define_insn "vec_interleave_highv16qi<mask_name>"): New.
9136         (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
9137         (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
9138
9139 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9140             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9141             Anna Tikhonova  <anna.tikhonova@intel.com>
9142             Ilya Tocar  <ilya.tocar@intel.com>
9143             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9144             Ilya Verbin  <ilya.verbin@intel.com>
9145             Kirill Yukhin  <kirill.yukhin@intel.com>
9146             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9147
9148         * config/i386/sse.md
9149         (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
9150         (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
9151         (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
9152
9153 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9154             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9155             Anna Tikhonova  <anna.tikhonova@intel.com>
9156             Ilya Tocar  <ilya.tocar@intel.com>
9157             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9158             Ilya Verbin  <ilya.verbin@intel.com>
9159             Kirill Yukhin  <kirill.yukhin@intel.com>
9160             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9161
9162         * config/i386/sse.md
9163         (define_mode_iterator VI128_256): New.
9164         (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
9165
9166 2014-08-28  Alexander Ivchenko  <alexander.ivchenko@intel.com>
9167             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
9168             Anna Tikhonova  <anna.tikhonova@intel.com>
9169             Ilya Tocar  <ilya.tocar@intel.com>
9170             Andrey Turetskiy  <andrey.turetskiy@intel.com>
9171             Ilya Verbin  <ilya.verbin@intel.com>
9172             Kirill Yukhin  <kirill.yukhin@intel.com>
9173             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
9174
9175         * config/i386/sse.md
9176         (define_mode_iterator VI8_256_512): New.
9177         (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
9178         Ditto.
9179         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
9180         (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
9181         Ditto.
9182         (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
9183
9184 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9185
9186         * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx.  Remove the
9187         pointer to the cumulative reloc value and return the value for
9188         this reloc instead.
9189         (compute_reloc_for_rtx): Take a const_rtx.  Call
9190         compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
9191         avoiding any recursion.  Use FOR_EACH_SUBRTX rather than
9192         for_each_rtx for the CONST case.
9193
9194 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9195
9196         * varasm.c (mark_constant): Replace this for_each_rtx callback with...
9197         (mark_constants_in_pattern): ...this new function to iterate over
9198         all the subrtxes.
9199         (mark_constants): Update accordingly.
9200
9201 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9202
9203         * varasm.c: Include rtl-iter.h.
9204         (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
9205         Remove the pointer to the cumulative hashval_t and just return
9206         the hash for this rtx instead.  Remove recursive CONST_VECTOR case.
9207         (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9208         Accumulate the hashval_ts here instead of const_rtx_hash_1.
9209
9210 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9211
9212         * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
9213         Give real type of data parameter.  Remove return value.
9214         (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
9215         to iterate over subrtxes.
9216
9217 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9218
9219         * var-tracking.c (use_narrower_mode_test): Turn from being a
9220         for_each_rtx callback to being a function that examines each
9221         subrtx itself.
9222         (adjust_mems): Update accordingly.
9223
9224 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9225
9226         * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
9227         callback to being a function that examines each subrtx itself.
9228         Remove handling of null rtxes.
9229         (add_uses): Update accordingly.
9230
9231 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9232
9233         * var-tracking.c: Include rtl-iter.h.
9234         (rtx_debug_expr_p): Turn from being a for_each_rtx callback
9235         to being a function that examines each subrtx itself.
9236         (use_type): Update accordingly.
9237
9238 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9239
9240         * store-motion.c: Include rtl-iter.h.
9241         (extract_mentioned_regs_1): Delete.
9242         (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
9243         for_each_rtx to iterate over subrtxes.
9244
9245 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9246
9247         * sel-sched.c: Include rtl-iter.h
9248         (count_occurrences_1): Delete.
9249         (count_occurrences_equiv): Turn rtxes into const_rtxes.
9250         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9251
9252 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9253
9254         * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
9255         * rtlanal.c (tls_referenced_p_1): Delete.
9256         (tls_referenced_p): Take a const_rtx rather than an rtx.
9257         Use FOR_EACH_SUBRTX rather than for_each_rtx.
9258
9259 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9260
9261         * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
9262         (for_each_inc_dec): Take an rtx rather than an rtx *.
9263         * cselib.c (cselib_record_autoinc_cb): Update accordingly.
9264         (cselib_record_sets): Likewise.
9265         * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
9266         (check_for_inc_dec): Likewise.
9267         * rtlanal.c (for_each_inc_dec_ops): Delete.
9268         (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
9269         rather than a pointer to the memory address.  Replace
9270         for_each_inc_dec_ops argument with separate function and data
9271         arguments.  Abort on non-autoinc addresses.
9272         (for_each_inc_dec_find_mem): Delete.
9273         (for_each_inc_dec): Take an rtx rather than an rtx *.  Use
9274         FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
9275
9276 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9277
9278         * rtl.h (find_all_hard_regs): Declare.
9279         * rtlanal.c (find_all_hard_regs): New function.
9280         (record_hard_reg_uses_1): Delete.
9281         (record_hard_reg_uses): Use find_all_hard_regs.
9282
9283 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9284
9285         * rtl.h (replace_label_data): Delete.
9286         (replace_label): Take the old label, new label and update-nuses flag
9287         as direct arguments.  Return void.
9288         * cfgcleanup.c (outgoing_edges_match): Update accordingly.
9289         * rtlanal.c (replace_label): Update interface as above.  Handle
9290         JUMP_TABLE_DATA as a special case.  Handle JUMPs outside the
9291         iterator.  Use FOR_EACH_SUBRTX_PTR.
9292
9293 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9294
9295         * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
9296         with const_rtx parameters.
9297         * varasm.c (get_pool_constant): Likewise.
9298         * rtlanal.c (rtx_referenced_p_1): Delete.
9299         (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9300         Assert that the rtx we're looking for is nonnull.  Allow searches
9301         for constant pool SYMBOL_REFs.
9302
9303 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9304
9305         * reload1.c: Include rtl-iter.h.
9306         (note_reg_elim_costly): Turn from being a for_each_rtx callback
9307         to being a function that examines each subrtx itself.
9308         (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
9309
9310 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9311
9312         * regcprop.c (cprop_find_used_regs_1): Delete.
9313         (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9314
9315 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9316
9317         * regcprop.c: Include rtl-iter.h.
9318         (kill_value): Take a const_rtx.
9319         (kill_autoinc_value): Turn from being a for_each_rtx callback
9320         to being a function that examines each subrtx itself.
9321         (copyprop_hardreg_forward_1): Update accordingly.
9322
9323 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9324
9325         * reg-stack.c: Include rtl-iter.h.
9326         (subst_stack_regs_in_debug_insn): Delete.
9327         (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
9328         instead of for_each_rtx.
9329
9330 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9331
9332         * lower-subreg.c (find_decomposable_subregs): Turn from being
9333         a for_each_rtx callback to being a function that examines each
9334         subrtx itself.  Remove handling of null rtxes.
9335         (decompose_multiword_subregs): Update accordingly.
9336
9337 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9338
9339         * lower-subreg.c (adjust_decomposed_uses): Delete.
9340         (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
9341         Remove handling of null rtxes.
9342
9343 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9344
9345         * lower-subreg.c: Include rtl-iter.h.
9346         (resolve_subreg_use): Turn from being a for_each_rtx callback
9347         to being a function that examines each subrtx itself.  Remove
9348         handling of null rtxes.
9349         (resolve_reg_notes, resolve_simple_move): Update accordingly.
9350         (decompose_multiword_subregs): Likewise.
9351
9352 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9353
9354         * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
9355         to being a function that examines each subrtx itself.
9356         (simplify_using_condition, simplify_using_initial_values): Update
9357         accordingly.
9358
9359 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9360
9361         * loop-iv.c: Include rtl-iter.h.
9362         (find_single_def_src): New function.
9363         (replace_single_def_regs): Turn from being a for_each_rtx callback
9364         to being a function that examines each subrtx itself.
9365         (replace_in_expr, simplify_using_initial_values): Update accordingly.
9366
9367 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9368
9369         * jump.c (eh_returnjump_p_1): Delete.
9370         (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9371         Remove handling of null rtxes.
9372
9373 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9374
9375         * jump.c: Include rtl-iter.h.
9376         (returnjump_p_1): Delete.
9377         (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9378         Remove handling of null rtxes.
9379
9380 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9381
9382         * ira.c: Include rtl-iter.h.
9383         (set_paradoxical_subreg): Turn from being a for_each_rtx callback
9384         to being a function that examines each subrtx itself.  Remove
9385         handling of null rtxes.
9386         (update_equiv_regs): Update call accordingly.
9387
9388 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9389
9390         * fwprop.c: Include rtl-iter.h.
9391         (varying_mem_p): Turn from being a for_each_rtx callback to being
9392         a function that examines each subrtx itself.
9393         (propagate_rtx): Update accordingly.
9394
9395 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9396
9397         * function.c: Include rtl-iter.h
9398         (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
9399         callback to being a function that examines each subrtx itself.
9400         Return the changed flag.
9401         (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
9402         (instantiate_virtual_regs): Update calls accordingly.
9403
9404 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9405
9406         * final.c: Include rtl-iter.h.
9407         (mark_symbol_ref_as_used): Delete.
9408         (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
9409         for_each_rtx.
9410
9411 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9412
9413         * emit-rtl.c: Include rtl-iter.h.
9414         (find_auto_inc): Turn from being a for_each_rtx callback to being
9415         a function that examines each subrtx itself.  Assume the first operand
9416         to an RTX_AUTOINC is the automodified register.
9417         (try_split): Update call accordingly.
9418
9419 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9420
9421         * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
9422         Return a bool, inverting the result so that 0/false means "not ok".
9423         Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
9424         subrtxes of a CONST.
9425         (mem_loc_descriptor, add_const_value_attribute)
9426         (resolve_addr_in_expr): Update calls accordingly.
9427
9428 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9429
9430         * dwarf2out.c: Include rtl-iter.h.
9431         (const_ok_for_output_1): Take the rtx instead of a pointer to it.
9432         Remove unused data parameter.  Return a bool, inverting the result
9433         so that 0/false means "not ok".
9434         (const_ok_for_output): Update accordingly.  Use FOR_EACH_SUBRTX_VAR
9435         instead of for_each_rtx.
9436
9437 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9438
9439         * dse.c: Include rtl-iter.h.
9440         (check_mem_read_rtx): Change void * parameter to real type.
9441         Remove return value.
9442         (check_mem_read_use): Fix comment.  Use FOR_EACH_SUBRTX_PTR instead of
9443         for_each_rtx.  Don't handle null rtxes.
9444
9445 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9446
9447         * df-problems.c: Include rtl-iter.h.
9448         (find_memory): Turn from being a for_each_rtx callback to being
9449         a function that examines each subrtx itself.  Continue to look for
9450         volatile references even after a nonvolatile one has been found.
9451         (can_move_insns_across): Update calls accordingly.
9452
9453 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9454
9455         * ddg.c (walk_mems_2, walk_mems_1): Delete.
9456         (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
9457         to iterate over subrtxes.  Return a bool rather than an int.
9458
9459 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9460
9461         * ddg.c: Include rtl-iter.h.
9462         (mark_mem_use_1): Rename to...
9463         (mark_mem_use): ...deleting old mark_mem_use.  Use FOR_EACH_SUBRTX
9464         instead of for_each_rtx.
9465         (mem_read_insn_p): Update accordingly.
9466
9467 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9468
9469         * cse.c (change_cc_mode_args): Delete.
9470         (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
9471         a function that examines each subrtx itself.  Take the fields of
9472         change_cc_mode_args as argument and return void.
9473         (cse_change_cc_mode_insn): Update calls accordingly.
9474
9475 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9476
9477         * cse.c (is_dead_reg): Change argument to const_rtx.
9478         (dead_debug_insn_data): Delete.
9479         (is_dead_debug_insn): Expand commentary.  Turn from being a
9480         for_each_rtx callback to being a function that examines
9481         each subrtx itself.  Take the fields of dead_debug_insn_data
9482         as argument.
9483         (delete_trivially_dead_insns): Update call accordingly.
9484
9485 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9486
9487         * cse.c (check_for_label_ref): Move earlier in file.  Turn from
9488         being a for_each_rtx callback to being a function that examines
9489         each subrtx itself.
9490         (cse_extended_basic_block): Update call accordingly.
9491
9492 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9493
9494         * cse.c (check_dependence_data): Delete.
9495         (check_dependence): Change from being a for_each_rtx callback to being
9496         a function that examines all subrtxes itself.  Don't handle null rtxes.
9497         (invalidate): Update call accordingly.
9498
9499 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9500
9501         * cse.c: Include rtl-iter.h.
9502         (approx_reg_cost_1): Delete.
9503         (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9504         Don't handle null rtxes.
9505
9506 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9507
9508         * cfgcleanup.c: Include rtl-iter.h.
9509         (mentions_nonequal_regs): Turn from being a for_each_rtx callback
9510         to being a function that examines each subrtx itself.
9511         (thread_jump): Update accordingly.
9512
9513 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9514
9515         * combine-stack-adj.c: Include rtl-iter.h.
9516         (record_stack_refs_data): Delete.
9517         (record_stack_refs): Turn from being a for_each_rtx callback
9518         to being a function that examines each subrtx itself.
9519         Take a pointer to the reflist.  Invert sense of return value
9520         so that true means success and false means failure.  Don't
9521         handle null rtxes.
9522         (combine_stack_adjustments_for_block): Update accordingly.
9523
9524 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9525
9526         * combine.c (record_truncated_value): Turn from being a for_each_rtx
9527         callback to a function that takes an rtx and returns a bool
9528         (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
9529         for_each_rtx.
9530
9531 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9532
9533         * combine.c: Include rtl-iter.h.
9534         (unmentioned_reg_p_1): Delete.
9535         (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
9536         Don't handle null rtxes.
9537
9538 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9539
9540         * calls.c: Include rtl-iter.h.
9541         (internal_arg_pointer_based_exp_1): Delete.
9542         (internal_arg_pointer_based_exp): Take a const_rtx.
9543         Use FOR_EACH_SUBRTX to iterate over subrtxes.
9544
9545 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9546
9547         * caller-save.c: Include rtl-iter.h.
9548         (add_used_regs_1): Delete.
9549         (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
9550         to iterate over subrtxes.  Assert that any remaining pseudos
9551         have been spilled.
9552
9553 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9554
9555         * bt-load.c: Include rtl-iter.h.
9556         (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
9557         (find_btr_use): Move further up file.  Use FOR_EACH_SUBRTX_PTR
9558         to iterate over subrtxes.
9559         (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
9560         find_btr_use rather than btr_referenced_p.
9561
9562 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9563
9564         * alias.c: Include rtl-iter.h.
9565         (refs_newer_value_cb): Delete.
9566         (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
9567
9568 2014-08-28  Richard Sandiford  <rdsandiford@googlemail.com>
9569
9570         * rtl-iter.h: New file.
9571         * rtlanal.c: Include it.
9572         (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
9573         (generic_subrtx_iterator <T>::add_single_to_queue)
9574         (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
9575         (generic_subrtx_iterator <T>::free_array): New functions.
9576         (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
9577         (generic_subrtx_iterator <const_rtx_accessor>)
9578         (generic_subrtx_iterator <rtx_var_accessor>
9579         (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
9580         (setup_reg_subrtx_bounds): New function.
9581         (init_rtlanal): Call it.
9582
9583 2014-08-27  Kaz Kojima  <kkojima@gcc.gnu.org>
9584
9585         PR target/62261
9586         * config/sh/sh.md (ashlsi3): Handle negative shift count for
9587         TARGET_SHMEDIA.
9588         (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
9589
9590 2014-08-27  Richard Sandiford  <rdsandiford@googlemail.com>
9591
9592         * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
9593
9594 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9595
9596         * rtl.h (JUMP_LABEL_AS_INSN): New.
9597
9598 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9599
9600         * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
9601         rtx_expr_list **.
9602         (alloc_EXPR_LIST): Strengthen return type from rtx to
9603         rtx_expr_list *.
9604         (remove_free_EXPR_LIST_node): Likewise for param.
9605         * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
9606         from rtx to rtx_expr_list *.
9607         * sched-int.h (struct deps_desc): Strengthen fields
9608         "pending_read_mems" and "pending_write_mems" from rtx to
9609         rtx_expr_list *.
9610
9611         * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
9612         rtx to rtx_expr_list *.
9613         * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
9614         (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
9615         rtx_expr_list **.
9616         (remove_free_EXPR_LIST_node): Likewise.  Strengthen local "node"
9617         from rtx to rtx_expr_list *.
9618         * loop-iv.c (simplify_using_initial_values): Strengthen local
9619         "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
9620         "pnote_next" from rtx * to rtx_expr_list **.
9621         * sched-deps.c (remove_from_both_dependence_lists):  Strengthen
9622         param "exprp" from rtx * to rtx_expr_list **.
9623         (add_insn_mem_dependence): Strengthen local "mem_list" from
9624         rtx * to rtx_expr_list **.  Strengthen local "mem_node" from rtx
9625         to rtx_expr_list *.
9626         * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
9627         and local "new_mems" from rtx to rtx_expr_list *.  Strengthen
9628         param "old_mems_p" from rtx * to rtx_expr_list **.
9629         * var-tracking.c (struct adjust_mem_data): Strengthen field
9630         "side_effects" from rtx to rtx_expr_list *.
9631         (adjust_insn): Replace NULL_RTX with NULL when assigning to
9632         rtx_expr_list *.
9633         (prepare_call_arguments): Likewise.
9634
9635 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9636
9637         * function.h (struct rtl_data): Strengthen field
9638         "x_stack_slot_list" from rtx to rtx_expr_list *.
9639
9640         * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
9641         when assigning to stack_slot_list.
9642
9643 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9644
9645         * function.h (struct rtl_data): Strengthen field
9646         x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
9647         * rtl.h (remove_node_from_expr_list): Strengthen second param from
9648         rtx * to rtx_expr_list **.
9649
9650         * cfgbuild.c (make_edges): In loop over
9651         nonlocal_goto_handler_labels, strengthen local "x" from rtx to
9652         rtx_expr_list *, and use methods of the latter class to clarify
9653         the code.
9654         * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
9655         rtx_expr_list *, and use methods of the latter class to clarify
9656         the code.
9657         * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
9658         * reload1.c (set_initial_label_offsets): Likewise for local "x".
9659         * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
9660         from rtx * to rtx_expr_list **.  Strengthen local "temp" from rtx
9661         to rtx_expr_list *.  Use methods of the latter class to clarify
9662         the code.
9663
9664 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9665
9666         * function.h (struct expr_status): Strengthen field
9667         "x_forced_labels" from rtx to rtx_expr_list *.
9668
9669         * cfgbuild.c (make_edges): Split local "x" into two locals,
9670         strengthening one from rtx to rtx_expr_list *, and using methods
9671         of said class.
9672         * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
9673         loop over forced_labels, introduce strengthen it from rtx to
9674         rtx_expr_list *, using methods to clarify the code.
9675         * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
9676         to rtx_expr_list *, using methods of said class to clarify the
9677         code.
9678         * reload1.c (set_initial_label_offsets): Split local "x" into two
9679         per-loop variables, strengthening the first from rtx to
9680         rtx_expr_list * and using methods.
9681
9682 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9683
9684         * coretypes.h (class rtx_expr_list): Add forward declaration.
9685         * emit-rtl.c (gen_rtx_EXPR_LIST): New.
9686         * gengenrtl.c (special_rtx): Add EXPR_LIST.
9687         * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
9688         invariant: GET_CODE (X) == EXPR_LIST.
9689         (is_a_helper <rtx_expr_list *>::test): New.
9690         (rtx_expr_list::next): New.
9691         (rtx_expr_list::element): New.
9692         (gen_rtx_EXPR_LIST): New.
9693
9694 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9695
9696         * varasm.c (mark_constants): Convert a GET_CODE check into a
9697         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9698         Use methods of rtx_sequence to clarify the code.
9699
9700 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9701
9702         * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
9703         local "seq" via a checked cast, and use methods of rtx_sequence
9704         to simplify the code.
9705
9706 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9707
9708         * resource.c (mark_referenced_resources): Strengthen local
9709         "sequence" from rtx to rtx_sequence *, adding a checked cast, and
9710         using methods of rtx_sequence to clarify the code.
9711         (find_dead_or_set_registers): Within the switch statement, convert
9712         a GET_CODE check to a dyn_cast, introducing local "seq".  Within
9713         the JUMP_P handling, introduce another local "seq", adding a
9714         checked cast to rtx_sequence *.  In both cases, use methods of
9715         rtx_sequence to clarify the code.
9716         (mark_set_resources): Within SEQUENCE case, introduce local "seq"
9717         via a checked cast, and use methods of rtx_sequence to simplify
9718         the code.
9719
9720 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9721
9722         * reorg.c (redundant_insn): In two places in the function, replace
9723         a check of GET_CODE with a dyn_cast, introducing local "seq", and
9724         usings methods of rtx_sequence to clarify the code.
9725
9726 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9727
9728         * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
9729         local "seq" with a checked cast, and use methods of rtx_sequence
9730         to clarify the code.
9731
9732 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9733
9734         * function.c (contains): Introduce local "seq" for PATTERN (insn),
9735         with a checked cast, in the region for where we know it's a
9736         SEQUENCE.  Use methods of rtx_sequence.
9737
9738 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9739
9740         * final.c (get_attr_length_1): Replace GET_CODE check with a
9741         dyn_cast, introducing local "seq" and the use of methods of
9742         rtx_sequence.
9743         (shorten_branches): Likewise, introducing local "body_seq".
9744         Strengthen local "inner_insn" from rtx to rtx_insn *.
9745         (reemit_insn_block_notes): Replace GET_CODE check with a
9746         dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
9747         Use methods of rtx_sequence.
9748         (final_scan_insn): Likewise, introducing local "seq" for when
9749         "body" is known to be a SEQUENCE, using its methods.
9750
9751 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9752
9753         * except.c (can_throw_external): Strengthen local "seq" from rtx
9754         to rtx_sequence *.  Use methods of rtx_sequence.
9755         (insn_nothrow_p): Likewise.
9756
9757 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9758
9759         * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
9760         dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
9761         Use methods of rtx_sequence.
9762         (scan_trace): Likewise for local "pat".
9763
9764 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9765
9766         * coretypes.h (class rtx_sequence): Add forward declaration.
9767         * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
9768         invariant: GET_CODE (X) == SEQUENCE.
9769         (is_a_helper <rtx_sequence *>::test): New.
9770         (is_a_helper <const rtx_sequence *>::test): New.
9771         (rtx_sequence::len): New.
9772         (rtx_sequence::element): New.
9773         (rtx_sequence::insn): New.
9774
9775 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9776
9777         * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
9778         rtx_insn_list **.
9779         (alloc_INSN_LIST): Strengthen return type from rtx to
9780         rtx_insn_list *.
9781         (copy_INSN_LIST): Likewise for return type and param.
9782         (concat_INSN_LIST): Likewise for both params and return type.
9783         (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
9784         rtx_insn *.  Strengthen second param from rtx * to rtx_insn_list **.
9785         (remove_free_INSN_LIST_node): Strenghten return type from rtx to
9786         rtx_insn *.  Strengthen param from rtx * to rtx_insn_list **.
9787
9788         * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
9789         "implicit_sets", "control_uses", "clobbers" from rtx to
9790         rtx_insn_list *.
9791         (struct deps_desc): Likewise for fields "pending_read_insns",
9792         "pending_write_insns", "pending_jump_insns",
9793         "last_pending_memory_flush", "last_function_call",
9794         "last_function_call_may_noreturn", "sched_before_next_call",
9795         "sched_before_next_jump".
9796         (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
9797         (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
9798
9799         * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
9800         from rtx to rtx_insn_list *.
9801         (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
9802         rtx_insn_list *.
9803
9804         * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
9805         to rtx_insn_list **.
9806         (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
9807         rtx_insn_list *.
9808         (queue_insn): Likewise for local "link".
9809         (struct haifa_saved_data): Strengthen field "insn_queue" from
9810         rtx * to rtx_insn_list **.
9811         (save_backtrack_point): Update allocation of save->insn_queue to
9812         reflect the strengthening of elements from rtx to rtx_insn_list *.
9813         (queue_to_ready): Strengthen local "link" from rtx to
9814         rtx_insn_list *; use methods "next" and "insn" when traversing the
9815         list.
9816         (early_queue_to_ready): Likewise for locals "link", "next_link",
9817         "prev_link".
9818         (schedule_block): Update allocation of insn_queue to reflect the
9819         strengthening of elements from rtx to rtx_insn_list *.  Strengthen
9820         local "link" from rtx to rtx_insn_list *, and use methods when
9821         working it.
9822         (add_to_speculative_block): Strengthen locals "twins" and
9823         "next_node" from rtx to rtx_insn_list *, and use methods when
9824         working with them.  Strengthen local "twin" from rtx to
9825         rtx_insn *, eliminating a checked cast.
9826         (fix_recovery_deps): Strengthen locals "ready_list" and "link"
9827         from rtx to rtx_insn_list *, and use methods when working with
9828         them.
9829
9830         * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
9831         from rtx to rtx_insn_list *, adding a checked cast.
9832         (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
9833         rtx_insn_list **.
9834         (copy_INSN_LIST): Strengthen return type and locals "new_queue",
9835         "newlink" from rtx to rtx_insn_list *.  Strengthen local
9836         "pqueue" from rtx * to rtx_insn_list **.  Strengthen local "x"
9837         from rtx to rtx_insn *.
9838         (concat_INSN_LIST): Strengthen return type and local "new_rtx",
9839         from rtx to rtx_insn_list *.  Use methods of the latter class.
9840         (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
9841         rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
9842         (remove_free_INSN_LIST_node): Strengthen return type and local
9843         "elem" from rtx to rtx_insn *.  Strenghten param "listp" from
9844         rtx * to rtx_insn_list **.  Strengthen local "node" from rtx to
9845         rtx_insn_list *, using "insn" method.
9846
9847         * sched-deps.c (add_dependence_list):  Strengthen param "list"
9848         from rtx to rtx_insn_list *, and use methods when working with it.
9849         (add_dependence_list_and_free):  Strengthen param "listp" from
9850         rtx * to rtx_insn_list **.
9851         (remove_from_dependence_list): Strenghten param "listp" from rtx *
9852         to rtx_insn_list **, and use methods when working with *listp.
9853         (remove_from_both_dependence_lists): Strengthen param "listp" from
9854         rtx * to rtx_insn_list **
9855         (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
9856         to rtx_insn_list **.  Eliminate local "link", in favor of two new
9857         locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
9858         respectively.
9859         (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
9860         by introducing local "cond_deps".
9861         (remove_from_deps): Strengthen param "insn" from rtx to
9862         rtx_insn *.
9863
9864         * sched-rgn.c (concat_insn_mem_list): Strengthen param
9865         "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
9866         Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
9867         Use methods of rtx_insn_list.
9868
9869         * store-motion.c (struct st_expr): Strengthen fields
9870         "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
9871         (st_expr_entry): Replace NULL_RTX with NULL when dealing with
9872         rtx_insn_list *.
9873         (find_moveable_store): Split out "tmp" into multiple more-tightly
9874         scoped locals.  Use methods of rtx_insn_list *.
9875         (compute_store_table): Strengthen local "tmp" from rtx to
9876         rtx_insn *.  Use methods of rtx_insn_list *.
9877
9878 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9879
9880         * coretypes.h (class rtx_insn_list): Add forward declaration.
9881         * rtl.h (class rtx_insn_list): New subclass of rtx_def
9882         (is_a_helper <rtx_insn_list *>::test): New.
9883         (rtx_insn_list::next): New.
9884         (rtx_insn_list::insn): New.
9885         (gen_rtx_INSN_LIST): Add prototype.
9886         * emit-rtl.c (gen_rtx_INSN_LIST): New.
9887         * gengenrtl.c (special_rtx): Add INSN_LIST.
9888
9889 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9890
9891         * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
9892         "prev" from rtx to rtx_insn *.
9893
9894 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9895
9896         * rtl.h (INSN_UID): Convert from a macro to a pair of inline
9897         functions.  Require merely an rtx for now, not an rtx_insn *.
9898         (BLOCK_FOR_INSN): Likewise.
9899         (INSN_LOCATION): Likewise.
9900         (INSN_HAS_LOCATION): Convert from a macro to an inline function.
9901
9902 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9903
9904         * rtl.h (PATTERN): Convert this macro into a pair of inline
9905         functions, for now, requiring const_rtx and rtx.
9906
9907 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
9908
9909         * target.def (unwind_emit): Strengthen param "insn" from rtx to
9910         rtx_insn *.
9911         (final_postscan_insn): Likewise.
9912         (adjust_cost): Likewise.
9913         (adjust_priority): Likewise.
9914         (variable_issue): Likewise.
9915         (macro_fusion_pair_p): Likewise.
9916         (dfa_post_cycle_insn): Likewise.
9917         (first_cycle_multipass_dfa_lookahead_guard): Likewise.
9918         (first_cycle_multipass_issue): Likewise.
9919         (dfa_new_cycle): Likewise.
9920         (adjust_cost_2): Likewise for params "insn" and "dep_insn".
9921         (speculate_insn): Likewise for param "insn".
9922         (gen_spec_check): Likewise for params "insn" and "label".
9923         (get_insn_spec_ds): Likewise for param "insn".
9924         (get_insn_checked_ds): Likewise.
9925         (dispatch_do): Likewise.
9926         (dispatch): Likewise.
9927         (cannot_copy_insn_p): Likewise.
9928         (invalid_within_doloop): Likewise.
9929         (legitimate_combined_insn): Likewise.
9930         (needed): Likewise.
9931         (after): Likewise.
9932
9933         * doc/tm.texi: Automatically updated to reflect changes to
9934         target.def.
9935
9936         * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
9937         working with insn.
9938         (schedule_block): Likewise.
9939         (sched_init): Likewise.
9940         (sched_speculate_insn): Strengthen param "insn" from rtx to
9941         rtx_insn *.
9942         (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
9943         working with insn.
9944         * hooks.c (hook_bool_rtx_true): Rename to...
9945         hook_bool_rtx_insn_true): ...this, and strengthen first param from
9946         rtx to rtx_insn *.
9947         (hook_constcharptr_const_rtx_null): Rename to...
9948         (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
9949         first param from const_rtx to const rtx_insn *.
9950         (hook_bool_rtx_int_false): Rename to...
9951         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9952         param from rtx to rtx_insn *.
9953         (hook_void_rtx_int): Rename to...
9954         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9955         rtx to rtx_insn *.
9956
9957         * hooks.h (hook_bool_rtx_true): Rename to...
9958         (hook_bool_rtx_insn_true): ...this, and strengthen first param from
9959         rtx to rtx_insn *.
9960         (hook_bool_rtx_int_false): Rename to...
9961         (hook_bool_rtx_insn_int_false): ...this, and strengthen first
9962         param from rtx to rtx_insn *.
9963         (hook_void_rtx_int): Rename to...
9964         (hook_void_rtx_insn_int): ...this, and strengthen first param from
9965         rtx to rtx_insn *.
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
9970         * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
9971         and local "prev" from rtx to rtx_insn *.
9972
9973         * sched-int.h (sched_speculate_insn): Strengthen first param from
9974         rtx to rtx_insn *.
9975
9976         * sel-sched.c (create_speculation_check): Likewise for local "label".
9977         * targhooks.c (default_invalid_within_doloop): Strengthen param
9978         "insn" from const_rtx to const rtx_insn *.
9979         * targhooks.h (default_invalid_within_doloop): Strengthen param
9980         from const_rtx to const rtx_insn *.
9981
9982         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
9983         (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
9984
9985         * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
9986         "insn".
9987         (arc_invalid_within_doloop): Likewise, with const.
9988
9989         * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
9990         (arm_cannot_copy_insn_p): Likewise for param "insn".
9991         (arm_unwind_emit): Likewise.
9992
9993         * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
9994         "dep_insn".
9995
9996         * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
9997         (c6x_variable_issue): Likewise.  Removed now-redundant checked
9998         cast.
9999         (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
10000
10001         * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
10002         Likewise for param "insn".
10003         (epiphany_mode_after): Likewise.
10004         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
10005         params "insn", "dep_insn".
10006         (epiphany_mode_needed): Likewise for param "insn".
10007         (epiphany_mode_after): Likewise.
10008
10009         * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
10010         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
10011         (ix86_avx_u128_mode_needed): Likewise.
10012         (ix86_i387_mode_needed): Likewise.
10013         (ix86_mode_needed): Likewise.
10014         (ix86_avx_u128_mode_after): Likewise.
10015         (ix86_mode_after): Likewise.
10016         (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
10017         (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
10018         (ix86_adjust_priority): Likewise for param "insn".
10019         (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
10020         (do_dispatch): Likewise.
10021         (has_dispatch): Likewise.
10022         * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
10023
10024         * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
10025         reflect renaming of default hook implementation from
10026         hook_constcharptr_const_rtx_null to
10027         hook_constcharptr_const_rtx_insn_null.
10028         (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
10029         rtx to rtx_insn *.
10030         (ia64_variable_issue): Likewise for param "insn".
10031         (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
10032         (ia64_dfa_new_cycle): Likewise.
10033         (ia64_get_insn_spec_ds): Likewise.
10034         (ia64_get_insn_checked_ds): Likewise.
10035         (ia64_speculate_insn): Likewise.
10036         (ia64_gen_spec_check): Likewise for params "insn", "label".
10037         (ia64_asm_unwind_emit): Likewise for param "insn".
10038
10039         * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
10040
10041         * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
10042         "insn", "def_insn".
10043         (m68k_sched_variable_issue): Likewise for param "insn".
10044
10045         * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
10046         "def_insn".
10047
10048         * config/microblaze/microblaze.c (microblaze_adjust_cost):
10049         Likewise for params "insn", "dep".
10050
10051         * config/mips/mips.c (mips_adjust_cost): Likewise.
10052         (mips_variable_issue): Likewise for param "insn".
10053         (mips_final_postscan_insn): Likewise.
10054
10055         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
10056         for params "insn", "dep".
10057
10058         * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
10059         "dep_insn".
10060         (pa_adjust_priority): Likewise for param "insn".
10061
10062         * config/picochip/picochip.c (picochip_sched_adjust_cost):
10063         Likewise for params "insn", "dep_insn".
10064
10065         * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
10066         param "insn".
10067         (rs6000_variable_issue): Likewise.
10068         (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
10069         (rs6000_debug_adjust_cost): Likewise.
10070         (rs6000_adjust_priority): Likewise for param "insn".
10071         (rs6000_use_sched_lookahead_guard): Likewise.
10072         (get_next_active_insn): Likewise for return type and both params.
10073         (redefine_groups): Likewise for params "prev_head_insn", "tail"
10074         and locals "insn", "next_insn".
10075         (pad_groups): Likewise.
10076
10077         * config/s390/s390.c (s390_adjust_priority): Likewise for param
10078         "insn".
10079         (s390_cannot_copy_insn_p): Likewise.
10080         (s390_sched_variable_issue): Likewise for third param, eliminating
10081         checked cast.
10082         (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
10083         default hook implementation from hook_constcharptr_const_rtx_null
10084         to hook_constcharptr_const_rtx_insn_null.
10085
10086         * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
10087         from rtx to rtx_insn *.
10088         (sh_adjust_cost): Likewise for params "insn", "dep_insn".
10089         (sh_variable_issue): Likewise for param "insn".
10090         (sh_dfa_new_cycle): Likewise.
10091         (sh_mode_needed): Likewise.
10092         (sh_mode_after): Likewise.
10093
10094         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
10095         params "insn", "dep_insn".
10096         (hypersparc_adjust_cost): Likewise.
10097         (sparc_adjust_cost): Likewise.
10098
10099         * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
10100         param, eliminated checked cast.
10101         (spu_sched_adjust_cost): Likewise for first and third params.
10102
10103         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
10104         params "insn" and "dep_insn" from rtx to rtx_insn *.
10105
10106         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
10107
10108 2014-08-27  David Malcolm  <dmalcolm@redhat.com>
10109
10110         * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
10111         (set_is_load_p): ...this, updating to work on a SET pattern rather
10112         than an insn.
10113         (is_store_insn): Rename to...
10114         (set_is_store_p): ...this, updating to work on a SET pattern
10115         rather than an insn.
10116         (mn10300_adjust_sched_cost): Move call to get_attr_timings from
10117         top of function to where it is needed.  Rewrite the bogus
10118         condition that checks for "insn" and "dep" being PARALLEL to
10119         instead use single_set, introducing locals "insn_set" and
10120         "dep_set".  Given that we only ever returned "cost" for a non-pair
10121         of SETs, bail out early if we don't have a pair of SET.
10122         Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
10123         use the new locals "insn_set" and "dep_set", and update calls to
10124         is_load_insn and is_store_insn to be calls to set_is_load_p and
10125         set_is_store_p.
10126
10127 2014-08-27  Guozhi Wei  <carrot@google.com>
10128
10129         PR target/62262
10130         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
10131         amount before using it.
10132
10133 2014-08-27  Richard Biener  <rguenther@suse.de>
10134
10135         * gimple-fold.c (get_maxval_strlen): Add overload wrapping
10136         get_maxval_strlen inside a more useful API.
10137         (gimple_fold_builtin_with_strlen): Remove and fold into ...
10138         (gimple_fold_builtin): ... caller.
10139         (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
10140         gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
10141         gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
10142         gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
10143         gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
10144         gimple_fold_builtin_sprintf): Adjust to compute maxval
10145         themselves.
10146
10147 2014-08-27  Yvan Roux  <yvan.roux@linaro.org>
10148
10149         PR other/62248
10150         * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
10151
10152 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10153             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10154             Anna Tikhonova  <anna.tikhonova@intel.com>
10155             Ilya Tocar  <ilya.tocar@intel.com>
10156             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10157             Ilya Verbin  <ilya.verbin@intel.com>
10158             Kirill Yukhin  <kirill.yukhin@intel.com>
10159             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10160
10161         * config/i386/sse.md
10162         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
10163         Use `concat_tg_mode' attribute to determine asm register size.
10164
10165 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10166             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10167             Anna Tikhonova  <anna.tikhonova@intel.com>
10168             Ilya Tocar  <ilya.tocar@intel.com>
10169             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10170             Ilya Verbin  <ilya.verbin@intel.com>
10171             Kirill Yukhin  <kirill.yukhin@intel.com>
10172             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10173
10174         * config/i386/sse.md
10175         (define_mode_iterator VI48_AVX512VL): New.
10176         (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
10177         (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
10178         (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
10179         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10180         with VI1): Change mode iterator.
10181         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10182         with VI_ULOADSTORE_BW_AVX512VL): New.
10183         (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10184         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10185         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10186         with VI1): Change mode iterator.
10187         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10188         with VI_ULOADSTORE_BW_AVX512VL): New.
10189         (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
10190         with VI_ULOADSTORE_F_AVX512VL): Ditto.
10191         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10192         with VI1): Change mode iterator.
10193         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10194         with VI_ULOADSTORE_BW_AVX512VL): New.
10195         (define_insn "<sse2_avx_avx512f>_storedqu<mode>
10196         with VI_ULOADSTORE_BW_AVX512VL): Ditto.
10197         (define_insn "avx512f_storedqu<mode>_mask"): Delete.
10198         (define_insn "<avx512>_storedqu<mode>_mask" with
10199         VI48_AVX512VL): New.
10200         (define_insn "<avx512>_storedqu<mode>_mask" with
10201         VI12_AVX512VL): Ditto.
10202
10203 2014-08-27  Alexander Ivchenko  <alexander.ivchenko@intel.com>
10204             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
10205             Anna Tikhonova  <anna.tikhonova@intel.com>
10206             Ilya Tocar  <ilya.tocar@intel.com>
10207             Andrey Turetskiy  <andrey.turetskiy@intel.com>
10208             Ilya Verbin  <ilya.verbin@intel.com>
10209             Kirill Yukhin  <kirill.yukhin@intel.com>
10210             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
10211
10212         * config/i386/sse.md
10213         (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
10214         (define_mode_iterator VI48_AVX512BW): New.
10215         (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
10216         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10217         with VI48_AVX2_48_AVX512F): New.
10218         (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
10219         with VI2_AVX512VL): Ditto.
10220
10221 2014-08-27  Richard Biener  <rguenther@suse.de>
10222
10223         PR middle-end/62239
10224         * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
10225         (fold_builtin_3): Do not fold strcat_chk here.
10226         * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
10227         from builtins.c.
10228         (gimple_fold_builtin): Fold strcat_chk here.
10229
10230 2014-08-26  Aldy Hernandez  <aldyh@redhat.com>
10231
10232         * dwarf2out.h (dwarf2out_decl): Remove prototype.
10233         * dwarf2out.c (dwarf2out_decl): Make static.
10234
10235 2014-08-26  Joel Sherrill <joel.sherrill@oarcorp.com>
10236
10237         * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
10238
10239 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10240
10241         * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
10242         from rtx to rtx_insn *.
10243         (cselib_lookup_from_insn): Likewise for final param.
10244         (cselib_subst_to_values_from_insn): Likewise.
10245         (cselib_add_permanent_equiv): Likewise.
10246
10247         * cselib.c (cselib_current_insn): Likewise for this variable.
10248         (cselib_subst_to_values_from_insn): Likewise for param "insn".
10249         (cselib_lookup_from_insn): Likewise.
10250         (cselib_add_permanent_equiv): Likewise for param "insn" and local
10251         "save_cselib_current_insn".
10252         (cselib_process_insn): Replace use of NULL_RTX with NULL.
10253
10254         * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
10255         from rtx to rtx_insn *.
10256
10257 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10258
10259         * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
10260         rtx_insn *.
10261
10262 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10263
10264         * df.h (df_dump_insn_problem_function): Strengthen first param of
10265         this callback from const_rtx to const rtx_insn *.
10266         (struct df_insn_info): Strengthen field "insn" from rtx to
10267         rtx_insn *.
10268         (DF_REF_INSN): Eliminate this function, reinstating the older
10269         macro definition.
10270         (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
10271         (df_reg_defined): Likewise.
10272         (df_find_use): Likewise.
10273         (df_reg_used): Likewise.
10274         (df_dump_insn_top): Strengthen param 1 from const_rtx to
10275         const rtx_insn *.
10276         (df_dump_insn_bottom): Likewise.
10277         (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
10278         (df_insn_debug_regno): Likewise.
10279         (debug_df_insn): Likewise.
10280         (df_rd_simulate_one_insn): Likewise for param 2.
10281         (df_word_lr_simulate_defs): Likewise for param 1.
10282         (df_word_lr_simulate_uses): Likewise.
10283         (df_md_simulate_one_insn): Likewise for param 2.
10284         (df_simulate_find_noclobber_defs): Likewise for param 1.
10285         (df_simulate_find_defs): Likewise.
10286         (df_simulate_defs): Likewise.
10287         (df_simulate_uses): Likewise.
10288         (df_simulate_one_insn_backwards): Likewise for param 2.
10289         (df_simulate_one_insn_forwards): Likewise.
10290         (df_uses_create): Likewise for param 2.
10291         (df_insn_create_insn_record): Likewise for param 1.
10292         (df_insn_delete): Likewise.
10293         (df_insn_rescan): Likewise.
10294         (df_insn_rescan_debug_internal): Likewise.
10295         (df_insn_change_bb): Likewise.
10296         (df_notes_rescan): Likewise.
10297         * rtl.h (remove_death): Likewise for param 2.
10298         (print_rtl_with_bb): Strengthen param 2 from const_rtx to
10299         const rtx_insn *.
10300         * sched-int.h (reemit_notes): Strengthen param from rtx to
10301         rtx_insn *.
10302         * valtrack.h (propagate_for_debug): Likewise for param 1.
10303
10304         * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
10305         local "tmp_rtx" from const_rtx to const rtx_insn *.
10306         * combine.c (remove_death): Strengthen param "insn" from rtx to
10307         rtx_insn *.
10308         (move_deaths): Likewise for local "where_dead".
10309         * cse.c (delete_trivially_dead_insns): Introduce local
10310         "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
10311         * df-core.c (df_find_def): Strengthen param "insn" from rtx to
10312         rtx_insn *.
10313         (df_reg_defined): Likewise.
10314         (df_find_use): Likewise.
10315         (df_reg_used): Likewise.
10316         (df_dump_insn_problem_data): Strengthen param "insn" from
10317         const_rtx to const rtx_insn *.
10318         (df_dump_insn_top): Likewise.
10319         (df_dump_insn_bottom): Likewise.
10320         (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
10321         (df_insn_debug_regno): Likewise.
10322         (debug_df_insn): Likewise.
10323         (DF_REF_INSN): Delete.
10324         * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
10325         from rtx to rtx_insn *.
10326         (df_chain_insn_top_dump): Strengthen param "insn" from
10327         const_rtx to const rtx_insn *.
10328         (df_chain_insn_bottom_dump): Likewise.
10329         (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
10330         rtx_insn *.
10331         (df_word_lr_simulate_uses): Likewise.
10332         (df_print_note): Likewise.
10333         (df_remove_dead_and_unused_notes): Likewise.
10334         (df_set_unused_notes_for_mw): Likewise.
10335         (df_set_dead_notes_for_mw): Likewise.
10336         (df_create_unused_note): Likewise.
10337         (df_simulate_find_defs): Likewise.
10338         (df_simulate_find_uses): Likewise.
10339         (df_simulate_find_noclobber_defs): Likewise.
10340         (df_simulate_defs): Likewise.
10341         (df_simulate_uses): Likewise.
10342         (df_simulate_one_insn_backwards): Likewise.
10343         (df_simulate_one_insn_forwards): Likewise.
10344         (df_md_simulate_one_insn): Likewise.
10345         * df-scan.c (df_uses_create): Likewise.
10346         (df_insn_create_insn_record): Likewise.
10347         (df_insn_delete): Likewise.
10348         (df_insn_rescan): Likewise.
10349         (df_insn_rescan_debug_internal): Likewise.
10350         (df_insn_change_bb): Likewise.
10351         (df_notes_rescan): Likewise.
10352         (df_refs_add_to_chains): Likewise.
10353         (df_insn_refs_verify): Likewise.
10354         * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
10355         when invoking df_insn_delete.
10356         (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
10357         (set_unique_reg_note): Add checked cast.
10358         * final.c (cleanup_subreg_operands): Likewise.
10359         * gcse.c (update_ld_motion_stores): Likewise, strengthening local
10360         "insn" from rtx to rtx_insn *.
10361         * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
10362         "last" from rtx to rtx_insn *.
10363         * ira-emit.c (change_regs_in_insn): New function.
10364         (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
10365         Invoke change_regs_in_insn rather than change_regs.
10366         * ira.c (update_equiv_regs): Strengthen locals "insn",
10367         "init_insn", "new_insn" from rtx to rtx_insn *.  Invoke
10368         for_each_rtx_in_insn rather than for_each_rtx.
10369         * recog.c (confirm_change_group): Add checked casts.
10370         (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
10371         Add checked cast.
10372         (peep2_fill_buffer): Add checked cast.
10373         * rtlanal.c (remove_note): Likewise.
10374         * valtrack.c (propagate_for_debug): Strengthen param "insn" and
10375         locals "next" "end" from rtx to rtx_insn *.
10376
10377 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10378
10379         * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
10380         to rtx_insn *.
10381         (struct reg_use_data): Likewise for field "insn".
10382         (insn_cost): Likewise for param.
10383         (real_insn_for_shadow): Likewise for return type and param.
10384         (increase_insn_priority): Likewise for param 1.
10385         (debug_dependencies): Likewise for both params.
10386
10387         * haifa-sched.c (insn_delay): Likewise for param "insn".
10388         (real_insn_for_shadow): Likewise for return type and param "insn".
10389         (update_insn_after_change): Likewise for param "insn".
10390         (recompute_todo_spec): Likewise for param "next" and locals "pro",
10391         "other".
10392         (insn_cost): Likewise for param "insn".
10393         (increase_insn_priority): Likewise.
10394         (calculate_reg_deaths): Likewise.
10395         (setup_insn_reg_pressure_info): Likewise.
10396         (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
10397         (model_index): Strengthen param "insn" from rtx to rtx_insn *.
10398         (model_recompute): Likewise.
10399         (must_restore_pattern_p): Likewise for param "next".
10400         (model_excess_cost): Likewise for param "insn".
10401         (queue_remove): Likewise.
10402         (adjust_priority): Likewise for param "prev".
10403         (update_register_pressure): Likewise for param "insn".
10404         (setup_insn_max_reg_pressure): Likewise for local "insn".
10405         (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
10406         (model_add_to_schedule): Likewise.
10407         (model_reset_queue_indices): Likewise for local "insn".
10408         (unschedule_insns_until): Strengthen local "recompute_vec" from
10409         auto_vec<rtx> to auto_vec<rtx_insn *>.  Strengthen locals "last",
10410         "con" from rtx to rtx_insn *.
10411         (restore_last_backtrack_point): Likewise for both locals "x". Add
10412         checked casts.
10413         (estimate_insn_tick): Likewise for param "insn".
10414         (commit_schedule): Likewise for params "prev_head", "tail" and
10415         local "x".
10416         (verify_shadows): Likewise for locals "i1", "i2".
10417         (dump_insn_stream): Likewise for params "head", "tail" and locals
10418         "next_tail", "insn".
10419         (schedule_block): Likewise for locals "insn", "x".  Add a checked
10420         cast.
10421         (fix_inter_tick): Likewise for params "head", "tail".
10422         (create_check_block_twin): Likewise for local "jump".
10423         (haifa_change_pattern): Likewise for param "insn".
10424         (haifa_speculate_insn): Likewise.
10425         (dump_new_block_header): Likewise for params "head", "tail".
10426         (fix_jump_move): Likewise for param "jump".
10427         (move_block_after_check): Likewise.
10428         (sched_init_insn_luid): Likewise for param "insn".
10429         (sched_init_luids): Likewise for local "insn".
10430         (insn_luid): Likewise for param "insn".
10431         (init_h_i_d): Likewise.
10432         (haifa_init_h_i_d): Likewise for local "insn".
10433         (haifa_init_insn): Likewise for param "insn".
10434         * sched-deps.c (add_dependence): Likewise for local "real_pro",
10435         "other".
10436         (create_insn_reg_use): Likewise for param "insn".
10437         (setup_insn_reg_uses): Likewise.  Add a checked cast.
10438         * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
10439         "tail" from rtx to rtx_insn *.
10440         * sched-rgn.c (void debug_dependencies): Likewise, also for locals
10441         "insn", "next_tail".
10442
10443 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10444
10445         * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
10446         from rtx to rtx_insn *.
10447         (model_add_to_schedule): Likewise for locals "start", "end",
10448         "iter".
10449
10450 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10451
10452         * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
10453         rtx_insn *.
10454         * cfgrtl.c (duplicate_insn_chain): Likewise for  params "from",
10455         "to" and locals "insn", "next", "copy".  Remove now-redundant
10456         checked cast.
10457
10458 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10459
10460         * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
10461         rtx_insn * and param 4 from rtx * to rtx_insn **.
10462         (get_condition): Strengthen param 1 from rtx to rtx_insn * and
10463         param 2 from rtx * to rtx_insn **.
10464
10465         * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
10466         rtx_insn * and final param from rtx * to rtx_insn **.
10467
10468         * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
10469         from rtx to rtx_insn *.
10470         (try_head_merge_bb): Likewise for both locals named "move_upto".
10471         * df-problems.c (can_move_insns_across): Likewise for params
10472         "from", "to", "across_from", "across_to" and locals "insn",
10473         "next", "max_to".  Strengthen param "pmove_upto" from rtx * to
10474         rtx_insn **.
10475         * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
10476         from rtx to rtx_insn *.
10477         (noce_get_alt_condition): Strengthen param "earliest" from rtx *
10478         to rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
10479         (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
10480         rtx_insn *.
10481         (noce_try_abs): Likewise.
10482         (noce_get_condition): Likewise for param "jump".  Strengthen param
10483         "earliest" from rtx * to rtx_insn **.
10484         (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
10485         rtx_insn *.
10486         (find_cond_trap): Likewise.
10487         (dead_or_predicable): Likewise for local "earliest".
10488         * loop-iv.c (check_simple_exit): Likewise for local "at".  Add
10489         checked cast.
10490         * rtlanal.c (canonicalize_condition): Likewise for param "insn"
10491         and local "prev".  Strengthen param "earliest" from rtx * to
10492         rtx_insn **.
10493         (get_condition): Strengthen param "jump" from rtx to rtx_insn *
10494         Strengthen param "earliest" from rtx * to rtx_insn **.
10495
10496 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10497
10498         * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
10499         "to" and local "insn" from rtx to rtx_insn *.
10500
10501 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10502
10503         * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
10504         from rtx to rtx_insn *.
10505         (need_nop_to_preserve_insn_bb): Likewise for param "insn".
10506         (code_motion_path_driver): Likewise for local "last_insn".
10507         (simplify_changed_insns): Likewise for local "insn".
10508
10509 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10510
10511         * rtl.h (push_to_sequence): Strengthen param from rtx to
10512         rtx_insn *.
10513         (push_to_sequence2): Likewise for both params.
10514         (delete_insns_since): Likewise for param.
10515         (reorder_insns_nobb): Likewise for all three params.
10516         (set_new_first_and_last_insn): Likewise for both params.
10517
10518         * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
10519         rtx_insn *.  Remove now-redundant cast.
10520         (set_last_insn): Likewise.
10521
10522         * builtins.c (expand_builtin_return): Strengthen local
10523         "call_fusage" from rtx to rtx_insn *.
10524         * cfgrtl.c (create_basic_block_structure): Likewise for local
10525         "after".
10526         * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
10527         "first", "last" and local "insn".
10528         (delete_insns_since): Likewise for param "from".
10529         (reorder_insns_nobb): Likewise for params "from", "to", "after"
10530         and local "x".
10531         (push_to_sequence): Likewise for param "first" and local "last".
10532         (push_to_sequence2): Likewise for params "first" and "last".
10533         * lra.c (emit_add3_insn): Likewise for local "last".
10534         (lra_emit_add): Likewise.
10535         * lra-constraints.c (base_to_reg): Likewise for locals "insn",
10536         "last_insn".
10537         (process_address_1): Likewise for locals "insn", last".
10538         * modulo-sched.c (ps_first_note): Likewise for return type.
10539         * optabs.c (expand_binop_directly): Likewise for param "last".
10540
10541 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10542
10543         * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
10544         to rtx_insn*.
10545         * emit-rtl.c (get_last_insn_anywhere): Likewise.
10546
10547 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10548
10549         * function.h (struct sequence_stack): Strengthen fields "first"
10550         and "last" from rtx to rtx_insn *.
10551         (struct emit_status): Likewise for fields "x_first_insn" and
10552         "x_last_insn".
10553
10554         * emit-rtl.h (get_insns): Remove now-redundant checked cast.
10555         (set_first_insn): Add checked cast.
10556         (get_last_insn): Remove now-redundant checked cast.
10557         (set_last_insn): Add checked cast.
10558
10559         * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
10560         "saved_first" and "saved_last" from rtx to rtx_insn *.
10561
10562 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10563
10564         * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
10565         (unlink_insn_chain): Strengthen both params from rtx to
10566         rtx_insn *.
10567
10568         * cfgrtl.c (cfg_layout_function_header): Likewise for this
10569         variable.
10570         (unlink_insn_chain): Likewise for params "first" and "last".
10571         Remove now-redundant checked cast.
10572         (record_effective_endpoints): Replace use of NULL_RTX with NULL.
10573         (fixup_reorder_chain): Strengthen local "insn" from rtx to
10574         rtx_insn *.
10575         * emit-rtl.c (link_insn_into_chain): Likewise for all three
10576         params.
10577         (add_insn): Likewise for param "insn" and local "prev".
10578         (add_insn_after_nobb): Likewise for both params and local "next".
10579         (add_insn_before_nobb): Likewise for both params and local "prev".
10580         (add_insn_after): Rename param "after" to "uncast_after",
10581         introducing local "after" with another checked cast.
10582         (add_insn_before): Rename params "insn" and "before", giving them
10583         "uncast_" prefixes, adding the old names back using checked casts.
10584         (emit_note_after): Likewise for param "after".
10585         (emit_note_before): Likewise for param "before".
10586         (emit_label): Add a checked cast.
10587
10588 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10589
10590         * cselib.h (cselib_record_sets_hook):  Strengthen initial param
10591         "insn" from rtx to rtx_insn *.
10592
10593         * cselib.c (cselib_record_sets_hook): Likewise.
10594
10595         * var-tracking.c (add_with_sets): Likewise, renaming back from
10596         "uncast_insn" to "insn" and eliminating the checked cast from rtx
10597         to rtx_insn *.
10598
10599 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10600
10601         * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
10602         and "header_" from rtx to rtx_insn *.
10603         (struct basic_block_d): Likewise for field "head_" within "x"
10604         field of union basic_block_il_dependent.
10605         (BB_HEAD): Drop function...
10606         (SET_BB_HEAD): ...and this function in favor of...
10607         (BB_HEAD): ...reinstate macro.
10608         (BB_END): Drop function...
10609         (SET_BB_END): ...and this function in favor of...
10610         (BB_END): ...reinstate macro.
10611         (BB_HEADER): Drop function...
10612         (SET_BB_HEADER): ...and this function in favor of...
10613         (BB_HEADER): ...reinstate macro.
10614
10615         * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
10616         (fix_crossing_unconditional_branches): Likewise.
10617         * caller-save.c (save_call_clobbered_regs): Likewise.
10618         (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
10619         * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
10620         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10621         (merge_blocks_move_successor_nojumps): Likewise.
10622         (outgoing_edges_match): Update use of for_each_rtx to
10623         for_each_rtx_in_insn.
10624         * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
10625         (expand_gimple_cond): Likewise.
10626         (expand_gimple_tailcall): Likewise.
10627         (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
10628         SET_BB_END.
10629         (construct_exit_block): Drop use of SET_BB_END.
10630         * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
10631         rtx_insn *.
10632         (delete_insn): Rename param "insn" to "uncast_insn", introducing
10633         a new local "insn" with a checked cast to rtx_insn *.  Drop use of
10634         SET_BB_HEAD and SET_BB_END.
10635         (create_basic_block_structure): Drop use of SET_BB_HEAD and
10636         SET_BB_END.
10637         (rtl_delete_block): Drop use of SET_BB_HEAD.
10638         (rtl_split_block): Drop use of SET_BB_END.
10639         (emit_nop_for_unique_locus_between): Likewise.
10640         (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
10641         (block_label): Drop use of SET_BB_HEAD.
10642         (fixup_abnormal_edges): Drop use of SET_BB_END.
10643         (record_effective_endpoints): Drop use of SET_BB_HEADER.
10644         (relink_block_chain): Likewise.
10645         (fixup_reorder_chain): Drop use of SET_BB_END.
10646         (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
10647         (cfg_layout_delete_block): Strengthen local "to" from rtx * to
10648         rtx_insn **.  Drop use of SET_BB_HEADER.
10649         (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
10650         SET_BB_HEAD.
10651         (BB_HEAD): Delete this function.
10652         (SET_BB_HEAD): Likewise.
10653         (BB_END): Likewise.
10654         (SET_BB_END): Likewise.
10655         (BB_HEADER): Likewise.
10656         (SET_BB_HEADER): Likewise.
10657         * emit-rtl.c (add_insn_after):  Rename param "insn" to
10658         "uncast_insn", adding a new local "insn" and a checked cast to
10659         rtx_insn *.  Drop use of SET_BB_END.
10660         (remove_insn): Strengthen locals "next" and "prev" from rtx to
10661         rtx_insn *.  Drop use of SET_BB_HEAD and SET_BB_END.
10662         (reorder_insns): Drop use of SET_BB_END.
10663         (emit_insn_after_1): Strengthen param "first" and locals "last",
10664         "after_after" from rtx to rtx_insn *.  Drop use of SET_BB_END.
10665         (emit_pattern_after_noloc): Add checked cast.
10666         * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
10667         (restore_other_notes): Likewise.
10668         (move_insn): Likewise.
10669         (sched_extend_bb): Likewise.
10670         (fix_jump_move): Likewise.
10671         * ifcvt.c (noce_process_if_block): Likewise.
10672         (dead_or_predicable): Likewise.
10673         * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
10674         * reg-stack.c (change_stack): Drop use of SET_BB_END.
10675         * sel-sched-ir.c (sel_move_insn): Likewise.
10676         * sel-sched.c (move_nop_to_previous_block): Likewise.
10677
10678         * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
10679         SET_BB_END.
10680         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10681
10682 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10683
10684         * basic-block.h (create_basic_block_structure): Strengthen params
10685         1 "head" and 2 "end" from rtx to rtx_insn *.
10686         * cfgrtl.c (create_basic_block_structure): Likewise.
10687         (rtl_create_basic_block): Update casts from void * to rtx to
10688         rtx_insn *, so that we can pass them as rtx_insn * to
10689         create_basic_block_structure.
10690         * sel-sched-ir.c (sel_create_basic_block): Likewise.
10691
10692 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10693
10694         * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
10695         rtx_insn **.
10696         (check_for_inc_dec): Strengthen param "insn" from rtx to
10697         rtx_insn *.
10698
10699         * cselib.h (cselib_process_insn): Likewise.
10700
10701         * cselib.c (cselib_record_sets): Likewise.
10702         (cselib_process_insn): Likewise.
10703
10704         * dse.c (struct insn_info): Likewise for field "insn".
10705         (check_for_inc_dec_1): Likewise for local "insn".
10706         (check_for_inc_dec): Likewise for param "insn".
10707         (scan_insn): Likewise.
10708         (dse_step1): Likewise for local "insn".
10709
10710         * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
10711         rtx_insn **.  Use for_each_rtx_in_insn rather than for_each_rtx.
10712
10713 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10714
10715         * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
10716         from rtx to rtx_insn *.
10717         (DEP_PRO): Delete this function and...
10718         (SET_DEP_PRO): ...this function in favor of...
10719         (DEP_PRO): ...reinstate this macro.
10720         (DEP_CON): Delete this function and...
10721         (SET_DEP_CON): ...this function in favor of...
10722         (DEP_CON): ...reinstate this old macro.
10723         (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
10724         (init_dep): Likewise.
10725         (set_priorities): Likewise for both params.
10726         (sd_copy_back_deps): Likewise for params 1 and 2.
10727
10728         * haifa-sched.c (priority): Likewise for param "insn" and local
10729         "next".
10730         (set_priorities): Likewise for params "head" and "tail" and local
10731         "insn".
10732         (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
10733         local "consumer".
10734         (add_to_speculative_block): Add a checked cast.
10735         (create_check_block_twin): Drop use of SET_DEP_CON.
10736         (add_jump_dependencies): Strengthen params "insn" and "jump" from
10737         rtx to rtx_insn *.
10738
10739         * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
10740         Drop use of SET_DEP_PRO
10741         (init_dep): Strengthen params "pro" and "con" from rtx to
10742         rtx_insn *.
10743         (sd_copy_back_deps): Likewise for params "to" and "from".  Drop
10744         use of SET_DEP_CON.
10745         (DEP_PRO): Delete.
10746         (DEP_CON): Delete.
10747         (SET_DEP_PRO): Delete.
10748         (SET_DEP_CON): Delete.
10749
10750 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10751
10752         * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
10753         from rtx to rtx_insn *.
10754         (VINSN_INSN_RTX): Eliminate rvalue function and...
10755         (SET_VINSN_INSN): ...lvalue function in favor of...
10756         (VINSN_INSN_RTX): reinstate this old macro.
10757
10758         * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
10759         in favor of VINSN_INSN_RTX.
10760         (VINSN_INSN_RTX): Delete this function.
10761         (SET_VINSN_INSN_RTX): Likewise.
10762
10763 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10764
10765         * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
10766         (BND_TO): Delete this function and...
10767         (SET_BND_TO): ...this functions in favor of...
10768         (BND_TO): ...reinstating this macro.
10769         (struct _fence): Strengthen field "executing_insns" from
10770         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.  Strengthen fields
10771         "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
10772         (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
10773         and param "insn" from rtx to insn_t.
10774         (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
10775         rtx_insn *.
10776
10777         * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
10778         vec<rtx_insn *> .
10779         (rtx_vec_t): Likewise.
10780         (struct sched_deps_info_def): Strengthen param of "start_insn"
10781         callback from rtx to rtx_insn *.  Likewise for param "insn2" of
10782         "note_mem_dep" callback and first param of "note_dep" callback.
10783
10784         * haifa-sched.c (add_to_speculative_block): Strengthen param
10785         "insn" from rtx to rtx_insn *.
10786         (clear_priorities): Likewise.
10787         (calc_priorities): Likewise for local "insn".
10788
10789         * sched-deps.c (haifa_start_insn): Likewise for param "insn".
10790         Remove redundant checked cast.
10791         (haifa_note_mem_dep): Likewise for param "pending_insn".
10792         (haifa_note_dep): Likewise for param "elem".
10793         (note_mem_dep): Likewise for param "e".
10794         (sched_analyze_1): Add checked casts.
10795         (sched_analyze_2): Likewise.
10796
10797         * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
10798         from rtx to rtx_insn *.
10799         (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
10800         from vec<rtx> * to vec<rtx_insn *> *.
10801
10802         * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
10803         scaffolding.
10804         (flist_add): Strengthen param "executing_insns" from
10805         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10806         (advance_deps_context): Remove now-redundant checked cast.
10807         (init_fences): Replace uses of NULL_RTX with NULL.
10808         (merge_fences): Strengthen params "last_scheduled_insn" and
10809         "sched_next" from rtx to rtx_insn * and "executing_insns" from
10810         vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
10811         (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
10812         (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
10813         an instruction, rather than doing double-duty as a pattern.
10814         (return_nop_to_pool): Update for change of insn_t.
10815         (deps_init_id): Remove now-redundant checked cast.
10816         (struct sched_scan_info_def): Strengthen param of "init_insn"
10817         callback from rtx to insn_t.
10818         (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
10819         (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
10820         NULL.
10821         (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
10822         "end" from rtx to rtx_insn *.
10823         (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
10824         (rtx insn_rtx, bool force_unique_p)
10825         (BND_TO): Delete function.
10826         (SET_BND_TO): Delete function.
10827
10828         * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
10829         rtx to rtx_insn *.
10830         (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
10831         (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
10832         rtx to rtx_insn *.
10833         (undo_transformations): Likewise for param "insn".
10834         (update_liveness_on_insn): Likewise.
10835         (compute_live_below_insn): Likewise for param "insn" and local
10836         "succ".
10837         (update_data_sets): Likewise for param "insn".
10838         (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
10839         (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
10840         (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
10841         rtx_insn *.
10842         (move_cond_jump): Likewise for param "insn".
10843         (move_cond_jump): Drop use of SET_BND_TO.
10844         (compute_av_set_on_boundaries): Likewise.
10845         (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
10846         (update_and_record_unavailable_insns): Strengthen local "bb_end"
10847         from rtx to rtx_insn *.
10848         (maybe_emit_renaming_copy): Likewise for param "insn".
10849         (maybe_emit_speculative_check): Likewise.
10850         (handle_emitting_transformations): Likewise.
10851         (remove_insn_from_stream): Likewise.
10852         (code_motion_process_successors): Strengthen local "succ" from rtx
10853         to insn_t.
10854
10855 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10856
10857         * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
10858         ilist_t, not _xlist_t;
10859         (ILIST_INSN): Define in terms of new union field "insn".
10860         (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
10861         _XLIST_NEXT.
10862         (struct _list_node): Add new field "insn" to the union, of type
10863         insn_t.
10864         (ilist_add): Replace macro with an inline function, requiring an
10865         insn_t.
10866         (ilist_remove): Define this macro directly in terms of
10867         _list_remove, rather than indirectly via _xlist_remove.
10868         (ilist_clear): Likewise, in terms of _list_clear rather than
10869         _xlist_clear.
10870         (ilist_is_in_p): Replace macro with an inline function, requiring
10871         an insn_t.
10872         (_list_iter_cond_insn): New function.
10873         (ilist_iter_remove): Define this macro directly in terms of
10874         _list_iter_remove, rather than indirectly via _xlist_iter_remove.
10875         (ilist_iterator): Define directly in terms of _list_iterator
10876         rather than indirectly through _xlist_iterator.
10877         (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
10878         than in terms of _FOR_EACH_X.
10879         (FOR_EACH_INSN_1): Likewise.
10880
10881 2014-08-26  Joseph Myers  <joseph@codesourcery.com>
10882
10883         PR target/60606
10884         PR target/61330
10885         * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
10886         DECL_HARD_REGISTER and return for invalid register specifications.
10887         * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
10888         DECL_HARD_REGISTER, call expand_one_error_var.
10889         * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
10890         CC_REGNUM with non-MODE_CC modes.
10891         (arm_regno_class): Return NO_REGS for PC_REGNUM.
10892
10893 2014-08-26  Marek Polacek  <polacek@redhat.com>
10894
10895         PR c/61271
10896         * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
10897
10898 2014-08-26  Evandro Menezes <e.menezes@samsung.com>
10899
10900         * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
10901         qi cost; add di cost.
10902         (cortexa57_addrcost_table): Likewise.
10903
10904 2014-08-26  Marek Polacek  <polacek@redhat.com>
10905
10906         PR c/61271
10907         * expr.c (is_aligning_offset): Remove logical not.
10908
10909 2014-08-26  Marek Polacek  <polacek@redhat.com>
10910
10911         PR c/61271
10912         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
10913         LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
10914
10915 2014-08-26  Richard Biener  <rguenther@suse.de>
10916
10917         PR tree-optimization/62175
10918         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10919         expand possibly trapping operations.
10920
10921 2014-08-26  David Malcolm  <dmalcolm@redhat.com>
10922
10923         * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
10924         "insn" from rtx to rtx_insn *.
10925         (permute_load): Likewise for param "insn".
10926         (permute_store): Likewise.
10927         (handle_special_swappables): Likewise for local "insn".
10928         (replace_swap_with_copy): Likewise for locals "insn" and
10929         "new_insn".
10930         (rs6000_analyze_swaps): Likewise for local "insn".
10931
10932 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10933
10934         * regrename.h (struct du_chain): Strengthen field "insn" from rtx
10935         to rtx_insn *.
10936
10937 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10938
10939         * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
10940         "note_list" from rtx to rtx_insn *.
10941         (BB_NOTE_LIST): Replace this function and...
10942         (SET_BB_NOTE_LIST): ...this function with...
10943         (BB_NOTE_LIST): ...the former macro implementation.
10944
10945         * sched-int.h (concat_note_lists): Strengthen param "from_end" and
10946         local "from_start" from rtx to rtx_insn *.  Strengthen param
10947         "to_endp" from rtx * to rtx_insn **.
10948
10949         * haifa-sched.c (concat_note_lists): Likewise.
10950         * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
10951         BB_NOTE_LIST.
10952         (sel_restore_notes): Likewise.
10953         (move_bb_info): Likewise.
10954         (BB_NOTE_LIST): Delete this function.
10955         (SET_BB_NOTE_LIST): Delete this function.
10956         * sel-sched.c (create_block_for_bookkeeping): Eliminate
10957         SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
10958
10959 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
10960
10961         * target.def (reorder): Strengthen param "ready" of this DEFHOOK
10962         from rtx * to rtx_insn **.
10963         (reorder2): Likewise.
10964         (dependencies_evaluation_hook): Strengthen params "head", "tail"
10965         from rtx to rtx_insn *.
10966
10967         * doc/tm.texi: Update mechanically for above change to target.def.
10968
10969         * sched-int.h (note_list): Strengthen this variable from rtx to
10970         rtx_insn *.
10971         (remove_notes): Likewise for both params.
10972         (restore_other_notes): Likewise for return type and first param.
10973         (struct ready_list): Strengthen field "vec" from rtx * to
10974         rtx_insn **.
10975         (struct dep_replacement): Strenghten field "insn" from rtx to
10976         rtx_insn *.
10977         (struct deps_desc): Likewise for fields "last_debug_insn",
10978         "last_args_size".
10979         (struct haifa_sched_info): Likewise for callback field
10980         "can_schedule_ready_p"'s param, for first param of "new_ready"
10981         callback field, for both params of "rank" callback field, for
10982         first field of "print_insn" callback field (with a const), for
10983         both params of "contributes_to_priority" callback, for param
10984         of "insn_finishes_block_p" callback, for fields "prev_head",
10985         "next_tail", "head", "tail", for first param of "add_remove_insn"
10986         callback, for first param of "begin_schedule_ready" callback, for
10987         both params of "begin_move_insn" callback, and for second param
10988         of "advance_target_bb" callback.
10989         (add_dependence): Likewise for params 1 and 2.
10990         (sched_analyze): Likewise for params 2 and 3.
10991         (deps_analyze_insn): Likewise for param 2.
10992         (ready_element): Likewise for return type.
10993         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
10994         (try_ready): Strenghten param from rtx to rtx_insn *.
10995         (sched_emit_insn): Likewise for return type.
10996         (record_delay_slot_pair): Likewise for params 1 and 2.
10997         (add_delay_dependencies): Likewise for param.
10998         (contributes_to_priority): Likewise for both params.
10999         (find_modifiable_mems): Likewise.
11000
11001         * config/arm/arm.c (cortexa7_sched_reorder):  Strengthen param
11002         "ready" from rtx * to rtx_insn **.  Strengthen locals "insn",
11003         "first_older_only_insn" from rtx to rtx_insn *.
11004         (arm_sched_reorder):  Strengthen param "ready"  from rtx * to
11005         rtx_insn **.
11006
11007         * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
11008         "last_scheduled_iter0" from rtx to rtx_insn *.
11009         (init_sched_state): Replace use of NULL_RTX with NULL for insn.
11010         (c6x_sched_reorder_1): Strengthen param "ready" and locals
11011         "e_ready", "insnp" from rtx * to rtx_insn **.  Strengthen local
11012         "insn" from rtx to rtx_insn *.
11013         (c6x_sched_reorder): Strengthen param "ready" from rtx * to
11014         rtx_insn **.
11015         (c6x_sched_reorder2): Strengthen param "ready" and locals
11016         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
11017         "insn" from rtx to rtx_insn *.
11018         (c6x_variable_issue):  Add a checked cast when assigning from insn
11019         to ss.last_scheduled_iter0.
11020         (split_delayed_branch): Strengthen param "insn" and local "i1"
11021         from rtx to rtx_insn *.
11022         (split_delayed_nonbranch): Likewise.
11023         (undo_split_delayed_nonbranch): Likewise for local "insn".
11024         (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
11025         "entry_after", "end_packet", "head_insn", "tail_insn",
11026         "new_insns", "last_insn", "this_iter", "prev_stage_insn".
11027         Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
11028         to rtx_insn **.  Remove now-redundant checked cast on last_insn,
11029         but add a checked cast on loop->start_label.  Consolidate calls to
11030         avoid assigning result of gen_spkernel to "insn", now an
11031         rtx_insn *.
11032
11033         * config/i386/i386.c (do_reorder_for_imul): Strengthen param
11034         "ready" from rtx * to rtx_insn **.  Strengthen local "insn" from
11035         rtx to rtx_insn *.
11036         (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
11037         rtx_insn **.  Strengthen locals "top", "next" from rtx to
11038         rtx_insn *.
11039         (ix86_sched_reorder): Strengthen param "ready" from rtx * to
11040         rtx_insn **.  Strengthen local "insn" from rtx to rtx_insn *.
11041         (add_parameter_dependencies): Strengthen params "call", "head" and
11042         locals "insn", "last", "first_arg" from rtx to rtx_insn *.
11043         (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
11044         (add_dependee_for_func_arg): Likewise for param "arg" and local
11045         "insn".
11046         (ix86_dependencies_evaluation_hook): Likewise for params "head",
11047         "tail" and locals "insn", "first_arg".
11048
11049         * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
11050         for params "head", "tail" and locals "insn", "next", "next_tail".
11051         (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
11052         "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
11053         "insn", "lowest", "highest" from rtx to rtx_insn *.
11054         (ia64_sched_reorder): Strengthen param "ready" from rtx * to
11055         rtx_insn **.
11056         (ia64_sched_reorder2): Likewise.
11057
11058         * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
11059         and local "insn" from rtx to rtx_insn *.  Strengthen param "ready"
11060         from rtx * to rtx_insn **.
11061         (mep_move_ready_insn): Strengthen param "ready" from rtx * to
11062         rtx_insn **.
11063         (mep_print_sched_insn): Strengthen param "insn" from rtx to
11064         rtx_insn *.
11065         (mep_sched_reorder): Strengthen param "ready" from rtx * to
11066         rtx_insn **.  Strengthen locals "core_insn", "cop_insn" from rtx
11067         to rtx_insn *.
11068
11069         * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
11070         from rtx * to rtx_insn **.  Strengthen local "new_head" from rtx
11071         to rtx_insn *.
11072         (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
11073         rtx_insn **.  Strengthen local "temp" from rtx to rtx_insn *.
11074         (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
11075         rtx_insn **.
11076         (vr4130_reorder): Likewise.
11077         (mips_74k_agen_reorder): Likewise.  Strengthen local "insn" from
11078         rtx to rtx_insn *.
11079         (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
11080         rtx_insn **.
11081         (mips_sched_reorder): Likewise.
11082         (mips_sched_reorder2): Likewise.
11083
11084         * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
11085
11086         * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
11087         Strengthen local "tmp" from rtx to rtx_insn *.
11088         (rs6000_sched_reorder2): Likewise.
11089
11090         * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
11091         Likewise.  Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
11092         (s390_sched_reorder): Strengthen param "ready" from rtx * to
11093         rtx_insn **.  Strengthen local "tmp" from rtx to rtx_insn *.
11094
11095         * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
11096         "tmp2" from rtx to rtx_insn *.
11097         (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
11098         Strengthen local "insn" from rtx to rtx_insn *.
11099         (ready_reorder): Strengthen param "ready" from rtx * to
11100         rtx_insn **.  Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
11101         (sh_reorder):  Strengthen param "ready" from rtx * to rtx_insn **.
11102         (sh_reorder2): Likewise.
11103
11104         * config/spu/spu.c (spu_sched_reorder): Likewise.  Strengthen
11105         local "insn" from rtx to rtx_insn *.
11106
11107         * haifa-sched.c (note_list): Strengthen this variable from rtx to
11108         rtx_insn *.
11109         (scheduled_insns): Strengthen this variable from vec<rtx> to
11110         vec<rtx_insn *>.
11111         (set_modulo_params): Likewise for locals "i1", "i2".
11112         (record_delay_slot_pair): Likewise for params "i1", "i2".
11113         (add_delay_dependencies): Likewise for param "insn".
11114         (cond_clobbered_p): Likewise.
11115         (recompute_todo_spec): Likewise for local "prev".
11116         (last_scheduled_insn): Likewise for this variable.
11117         (nonscheduled_insns_begin): Likewise.
11118         (model_set_excess_costs): Strengthen param "insns" from rtx * to
11119         rtx_insn **.
11120         (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
11121         rtx_insn *.
11122         (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
11123         Strengthen local "insn" from rtx to rtx_insn *.
11124         (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
11125         (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
11126         (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
11127         (ready_remove_first): Likewise for return type and local "t".
11128         (ready_element): Likewise for return type.
11129         (ready_remove): Likewise for return type and local "t".
11130         (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
11131         (check_clobbered_conditions): Strengthen local "x" from rtx to
11132         rtx_insn *, adding a checked cast.
11133         (schedule_insn): Likewise for param "insn".
11134         (remove_notes): Likewise for params "head", "tail" and locals
11135         "next_tail", "insn", "next".
11136         (struct haifa_saved_data): Likewise for fields
11137         "last_scheduled_insn", "nonscheduled_insns_begin".
11138         (save_backtrack_point): Update for change to field "vec" of
11139         struct ready_list.
11140         (toggle_cancelled_flags): Strengthen local "first" from rtx * to
11141         rtx_insn **.
11142         (restore_last_backtrack_point): Likewise.  Strengthen local "insn"
11143         from rtx to rtx_insn *
11144         (resolve_dependencies): Strengthen param "insn" from rtx to
11145         rtx_insn *
11146         (restore_other_notes): Likewise for return type, for param "head"
11147         and local "note_head".
11148         (undo_all_replacements): Likewise for local "insn".
11149         (first_nonscheduled_insn): Likewise for return type and local "insn".
11150         (queue_to_ready): Likewise for local "insn", adding checked casts.
11151         (early_queue_to_ready): Likewise for local "insn".
11152         (debug_ready_list_1): Strengthen local "p" from rtx * to
11153         rtx_insn **.
11154         (move_insn): Strengthen param "insn" and local "note" from rtx to
11155         rtx_insn *
11156         (insn_finishes_cycle_p): Likewise for param "insn".
11157         (max_issue): Likewise for local "insn".
11158         (choose_ready): Likewise.  Strengthen param "insn_ptr" from rtx *
11159         to rtx_insn **.
11160         (commit_schedule): Strengthen param "prev_head" and local "insn"
11161         from rtx to rtx_insn *
11162         (prune_ready_list): Likewise for local "insn".
11163         (schedule_block): Likewise for locals "prev_head", "head", "tail",
11164         "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
11165         (set_priorities): Likewise for local "prev_head".
11166         (try_ready): Likewise for param "next".
11167         (fix_tick_ready): Likewise.
11168         (change_queue_index): Likewise.
11169         (sched_extend_ready_list): Update for change to field "vec" of
11170         struct ready_list.
11171         (generate_recovery_code): Strengthen param "insn" from rtx to
11172         rtx_insn *.
11173         (begin_speculative_block): Likewise.
11174         (create_check_block_twin): Likewise for param "insn" and locals
11175         "label", "check", "twin".  Introduce local "check_pat" to avoid
11176         "check" being used as a plain rtx before being used as an insn.
11177         (fix_recovery_deps): Add a checked cast to rtx_insn * when
11178         extracting elements from ready_list.
11179         (sched_remove_insn): Strengthen param "insn" from rtx to
11180         rtx_insn *.
11181         (sched_emit_insn): Likewise for return type.
11182         (ready_remove_first_dispatch): Likewise for return type and local
11183         "insn".
11184
11185         * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
11186
11187         * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
11188         const rtx_insn *.
11189
11190         * sched-deps.c (add_dependence): Strengthen params "con", "pro"
11191         from rtx to rtx_insn *.
11192         (add_dependence_list): Likewise for param "insn".  Add a checked
11193         cast.
11194         (add_dependence_list_and_free): Strengthen param "insn" from rtx
11195         to rtx_insn *.  Strengthen param "list_p" from rtx * to
11196         rtx_insn **.
11197         (chain_to_prev_insn): Strengthen param "insn" and locals
11198         "prec_nonnote", "i" from rtx to rtx_insn *.
11199         (flush_pending_lists): Likewise for param "insn".
11200         (cur_insn): Likewise for this variable.
11201         (haifa_start_insn): Add a checked cast.
11202         (note_dep): Strengthen param "e" from rtx to rtx_insn *.
11203         (sched_analyze_reg): Likewise for param "insn".
11204         (sched_analyze_1): Likewise.
11205         (sched_analyze_2): Likewise.  Add checked casts.
11206         (sched_analyze_insn): Likewise.  Also for local "prev".
11207         (deps_analyze_insn): Likewise for param "insn".
11208         (sched_analyze): Likewise for params "head", "tail" and local "insn".
11209         (add_dependence_1): Likewise for params "insn", "elem".
11210         (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
11211         (parse_add_or_inc): Likewise for param "insn".
11212         (find_inc): Likewise for local "inc_cand".
11213         (find_modifiable_mems): Likewise for params "head", "tail" and
11214         locals "insn", "next_tail".
11215
11216         * sched-ebb.c (init_ready_list): Likewise for local "insn".
11217         (begin_schedule_ready): Likewise for param "insn".
11218         (begin_move_insn): Likewise for params "insn" and "last".
11219         (ebb_print_insn): Strengthen param "insn" from const_rtx to
11220         const rtx_insn *.
11221         (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
11222         (ebb_contributes_to_priority): Likewise for params "next", "insn".
11223         (ebb_add_remove_insn): Likewise for param "insn".
11224         (advance_target_bb): Likewise.
11225
11226         * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
11227         "insn".
11228         (check_live): Likewise for param "insn".
11229         (init_ready_list): Likewise for local "insn".
11230         (can_schedule_ready_p): Likewise for param "insn".
11231         (begin_schedule_ready): Likewise.
11232         (new_ready): Likewise for param "next".
11233         (rgn_print_insn): Likewise for param "insn".
11234         (rgn_rank): Likewise for params "insn1", "insn2".
11235         (contributes_to_priority): Likewise for params "next", "insn".
11236         (rgn_insn_finishes_block_p): Likewise for param "insn".
11237         (add_branch_dependences): Likewise for params "head", "tail" and
11238         locals "insn", "last".
11239         (rgn_add_remove_insn): Likewise for param "insn".
11240         (advance_target_bb): Likewise.
11241
11242         * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
11243         const_rtx to const rtx_insn *.
11244
11245         * sel-sched-dump.h (sel_print_insn): Likewise.
11246
11247         * sel-sched-ir.c (advance_deps_context): Add a checked cast.
11248         (deps_init_id): Likewise.
11249
11250         * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
11251         (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
11252         rtx_insn **.
11253
11254 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11255
11256         * output.h (final_start_function): Strengthen param 1 from rtx to
11257         rtx_insn *.
11258
11259         * final.c (final_start_function): Likewise, renaming back from
11260         "uncast_first" to "first", and dropping the checked cast from rtx
11261         to rtx_insn *.
11262
11263 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11264
11265         * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
11266         * final.c (final): Likewise.  Rename param back from
11267         "uncast_first" to "first" and eliminate the checked cast from rtx
11268         to rtx_insn *.
11269
11270 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11271
11272         * output.h (shorten_branches): Strengthen param from rtx to
11273         rtx_insn *.
11274
11275         * final.c (shorten_branches): Likewise, renaming param back from
11276         "uncast_first" to "first", and dropping the checked cast from rtx
11277         to rtx_insn *.
11278
11279         * genattr.c (gen_attr): Likewise when writing out the prototype of
11280         shorten_branches.
11281
11282 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11283
11284         * sched-int.h (struct haifa_sched_info): Strengthen fields
11285         "prev_head" and "next_tail" from rtx to rtx_insn *.
11286
11287 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11288
11289         * rtl.h (rtx_jump_table_data::get_labels): New method.
11290         * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
11291         with use of the new rtx_jump_table_data::get_labels method.
11292         (purge_dead_tablejump_edges): Strengthen param "table" from rtx
11293         to rtx_jump_table_data *.  Simplify by using get_labels method.
11294         * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
11295         a dyn_cast, introducing local "table", using it to replace
11296         label-lookup logic with a get_labels method call.
11297         (patch_jump_insn): Simplify using get_labels method.
11298         * dwarf2cfi.c (create_trace_edges): Likewise.
11299         * rtlanal.c (label_is_jump_target_p): Likewise.
11300
11301 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11302
11303         * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
11304         to rtx_insn *.
11305
11306         * emit-rtl.c (unshare_all_rtl_1): Likewise.
11307         (unshare_all_rtl_again): Likewise, also for local "p".
11308
11309 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11310
11311         * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
11312         to rtx_insn *.
11313         * cfgrtl.c (delete_insn_and_edges): Likewise.
11314
11315 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11316
11317         * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
11318         from rtx to rtx_insn *.
11319
11320         * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
11321
11322 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11323
11324         * function.c (thread_prologue_and_epilogue_insns): Likewise for
11325         locals "returnjump", "epilogue_end", "insn", "next".
11326
11327         * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
11328         "returnjump" from rtx * to rtx_insn **.
11329         * shrink-wrap.c (get_unconverted_simple_return): Likewise.
11330
11331 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11332
11333         * basic-block.h (struct edge_def). Strengthen "r" within
11334         union edge_def_insns from rtx to rtx_insn *.
11335
11336         * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
11337         from rtx to rtx_insn *.  Strengthen local "insns" from rtx to
11338         rtx_insn *.
11339         * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
11340         from rtx to rtx_insn *.
11341         * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
11342         rtx_insn *.
11343         * postreload-gcse.c (reg_killed_on_edge): Likewise.
11344         (reg_used_on_edge): Likewise.
11345         * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
11346         (gt_pch_nx): New overload for rtx_insn *&.
11347         * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
11348         from rtx to rtx_insn *.
11349
11350 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11351
11352         * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
11353         from rtx to rtx_insn *.
11354         (BB_FOOTER): Replace function with access macro.
11355         (SET_BB_FOOTER): Delete.
11356
11357         * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
11358         with BB_FOOTER.
11359         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
11360         (emit_barrier_after_bb): Likewise.
11361         (record_effective_endpoints): Likewise.
11362         (relink_block_chain): Likewise.
11363         (fixup_fallthru_exit_predecessor): Likewise.
11364         (cfg_layout_duplicate_bb): Likewise.
11365         (cfg_layout_split_block): Likewise.
11366         (cfg_layout_delete_block): Likewise.
11367         (cfg_layout_merge_blocks): Likewise.
11368         (BB_FOOTER): Delete function.
11369         (SET_BB_FOOTER): Delete function.
11370         * combine.c (update_cfg_for_uncondjump): Replace uses of
11371         SET_BB_FOOTER with BB_FOOTER.
11372
11373 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11374
11375         * except.h (struct eh_landing_pad_d): Strengthen field
11376         "landing_pad" from rtx to rtx_code_label *.
11377
11378         * except.c (sjlj_emit_dispatch_table): Likewise for param
11379         "dispatch_label"
11380         (sjlj_build_landing_pads): Likewise for local "dispatch_label".
11381
11382 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11383
11384         * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
11385         first param from rtx to rtx_insn *.
11386         * config/xtensa/xtensa.c (struct machine_function): Likewise for
11387         field "set_frame_ptr_insn".
11388         (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
11389         "csend" from rtx to rtx_code_label *.
11390         (xtensa_expand_atomic): Likewise for local "csloop".
11391         (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
11392         rtx_insn *.
11393         (xtensa_call_tls_desc): Likewise for return type and locals
11394         "call_insn", "insns".
11395         (xtensa_legitimize_tls_address): Likewise for local "insns".
11396         (xtensa_expand_prologue): Likewise for locals "insn", "first".
11397
11398 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11399
11400         * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
11401         first param from rtx to rtx_insn *.
11402         * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
11403         "insn".
11404
11405 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11406
11407         * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
11408         Strengthen param 1 from rtx to rtx_insn *.
11409         (tilepro_output_cbranch): Likewise.
11410         (tilepro_adjust_insn_length): Likewise.
11411         (tilepro_final_prescan_insn): Likewise for sole param.
11412
11413         * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
11414         Likewise for local "last".
11415         (cbranch_predicted_p): Likewise for param "insn".
11416         (tilepro_output_simple_cbranch_with_opcode): Likewise.
11417         (tilepro_output_cbranch_with_opcode): Likewise.
11418         (tilepro_output_cbranch): Likewise.
11419         (frame_emit_load): Likewise for return type and locals "seq",
11420         "insn".
11421         (emit_sp_adjust): Likewise for return type and local "insn".
11422         (tilepro_expand_epilogue): Likewise for locals "last_insn",
11423         "insn".
11424         (tilepro_adjust_insn_length): Likewise for param "insn".
11425         (next_insn_to_bundle): Likewise for return type and params
11426         "r", "end".
11427         (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
11428         (replace_pc_relative_symbol_ref): Likewise for param "insn" and
11429         local "new_insns".
11430         (match_addli_pcrel): Likewise for param "insn".
11431         (replace_addli_pcrel): Likewise.
11432         (match_auli_pcrel): Likewise.
11433         (replace_auli_pcrel): Likewise.
11434         (tilepro_fixup_pcrel_references): Likewise for locals "insn",
11435         "next_insn".
11436         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11437         "queue", "next_queue", "prev".
11438         (tilepro_asm_output_mi_thunk): Likewise for local "insn".
11439         (tilepro_final_prescan_insn): Likewise for param "insn".
11440
11441 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11442
11443         * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
11444         Strengthen param 1 from rtx to rtx_insn *.
11445         (tilegx_output_cbranch): Likewise.
11446         (tilegx_adjust_insn_length): Likewise.
11447         (tilegx_final_prescan_insn): Likewise for sole param.
11448
11449         * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
11450         or local "last".
11451         (cbranch_predicted_p): Likewise for param "insn".
11452         (tilegx_output_simple_cbranch_with_opcode): Likewise.
11453         (tilegx_output_cbranch_with_opcode): Likewise.
11454         (tilegx_output_cbranch): Likewise.
11455         (frame_emit_load): Likewise for return type.
11456         (set_frame_related_p): Likewise for locals "seq", "insn".
11457         (emit_sp_adjust): Likewise for return type, and for local "insn".
11458         Introduce local "pat" for use in place of "insn" where the latter
11459         isn't an instruction.
11460         (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
11461         from rtx to rtx_insn *.
11462         (tilegx_adjust_insn_length): Likewise for param "insn".
11463         (next_insn_to_bundle): Likewise for return type and params "r" and
11464         "end".
11465         (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
11466         "end".
11467         (replace_insns): Likewise for params "old_insn", "new_insns".
11468         (replace_mov_pcrel_step1): Likewise for param "insn" and local
11469         "new_insns".
11470         (replace_mov_pcrel_step2): Likewise.
11471         (replace_mov_pcrel_step3): Likewise.
11472         (tilegx_fixup_pcrel_references): Likewise for locals "insn",
11473         "next_insn".
11474         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
11475         "queue", "next_queue", "prev".
11476         (tilegx_output_mi_thunk): Likewise for local "insn".
11477         (tilegx_final_prescan_insn): Likewise for param "insn".
11478
11479 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11480
11481         * config/spu/spu.c (frame_emit_store): Strengthen return type from
11482         rtx to rtx_insn *.
11483         (frame_emit_load): Likewise.
11484         (frame_emit_add_imm): Likewise, also for local "insn".
11485         (spu_expand_prologue): Likewise for local "insn".
11486         (struct spu_bb_info): Likewise for field "prop_jump".
11487         (emit_nop_for_insn): Likewise for param "insn" and local
11488         "new_insn".
11489         (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
11490         "hbr_insn".
11491         (spu_emit_branch_hint): Likewise for params "before", "branch" and
11492         locals "hint", "insn".
11493         (get_branch_target): Likewise for param "branch".
11494         (insn_clobbers_hbr): Likewise for param "insn".
11495         (insert_hbrp_for_ilb_runout): Likewise for param "first" and
11496         locals "insn", "before_4", "before_16".
11497         (insert_hbrp): Likewise for local "insn".
11498         (spu_machine_dependent_reorg): Likewise for locals "branch",
11499         "insn", "next", "bbend".
11500         (uses_ls_unit): Likewise for param "insn".
11501         (get_pipe): Likewise.
11502         (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
11503         introducing a checked cast.
11504         (spu_sched_adjust_cost): Likewise for params "insn" and
11505         "dep_insn".
11506         (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
11507         (spu_sms_res_mii): Likewise.
11508
11509 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11510
11511         * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
11512         from rtx to rtx_insn *.
11513         (output_cbranch): Likewise for param 6.
11514         (output_return): Likewise for param 1.
11515         (output_sibcall): Likewise.
11516         (output_v8plus_shift): Likewise.
11517         (output_v8plus_mult): Likewise.
11518         (output_v9branch): Likewise for param 7.
11519         (output_cbcond):  Likewise for param 3.
11520
11521         * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
11522         for local "insn".
11523         (sparc_legitimize_pic_address): Likewise.
11524         (sparc_emit_call_insn): Likewise.
11525         (emit_save_or_restore_regs): Likewise.
11526         (emit_window_save): Likewise for return type and local "insn".
11527         (sparc_expand_prologue): Likewise for local "insn".
11528         (sparc_flat_expand_prologue): Likewise.
11529         (output_return): Likewise for param "insn".
11530         (output_sibcall): Likewise for param "insn" and local "delay".
11531         (output_ubranch): Likewise for param "insn".
11532         (output_cbranch): Likewise.
11533         (output_cbcond): Likewise.
11534         (output_v9branch): Likewise.
11535         (output_v8plus_shift): Likewise.
11536         (sparc_output_mi_thunk): Likewise for local "insn".
11537         (get_some_local_dynamic_name): Likewise.
11538         (output_v8plus_mult): Likewise for param "insn".
11539
11540 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11541
11542         * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
11543         from rtx to rtx_insn *.
11544         (output_branchy_insn): Likewise for param 3.
11545         (output_far_jump): Likewise for param 1.
11546         (final_prescan_insn): Likewise.
11547         (sh_insn_length_adjustment): Likewise for sole param.
11548
11549         * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
11550         (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
11551         rtx_code_label *.
11552         (sh_emit_compare_and_set): Likewise for local "lab".
11553         (output_far_jump): Strengthen param "insn" and local "prev" from
11554         rtx to rtx_insn *.
11555         (output_branchy_insn): Likewise for param "insn" and local
11556         "next_insn".
11557         (output_ieee_ccmpeq): Likewise for param "insn".
11558         (struct label_ref_list_d): Strengthen field "label" from rtx to
11559         rtx_code_label *.
11560         (pool_node): Likewise.
11561         (pool_window_label): Likewise for this global.
11562         (add_constant): Likewise for return type and locals "lab", "new_rtx".
11563         (dump_table): Strengthen params "start", "barrier" and local
11564         "scan" from rtx to rtx_insn *.
11565         (broken_move): Likewise for param "insn".
11566         (untangle_mova): Likewise for params "first_mova" and "new_mova".
11567         Strengthen param "first_mova" from rtx * to rtx_insn **.
11568         (mova_p): Likewise for param "insn".
11569         (fixup_mova): Likewise for param "mova".
11570         (find_barrier): Likewise for return type, params "mova" and
11571         "from", and locals "barrier_before_mova", "found_barrier",
11572         "good_barrier", "orig", "last_symoff", "next".  Strengthen local
11573         "label" from rtx to rtx_code_label *.
11574         (sh_loop_align): Strengthen locals "first", "insn", "mova" from
11575         rtx to rtx_insn *.
11576         (sh_reorg): Likewise for locals "link", "scan", "barrier".
11577         (split_branches): Likewise for param "first" and local "insn".
11578         (final_prescan_insn): Likewise for param "insn".
11579         (sequence_insn_p): Likewise for locals "prev", "next".
11580         (sh_insn_length_adjustment): Likewise for param "insn".
11581         (sh_can_redirect_branch): Likewise for local "insn".
11582         (find_r0_life_regions): Likewise for locals "end", "insn".
11583         (sh_output_mi_thunk): Likewise for local "insns".
11584
11585 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11586
11587         * config/score/score.c (score_output_mi_thunk): Strengthen local
11588         "insn" from rtx to rtx_insn *.
11589         (score_prologue): Likewise.
11590
11591 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11592
11593         * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
11594         1 from rtx to rtx_insn *.
11595         (s390_emit_jump): Likewise for return type.
11596         (s390_emit_call): Likewise.
11597         (s390_load_got): Likewise.
11598
11599         * config/s390/s390.c (last_scheduled_insn): Likewise for this
11600         variable.
11601         (s390_match_ccmode): Likewise for param "insn".
11602         (s390_emit_jump): Likewise for return type.
11603         (s390_split_branches): Likewise for local "label".
11604         (struct constant): Strengthen field "label" from rtx to
11605         rtx_code_label *.
11606         (struct constant_pool): Likewise for field "label".  Strengthen
11607         fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
11608         rtx_insn *.
11609         (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
11610         insns.
11611         (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
11612         (s390_end_pool): Likewise.
11613         (s390_dump_pool): Likewise for local "insn".
11614         (s390_mainpool_start): Likewise.
11615         (s390_chunkify_start): Likewise.
11616         (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
11617         with insns.  Strengthen locals "label", "jump", "barrier", "next",
11618         "prev", "vec_insn", "insn" from rtx to rtx_insn *.
11619         (s390_chunkify_finish): Strengthen local "insn" from rtx to
11620         rtx_insn *.
11621         (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
11622         "jump", "label", "next_insn".
11623         (s390_regs_ever_clobbered): Likewise for local "cur_insn".
11624         (s390_optimize_nonescaping_tx): Likewise for locals "insn",
11625         "tbegin_insn".
11626         (s390_load_got): Likewise for return type and local "insns".
11627         (s390_save_gprs_to_fprs): Likewise for local "insn".
11628         (s390_restore_gprs_from_fprs): Likewise.
11629         (pass_s390_early_mach::execute): Likewise.
11630         (s390_emit_prologue): Likewise for local "insns".
11631         (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
11632         rtx_code_label *.
11633         (s390_emit_call): Strengthen return type and local "insn" from
11634         rtx to rtx_insn *.
11635         (s390_emit_tpf_eh_return): Likewise for local "insn".
11636         (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
11637         "next_insn", introducing locals "s_pat", "rpat" to allow this.
11638         (s390_fix_long_loop_prediction): Likewise for param "insn" and
11639         local "cur_insn".
11640         (s390_non_addr_reg_read_p): Likewise for param "insn".
11641         (find_cond_jump): Likewise for return type and param "insn".
11642         (s390_swap_cmp): Likewise for param "insn".
11643         (s390_z10_optimize_cmp): Likewise for param "insn" and locals
11644         "prev_insn", "next_insn".
11645         (s390_reorg): Likewise for locals "insn", "target".
11646         (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
11647         (s390_sched_variable_issue): For now, rename param "insn" to
11648         "uncast_insn", introducing a checked cast.
11649         (s390_sched_init): Replace NULL_RTX with NULL when dealing with
11650         insn.
11651         (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
11652         rtx_insn *.  Use for_each_rtx_in_insn rather than for_each_rtx.
11653
11654 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11655
11656         * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
11657         param from rtx to rtx_insn *.
11658         * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
11659
11660 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11661
11662         * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
11663         4 from rtx to rtx_insn *.
11664         (rs6000_final_prescan_insn): Likewise for first param.
11665         * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
11666         local "insn".
11667         (rs6000_get_some_local_dynamic_name): Likewise.
11668         (output_cbranch): Likewise for param "insn".
11669         (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
11670         (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
11671         (rs6000_emit_allocate_stack): Likewise for local "insn".
11672         (load_cr_save): Likewise.
11673         (restore_saved_cr): Likewise.
11674         (restore_saved_lr): Likewise.
11675         (emit_cfa_restores): Likewise.
11676         (rs6000_output_function_epilogue): Likewise for locals "insn" and
11677         "deleted_debug_label".
11678         (rs6000_output_mi_thunk): Likewise for local "insn".
11679         (rs6000_final_prescan_insn): Likewise for param "insn".
11680
11681 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11682
11683         * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
11684         Strengthen param "insn" from rtx to rtx_insn *.
11685         * config/picochip/picochip.c (picochip_current_prescan_insn):
11686         Likewise for this variable.
11687         (picochip_final_prescan_insn): Likewise for param "insn".
11688
11689 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11690
11691         * config/pa/pa-protos.h (pa_output_call): Strengthen first param
11692         from rtx to rtx_insn *.
11693         (pa_output_indirect_call): Likewise.
11694         (pa_adjust_insn_length): Likewise.
11695         (pa_attr_length_millicode_call): Likewise.
11696         (pa_attr_length_call): Likewise.
11697         (pa_attr_length_indirect_call): Likewise.
11698
11699         * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
11700         "insn".
11701         (pa_attr_length_millicode_call): Likewise.
11702         (pa_attr_length_call): Likewise.
11703         (pa_output_call): Likewise.
11704         (pa_attr_length_indirect_call): Likewise.
11705         (pa_output_indirect_call): Likewise.
11706
11707 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11708
11709         * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
11710         Strengthen first param from rtx to rtx_insn *.
11711         * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
11712         param "insn".
11713
11714 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11715
11716         * config/mips/mips-protos.h (mips_emit_move): Strengthen return
11717         type from rtx to rtx_insn *.
11718         (mips_expand_call): Likewise.
11719         (mips_adjust_insn_length): Likewise for first param.
11720         (mips_output_conditional_branch): Likewise.
11721         (mips_output_order_conditional_branch): Likewise.
11722         (mips_final_prescan_insn): Likewise.
11723
11724         * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
11725         rtx_insn * for the SEQUENCE case.
11726         (SEQ_END): Likewise.
11727         (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
11728         (mips_emit_call_insn): Likewise, also for local "insn".
11729         (mips16_gp_pseudo_reg): Likewise for local "scan".
11730         (mips16_build_call_stub): Likewise for return type and for local
11731         "insn".  Introduce a new local "pattern" so that "insn" can indeed
11732         be an insn.
11733         (mips_expand_call): Strengthen return type and local "insn" from
11734         rtx to rtx_insn *.
11735         (mips_block_move_loop): Strengthen local "label" from rtx to
11736         rtx_code_label *.
11737         (mips_expand_synci_loop): Likewise for locals "label",
11738         "end_label".
11739         (mips_set_frame_expr): Strengthen local "insn" from rtx to
11740         rtx_insn *.
11741         (mips16e_collect_argument_saves): Likewise for locals "insn",
11742         "next".
11743         (mips_find_gp_ref): Likewise for param of callback for "pred"
11744         param, and for local "insn".
11745         (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
11746         (mips_insn_has_flexible_gp_ref_p): Likewise.
11747         (mips_epilogue_emit_cfa_restores): Likewise for return type and
11748         local "insn".
11749         (mips_epilogue_set_cfa): Likewise for local "insn".
11750         (mips_expand_epilogue): Likewise.
11751         (mips_adjust_insn_length): Likewise for param "insn".
11752         (mips_output_conditional_branch): Likewise.
11753         (mips_output_order_conditional_branch): Likewise.
11754         (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
11755         "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
11756         "falu2_turn_enabled_insn".
11757         (mips_builtin_branch_and_move): Strengthen locals "true_label",
11758         "done_label" from rtx to rtx_code_label *.
11759         (struct mips16_constant): Likewise for field "label".
11760         (mips16_add_constant): Likewise for return type.
11761         (mips16_emit_constants_1): Strengthen return type and param "insn"
11762         from rtx to rtx_insn *.
11763         (mips16_emit_constants): Likewise for param "insn".
11764         (mips16_insn_length): Likewise.
11765         (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
11766         to rtx_code_label *.
11767         (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
11768         from rtx to rtx_insn *.
11769         (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
11770         "jump".  Strengthen local "label" from rtx to rtx_code_label *.
11771         (r10k_simplify_address): Strengthen param "insn" and local
11772         "def_insn" from rtx to rtx_insn *.
11773         (r10k_safe_address_p): Strengthen param "insn" from rtx to
11774         rtx_insn *.
11775         (r10k_needs_protection_p_1): Update target type of cast of data
11776         from to rtx to rtx_insn *.
11777         (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
11778         rtx * to rtx_insn **.
11779         (r10k_needs_protection_p): Strengthen param "insn" from rtx to
11780         rtx_insn *.
11781         (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
11782         (mips_call_expr_from_insn): Likewise for param "insn".
11783         (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
11784         (mips_find_pic_call_symbol): Likewise for param "insn".
11785         (mips_annotate_pic_calls): Likewise for local "insn".
11786         (mips_sim_insn): Likewise for this variable.
11787         (struct mips_sim): Likewise for field "insn" within elements of
11788         last_set array.
11789         (mips_sim_wait_reg): Likewise for param "insn".
11790         (mips_sim_wait_regs): Likewise.
11791         (mips_sim_wait_units): Likewise.
11792         (mips_sim_wait_insn): Likewise.
11793         (mips_sim_issue_insn): Likewise.
11794         (mips_sim_finish_insn): Likewise.
11795         (mips_seq_time): Likewise for param "seq" and local "insn".
11796         (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
11797         locals "first", "second".
11798         (vr4130_align_insns): Likewise for locals "insn", "subinsn",
11799         "last", "last2", "next".
11800         (mips_avoid_hazard): Likewise for params "after", "insn".
11801         (mips_reorg_process_insns): Likewise for locals "insn",
11802         "last_insn", "subinsn", "next_insn".
11803         (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
11804         (mips16_split_long_branches): Likewise for locals "insn" "jump",
11805         "jump_sequence".
11806         (mips_output_mi_thunk): Likewise for local "insn".
11807         (mips_final_prescan_insn): Likewise for param "insn".
11808
11809 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11810
11811         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
11812         Strengthen return type and local "insns" from rtx to rtx_insn *.
11813         (microblaze_legitimize_tls_address): Likewise for local "insns".
11814         (microblaze_block_move_loop): Strengthen local "label" from rtx
11815         to rtx_code_label *.
11816         (microblaze_expand_prologue): Strengthen two locals named "insn"
11817         from rtx to rtx_insn *.
11818         (microblaze_asm_output_mi_thunk): Likewise for local "insn".
11819         (microblaze_expand_divide): Likewise for locals "jump", "cjump",
11820         "insn".  Strengthen locals "div_label", "div_end_label" from rtx
11821         to rtx_code_label *.
11822
11823 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11824
11825         * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
11826         param from rtx to rtx_insn *.
11827         (mep_reuse_lo): Likewise for third param.
11828         (mep_use_post_modify_p): Likewise for first param.
11829         (mep_core_address_length): Likewise.
11830         (mep_cop_address_length): Likewise.
11831         (mep_final_prescan_insn): Likewise.
11832         (mep_store_data_bypass_p): Likewise for both params.
11833         (mep_mul_hilo_bypass_p): Likewise.
11834         (mep_ipipe_ldc_p): Likewise for param.
11835
11836         * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
11837         (mep_rewrite_mult): Likewise.
11838         (mep_rewrite_mulsi3): Likewise.
11839         (mep_rewrite_maddsi3): Likewise.
11840         (mep_reuse_lo_p_1): Likewise.
11841         (mep_reuse_lo_p): Likewise.
11842         (mep_frame_expr): Likewise.
11843         (mep_make_parallel): Likewise for both params.
11844         (mep_use_post_modify_p_1): Likewise for param "set_insn" and
11845         local "insn".
11846         (mep_use_post_modify_p): Likewise for param "insn".
11847         (mep_core_address_length): Likewise.
11848         (mep_cop_address_length): Likewise.
11849         (mep_reg_set_in_function): Likewise for local "insn".
11850         (mep_asm_without_operands_p): Likewise.
11851         (F): Likewise for return type and param "x".
11852         (add_constant): Likewise for local "insn".
11853         (maybe_dead_move): Likewise for return type and local "insn".
11854         (mep_expand_prologue): Likewise for local "insn".
11855         (mep_final_prescan_insn): Likewise for param "insn".
11856         (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
11857         "next", "follow", "x".
11858         (mep_insert_repeat_label_last): Likewise for return type, param
11859         "last_insn", and locals "next", "prev".  Strengthen param "label"
11860         from rtx to rtx_code_label *.
11861         (struct mep_doloop_begin): Strengthen field "insn" from rtx to
11862         rtx_insn *.
11863         (struct mep_doloop_end): Likewise for fields "insn" and
11864         "fallthrough".
11865         (mep_reorg_repeat): Likewise for param "insns" and local "insn".
11866         Strengthen local "repeat_label" from rtx to rtx_code_label *.
11867         (mep_invertable_branch_p): Strengthen param "insn" from rtx to
11868         rtx_insn *.
11869         (mep_invert_branch): Likewise for params "insn" and "after".
11870         (mep_reorg_erepeat): Likewise for param "insns" and locals
11871         "insn", "prev", "new_last", "barrier", "user".  Strengthen local
11872         "l" from rtx to rtx_code_label *.
11873         (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
11874         from rtx to rtx_insn *.
11875         (mep_reorg_addcombine): Likewise for param "insns" and locals
11876         "i", "n".
11877         (add_sp_insn_p): Likewise for param "insn".
11878         (mep_reorg_noframe): Likewise for param "insns" and locals
11879         "start_frame_insn", "end_frame_insn", "next".
11880         (mep_reorg): Likewise for local "insns".
11881         (mep_store_data_bypass_1): Likewise for param "prev".  Add checked
11882         cast.
11883         (mep_store_data_bypass_p): Likewise for params "prev", "insn".
11884         (mep_mul_hilo_bypass_p): Likewise.
11885         (mep_ipipe_ldc_p): Likewise for param "insn".
11886         (mep_make_bundle): Likewise for return type, param "cop" and local
11887         "insn", splitting out the latter into a new local "seq" for when it
11888         is a SEQUENCE rather than an insn.
11889         (core_insn_p): Likewise for param "insn".
11890         (mep_bundle_insns): Likewise for param "insns" and locals "insn",
11891         "last", "first", "note", "prev", "core_insn".
11892
11893 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11894
11895         * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
11896         rtx to rtx_insn *.
11897         (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
11898         (m68k_final_prescan_insn): Likewise for first param.
11899
11900         * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
11901         (m68k_set_frame_related): Likewise for param "insn".
11902         (output_btst): Likewise for param "insn".
11903         (m68k_final_prescan_insn): Likewise.
11904         (m68k_move_to_reg): Likewise for local "insn".
11905         (m68k_call_tls_get_addr): Likewise for local "insns".
11906         (m68k_call_m68k_read_tp): Likewise.
11907         (strict_low_part_peephole_ok): Likewise for param "first_insn".
11908         (m68k_output_mi_thunk): Likewise for local "insn".
11909
11910 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11911
11912         * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
11913         first param from rtx to rtx_insn *.
11914         (iq2000_adjust_insn_length): Likewise.
11915         (iq2000_output_conditional_branch): Likewise.
11916         * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
11917         "insn" and local "nop_insn".
11918         (iq2000_annotate_frame_insn): Likewise for param "insn".
11919         (iq2000_expand_prologue): Likewise for both locals "insn".
11920         (iq2000_adjust_insn_length): Likewise for param "insn".
11921         (iq2000_output_conditional_branch): Likewise.
11922
11923 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11924
11925         * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
11926         "insns" from rtx to rtx_insn *.
11927         (ia64_emit_cond_move): Likewise for locals "insn", "first".
11928         (struct spill_fill_data): Likewise for field "init_after" and for
11929         elements of array field "prev_insn".
11930         (spill_restore_mem): Likewise for locals "insn", "first".
11931         (do_spill): Likewise for local "insn".
11932         (do_restore): Likewise.
11933         (ia64_expand_prologue): Likewise.
11934         (ia64_expand_epilogue): Likewise.
11935         (emit_insn_group_barriers): Likewise for locals "insn",
11936         "last_label".
11937         (emit_all_insn_group_barriers): Likewise for locals "insn",
11938         "last".
11939         (dfa_stop_insn): Likewise for this global.
11940         (dfa_pre_cycle_insn): Likewise.
11941         (ia64_nop): Likewise.
11942         (final_emit_insn_group_barriers): Likewise for locals "insn",
11943         "last".
11944         (emit_predicate_relation_info): Likewise for locals "head", "n",
11945         "insn", "b", "a".
11946         (ia64_reorg): Likewise for local "insn".
11947         (ia64_output_mi_thunk): Likewise.
11948         (expand_vec_perm_interleave_2): Likewise for local "seq".
11949
11950 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
11951
11952         * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
11953         param 1 "insn" from rtx to rtx_insn *.
11954         (ix86_use_lea_for_mov): Likewise.
11955         (ix86_avoid_lea_for_addr): Likewise.
11956         (ix86_split_lea_for_addr): Likewise.
11957         (ix86_lea_for_add_ok): Likewise.
11958         (ix86_output_call_insn): Likewise.
11959
11960         * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
11961         (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
11962         (ix86_output_function_epilogue): Likewise for locals "insn",
11963         "deleted_debug_label".
11964         (legitimize_tls_address): Likewise for local "insn".
11965         (get_some_local_dynamic_name): Likewise.
11966         (increase_distance): Likewise for params "prev", "next".
11967         (distance_non_agu_define_in_bb): Likewise for params "insn",
11968         "start" and locals "prev", "next".
11969         (distance_non_agu_define): Likewise for param "insn".
11970         (distance_agu_use_in_bb): Likewise for params "insn", "start" and
11971         locals "next", "prev".
11972         (distance_agu_use): Likewise for param "insn".
11973         (ix86_lea_outperforms): Likewise.
11974         (ix86_ok_to_clobber_flags): Likewise.
11975         (ix86_avoid_lea_for_add): Likewise.
11976         (ix86_use_lea_for_mov): Likewise.
11977         (ix86_avoid_lea_for_addr): Likewise.
11978         (find_nearest_reg_def): Likewise, also for locals "prev", "start".
11979         (ix86_split_lea_for_addr): Likewise for param "insn".
11980         (ix86_lea_for_add_ok): Likewise for param "insn".
11981         (ix86_expand_carry_flag_compare): Likewise for local
11982         "compare_seq".
11983         (ix86_expand_int_movcc): Likewise.
11984         (ix86_output_call_insn): Likewise for param "insn".
11985         (ix86_output_call_insn): Likewise for local "i".
11986         (x86_output_mi_thunk): Introduce local "insn", using it in place
11987         of "tmp" when dealing with insns.
11988         (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
11989         "start".
11990         (ix86_pad_returns): Likewise for locals "ret", "prev".
11991         (ix86_count_insn_bb): Likewise for local "insn".
11992         (ix86_pad_short_function): Likewise for locals "ret", "insn".
11993         (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
11994         (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
11995         (expand_vec_perm_interleave2): Likewise for local "seq".
11996         (expand_vec_perm_vperm2f128_vblend): Likewise.
11997         (ix86_loop_unroll_adjust): Likewise for local "insn".  Convert
11998         call to for_each_rtx with for_each_rtx_in_insn.
11999
12000 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12001
12002         * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
12003         "label" from rtx to rtx_code_label *.
12004         (ix86_expand_prologue): Likewise.
12005         (ix86_expand_split_stack_prologue): Likewise for locals "label",
12006         "varargs_label".
12007         (ix86_split_idivmod): Likewise for locals "end_label" and
12008         "qimode_label".
12009         (ix86_expand_branch): Likewise for local "label2".
12010         (ix86_expand_aligntest): Likewise for return type and local "label".
12011         (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
12012         "top_label".
12013         (expand_movmem_epilogue): Likewise for the various locals named
12014         "label".
12015         (expand_setmem_epilogue): Likewise.
12016         (expand_small_movmem_or_setmem): Likewise for local "label".
12017         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12018         Strengthen param "done_label" from rtx * to rtx_code_label **.
12019         Strengthen locals "loop_label" and "label" from rtx to
12020         rtx_code_label *.
12021         (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
12022         Likewise for locals "loop_label", "label".
12023         (ix86_expand_set_or_movmem): Likewise for locals "label",
12024         "jump_around_label", "hot_label".
12025         (ix86_expand_strlensi_unroll_1): Likewise for locals
12026         "align_2_label", align_3_label", "align_4_label", "end_0_label",
12027         "end_2_label".
12028         (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
12029         (void ix86_emit_i387_log1p): Likewise for locals "label1",
12030         "label2", "jump_label".
12031         (ix86_expand_sse_compare_and_jump): Likewise for return type and
12032         local "label".
12033         (ix86_expand_lfloorceil): Likewise for local "label".
12034         (ix86_expand_rint): Likewise.
12035         (ix86_expand_floorceildf_32): Likewise.
12036         (ix86_expand_floorceil): Likewise.
12037         (ix86_expand_rounddf_32): Likewise.
12038         (ix86_expand_trunc): Likewise.
12039         (ix86_expand_truncdf_32): Likewise.
12040         (ix86_expand_round): Likewise.
12041
12042 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12043
12044         * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
12045         first param from rtx to rtx_insn *.
12046         (h8300_insn_length_from_table): Likewise.
12047         * config/h8300/h8300.c (F): Likewise for return type and param
12048         "x".
12049         (Fpa): Add a checked cast to rtx_insn *.
12050         (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
12051         rtx_insn *.
12052         (final_prescan_insn): Likewise for param "insn".
12053         (h8300_binary_length): Likewise.
12054         (h8300_insn_length_from_table): Likewise.
12055
12056 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12057
12058         * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
12059         Strengthen first param "insn" from rtx to rtx_insn *.
12060
12061         * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
12062         Likewise.
12063         (frame_insn): Likewise for return type.  Introduce local "insn"
12064         for use in place of local "x" for use as an rtx_insn *.
12065         (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
12066         (epiphany_expand_prologue): Likewise for local "insn".
12067         * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
12068         * config/epiphany/resolve-sw-modes.c
12069         (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
12070         "seq".
12071
12072 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12073
12074         * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
12075         param from rtx to rtx_insn *.
12076         (c6x_final_prescan_insn): Likewise for first param.
12077
12078         * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
12079         (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
12080         (c6x_expand_compare): Strengthen local "insns" from rtx to
12081         rtx_insn *.
12082         (c6x_get_unit_specifier): Likewise for param "insn".
12083         (c6x_print_unit_specifier_field): Likewise.
12084         (c6x_final_prescan_insn): Likewise.
12085         (emit_add_sp_const): Likewise for local "insn".
12086         (c6x_expand_prologue): Likewise.
12087
12088 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12089
12090         * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
12091         param 1 from rtx to rtx_insn *.
12092         * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
12093         the various locals named "insn".
12094         (expand_epilogue_reg_restore): Likewise.
12095         (frame_related_constant_load): Likewise.
12096         (add_to_reg): Likewise.
12097         (emit_link_insn): Likewise.
12098         (do_link): Likewise.
12099         (expand_interrupt_handler_prologue): Likewise.
12100         (branch_dest): Likewise for param "branch".
12101         (asm_conditional_branch): Likewise for param "insn".
12102         (gen_one_bundle): Likewise for elements of param "slot" and local
12103         "t".
12104         (bfin_gen_bundles): Likewise for locals "insn", "next" and
12105         elements of local "slot".
12106         (reorder_var_tracking_notes): Likewise for locals "insn", "next",
12107         "queue", "next_queue", "prev".
12108         (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
12109         (add_sched_insns_for_speculation): Likewise for local "insn".
12110
12111 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12112
12113         * config/avr/avr-protos.h (output_movqi): Strengthen first param
12114         from rtx to rtx_insn *.
12115         (output_movhi): Likewise.
12116         (output_movsisf): Likewise.
12117         (avr_out_tstsi): Likewise.
12118         (avr_out_tsthi): Likewise.
12119         (avr_out_tstpsi): Likewise.
12120         (avr_out_compare): Likewise.
12121         (avr_out_compare64): Likewise.
12122         (avr_out_movpsi): Likewise.
12123         (ashlqi3_out): Likewise.
12124         (ashlhi3_out): Likewise.
12125         (ashlsi3_out): Likewise.
12126         (ashrqi3_out): Likewise.
12127         (ashrhi3_out): Likewise.
12128         (ashrsi3_out): Likewise.
12129         (lshrqi3_out): Likewise.
12130         (lshrhi3_out): Likewise.
12131         (lshrsi3_out): Likewise.
12132         (avr_out_ashlpsi3): Likewise.
12133         (avr_out_ashrpsi3): Likewise.
12134         (avr_out_lshrpsi3): Likewise.
12135         (avr_out_fract): Likewise.
12136         (avr_out_sbxx_branch): Likewise.
12137         (avr_out_round): Likewise.
12138         (avr_out_xload): Likewise.
12139         (avr_out_movmem): Likewise.
12140         (adjust_insn_length): Likewise.
12141         (avr_out_lpm): Likewise.
12142         (reg_unused_after): Likewise.
12143         (_reg_unused_after): Likewise.
12144         (avr_jump_mode): Likewise for second param.
12145         (jump_over_one_insn): Likewise for first param.
12146         (avr_final_prescan_insn): Likewise.
12147         (out_shift_with_cnt): Likewise for second param.
12148
12149         * config/avr/avr.c (get_sequence_length): Likewise for param
12150         "insns" and local "insn".
12151         (emit_push_byte): Likewise for local "insn".
12152         (emit_push_sfr): Likewise.
12153         (avr_prologue_setup_frame): Likewise for locals "insn",
12154         "fp_plus_insns", "sp_plus_insns".
12155         (avr_expand_epilogue): Likewise for local "fp_plus_insns",
12156         "sp_plus_insns".
12157         (avr_jump_mode): Likewise for param "insn".
12158         (avr_final_prescan_insn): Likewise.
12159         (avr_find_unused_d_reg): Likewise.
12160         (avr_out_lpm_no_lpmx): Likewise.
12161         (avr_out_lpm): Likewise.
12162         (avr_out_xload): Likewise.
12163         (output_movqi): Likewise.
12164         (output_movhi): Likewise.
12165         (out_movqi_r_mr): Likewise.
12166         (out_movhi_r_mr): Likewise.
12167         (out_movsi_r_mr): Likewise.
12168         (out_movsi_mr_r): Likewise.
12169         (output_movsisf): Likewise.
12170         (avr_out_load_psi): Likewise.
12171         (avr_out_store_psi): Likewise.
12172         (avr_out_movpsi): Likewise.
12173         (out_movqi_mr_r): Likewise.
12174         (avr_out_movhi_mr_r_xmega): Likewise.
12175         (out_movhi_mr_r): Likewise.
12176         (compare_condition): Likewise for param "insn" and local "next".
12177         (compare_sign_p): Likewise for param "insn".
12178         (compare_diff_p): Likewise.
12179         (compare_eq_p): Likewise.
12180         (avr_out_compare): Likewise.
12181         (avr_out_compare64): Likewise.
12182         (avr_out_tsthi): Likewise.
12183         (avr_out_tstpsi): Likewise.
12184         (avr_out_tstsi): Likewise.
12185         (out_shift_with_cnt): Likewise.
12186         (ashlqi3_out): Likewise.
12187         (ashlhi3_out): Likewise.
12188         (avr_out_ashlpsi3): Likewise.
12189         (ashlsi3_out): Likewise.
12190         (ashrqi3_out): Likewise.
12191         (ashrhi3_out): Likewise.
12192         (avr_out_ashrpsi3): Likewise.
12193         (ashrsi3_out): Likewise.
12194         (lshrqi3_out): Likewise.
12195         (lshrhi3_out): Likewise.
12196         (avr_out_lshrpsi3): Likewise.
12197         (lshrsi3_out): Likewise.
12198         (avr_out_fract): Likewise.
12199         (avr_out_round): Likewise.
12200         (avr_adjust_insn_length): Likewise.
12201         (reg_unused_after): Likewise.
12202         (_reg_unused_after): Likewise.
12203         (avr_compare_pattern): Likewise.
12204         (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
12205         and locals "branch1", "branch2", "insn2", "jump".
12206         (avr_reorg): Likewise for local "insn".
12207         (avr_2word_insn_p): Likewise for param "insn".
12208         (jump_over_one_insn_p): Likewise.
12209         (avr_out_sbxx_branch): Likewise.
12210         (avr_out_movmem): Likewise.
12211
12212 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12213
12214         * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
12215         param from rtx to rtx_insn *.
12216         (thumb1_final_prescan_insn): Likewise.
12217         (thumb2_final_prescan_insn): Likewise.
12218
12219         * config/arm/arm.c (emit_set_insn): Strengthen return type from
12220         rtx to rtx_insn *.
12221         (struct minipool_node): Likewise for field "insn".
12222         (dump_minipool): Likewise for param "scan".
12223         (create_fix_barrier): Likewise for local "from".  Strengthen local
12224         "label" from rtx to rtx_code_label *.
12225         (push_minipool_barrier): Strengthen param "insn" from rtx to
12226         rtx_insn *.
12227         (push_minipool_fix): Likewise.
12228         (note_invalid_constants): Likewise.
12229         (thumb2_reorg): Likewise for local "insn".
12230         (arm_reorg): Likewise.
12231         (thumb2_final_prescan_insn): Likewise for param
12232         "insn" and local "first_insn".
12233         (arm_final_prescan_insn): Likewise for param "insn" and locals
12234         "start_insn", "this_insn".
12235         (arm_debugger_arg_offset): Likewise for param "insn".
12236         (thumb1_emit_multi_reg_push): Likewise for return type and local
12237         "insn".
12238         (thumb1_final_prescan_insn): Likewise for param "insn".
12239         (thumb_far_jump_used_p): Likewise for local "insn".
12240         (thumb1_expand_prologue): Likewise.
12241         (arm_expand_epilogue_apcs_frame): Likewise.
12242         (arm_expand_epilogue): Likewise for locals "insn", "tmp".
12243         (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
12244         from rtx to rtx_code_label *.
12245         (arm_split_atomic_op): Likewise for local "label".
12246         (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
12247
12248 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12249
12250         * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
12251         first param from rtx to rtx_insn *.
12252         (arc_verify_short): Likewise.
12253         (arc_short_long): Likewise.
12254         (arc_need_delay): Likewise.
12255
12256         * config/arc/arc.c (struct arc_ccfsm): Likewise for field
12257         "target_insn".
12258         (arc_ccfsm_advance): Likewise for param "insn" and locals
12259         "start_insn", "this_insn".
12260         (arc_ccfsm_record_condition): Likewise for local "seq_insn".
12261         (arc_ccfsm_post_advance): Likewise for param "insn".
12262         (arc_next_active_insn): Likewise for return type and param "insn".
12263         Convert NULL_RTX to NULL as appropriate.  Add a checked cast.
12264         (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
12265         (output_short_suffix): Likewise for local "insn".
12266         (arc_final_prescan_insn): Likewise for param "insn".  Remove
12267         now-redundant checked cast.
12268         (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
12269         "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
12270         rtx_insn *.  Add a checked cast.  Introduce local "lc_set_insn"
12271         for use where lc_set became an insn.
12272         (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
12273         rtx to rtx_insn *.
12274         (arc_get_insn_variants): Likewise for local "prev".
12275         (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
12276         "next".
12277         (arc_predicate_delay_insns): Likewise for local "insn".
12278         (arc_pad_return): Likewise for local "prev".  For now, add a
12279         checked cast when extracting the insn from "final_sequence".
12280         (arc_short_long): Likewise for param "insn".
12281         (arc_need_delay): Likewise for param "insn" and local "next".
12282         (arc_label_align): Likewise for locals "prev", "next".
12283
12284 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12285
12286         * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
12287         "insn" from rtx to rtx_insn *.
12288         (alpha_gp_save_rtx): Likewise for local "seq".
12289         (alpha_instantiate_decls): Likewise for local "top".
12290         (get_some_local_dynamic_name): Likewise for local "insn".
12291         (alpha_does_function_need_gp): Likewise.
12292         (set_frame_related_p): Likewise for return type and for locals
12293         "seq" and "insn".
12294         (emit_frame_store_1): Likewise for local "insn".
12295         (alpha_expand_prologue): Likewise for locals "insn", "seq".
12296         (alpha_end_function): Likewise for local "insn".
12297         (alpha_output_mi_thunk_osf): Likewise.
12298         (alphaev4_insn_pipe): Likewise for param "insn".
12299         (alphaev5_insn_pipe): Likewise.
12300         (alphaev4_next_group): Likewise for return type and param 1
12301         "insn".
12302         (alphaev5_next_group): Likewise.
12303         (alpha_align_insns_1): Likewise for return type and param 1 of
12304         callback param "next_group", and for locals "i", "next", "prev",
12305         "where", "where2", "insn".
12306
12307 2014-08-25  Bernd Schmidt  <bernds@codesourcery.com>
12308
12309         * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
12310         rather than modifying the stmt.
12311
12312 2014-08-25  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
12313
12314         * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
12315         cgraph_state conversion.
12316
12317 2014-08-25  David Malcolm  <dmalcolm@redhat.com>
12318
12319         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12320         Strengthen local "insns" from rtx to rtx_insn *.
12321         (aarch64_set_frame_expr): Likewise for local "insn".
12322         (aarch64_save_or_restore_fprs): Likewise.
12323         (aarch64_save_or_restore_callee_save_registers): Likewise.
12324         (aarch64_expand_prologue): Likewise.
12325         (aarch64_expand_epilogue): Likewise.
12326         (aarch64_output_mi_thunk): Likewise.
12327         (aarch64_split_compare_and_swap): Strengthen locals "label1" and
12328         "label2" from rtx to rtx_code_label *.
12329         (aarch64_split_atomic_op): Likewise for local "label".
12330
12331 2014-08-25  Martin Liska  <mliska@suse.cz>
12332
12333         * cgraph.h (symtab_node):
12334         (bool needed_p (void)): created from decide_is_symbol_needed
12335         (bool referred_to_p (void)): created from referred_to_p
12336         (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
12337         * cgraph.h (cgraph_node):
12338         (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
12339         (void expand (void)): created from expand_function
12340         (static void finalize_function (tree, bool)): created from cgraph_finalize_function
12341         (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
12342         (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
12343         (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
12344         * cgraph.h (varpool_node):
12345         (static void add (tree decl): created from varpool_add_new_variable
12346         * cgraph.h (cgraph_edge):
12347         void remove (void);
12348         (void remove_caller (void)): created from cgraph_edge_remove_caller
12349         (void remove_callee (void)): created from cgraph_edge_remove_callee
12350         (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
12351           created from cgraph_set_call_stmt
12352         (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
12353         (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
12354         (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
12355           gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
12356         (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
12357           created from cgraph_speculative_call_info
12358         (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
12359           int freq_scale, bool update_original)): created from cgraph_clone_edge
12360         (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
12361         (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
12362         (bool recursive_p (void)): created from cgraph_edge_recursive_p
12363         (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
12364         (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
12365         (static void rebuild_references (void)): created from cgraph_rebuild_references
12366         * cgraph.h (symbol_table):
12367         (create_reference): renamed from add_reference
12368         (maybe_create_reference): renamed from maybe_add_reference
12369         (void register_symbol (symtab_node *node)): new function
12370         (void clear_asm_symbols (void)): new function
12371         (void unregister (symtab_node *node)): new function
12372         (void release_symbol (cgraph_node *node, int uid)): new function
12373         (cgraph_node * allocate_cgraph_symbol (void)): new function
12374         (void initialize (void)): created from cgraph_init
12375         (symtab_node *first_symbol (void)):new function
12376         (asm_node *first_asm_symbol (void)):new function
12377         (symtab_node *first_defined_symbol (void)):new function
12378         (varpool_node *first_variable (void)):new function
12379         (varpool_node *next_variable (varpool_node *node)):new function
12380         (varpool_node *first_static_initializer (void)):new function
12381         (varpool_node *next_static_initializer (varpool_node *node)):new function
12382         (varpool_node *first_defined_variable (void)):new function
12383         (varpool_node *next_defined_variable (varpool_node *node)):new function
12384         (cgraph_node *first_defined_function (void)):new function
12385         (cgraph_node *next_defined_function (cgraph_node *node)):new function
12386         (cgraph_node *first_function (void)):new function
12387         (cgraph_node *next_function (cgraph_node *node)):new function
12388         (cgraph_node *first_function_with_gimple_body (void)):new function
12389         (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
12390         (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
12391           created from symtab_remove_unreachable_nodes
12392         (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
12393         (void process_new_functions (void)): created from cgraph_process_new_functions
12394         (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
12395         (bool output_variables (void)): created from varpool_node::output_variables
12396         (void output_asm_statements (void)): created from output_asm_statements
12397         (void finalize_compilation_unit (void)): created from finalize_compilation_unit
12398         (void compile (void)): created from compile
12399         (void output_weakrefs (void)): created from output_weakrefs
12400         (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
12401         (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
12402           gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
12403         (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
12404         (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
12405           created from cgraph_next_function_with_gimple_body
12406         (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
12407           created from cgraph_remove_edge_removal_hook
12408         (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
12409           created from cgraph_add_node_removal_hook
12410         (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
12411           created from cgraph_remove_node_removal_hook
12412         (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
12413           created from varpool_add_node_removal_hook
12414         (void remove_varpool_removal_hook (varpool_node_hook_list *)):
12415           created from varpool_remove_node_removal_hook
12416         (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
12417           created from cgraph_add_function_insertion_hook
12418         (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
12419           created from cgraph_remove_function_insertion_hook
12420         (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
12421           created from varpool_add_variable_insertion_hook
12422         (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
12423           created from varpool_remove_variable_insertion_hook
12424         (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
12425           created from cgraph_add_edge_duplication_hook
12426         (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
12427           created from cgraph_remove_edge_duplication_hook
12428         (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
12429           created from cgraph_add_node_duplication_hook
12430         (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
12431           created from cgraph_remove_node_duplication_hook
12432         (void call_edge_removal_hooks (cgraph_edge *e)):
12433           created from cgraph_call_edge_removal_hooks
12434         (void call_cgraph_insertion_hooks (cgraph_node *node)):
12435           created from call_function_insertion_hooks
12436         (void call_cgraph_removal_hooks (cgraph_node *node)):
12437           created from cgraph_call_node_removal_hooks
12438         (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
12439           created from cgraph_node::call_duplication_hooks
12440         (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
12441           created from cgraph_call_edge_duplication_hooks
12442         (void call_varpool_removal_hooks (varpool_node *node)):
12443           created from varpool_call_node_removal_hooks
12444         (void call_varpool_insertion_hooks (varpool_node *node)):
12445           created from varpool_call_variable_insertion_hooks
12446         (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
12447           created from insert_to_assembler_name_hash
12448         (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
12449           created from unlink_from_assembler_name_hash
12450         (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
12451           created from symtab_prevail_in_asm_name_hash
12452         (void symtab_initialize_asm_name_hash (void)):
12453           created from symtab_initialize_asm_name_hash
12454         (void change_decl_assembler_name (tree decl, tree name)):
12455           created from change_decl_assembler_name
12456         (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
12457         (static hashval_t decl_assembler_name_hash (const_tree asmname)):
12458           created from decl_assembler_name_hash
12459         (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
12460           created from decl_assembler_name_equal
12461         (static hashval_t hash_node_by_assembler_name (const void *p)):
12462           created from hash_node_by_assembler_name
12463         (static int eq_assembler_name (const void *p1, const void *p2)):
12464           created from eq_assembler_name
12465
12466 2014-08-25  Marek Polacek  <polacek@redhat.com>
12467
12468         * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
12469
12470 2014-08-25  Petr Murzin  <petr.murzin@intel.com>
12471
12472         * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
12473         (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
12474         SWI1248_AVX512BW mode iterator.
12475
12476 2014-08-25  Kaz Kojima  <kkojima@gcc.gnu.org>
12477
12478         PR target/62111
12479         * config/sh/predicates.md (general_extend_operand): Disable
12480         TRUNCATE before reload completes.
12481
12482 2014-08-24  Gerald Pfeifer  <gerald@pfeifer.com>
12483
12484         * doc/invoke.texi (Optimize Options): Fix markup in two cases.
12485
12486 2014-08-24  Oleg Endo  <olegendo@gcc.gnu.org>
12487
12488         PR target/61996
12489         * config/sh/sh.opt (musermode): Allow negative form.
12490         * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
12491         targets that don't support it.
12492         * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
12493         Document -mno-usermode option.
12494
12495 2014-08-24  Kito Cheng  <kito@0xlab.org>
12496
12497         * system.h (CALLER_SAVE_PROFITABLE): Poison.
12498         * regs.h (CALLER_SAVE_PROFITABLE): Remove.
12499         * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
12500         * doc/tm.texi: Regenerate.
12501
12502 2014-08-24  Kito Cheng  <kito@0xlab.org>
12503
12504         * ira.c: Fix typo in comment.
12505
12506 2014-08-23  Edward Smith-Rowland  <3dw4rd@verizon.net>
12507
12508         * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
12509         Deprecate c++1y. Change language to reflect greater confidence in C++14.
12510
12511 2014-08-23  John David Anglin  <danglin@gcc.gnu.org>
12512
12513         PR target/62038
12514         * config/pa/pa.c (pa_output_function_epilogue): Don't set
12515         last_address when the current function is a thunk.
12516         (pa_asm_output_mi_thunk): When we don't have named sections or they
12517         are not being used, check that thunk can reach the stub table with a
12518         short branch.
12519
12520 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12521
12522         * web.c (union_match_dups): Strengthen param "insn" from rtx to
12523         rtx_insn *.
12524         (pass_web::execute): Likewise for local "insn".
12525
12526 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12527
12528         * var-tracking.c (struct micro_operation_def): Strengthen field
12529         "insn" from rtx to rtx_insn *.
12530         (struct emit_note_data_def): Likewise.
12531         (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
12532         (vt_stack_adjustments): Likewise for local "insn".
12533         (adjust_insn): Likewise for param "insn".
12534         (val_store): Likewise.
12535         (val_resolve): Likewise.
12536         (struct count_use_info): Likewise for field "insn".
12537         (log_op_type): Likewise for param "insn".
12538         (reverse_op): Likewise.
12539         (prepare_call_arguments): Likewise.
12540         (add_with_sets):  The initial param takes an insn, but we can't
12541         yet strengthen it from rtx to rtx_insn * since it's used as a
12542         cselib_record_sets_hook callback.  For now rename initial param
12543         from "insn" to "uncast_insn", and introduce a local "insn" of
12544         the stronger rtx_insn * type, with a checked cast.
12545         (compute_bb_dataflow): Strengthen local "insn" from rtx to
12546         rtx_insn *.
12547         (emit_note_insn_var_location): Likewise.
12548         (emit_notes_for_changes): Likewise.
12549         (emit_notes_for_differences): Likewise.
12550         (next_non_note_insn_var_location): Likewise for return type and
12551         for param "insn".
12552         (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
12553         (vt_initialize): Likewise for local "insn".
12554         (delete_debug_insns): Likewise for locals "insn" and "next".
12555
12556 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12557
12558         * varasm.c (mark_constants): Strengthen param "insn" from rtx to
12559         rtx_insn *.
12560         (mark_constant_pool): Likewise for local "insn".
12561
12562 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12563
12564         * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
12565         rtx to rtx_insn *.
12566         (dead_debug_promote_uses): Likewise.
12567         (dead_debug_insert_temp): Likewise.
12568
12569 2014-08-23  David Malcolm  <dmalcolm@redhat.com>
12570
12571         * store-motion.c (store_killed_in_insn): Strengthen param "insn"
12572         from const_rtx to const rtx_insn *.
12573         (store_killed_after): Likewise.  Strengthen locals "last", "act"
12574         from rtx to rtx_insn *.
12575         (store_killed_before): Strengthen param "insn" from const_rtx to
12576         const rtx_insn *.  Strengthen local "first" from rtx to rtx_insn *.
12577         (find_moveable_store): Strengthen param "insn" from rtx to
12578         rtx_insn *.
12579         (compute_store_table): Likewise for local "insn".
12580         (insert_insn_start_basic_block): Likewise for param "insn" and
12581         locals "prev", "before", "insn".
12582         (insert_store): For now, add a checked cast to rtx_insn * on the
12583         result of gen_move_insn.
12584         (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
12585         to rtx_insn *.
12586         (replace_store_insn): Likewise.  For now, add a checked cast to
12587         rtx_insn * on the result of gen_move_insn.
12588
12589 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12590
12591         * stmt.c (expand_case): Strengthen local "before_case" from rtx to
12592         rtx_insn *.
12593         (expand_sjlj_dispatch_table): Likewise.
12594
12595 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12596
12597         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
12598         "insn" from rtx to rtx_insn *.
12599
12600 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12601
12602         * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
12603         "insn" from rtx to rtx_insn *.
12604         (dup_block_and_redirect): Likewise for param 3 "before".
12605
12606         * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
12607         from rtx to rtx_insn *.
12608         (move_insn_for_shrink_wrap): Likewise.
12609         (prepare_shrink_wrap): Likewise for locals "insn", "curr".
12610         (dup_block_and_redirect): Likewise for param "before" and local
12611         "insn".
12612         (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
12613         "end".
12614         (convert_to_simple_return): Likewise for local "start".
12615
12616         * config/i386/i386.c (ix86_finalize_stack_realign_flags):
12617         Strengthen local "insn" from rtx to rtx_insn *, for use when
12618         invoking requires_stack_frame_p.
12619
12620 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12621
12622         * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
12623         rtx_insn *.
12624         (speculate_expr): Likewise for locals "orig_insn_rtx",
12625         "spec_insn_rtx".
12626         (eq_transformed_insns): Likewise for locals "i1", "i2".
12627         (check_for_new_jump): Likewise for return type and local "end".
12628         (find_new_jump): Likewise for return type and local "jump".
12629         (sel_split_edge): Likewise for local "jump".
12630         (sel_create_recovery_block): Likewise.
12631         (sel_redirect_edge_and_branch_force): Likewise.
12632         (sel_redirect_edge_and_branch): Likewise.
12633
12634 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12635
12636         * sel-sched.c (substitute_reg_in_expr): Strengthen local
12637         "new_insn" from rtx to rtx_insn *.
12638         (create_insn_rtx_with_rhs): Likewise for return type and for local
12639         "insn_rtx".
12640         (create_insn_rtx_with_lhs): Likewise.
12641         (create_speculation_check): Likewise for local "insn_rtx".
12642         (implicit_clobber_conflict_p): Likewise for local "insn".
12643         (get_expr_cost): Likewise.
12644         (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
12645         (move_cond_jump): Likewise for locals "next", "prev", "link",
12646         "head", "from", "to".
12647
12648 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12649
12650         * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
12651         "next" from rtx to rtx_insn *.
12652         (find_conditional_protection): Likewise for local "next".
12653         (is_conditionally_protected): Likewise for local "insn1".
12654         (is_pfree): Likewise for locals "insn1", "insn2".
12655
12656 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12657
12658         * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
12659         from rtx to rtx_insn *.
12660
12661         * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
12662         locals "insn1", "insn2" from rtx to rtx_insn *.
12663         (add_deps_for_risky_insns): Likewise for params "head", "tail" and
12664         locals "insn", "prev", "last_jump", "next_tail".
12665         (schedule_ebb): Likewise for params "head", "tail".
12666         (schedule_ebbs): Likewise for locals "tail", "head".
12667
12668         * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
12669         to rtx_insn on "last_insn" in one of the invocations of
12670         schedule_ebb.
12671
12672 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12673
12674         * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
12675         "elem", "insn" from rtx to rtx_insn *.
12676         (change_spec_dep_to_hard): Likewise.
12677         (get_back_and_forw_lists): Likewise for local "con".
12678         (sd_add_dep): Likewise for locals "elem", "insn".
12679         (sd_resolve_dep): Likewise for locals "pro", "con".
12680         (sd_unresolve_dep): Likewise.
12681         (sd_delete_dep): Likewise.
12682         (chain_to_prev_insn): Likewise for local "pro".
12683         (find_inc): Likewise for locals "pro", "con".
12684
12685 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12686
12687         * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
12688         to rtx_insn *.
12689         (reg_set_between_p): Strengthen local "insn" from const_rtx to
12690         const rtx_insn *.
12691         (modified_between_p): Strengthen local "insn" from rtx to
12692         rtx_insn *.
12693         (remove_reg_equal_equiv_notes_for_regno): Likewise.
12694         (keep_with_call_p): Strengthen local "i2" from const_rtx to
12695         const rtx_insn *.
12696
12697 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12698
12699         * resource.c (next_insn_no_annul): Strengthen local "next" from
12700         rtx to rtx_insn *.
12701         (mark_referenced_resources): Likewise for local "insn".
12702
12703 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12704
12705         * reload.h (struct insn_chain): Strengthen field "insn" from rtx
12706         to rtx_insn *.
12707         (find_reloads): Likewise for param 1.
12708         (subst_reloads): Likewise for sole param.
12709         (find_equiv_reg): Likwise for param 2.
12710         (regno_clobbered_p): Likwise for param 2.
12711         (reload): Likewise for param 1.
12712
12713         * caller-save.c (save_call_clobbered_regs): Strengthen local
12714         "insn" from rtx to rtx_insn *.
12715         (insert_one_insn): Likewise for local "insn".
12716
12717         * reload.c (this_insn): Likewise for this global.
12718         (find_reloads): Likewise for param "insn".
12719         (find_reloads_toplev): Likewise.
12720         (find_reloads_address): Likewise.
12721         (subst_reg_equivs): Likewise.
12722         (update_auto_inc_notes): Likewise.
12723         (find_reloads_address_1): Likewise.
12724         (find_reloads_subreg_address): Likewise.
12725         (subst_reloads): Likewise.
12726         (find_equiv_reg): Likewise, also for local "p".
12727         (regno_clobbered_p): Likewise for param "insn".
12728
12729         * reload1.c (reg_reloaded_insn): Likewise for the elements of this
12730         array.
12731         (spill_reg_store): Likewise for the elements of this array.
12732         (remove_init_insns): Likewise for local "equiv_insn".
12733         (will_delete_init_insn_p): Likewise for param "insn".
12734         (reload): Likewise for param ""first" and local "insn".
12735         (calculate_needs_all_insns): Strengthen local "insn" from rtx to
12736         rtx_insn *.
12737         (calculate_elim_costs_all_insns): Likewise.
12738         (delete_caller_save_insns): Likewise.
12739         (spill_failure): Likewise for param "insn".
12740         (delete_dead_insn): Likewise.
12741         (set_label_offsets): Likewise.
12742         (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
12743         "prev_insn".
12744         (elimination_costs_in_insn): Likewise for param "insn".
12745         (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
12746         when referring to an insn.
12747         (set_initial_label_offsets): Likewise.
12748         (set_offsets_for_label): Strengthen param "insn" from rtx to
12749         rtx_insn *.
12750         (init_eliminable_invariants): Likewise for param "first" and local
12751         "insn".
12752         (fixup_eh_region_note): Likewise for param "insn".
12753         (reload_as_needed): Likewise for locals "prev", "insn",
12754         "old_next", "old_prev", "next".
12755         (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
12756         "last".
12757         (reload_inheritance_insn): Strengthen elements of this array from
12758         rtx to rtx_insn *.
12759         (failed_reload): Likewise for param "insn".
12760         (choose_reload_regs): Likewise for local "insn".  Replace use of
12761         NULL_RTX with NULL when referring to an insn.
12762         (input_reload_insns): Strengthen elements of this array from rtx
12763         to rtx_insn *.
12764         (other_input_address_reload_insns): Likewise for this global.
12765         (other_input_reload_insns): Likewise for this global.
12766         (input_address_reload_insns): Likwise for the elements of this
12767         array.
12768         (inpaddr_address_reload_insns): Likwise for the elements of this
12769         array.
12770         (output_reload_insns): Likewise for the elements of this array.
12771         (output_address_reload_insns): Likewise for the elements of this
12772         array.
12773         (outaddr_address_reload_insns): Likewise for the elements of this
12774         array.
12775         (operand_reload_insns): Likewise for this global.
12776         (other_operand_reload_insns): Likewise for this global.
12777         (other_output_reload_insns): Likewise for the elements of this
12778         array.
12779         (new_spill_reg_store): Likewise for the elements of this
12780         array.
12781         (emit_input_reload_insns): Likewise for locals "insn", "temp".
12782         Strengthen local "where" from rtx * to rtx_insn **.
12783         (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
12784         from rtx to rtx_insn *.
12785         (do_input_reload): Likewise for local "insn".
12786         (do_output_reload): Likewise for local "insn".
12787         (emit_reload_insns): Likewise for locals "insn" and "store_insn".
12788         (emit_insn_if_valid_for_reload): Likewise for return type and local
12789         "last".  Add checked cast to rtx_insn when returning "insn" since
12790         this has been through emit_insn.
12791         (gen_reload): Strengthen return type and locals "last", "insn", "set"
12792         from rtx to rtx_insn *.  Add checked cast to rtx_insn when
12793         returning "insn" since it's been through
12794         emit_insn_if_valid_for_reload at this point.
12795         (delete_output_reload): Strengthen param "insn" and locals
12796         "output_reload_insn", "i2" from rtx to rtx_insn *.
12797         (delete_address_reloads): Likewise for params "dead_insn",
12798         "current_insn" and locals "prev", "next".
12799         (delete_address_reloads_1): Likewise for params "dead_insn",
12800         "current_insn" and locals "prev", "i2".
12801         (inc_for_reload): Likewise for locals "last", "add_insn".
12802         (add_auto_inc_notes): Strengthen param "insn" from rtx to
12803         rtx_insn *.
12804
12805         * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
12806         param of this duplicate of the prototype from reload.h
12807
12808 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12809
12810         * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
12811         rtx to rtx_insn *.
12812         (regstat_bb_compute_calls_crossed): Likewise.
12813
12814 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12815
12816         * regrename.c (create_new_chain): Strengthen param "insn" from rtx
12817         to rtx_insn *.
12818         (init_rename_info): Replace use of NULL_RTX with NULL when dealing
12819         with an insn.
12820         (regrename_analyze): Strengthen local "insn" from rtx to
12821         rtx_insn *.
12822         (scan_rtx_reg): Likewise for param "insn".
12823         (scan_rtx_address): Likewise.
12824         (scan_rtx): Likewise.
12825         (restore_operands): Likewise.
12826         (record_out_operands): Likewise.
12827         (build_def_use): Likewise for local "insn".  Replace use of
12828         NULL_RTX with NULL when dealing with an insn.
12829
12830 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12831
12832         * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
12833         * reginfo.c (reg_scan): Likewise, also for local "insn".
12834         (reg_scan_mark_refs): Likewise for param "insn".
12835         (init_subregs_of_mode): Likewise for local "insn".
12836
12837 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12838
12839         * regcprop.c (struct queued_debug_insn_change): Strengthen field
12840         "insn" from rtx to rtx_insn *.
12841         (replace_oldest_value_reg): Likewise for param "insn".
12842         (replace_oldest_value_addr): Likewise.
12843         (replace_oldest_value_mem): Likewise.
12844         (apply_debug_insn_changes): Likewise for local "last_insn".
12845         (copyprop_hardreg_forward_1): Likewise for local "insn".
12846
12847 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12848
12849         * reg-stack.c (next_flags_user): Strengthen return type and param
12850         "insn" from rtx to rtx_insn *.
12851         (straighten_stack): Likewise for param "insn".
12852         (check_asm_stack_operands): Likewise.
12853         (remove_regno_note): Likewise.
12854         (emit_pop_insn): Likewise for return type, param "insn", local
12855         "pop_insn".
12856         (emit_swap_insn):  Strengthen param "insn" and locals "i1", "tmp",
12857         "limit" from rtx to rtx_insn *.
12858         (swap_to_top): Likewise for param "insn".
12859         (move_for_stack_reg): Likewise.
12860         (move_nan_for_stack_reg): Likewise.
12861         (swap_rtx_condition): Likewise.
12862         (compare_for_stack_reg): Likewise.
12863         (subst_all_stack_regs_in_debug_insn): Likewise.
12864         (subst_stack_regs_pat): Likewise, and local "insn2".
12865         (subst_asm_stack_regs): Strengthen param "insn" from rtx to
12866         rtx_insn *.
12867         (subst_stack_regs): Likewise.
12868         (change_stack): Likewise.
12869         (convert_regs_1): Likewise for locals "insn", "next".
12870
12871 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12872
12873         * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
12874         rtx_insn *.
12875         (combine_set_extension): Likewise for param "curr_insn".
12876         (transform_ifelse): Likewise for param "def_insn".
12877         (get_defs): Likewise for param "def_insn".  Strengthen param "dest"
12878         from vec<rtx> * to vec<rtx_insn *> *.
12879         (is_cond_copy_insn): Likewise for param "insn".
12880         (struct ext_state): Strengthen the four vec fields from vec<rtx>
12881         to vec<rtx_insn *>.
12882         (make_defs_and_copies_lists): Strengthen param "extend_insn" and
12883         local "def_insn" from rtx to rtx_insn *.
12884         (get_sub_rtx): Likewise for param "def_insn".
12885         (merge_def_and_ext): Likewise.
12886         (combine_reaching_defs): Likewise.
12887         (add_removable_extension): Likewise for param "insn".
12888         (find_removable_extensions): Likewise for local "insn".
12889         (find_and_remove_re): Likewise for locals "curr_insn" and
12890         "def_insn".  Strengthen locals "reinsn_del_list" and
12891         "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
12892
12893 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12894
12895         * recog.c (split_insn): Strengthen param "insn" and locals
12896         "first", "last" from rtx to rtx_insn *.
12897         (split_all_insns): Likewise for locals "insn", "next".
12898         (split_all_insns_noflow): Likewise.
12899
12900 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12901
12902         * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
12903         const rtx_insn *.
12904         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12905         (debug_rtx_find): Likewise for param 1 "x".
12906
12907         * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
12908         const_rtx to const rtx_insn *.  Likewise for local "insn".
12909         (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
12910         (debug_rtx_find): Likewise for param 1 "x".
12911         (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
12912         from const_rtx to const rtx_insn * within the appropriate cases of
12913         the switch statement.
12914
12915         * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
12916         Strengthen local "insns" from rtx to rtx_insn * since this is
12917         passed to a call to debug_rtx_list.
12918
12919 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12920
12921         * predict.h (predict_insn_def): Strengthen param "insn" from rtx
12922         to rtx_insn *.
12923
12924         * function.c (stack_protect_epilogue): Add checked cast to
12925         rtx_insn for now when invoking predict_insn_def.
12926
12927         * predict.c (predict_insn): Strengthen param "insn" from rtx to
12928         rtx_insn *.
12929         (predict_insn_def): Likewise.
12930         (rtl_predict_edge): Likewise for local "last_insn".
12931         (can_predict_insn_p): Strengthen param "insn" from const_rtx to
12932         const rtx_insn *.
12933         (combine_predictions_for_insn): Strengthen param "insn" from rtx
12934         to rtx_insn *.
12935         (bb_estimate_probability_locally): Likewise for local "last_insn".
12936         (expensive_function_p): Likewise for local "insn".
12937
12938         * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
12939         local "jmp", since this is used when invoking predict_insn_def.
12940
12941 2014-08-22  Marek Polacek  <polacek@redhat.com>
12942
12943         PR c++/62199
12944         * doc/invoke.texi: Update -Wlogical-not-parentheses description.
12945
12946 2014-08-22  Marek Polacek  <polacek@redhat.com>
12947
12948         PR c/61271
12949         * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
12950         a comparison in parens.
12951         * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
12952         in parens.
12953
12954 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12955
12956         * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
12957         rtx_insn *.
12958
12959         * cprop.c (fis_get_condition): Likewise.
12960
12961         * postreload.c (reload_cse_regs): Likewise for param "first".
12962         (reload_cse_simplify): Likewise for param "insn".
12963         (reload_cse_regs_1): Likewise for local "insn".
12964         (reload_cse_simplify_set): Likewise for param "insn".
12965         (reload_cse_simplify_operands): Likewise.
12966         (struct reg_use): Likewise for field "insn".
12967         (reload_combine_purge_insn_uses): Likewise for param "insn".
12968         (fixup_debug_insns): Likewise for params "from", "to" and local
12969         "insn".
12970         (try_replace_in_use): Likewise for local "use_insn".
12971         (reload_combine_recognize_const_pattern): Likewise for param
12972         "insn" and locals "add_moved_after_insn", "use_insn".
12973         (reload_combine_recognize_pattern): Likewise for param "insn" and
12974         local "prev".
12975         (reload_combine): Likewise for locals "insn", "prev".
12976         (reload_combine_note_use): Likewise for param "insn".
12977         (move2add_use_add2_insn): Likewise.
12978         (move2add_use_add3_insn): Likewise.
12979         (reload_cse_move2add): Likewise, also for local "next".
12980         (move2add_note_store): Likewise for local "insn".
12981
12982 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
12983
12984         * postreload-gcse.c (struct occr): Strengthen field "insn" from
12985         rtx to rtx_insn *.
12986         (struct unoccr): Likewise.
12987         (struct modifies_mem): Likewise.
12988         (alloc_mem): Likewise for local "insn".
12989         (insert_expr_in_table): Likewise for param "insn".
12990         (dump_expr_hash_table_entry): Likewise for local "insn".
12991         (oprs_unchanged_p): Likewise for param "insn".
12992         (load_killed_in_block_p): Likewise for local "setter".
12993         (record_last_reg_set_info): Likewise for param "insn".
12994         (record_last_reg_set_info_regno): Likewise.
12995         (record_last_mem_set_info): Likewise.
12996         (record_last_set_info): Likewise for local "last_set_insn".
12997         (record_opr_changes): Likewise for param "insn".
12998         (hash_scan_set): Likewise.
12999         (compute_hash_table): Likewise for local "insn".
13000         (get_avail_load_store_reg): Likewise for param "insn".
13001         (eliminate_partially_redundant_load): Likewise, also for locals
13002         "avail_insn", "next_pred_bb_end".  Replace use of NULL_RTX with
13003         RTX for insns.
13004         (eliminate_partially_redundant_loads): Likewise for local "insn".
13005
13006 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13007
13008         * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
13009         rtx to rtx_insn *.
13010         (expand_binop): Likewise for locals "entry_last", "last", "insns"
13011         (expand_twoval_unop): Likewise for locals entry_last", "last".
13012         (expand_twoval_binop): Likewise.
13013         (expand_twoval_binop_libfunc): Likewise for local "insns".
13014         (widen_leading): Likewise for local "last".
13015         (expand_doubleword_clz): Likewise for local "seq".  Strengthen
13016         locals "hi0_label", "after_label" from rtx to rtx_code_label *.
13017         (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
13018         (expand_parity): Likewise for locals "last" and "seq".
13019         (expand_ffs): Likewise for local "seq".  Strengthen local
13020         "nonzero_label" from rtx to rtx_code_label *.
13021         (expand_absneg_bit): Strengthen local "insns" from rtx to
13022         rtx_insn *.
13023         (expand_unop_direct): Likewise for local "last".
13024         (expand_unop): Likewise for locals "last", "insns".
13025         (expand_abs_nojump): Likewise for local "last".
13026         (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
13027         (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
13028         rtx_insn *.
13029         (expand_copysign_absneg): Strengthen local "label" from rtx to
13030         rtx_code_label *.
13031         (expand_copysign_bit): Strengthen local "insns" from rtx to
13032         rtx_insn *.
13033         (struct no_conflict_data): Likewise for fields "first", "insn".
13034         (emit_libcall_block_1): Likewise for param "insns" and locals
13035         "next", "last", "insn".
13036         (emit_libcall_block): For now, add a checked cast to rtx_insn *
13037         on "insns" when invoking emit_libcall_block_1.  Ultimately we
13038         want to strengthen insns itself.
13039         (prepare_cmp_insn): Strengthen local "last" from rtx to
13040         rtx_insn *.
13041         (emit_cmp_and_jump_insn_1): Likewise for local "insn".
13042         (prepare_float_lib_cmp): Likewise for local "insns".
13043         (emit_conditional_move): Likewise for local "last".
13044         (emit_conditional_add): Likewise.
13045         (have_sub2_insn): Likewise for local "seq".
13046         (expand_float): Likewise for local "insns".  Strengthen locals
13047         "label", "neglabel" from rtx to rtx_code_label *.
13048         (expand_fix): Likewise for locals "last", "insn", "insns" (to
13049         rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
13050         (expand_fixed_convert): Likewise for local "insns" (to
13051         rtx_insn *).
13052         (expand_sfix_optab): Likewise for local "last".
13053         (expand_compare_and_swap_loop): Strengthen local "label" from rtx
13054         to rtx_code_label *.
13055         (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
13056         from rtx to rtx_insn *.
13057         (expand_atomic_fetch_op): Likewise for local "insn".
13058         (maybe_legitimize_operand_same_code): Likewise for local "last".
13059         (maybe_legitimize_operands): Likewise.
13060
13061 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13062
13063         * modulo-sched.c (struct ps_reg_move_info): Strengthen field
13064         "insn" from rtx to rtx_insn *.
13065         (ps_rtl_insn): Likewise for return type.
13066         (doloop_register_get): Likewise for params "head", "tail" and
13067         locals "insn", "first_insn_not_to_check".
13068         (schedule_reg_move): Likewise for local "this_insn".
13069         (schedule_reg_moves): Add a checked cast to rtx_insn * to result
13070         of gen_move_insn for now.
13071         (reset_sched_times): Strengthen local "insn" from rtx to
13072         rtx_insn *.
13073         (permute_partial_schedule): Likewise.
13074         (duplicate_insns_of_cycles): Likewise for local "u_insn".
13075         (dump_insn_location): Likewise for param "insn".
13076         (loop_canon_p): Likewise for local "insn".
13077         (sms_schedule): Likewise.
13078         (print_partial_schedule): Likewise.
13079         (ps_has_conflicts): Likewise.
13080
13081 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13082
13083         * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
13084         "tailp" from rtx * to rtx_insn **.
13085
13086         * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
13087         from rtx to rtx_insn *.
13088         * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
13089         "tailp" from rtx * to rtx_insn **.  Strengthen locals "beg_head",
13090         "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
13091         rtx to rtx_insn *.
13092         * modulo-sched.c (const_iteration_count): Strengthen return type
13093         and locals "insn", "head", "tail" from rtx to rtx_insn *.  Replace
13094         use of NULL_RTX with NULL when working with insns.
13095         (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
13096         to rtx_insn *.
13097         (sms_schedule): Likewise.
13098         * sched-rgn.c (init_ready_list): Likewise, also for locals
13099         "src_head" and "src_next_tail".
13100         (compute_block_dependences): Likewise.
13101         (free_block_dependencies): Likewise.
13102         (debug_rgn_dependencies): Likewise.
13103         (free_rgn_deps): Likewise.
13104         (compute_priorities): Likewise.
13105         (schedule_region): Likewise.
13106         * sel-sched.c (find_ebb_boundaries): Likewise.
13107
13108         * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
13109         "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
13110
13111 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13112
13113         * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
13114         from rtx to rtx_insn *.
13115         (new_seginfo): Likewise for param "insn".
13116         (create_pre_exit): Likewise for locals "last_insn",
13117         "before_return_copy", "return_copy".
13118         (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
13119         "mode_set".
13120
13121 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13122
13123         * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
13124         from rtx to rtx_insn *.
13125         (lra_push_insn): Likewise for 1st param.
13126         (lra_push_insn_and_update_insn_regno_info): Likewise.
13127         (lra_pop_insn): Likewise for return type.
13128         (lra_invalidate_insn_data): Likewise for 1st param.
13129         (lra_set_insn_deleted): Likewise.
13130         (lra_delete_dead_insn): Likewise.
13131         (lra_process_new_insns): Likewise for first 3 params.
13132         (lra_set_insn_recog_data): Likewise for 1st param.
13133         (lra_update_insn_recog_data): Likewise.
13134         (lra_set_used_insn_alternative): Likewise.
13135         (lra_invalidate_insn_regno_info): Likewise.
13136         (lra_update_insn_regno_info): Likewise.
13137         (lra_former_scratch_operand_p): Likewise.
13138         (lra_eliminate_regs_1): Likewise.
13139         (lra_get_insn_recog_data): Likewise.
13140
13141         * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
13142         rtx to rtx_insn *.
13143
13144         * lra-coalesce.c (move_freq_compare_func): Likewise for locals
13145         "mv1" and "mv2".
13146         (substitute_within_insn): New.
13147         (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
13148         rtx_insn *.  Strengthen sorted_moves from rtx * to rxt_insn **.
13149         Replace call to "substitute" with call to substitute_within_insn.
13150
13151         * lra-constraints.c (curr_insn): Strengthen from rtx to
13152         rtx_insn *.
13153         (get_equiv_with_elimination): Likewise for param "insn".
13154         (match_reload): Strengthen params "before" and "after" from rtx *
13155         to rtx_insn **.
13156         (emit_spill_move): Likewise for return type.  Add a checked cast
13157         to rtx_insn * on result of gen_move_insn for now.
13158         (check_and_process_move): Likewise for local "before".  Replace
13159         NULL_RTX with NULL when referring to insns.
13160         (process_addr_reg): Strengthen params "before" and "after" from
13161         rtx * to rtx_insn **.
13162         (insert_move_for_subreg): Likewise.
13163         (simplify_operand_subreg): Strengthen locals "before" and "after"
13164         from rtx to rtx_insn *.
13165         (process_address_1): Strengthen params "before" and "after" from
13166         rtx * to rtx_insn **.  Strengthen locals "insns", "last_insn" from
13167         rtx to rtx_insn *.
13168         (process_address): Strengthen params "before" and "after" from
13169         rtx * to rtx_insn **.
13170         (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
13171         (curr_insn_transform): Strengthen locals "before" and "after"
13172         from rtx to rtx_insn *.  Replace NULL_RTX with NULL when referring
13173         to insns.
13174         (loc_equivalence_callback): Update cast of "data", changing
13175         resulting type from rtx to rtx_insn *.
13176         (substitute_pseudo_within_insn): New.
13177         (inherit_reload_reg): Strengthen param "insn" from rtx to
13178         rtx_insn *; likewise for local "new_insns".  Replace NULL_RTX with
13179         NULL when referring to insns.  Add a checked cast to rtx_insn *
13180         when using usage_insn to invoke lra_update_insn_regno_info.
13181         (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
13182         likewise for locals "restore", "save".  Add checked casts to
13183         rtx_insn * when using usage_insn to invoke
13184         lra_update_insn_regno_info and lra_process_new_insns.  Replace
13185         NULL_RTX with NULL when referring to insns.
13186         (split_if_necessary): Strengthen param "insn" from rtx to
13187         rtx_insn *.
13188         (update_ebb_live_info): Likewise for params "head", "tail" and local
13189         "prev_insn".
13190         (get_last_insertion_point): Likewise for return type and local "insn".
13191         (get_live_on_other_edges): Likewise for local "last".
13192         (inherit_in_ebb): Likewise for params "head", "tail" and locals
13193         "prev_insn", "next_insn", "restore".
13194         (remove_inheritance_pseudos): Likewise for local "prev_insn".
13195         (undo_optional_reloads): Likewise for local "insn".
13196
13197         * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
13198         "insn".
13199         (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
13200         insns.
13201         (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
13202         rtx_insn *.
13203         (spill_pseudos): Likewise for local "insn".
13204         (init_elimination): Likewise.
13205         (process_insn_for_elimination): Likewise for param "insn".
13206
13207         * lra-lives.c (curr_insn): Likewise.;
13208
13209         * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
13210         (remove_pseudos): Likewise for param "insn".
13211         (spill_pseudos): Likewise for local "insn".
13212         (lra_final_code_change): Likewise for locals "insn", "curr".
13213
13214         * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
13215         (lra_set_insn_deleted): Likewise.
13216         (lra_delete_dead_insn): Likewise, and for local "prev".
13217         (new_insn_reg): Likewise for param "insn".
13218         (lra_set_insn_recog_data): Likewise.
13219         (lra_update_insn_recog_data): Likewise.
13220         (lra_set_used_insn_alternative): Likewise.
13221         (get_insn_freq): Likewise.
13222         (invalidate_insn_data_regno_info): Likewise.
13223         (lra_invalidate_insn_regno_info): Likewise.
13224         (lra_update_insn_regno_info): Likewise.
13225         (lra_constraint_insn_stack): Strengthen from vec<rtx> to
13226         vec<rtx_insn *>.
13227         (lra_push_insn_1): Strengthen param "insn" from rtx to
13228         rtx_insn *.
13229         (lra_push_insn): Likewise.
13230         (lra_push_insn_and_update_insn_regno_info): Likewise.
13231         (lra_pop_insn): Likewise for return type and local "insn".
13232         (push_insns): Likewise for params "from", "to", and local "insn".
13233         (setup_sp_offset): Likewise for params "from", "last" and locals
13234         "before", "insn".
13235         (lra_process_new_insns): Likewise for params "insn", "before",
13236         "after" and local "last".
13237         (struct sloc): Likewise for field "insn".
13238         (lra_former_scratch_operand_p): Likewise for param "insn".
13239         (remove_scratches): Likewise for locals "insn", "last".
13240         (check_rtl): Likewise for local "insn".
13241         (add_auto_inc_notes): Likewise for param "insn".
13242         (update_inc_notes): Likewise for local "insn".
13243         (lra): Replace NULL_RTX with NULL when referring to insn.
13244
13245 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13246
13247         * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
13248         to rtx_insn *.
13249         (resolve_reg_notes): Likewise.
13250         (resolve_simple_move): Likewise for return type, param "insn", and
13251         locals "insns", "minsn".
13252         (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
13253         (resolve_use): Likewise.
13254         (resolve_debug): Likewise.
13255         (find_decomposable_shift_zext): Likewise.
13256         (resolve_shift_zext): Likewise for return type, param "insn", and
13257         locals "insns", "in".  Eliminate use of NULL_RTX in favor of NULL.
13258         (decompose_multiword_subregs): Likewise for local "insn",
13259         "orig_insn", "decomposed_shift", "end".
13260
13261 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13262
13263         * basic-block.h (basic_block split_edge_and_insert): Strengthen
13264         param "insns" from rtx to rtx_insn *.
13265
13266         * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
13267         rtx to rtx_insn *.
13268         (struct iv_to_split): Likewise.
13269         (loop_exit_at_end_p): Likewise for local "insn".
13270         (split_edge_and_insert): Likewise for param "insns".
13271         (compare_and_jump_seq): Likewise for return type, param "cinsn",
13272         and locals "seq", "jump".
13273         (unroll_loop_runtime_iterations): Likewise for locals "init_code",
13274         "branch_code"; update invocations of compare_and_jump_seq to
13275         eliminate NULL_RTX in favor of NULL.
13276         (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
13277         rtx to rtx_insn *.
13278         (reset_debug_uses_in_loop): Likewise.
13279         (analyze_insn_to_expand_var): Likewise for param "insn".
13280         (analyze_iv_to_split_insn): Likewise.
13281         (analyze_insns_in_loop): Likewise for local "insn".
13282         (insert_base_initialization): Likewise for param
13283         "insn" and local "seq".
13284         (split_iv): Likewise for param "insn" and local "seq".
13285         (expand_var_during_unrolling): Likewise for param "insn".
13286         (insert_var_expansion_initialization): Likewise for local "seq".
13287         (combine_var_copies_in_loop_exit): Likewise.
13288         (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
13289         "insn".
13290         (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
13291         (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
13292         "next".
13293
13294 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13295
13296         * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
13297         rtx_insn *.
13298         (iv_analyze_result): Likewise.
13299         (iv_analyze_expr): Likewise.
13300         (biv_p): Likewise.
13301
13302         * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
13303         local "def_insn" from rtx to rtx_insn *.
13304         (get_biv_step_1): Likewise for local "insn".
13305         (iv_analyze_expr): Likewise for param "insn".
13306         (iv_analyze_def): Likewise for local "insn".
13307         (iv_analyze_op): Likewise for param "insn".
13308         (iv_analyze): Likewise.
13309         (iv_analyze_result): Likewise.
13310         (biv_p): Likewise.
13311         (suitable_set_for_replacement): Likewise.
13312         (simplify_using_initial_values): Likewise for local "insn".
13313         (iv_number_of_iterations): Likewise for param "insn".
13314         (check_simple_exit): Add checked cast to rtx_insn when invoking
13315         iv_number_of_iterations for now (until get_condition is
13316         strengthened).
13317
13318         * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
13319         "insn" from rtx to rtx_insn *.
13320         (analyze_insns_in_loop): Likewise for local "insn".
13321
13322 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13323
13324         * loop-invariant.c (struct use): Strengthen field "insn" from rtx
13325         to rtx_insn *.
13326         (struct invariant): Likewise.
13327         (hash_invariant_expr_1): Likewise for param "insn".
13328         (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
13329         (find_exits): Likewise for local "insn".
13330         (create_new_invariant): Likewise for param "insn".
13331         (check_dependencies): Likewise.
13332         (find_invariant_insn): Likewise.
13333         (record_uses): Likewise.
13334         (find_invariants_insn): Likewise.
13335         (find_invariants_bb): Likewise for local "insn".
13336         (get_pressure_class_and_nregs): Likewise for param "insn".
13337         (calculate_loop_reg_pressure): Likewise for local "insn".
13338
13339 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13340
13341         * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
13342         to rtx_insn *.
13343         (add_test): Likewise for locals "seq", "jump".
13344         (doloop_modify): Likewise for locals "sequence", "jump_insn".
13345
13346 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13347
13348         * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
13349         rtx_insn *.
13350         (rebuild_jump_labels_chain): Likewise for param "chain".
13351
13352         * cfgexpand.c (pass_expand::execute): Add checked cast to
13353         rtx_insn * when calling rebuild_jump_labels_chain in region where
13354         we know e->insns.r is non-NULL.
13355
13356         * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
13357         rtx_insn *.
13358         (rebuild_jump_labels): Likewise.
13359         (rebuild_jump_labels_chain): Likewise for param "chain".
13360         (cleanup_barriers): Likewise for locals "insn", "next", "prev".
13361         (init_label_info): Likewise for param "f".
13362         (maybe_propagate_label_ref): Likewise for params "jump_insn",
13363         "prev_nonjump_insn".
13364         (mark_all_labels): Likewise for param "f" and locals "insn",
13365         "prev_nonjump_insn".
13366
13367 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13368
13369         * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
13370         from rtx to rtx_insn *insn.
13371         (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
13372         (ira_add_allocno_copy): Likewise.
13373         * ira-build.c (find_allocno_copy): Strengthen param "insn" from
13374         rtx to rtx_insn *.
13375         (ira_create_copy): Likewise.
13376         (ira_add_allocno_copy): Likewise.
13377         (create_bb_allocnos): Likewise for local "insn".
13378         * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
13379         (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
13380         process_regs_for_copy for rtx_insn * param.
13381         (add_insn_allocno_copies): Strengthen param "insn" from rtx to
13382         rtx_insn *insn.  Update NULL_RTX to NULL in invocation of
13383         process_regs_for_copy for rtx_insn * param.
13384         (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
13385         * ira-costs.c (record_reg_classes): Likewise for param "insn".
13386         (record_operand_costs): Likewise.
13387         (scan_one_insn): Likewise for return type, and for param "insn".
13388         (process_bb_for_costs): Likewise for local "insn".
13389         (process_bb_node_for_hard_reg_moves): Likewise.
13390         * ira-emit.c (struct move): Likewise for field "insn".
13391         (create_move): Eliminate use of NULL_RTX when dealing with an
13392         rtx_insn *.
13393         (emit_move_list): Strengthen return type and locals "result",
13394         "insn" from rtx to rtx_insn *insn.
13395         (emit_moves): Likewise for locals "insns", "tmp".
13396         (ira_emit): Likewise for local "insn".
13397         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
13398         "insn".
13399         (find_call_crossed_cheap_reg): Likewise.
13400         (process_bb_node_lives): Likewise for local "insn".
13401         * ira.c (decrease_live_ranges_number): Likewise.
13402         (compute_regs_asm_clobbered): Likewise.
13403         (build_insn_chain): Likewise.
13404         (find_moveable_pseudos): Likewise, also locals "def_insn",
13405         "use_insn", "x".  Also strengthen local "closest_uses" from rtx *
13406         to rtx_insn **.  Add a checked cast when assigning from
13407         "closest_use" into closest_uses array in a region where we know
13408         it's a non-NULL insn.
13409         (interesting_dest_for_shprep): Strengthen param "insn" from rtx
13410         to rtx_insn *.
13411         (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
13412         "last_interesting_insn", "uin".
13413         (move_unallocated_pseudos): Likewise for locals "def_insn",
13414         "move_insn", "newinsn".
13415
13416 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13417
13418         * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
13419         Strengthen locals "done_label", "do_error" from rtx to
13420         rtx_code_label *.
13421         (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
13422         from rtx to rtx_insn *.  Strengthen local "sub_check from rtx to
13423         rtx_code_label *.
13424         (ubsan_expand_si_overflow_neg_check): Likewise for locals
13425         "done_label", "do_error" to rtx_code_label * and local  "last" to
13426         rtx_insn *.
13427         (ubsan_expand_si_overflow_mul_check): Likewise for locals
13428         "done_label", "do_error", "large_op0", "small_op0_large_op1",
13429         "one_small_one_large", "both_ops_large", "after_hipart_neg",
13430         "after_lopart_neg", "do_overflow", "hipart_different"  to
13431         rtx_code_label * and local  "last" to rtx_insn *.
13432
13433 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13434
13435         * init-regs.c (initialize_uninitialized_regs): Strengthen locals
13436         "insn" and "move_insn" from rtx to rtx_insn *.
13437
13438 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13439
13440         * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
13441         rtx_insn *.
13442         (cheap_bb_rtx_cost_p): Likewise.
13443         (first_active_insn): Likewise for return type and local "insn".
13444         (last_active_insn):  Likewise for return type and locals "insn",
13445         "head".
13446         (struct noce_if_info): Likewise for fields "jump", "insn_a",
13447         "insn_b".
13448         (end_ifcvt_sequence): Likewise for return type and locals "insn",
13449         "seq".
13450         (noce_try_move): Likewise for local "seq".
13451         (noce_try_store_flag): Likewise.
13452         (noce_try_store_flag_constants): Likewise.
13453         (noce_try_addcc): Likewise.
13454         (noce_try_store_flag_mask): Likewise.
13455         (noce_try_cmove): Likewise.
13456         (noce_try_minmax): Likewise.
13457         (noce_try_abs): Likewise.
13458         (noce_try_sign_mask): Likewise.
13459         (noce_try_bitop): Likewise.
13460         (noce_can_store_speculate_p): Likewise for local "insn".
13461         (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
13462         seq".
13463         (check_cond_move_block): Likewise for local "insn".
13464         (cond_move_convert_if_block): Likewise.
13465         (cond_move_process_if_block): Likewise for locals "seq",
13466         "loc_insn".
13467         (noce_find_if_block): Likewise for local "jump".
13468         (merge_if_block): Likewise for local "last".
13469         (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
13470         (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
13471         (block_has_only_trap): Likewise for return type and local "trap".
13472         (find_if_case_1): Likewise for local "jump".
13473         (dead_or_predicable): Likewise for locals "head", "end", "jump",
13474         "insn".
13475
13476 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13477
13478         * hw-doloop.h (struct hwloop_info_d): Strengthen fields
13479         "last_insn", "loop_end" from rtx to rtx_insn *.
13480
13481         * hw-doloop.c (scan_loop): Likewise for local "insn".
13482         (discover_loop): Likewise for param "tail_insn".
13483         (discover_loops): Likewise for local "tail".
13484
13485         * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
13486         cast to rtx_insn * when assigning from an rtx local to a
13487         hwloop_info's "last_insn" field.
13488
13489 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13490
13491         * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
13492         (add_delay_dependencies): Strengthen local "pro" from rtx to
13493         rtx_insn *.
13494         (recompute_todo_spec): Likewise.
13495         (dep_cost_1): Likewise for locals "insn", "used".
13496         (schedule_insn): Likewise for local "dbg".
13497         (schedule_insn): Likewise for locals "pro", "next".
13498         (unschedule_insns_until): Likewise for local "con".
13499         (restore_pattern): Likewise for local "next".
13500         (estimate_insn_tick): Likewise for local "pro".
13501         (resolve_dependencies): Likewise for local "next".
13502         (fix_inter_tick): Likewise.
13503         (fix_tick_ready): Likewise for local "pro".
13504         (add_to_speculative_block): Likewise for locals "check", "twin",
13505         "pro".
13506         (sched_extend_bb): Likewise for locals "end", "insn".
13507         (init_before_recovery): Likewise for local "x".
13508         (sched_create_recovery_block): Likewise for local "barrier".
13509         (create_check_block_twin): Likewise for local "pro".
13510         (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
13511         "consumer".
13512         (unlink_bb_notes): Update for change to type of bb_header.
13513         Strengthen locals "prev", "label", "note", "next" from rtx to
13514         rtx_insn *.
13515         (clear_priorities): Likewise for local "pro".
13516
13517 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13518
13519         * gcse.c (struct occr): Strengthen field "insn" from rtx to
13520         rtx_insn *.
13521         (test_insn): Likewise for this global.
13522         (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
13523         const rtx_insn *.
13524         (oprs_anticipatable_p): Likewise.
13525         (oprs_available_p): Likewise.
13526         (insert_expr_in_table): Strengthen param "insn" from  rtx to
13527         rtx_insn *.
13528         (hash_scan_set): Likewise.
13529         (hash_scan_clobber): Likewise.
13530         (hash_scan_call): Likewise.
13531         (hash_scan_insn): Likewise.
13532         (compute_hash_table_work): Likewise for local "insn".
13533         (process_insert_insn): Likewise for return type and local "pat".
13534         (insert_insn_end_basic_block): Likewise for locals "new_insn",
13535         "pat", "pat_end", "maybe_cc0_setter".
13536         (pre_edge_insert): Likewise for local "insn".
13537         (pre_insert_copy_insn): Likewise for param "insn".
13538         (pre_insert_copies): Likewise for local "insn".
13539         (struct set_data): Likewise for field "insn".
13540         (single_set_gcse): Likewise for param "insn".
13541         (gcse_emit_move_after): Likewise.
13542         (pre_delete): Likewise for local "insn".
13543         (update_bb_reg_pressure): Likewise for param "from" and local
13544         "insn".
13545         (should_hoist_expr_to_dom): Likewise for param "from".
13546         (hoist_code): Likewise for local "insn".
13547         (get_pressure_class_and_nregs): Likewise for param "insn".
13548         (calculate_bb_reg_pressure): Likewise for local "insn".
13549         (compute_ld_motion_mems): Likewise.
13550
13551 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13552
13553         * genpeep.c (main): Rename param back from "uncast_ins1" to
13554         "ins1", strengthening from rtx to rtx_insn *.  Drop now-redundant
13555         checked cast.
13556
13557         * output.h (peephole): Strengthen param from rtx to rtx_insn *.
13558
13559 2014-08-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
13560
13561         PR target/62195
13562         * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
13563         documentation to state it is only for VSX operations.
13564
13565         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
13566         constraint only active if VSX.
13567
13568         * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
13569         wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
13570         (lfiwzx): Likewise.
13571
13572 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13573
13574         * fwprop.c (single_def_use_dom_walker::before_dom_children):
13575         Strengthen local "insn" from rtx to rtx_insn *.
13576         (use_killed_between): Likewise for param "target_insn".
13577         (all_uses_available_at): Likewise for param "target_insn" and
13578         local "next".
13579         (update_df_init): Likewise for params "def_insn", "insn".
13580         (update_df): Likewise for param "insn".
13581         (try_fwprop_subst): Likewise for param "def_insn" and local
13582         "insn".
13583         (free_load_extend): Likewise for param "insn".
13584         (forward_propagate_subreg): Likewise for param "def_insn" and
13585         local "use_insn".
13586         (forward_propagate_asm): Likewise for param "def_insn" and local
13587         "use_insn".
13588         (forward_propagate_and_simplify): Likewise for param "def_insn"
13589         and local "use_insn".
13590         (forward_propagate_into): Likewise for locals "def_insn" and
13591         "use_insn".
13592
13593 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13594
13595         * function.c (emit_initial_value_sets): Strengthen local "seq"
13596         from rtx to rtx_insn *.
13597         (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
13598         local "seq".
13599         (instantiate_virtual_regs): Likewise for local "insn".
13600         (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
13601         (reorder_blocks_1): Likewise for param "insns" and local "insn".
13602         (expand_function_end): Likewise for locals "insn" and "seq".
13603         (epilogue_done): Likewise for local "insn".
13604         (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
13605         "last", "trial".
13606         (reposition_prologue_and_epilogue_notes): Likewise for locals
13607         "insn", "last", "note", "first".
13608         (match_asm_constraints_1): Likewise for param "insn" and local "insns".
13609         (pass_match_asm_constraints::execute): Likewise for local "insn".
13610
13611 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13612
13613         * output.h (final_scan_insn): Strengthen return type from rtx to
13614         rtx_insn *.
13615         (final_forward_branch_p): Likewise for param.
13616         (current_output_insn): Likewise for this global.
13617
13618         * final.c (rtx debug_insn): Likewise for this variable.
13619         (current_output_insn): Likewise.
13620         (get_attr_length_1): Rename param "insn" to "uncast_insn",
13621         adding "insn" back in as an rtx_insn * with a checked cast, so
13622         that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
13623         first param.
13624         (compute_alignments): Strengthen local "label" from rtx to
13625         rtx_insn *.
13626         (shorten_branches): Rename param from "first" to "uncast_first",
13627         introducing a new local rtx_insn * "first" using a checked cast to
13628         effectively strengthen "first" from rtx to rtx_insn * without
13629         affecting the type signature.  Strengthen locals "insn", "seq",
13630         "next", "label" from rtx to rtx_insn *.
13631         (change_scope): Strengthen param "orig_insn" and local "insn" from
13632         rtx to rtx_insn *.
13633         (final_start_function): Rename param from "first" to "uncast_first",
13634         introducing a new local rtx_insn * "first" using a checked cast to
13635         effectively strengthen "first" from rtx to rtx_insn * without
13636         affecting the type signature.  Strengthen local "insn" from rtx to
13637         rtx_insn *.
13638         (dump_basic_block_info): Strengthen param "insn" from rtx to
13639         rtx_insn *.
13640         (final): Rename param from "first" to "uncast_first",
13641         introducing a new local rtx_insn * "first" using a checked cast to
13642         effectively strengthen "first" from rtx to rtx_insn * without
13643         affecting the type signature.  Strengthen locals "insn", "next"
13644         from rtx to rtx_insn *.
13645         (output_alternate_entry_point): Strengthen param "insn" from rtx to
13646         rtx_insn *.
13647         (call_from_call_insn): Strengthen param "insn" from rtx to
13648         rtx_call_insn *.
13649         (final_scan_insn): Rename param from "insn" to "uncast_insn",
13650         introducing a new local rtx_insn * "insn" using a checked cast to
13651         effectively strengthen "insn" from rtx to rtx_insn * without
13652         affecting the type signature.  Strengthen return type and locals
13653         "next", "note", "prev", "new_rtx" from rtx to rtx_insn *.  Remove
13654         now-redundant checked cast to rtx_insn * from both invocations of
13655         debug_hooks->var_location.  Convert CALL_P into a dyn_cast,
13656         introducing a local "call_insn" for use when invoking
13657         call_from_call_insn.
13658         (notice_source_line): Strengthen param "insn" from rtx to
13659         rtx_insn *.
13660         (leaf_function_p): Likewise for local "insn".
13661         (final_forward_branch_p): Likewise.
13662         (leaf_renumber_regs): Likewise for param "first".
13663         (rest_of_clean_state): Likewise for locals "insn" and "next".
13664         (self_recursive_call_p): Likewise for param "insn".
13665         (collect_fn_hard_reg_usage): Likewise for local "insn".
13666         (get_call_fndecl): Likewise for param "insn".
13667         (get_call_cgraph_rtl_info): Likewise.
13668         (get_call_reg_set_usage): 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.
13672
13673         * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
13674         cast when assigning from param "insn" to current_output_insn.
13675         (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
13676         so that we can assign it back to current_output_insn.
13677
13678 2014-08-20  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13679
13680         * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
13681         atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
13682         atmxt540s and atmxt540sreva devices.
13683         * config/avr/avr-tables.opt: Regenerate.
13684         * config/avr/t-multilib: Regenerate.
13685         * doc/avr-mmcu.texi: Regenerate.
13686
13687 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13688
13689         * expr.c (convert_move): Strengthen local "insns" from rtx to
13690         rtx_insn *.
13691         (emit_block_move_via_loop): Strengthen locals "cmp_label" and
13692         "top_label" from rtx to rtx_code_label *.
13693         (move_block_to_reg): Strengthen local "insn", "last" from rtx to
13694         rtx_insn *.
13695         (emit_single_push_insn): Likewise for locals "prev", "last".
13696         (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
13697         to rtx_code_label *.
13698         (store_constructor): Likewise for locals "loop_start", "loop_end".
13699         (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
13700         rtx_insn *.
13701         (expand_expr_real_2): Likewise.
13702         (expand_expr_real_1): Strengthen local "label" from rtx to
13703         rtx_code_label *.
13704
13705 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13706
13707         * expmed.c (store_bit_field_using_insv): Strengthen local "last"
13708         from rtx to rtx_insn *.
13709         (store_bit_field_1): Likewise.
13710         (extract_bit_field_1): Likewise.
13711         (expand_mult_const): Likewise for local "insns".
13712         (expmed_mult_highpart): Strengthen local "label" from rtx to
13713         rtx_code_label *.
13714         (expand_smod_pow2): Likewise.
13715         (expand_sdiv_pow2): Likewise.
13716         (expand_divmod): Strengthen locals "last", "insn" from rtx to
13717         rtx_insn *.  Strengthen locals "label", "label1", "label2",
13718         "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
13719         (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
13720         (emit_store_flag): Likewise.
13721         (emit_store_flag_force): Strengthen local "label" from rtx to
13722         rtx_code_label *.
13723         (do_cmp_and_jump): Likewise for param "label".
13724
13725 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13726
13727         * explow.c (force_reg): Strengthen local "insn" from rtx to
13728         rtx_insn *.
13729         (adjust_stack_1): Likewise.
13730         (allocate_dynamic_stack_space): Likewise.  Strengthen locals
13731         "final_label", "available_label", "space_available" from rtx to
13732         rtx_code_label *.
13733         (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
13734         (anti_adjust_stack_and_probe): Likewise.
13735
13736 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13737
13738         * except.h (sjlj_emit_function_exit_after): Strengthen param
13739         "after" from rtx to rtx_insn *.  This is only called with
13740         result of get_last_insn (in function.c) so type-change should be
13741         self-contained.
13742
13743         * function.h (struct rtl_eh): Strengthen field "ehr_label" from
13744         rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
13745         to rtx_insn *.  These fields are only used from except.c so this
13746         type-change should be self-contained to this patch.
13747
13748         * except.c (emit_to_new_bb_before): Strengthen param "seq" and
13749         local "last" from rtx to rtx_insn *.
13750         (dw2_build_landing_pads): Likewise for local "seq".
13751         (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
13752         (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
13753         rtx to rtx_code_label *.  Strengthen locals "fn_begin", "seq" from
13754         rtx to rtx_insn *.
13755         (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
13756         to rtx_insn *.
13757         (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
13758         (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
13759         (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
13760         referring to an insn.  Strengthen local "dispatch_label" from
13761         rtx to rtx_code_label *.
13762         (set_nothrow_function_flags): Strengthen local "insn" from rtx to
13763         rtx_insn *.
13764         (expand_eh_return): Strengthen local "around_label" from
13765         rtx to rtx_code_label *.
13766         (convert_to_eh_region_ranges): Strengthen locals "iter",
13767         "last_action_insn", "first_no_action_insn",
13768         "first_no_action_insn_before_switch",
13769         "last_no_action_insn_before_switch", from rtx to rtx_insn *.
13770
13771 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13772
13773         * dwarf2out.c (last_var_location_insn): Strengthen this variable
13774         from rtx to rtx_insn *.
13775         (cached_next_real_insn): Likewise.
13776         (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
13777         working with insns.
13778         (dwarf2out_var_location): Strengthen locals "next_real",
13779         "next_note", "expected_next_loc_note", "last_start", "insn" from
13780         rtx to rtx_insn *.
13781
13782 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13783
13784         * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
13785         from rtx to rtx_insn *.
13786         (create_pseudo_cfg): Likewise for local "insn".
13787
13788 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13789
13790         * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
13791         from rtx to rtx_insn *.
13792         (df_bb_regno_last_def_find): Likewise.
13793
13794         * df-problems.c (df_rd_bb_local_compute): Likewise.
13795         (df_lr_bb_local_compute): Likewise.
13796         (df_live_bb_local_compute): Likewise.
13797         (df_chain_remove_problem): Likewise.
13798         (df_chain_create_bb): Likewise.
13799         (df_word_lr_bb_local_compute): Likewise.
13800         (df_remove_dead_eq_notes): Likewise for param "insn".
13801         (df_note_bb_compute): Likewise for local "insn".
13802         (simulate_backwards_to_point): Likewise.
13803         (df_md_bb_local_compute): Likewise.
13804
13805         * df-scan.c (df_scan_free_bb_info): Likewise.
13806         (df_scan_start_dump): Likewise.
13807         (df_scan_start_block): Likewise.
13808         (df_install_ref_incremental): Likewise for local "insn".
13809         (df_insn_rescan_all): Likewise.
13810         (df_reorganize_refs_by_reg_by_insn): Likewise.
13811         (df_reorganize_refs_by_insn_bb): Likewise.
13812         (df_recompute_luids): Likewise.
13813         (df_bb_refs_record): Likewise.
13814         (df_update_entry_exit_and_calls): Likewise.
13815         (df_bb_verify): Likewise.
13816
13817 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13818
13819         * ddg.h (struct ddg_node): Strengthen fields "insn" and
13820         "first_note" from rtx to rtx_insn *.
13821         (get_node_of_insn): Likewise for param 2 "insn".
13822         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13823
13824         * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
13825         rtx_insn *.
13826         (mem_write_insn_p): Likewise.
13827         (mem_access_insn_p): Likewise.
13828         (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
13829         (def_has_ccmode_p): Likewise for param "insn".
13830         (add_cross_iteration_register_deps): Likewise for locals
13831         "def_insn" and "use_insn".
13832         (insns_may_alias_p): Likewise for params "insn1" and "insn2".
13833         (build_intra_loop_deps): Likewise for local "src_insn".
13834         (create_ddg): Strengthen locals "insn" and "first_note" from rtx
13835         to rtx_insn *.
13836         (get_node_of_insn): Likewise for param "insn".
13837
13838 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13839
13840         * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
13841         (deletable_insn_p): Strengthen param "insn" from rtx to
13842         rtx_insn *.  Add checked cast to rtx_call_insn when invoking
13843         find_call_stack_args, since this is guarded by CALL_P (insn).
13844         (marked_insn_p): Strengthen param "insn" from rtx to
13845         rtx_insn *.
13846         (mark_insn): Likewise.  Add checked cast to rtx_call_insn when
13847         invoking find_call_stack_args, since this is guarded by
13848         CALL_P (insn).
13849         (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
13850         rtx_insn *; we know this is an insn since this was called by
13851         mark_nonreg_stores.
13852         (mark_nonreg_stores_2): Likewise.
13853         (mark_nonreg_stores): Strengthen param "insn" from rtx to
13854         rtx_insn *.
13855         (find_call_stack_args): Strengthen param "call_insn" from rtx to
13856         rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
13857         to rtx_insn *.
13858         (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
13859         from rtx to rtx_insn *.
13860         (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
13861         "next", "ref_insn".
13862         (delete_unmarked_insns): Likewise for locals "insn", "next".
13863         (prescan_insns_for_dce): Likewise for locals "insn", "prev".
13864         (mark_reg_dependencies): Likewise for param "insn".
13865         (rest_of_handle_ud_dce): Likewise for local "insn".
13866         (word_dce_process_block): Likewise.
13867         (dce_process_block): Likewise.
13868
13869 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13870
13871         * cse.c (struct qty_table_elem): Strengthen field "const_insn"
13872         from rtx to rtx_insn *.
13873         (struct change_cc_mode_args): Likewise for field "insn".
13874         (this_insn): Strengthen from rtx to rtx_insn *.
13875         (make_new_qty): Replace use of NULL_RTX with NULL when dealing
13876         with insn.
13877         (validate_canon_reg): Strengthen param "insn" from rtx to
13878         rtx_insn *.
13879         (canon_reg): Likewise.
13880         (fold_rtx): Likewise.  Replace use of NULL_RTX with NULL when
13881         dealing with insn.
13882         (record_jump_equiv): Strengthen param "insn" from rtx to
13883         rtx_insn *.
13884         (try_back_substitute_reg): Likewise, also for locals "prev",
13885         "bb_head".
13886         (find_sets_in_insn): Likewise for param "insn".
13887         (canonicalize_insn): Likewise.
13888         (cse_insn): Likewise.  Add a checked cast.
13889         (invalidate_from_clobbers): Likewise for param "insn".
13890         (invalidate_from_sets_and_clobbers): Likewise.
13891         (cse_process_notes_1): Replace use of NULL_RTX with NULL when
13892         dealing with insn.
13893         (cse_prescan_path): Strengthen local "insn" from rtx to
13894         rtx_insn *.
13895         (cse_extended_basic_block): Likewise for locals "insn" and
13896         "prev_insn".
13897         (cse_main): Likewise for param "f".
13898         (check_for_label_ref): Likewise for local "insn".
13899         (set_live_p): Likewise for second param ("insn").
13900         (insn_live_p): Likewise for first param ("insn") and for local
13901         "next".
13902         (cse_change_cc_mode_insn): Likewise for first param "insn".
13903         (cse_change_cc_mode_insns): Likewise for first and second params
13904         "start" and "end".
13905         (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
13906         and "end".
13907         (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
13908         "cc_src_insn".
13909
13910 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13911             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13912             Anna Tikhonova  <anna.tikhonova@intel.com>
13913             Ilya Tocar  <ilya.tocar@intel.com>
13914             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13915             Ilya Verbin  <ilya.verbin@intel.com>
13916             Kirill Yukhin  <kirill.yukhin@intel.com>
13917             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13918
13919         * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
13920         New.
13921         * config/i386/sse.md
13922         (define_mode_iterator VI248_AVX2): Delete.
13923         (define_mode_iterator VI2_AVX2_AVX512BW): New.
13924         (define_mode_iterator VI48_AVX2): Ditto.
13925         (define_insn <shift_insn><mode>3): Delete.
13926         (define_insn "<shift_insn><mode>3<mask_name>" with
13927         VI2_AVX2_AVX512BW): New.
13928         (define_insn "<shift_insn><mode>3<mask_name>" with
13929         VI48_AVX2): Ditto.
13930
13931 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13932             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13933             Anna Tikhonova  <anna.tikhonova@intel.com>
13934             Ilya Tocar  <ilya.tocar@intel.com>
13935             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13936             Ilya Verbin  <ilya.verbin@intel.com>
13937             Kirill Yukhin  <kirill.yukhin@intel.com>
13938             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13939
13940         * config/i386/sse.md
13941         (define_mode_iterator VI4F_BRCST32x2): New.
13942         (define_mode_attr 64x2_mode): Ditto.
13943         (define_mode_attr 32x2mode): Ditto.
13944         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
13945         with VI4F_BRCST32x2): Ditto.
13946         (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
13947         with V16FI mode iterator): Ditto.
13948         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13949         with V16FI): Ditto.
13950         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
13951         with VI8F_BRCST64x2): Ditto.
13952
13953 2014-08-22  Alexander Ivchenko  <alexander.ivchenko@intel.com>
13954             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
13955             Anna Tikhonova  <anna.tikhonova@intel.com>
13956             Ilya Tocar  <ilya.tocar@intel.com>
13957             Andrey Turetskiy  <andrey.turetskiy@intel.com>
13958             Ilya Verbin  <ilya.verbin@intel.com>
13959             Kirill Yukhin  <kirill.yukhin@intel.com>
13960             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
13961
13962         * config/i386/sse.md
13963         (define_mode_iterator VI8_AVX512VL): New.
13964         (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
13965
13966 2014-08-22  Kirill Yukhin  <kirill.yukhin@intel.com>
13967
13968         * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
13969         (define_mode_iterator V48_AVX512VL): New.
13970         (define_mode_iterator V12_AVX512VL): Ditto.
13971         (define_insn <avx512>_load<mode>_mask): Split into two similar
13972         patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
13973         Refactor output template.
13974         (define_insn "<avx512>_store<mode>_mask"): Ditto.
13975
13976 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
13977
13978         * cprop.c (struct occr): Strengthen field "insn" from rtx to
13979         rtx_insn *.
13980         (reg_available_p): Likewise for param "insn".
13981         (insert_set_in_table): Likewise.
13982         (hash_scan_set): Likewise.
13983         (hash_scan_insn): Likewise.
13984         (make_set_regs_unavailable): Likewise.
13985         (compute_hash_table_work): Likewise for local "insn".
13986         (reg_not_set_p): Strengthen param "insn" from const_rtx to
13987         const rtx_insn *.
13988         (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
13989         (try_replace_reg): Likewise.
13990         (find_avail_set): Likewise.
13991         (cprop_jump): Likewise for params "setcc", "jump".
13992         (constprop_register): Likewise for param "insn".
13993         (cprop_insn): Likewise.
13994         (do_local_cprop): Likewise.
13995         (local_cprop_pass): Likewise for local "insn".
13996         (bypass_block): Likewise for params "setcc" and "jump".
13997         (bypass_conditional_jumps): Likewise for locals "setcc" and
13998         "insn".
13999         (one_cprop_pass): Likewise for local "insn".
14000
14001 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14002
14003         * compare-elim.c (struct comparison_use): Strengthen field "insn"
14004         from rtx to rtx_insn *.
14005         (struct comparison): Likewise, also for field "prev_clobber".
14006         (conforming_compare): Likewise for param "insn".
14007         (arithmetic_flags_clobber_p): Likewise.
14008         (find_flags_uses_in_insn): Likewise.
14009         (find_comparison_dom_walker::before_dom_children): Likewise for
14010         locals "insn", "next", "last_clobber".
14011         (try_eliminate_compare): Likewise for locals "insn", "bb_head".
14012
14013 2014-08-22  David Malcolm  <dmalcolm@redhat.com>
14014
14015         * combine-stack-adj.c (struct csa_reflist): Strengthen field
14016         "insn" from rtx to rtx_insn *.
14017         (single_set_for_csa): Likewise for param "insn".
14018         (record_one_stack_ref): Likewise.
14019         (try_apply_stack_adjustment): Likewise.
14020         (struct record_stack_refs_data): Likewise for field "insn".
14021         (maybe_move_args_size_note): Likewise for params "last" and "insn".
14022         (prev_active_insn_bb): Likewise for return type and param "insn".
14023         (next_active_insn_bb): Likewise.
14024         (force_move_args_size_note): Likewise for params "prev" and "last"
14025         and locals "test", "next_candidate", "prev_candidate".
14026         (combine_stack_adjustments_for_block): Strengthen locals
14027         "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
14028         rtx_insn *.
14029
14030 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14031
14032         * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
14033         (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
14034         (subst_insn): Likewise for this variable.
14035         (added_links_insn): Likewise.
14036         (struct insn_link): Likewise for field "insn".
14037         (alloc_insn_link): Likewise for param "insn".
14038         (struct undobuf): Likewise for field "other_insn".
14039         (find_single_use): Likewise for param "insn" and local "next".
14040         (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
14041         (delete_noop_moves): Likewise for locals "insn", "next".
14042         (create_log_links): Likewise for locals "insn", "use_insn".
14043         Strengthen local "next_use" from rtx * to rtx_insn **.
14044         (insn_a_feeds_b): Likewise for params "a", "b".
14045         (combine_instructions): Likewise for param "f" and locals "insn",
14046         "next", "prev", "first", "last_combined_insn", "link", "link1",
14047         "temp".  Replace use of NULL_RTX with NULL when referring to
14048         insns.
14049         (setup_incoming_promotions): Likewise for param "first"
14050         (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
14051         (can_combine_p): Likewise for params "insn", "i3", "pred",
14052         "pred2", "succ", "succ2" and for local "p".
14053         (combinable_i3pat): Likewise for param "i3".
14054         (cant_combine_insn_p): Likewise for param "insn".
14055         (likely_spilled_retval_p): Likewise.
14056         (adjust_for_new_dest): Likewise.
14057         (update_cfg_for_uncondjump): Likewise, also for local "insn".
14058         (try_combine): Likewise for return type and for params "i3", "i2",
14059         "i1", "i0", "last_combined_insn", and for locals "insn",
14060         "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
14061         "i0_insn".  Eliminate local "tem" in favor of new locals
14062         "tem_note" and "tem_insn", the latter being an rtx_insn *.  Add a
14063         checked cast for now to rtx_insn * on the return type of
14064         gen_rtx_INSN.  Replace use of NULL_RTX with NULL when referring to
14065         insns.
14066         (find_split_point): Strengthen param "insn" from rtx to
14067         rtx_insn *.
14068         (simplify_set): Likewise for local "other_insn".
14069         (recog_for_combine): Likewise for param "insn".
14070         (record_value_for_reg): Likewise.
14071         (record_dead_and_set_regs_1): Likewise for local
14072         "record_dead_insn".
14073         (record_dead_and_set_regs): Likewise for param "insn".
14074         (record_promoted_value): Likewise.
14075         (check_promoted_subreg): Likewise.
14076         (get_last_value_validate): Likewise.
14077         (reg_dead_at_p): Likewise.
14078         (move_deaths): Likewise for param "to_insn".
14079         (distribute_notes): Likewise for params "from_insn", "i3", "i2"
14080         and locals "place", "place2", "cc0_setter".  Eliminate local "tem
14081         in favor of new locals "tem_note" and "tem_insn", the latter being
14082         an rtx_insn *.
14083         (distribute_links): Strengthen locals "place", "insn" from rtx to
14084         rtx_insn *.
14085
14086 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14087
14088         * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
14089         than a const_rtx.
14090         (can_delete_label_p): Require a const rtx_code_label * rather than
14091         a const_rtx.
14092         (delete_insn): Add checked cast to rtx_code_label * when we know
14093         we're dealing with LABEL_P (insn).  Strengthen local "bb_note" from
14094         rtx to rtx_insn *.
14095         (delete_insn_chain): Strengthen locals "prev" and "current" from
14096         rtx to rtx_insn *.  Add a checked cast when assigning from
14097         "finish" (strengthening the params will come later).  Add a
14098         checked cast to rtx_note * in region where we know
14099         NOTE_P (current).
14100         (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
14101         rtx_insn *.
14102         (compute_bb_for_insn): Likewise.
14103         (free_bb_for_insn): Likewise for local "insn".
14104         (compute_bb_for_insn): Likewise.
14105         (update_bb_for_insn_chain): Strengthen params "begin", "end" and
14106         local "insn" from rtx to rtx_insn *
14107         (flow_active_insn_p): Require a const rtx_insn * rather than a
14108         const_rtx.
14109         (contains_no_active_insn_p): Strengthen local "insn" from rtx to
14110         rtx_insn *.
14111         (can_fallthru): Likewise for locals "insn" and "insn2".
14112         (bb_note): Likewise for local "note".
14113         (first_insn_after_basic_block_note): Likewise for local "note" and
14114         for return type.
14115         (rtl_split_block): Likewise for locals "insn" and "next".
14116         (unique_locus_on_edge_between_p): Likewise for locals "insn" and
14117         "end".
14118         (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
14119         "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
14120         "prev", "tmp".
14121         (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
14122         them), "kill_from", "barrier", "new_insn".
14123         (patch_jump_insn): Likewise for params "insn", "old_label".
14124         (redirect_branch_edge): Likewise for locals "old_label", "insn".
14125         (force_nonfallthru_and_redirect): Likewise for locals "insn",
14126         "old_label", "new_label".
14127         (rtl_tidy_fallthru_edge): Likewise for local "q".
14128         (rtl_split_edge): Likewise for locals "before", "last".
14129         (commit_one_edge_insertion): Likewise for locals "before",
14130         "after", "insns", "tmp", "last", adding a checked cast where
14131         currently necessary.
14132         (commit_edge_insertions): Likewise.
14133         (rtl_dump_bb): Likewise for locals "insn", "last".
14134         (print_rtl_with_bb): Likewise for local "x".
14135         (rtl_verify_bb_insns): Likewise for local "x".
14136         (rtl_verify_bb_pointers): Likewise for local "insn".
14137         (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
14138         "head", "end".
14139         (rtl_verify_fallthru): Likewise for local "insn".
14140         (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
14141         (purge_dead_edges): Likewise for local "insn".
14142         (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
14143         (skip_insns_after_block): Likewise for return type and for locals
14144         "insn", "last_insn", "next_head", "prev".
14145         (record_effective_endpoints): Likewise for locals "next_insn",
14146         "insn", "end".
14147         (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
14148         (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
14149         (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
14150         (duplicate_insn_chain): For now, add checked cast from rtx to
14151         rtx_insn * when returning insn.
14152         (cfg_layout_duplicate_bb): Likewise for local "insn".
14153         (cfg_layout_delete_block): Likewise for locals "insn", "next",
14154         "prev", "remaints".
14155         (cfg_layout_merge_blocks): Likewise for local "insn", "last".
14156         (rtl_block_empty_p): Likewise.
14157         (rtl_split_block_before_cond_jump): Likewise for locals "insn",
14158         "split_point", "last".
14159         (rtl_block_ends_with_call_p): Likewise for local "insn".
14160         (need_fake_edge_p): Strengthen param "insn" from const_rtx to
14161         const rtx_insn *.
14162         (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
14163         "split_at_insn" from rtx to rtx_insn *.
14164         (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
14165         (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
14166         to const rtx_insn *.
14167         (rtl_account_profile_record): Likewise.
14168
14169 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14170
14171         * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
14172         rtx to rtx_insn *.
14173         (average_num_loop_insns): Likewise.
14174         (init_set_costs): Likewise for local "seq".
14175         (seq_cost): Likewise for param "seq", from const_rtx to const
14176         rtx_insn *.
14177
14178 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14179
14180         * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
14181         rtx to rtx_insn *.
14182
14183 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14184
14185         * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
14186         "f1" and "f2" from rtx * to rtx_insn **.
14187         (flow_find_head_matching_sequence): Likewise.
14188
14189         * cfgcleanup.c (try_simplify_condjump): Strengthen local
14190         "cbranch_insn" from rtx to rtx_insn *.
14191         (thread_jump): Likewise for local "insn".
14192         (try_forward_edges): Likewise for local "last".
14193         (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
14194         (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
14195         "real_b_end".
14196         (can_replace_by): Likewise for params "i1", "i2".
14197         (old_insns_match_p): Likewise.
14198         (merge_notes): Likewise.
14199         (walk_to_nondebug_insn): Likewise for param "i1".
14200         (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
14201         to rtx_insn **.  Strengthen locals "i1", "i2", "last1", "last2",
14202         "afterlast1", "afterlast2" from rtx to rtx_insn *.
14203         (flow_find_head_matching_sequence): Strengthen params "f1" and
14204         "f2" from rtx * to rtx_insn **.  Strengthen locals "i1", "i2",
14205         "last1", "last2", "beforelast1", "beforelast2" from rtx to
14206         rtx_insn *.
14207         (outgoing_edges_match): Likewise for locals "last1", "last2".
14208         (try_crossjump_to_edge): Likewise for local "insn".
14209         Replace call to for_each_rtx with for_each_rtx_in_insn.
14210
14211         (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
14212         (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
14213         "e0_last", "e_last", "head", "curr", "insn".  Strengthen locals
14214         "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
14215         (try_optimize_cfg): Strengthen local "last" from rtx to
14216         rtx_insn *.
14217         (delete_dead_jumptables): Likewise for locals "insn", "next",
14218         "label".
14219
14220         * ifcvt.c (cond_exec_process_if_block): Likewise for locals
14221         "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
14222         "rtx else_first_tail", to reflect the basic-block.h changes above.
14223
14224 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14225
14226         * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
14227         rtx_insn *.
14228         (purge_dead_tablejump_edges): Likewise.
14229         (find_bb_boundaries): Likewise for locals "insn", "end",
14230         "flow_transfer_insn".
14231
14232 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14233
14234         * caller-save.c (save_call_clobbered_regs): Strengthen locals
14235         "ins" and "prev" from rtx to rtx_insn *.
14236
14237 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14238
14239         * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
14240         rtx_insn *.
14241         (internal_arg_pointer_exp_state): Likewise for field "scan_start".
14242         (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
14243         "scan_start".
14244         (load_register_parameters): Likewise for local "before_arg".
14245         (check_sibcall_argument_overlap): Likewise for param "insn".
14246         (expand_call): Likewise for locals "normal_call_insns",
14247         "tail_call_insns", "insns", "before_call", "after_args",
14248         "before_arg", "last", "prev".  Strengthen one of the "last" from
14249         rtx to rtx_call_insn *.
14250         (fixup_tail_calls): Strengthen local "insn" from rtx to
14251         rtx_insn *.
14252         (emit_library_call_value_1): Likewise for locals "before_call" and
14253         "last".
14254
14255 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14256
14257         * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
14258         and "last" from rtx to rtx_insn *.
14259         (expand_builtin_nonlocal_goto): Likewise for local "insn".
14260         (expand_builtin_apply): Strengthen local "call_insn" from rtx to
14261         rtx_call_insn *.
14262         (expand_errno_check): Strengthen local "lab" from rtx to
14263         rtx_code_label *.
14264         (expand_builtin_mathfn): Strengthen local "insns" from rtx to
14265         rtx_insn *.
14266         (expand_builtin_mathfn_2): Likewise.
14267         (expand_builtin_mathfn_ternary): Likewise.
14268         (expand_builtin_mathfn_3): Likewise.
14269         (expand_builtin_interclass_mathfn): Likewise for local "last".
14270         (expand_builtin_int_roundingfn): Likewise for local "insns".
14271         (expand_builtin_int_roundingfn_2): Likewise.
14272         (expand_builtin_strlen): Likewise for local "before_strlen".
14273         (expand_builtin_strncmp): Likewise for local "seq".
14274         (expand_builtin_signbit): Likewise for local "last".
14275         (expand_builtin_atomic_compare_exchange): Strengthen local "label"
14276         from rtx to rtx_code_label *.
14277         (expand_stack_restore):  Strengthen local "prev" from rtx to
14278         rtx_insn *.
14279
14280 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14281
14282         * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
14283         to rtx_insn *.
14284         (struct btr_def_s): Likewise.
14285         (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
14286         const rtx_insn *.
14287         (add_btr_def): Likewise.
14288         (new_btr_user): Likewise.
14289         (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
14290         rtx to rtx_insn *.
14291         (link_btr_uses): Likewise.
14292         (move_btr_def): Likewise for locals "insp", "old_insn",
14293         "new_insn".  Add checked cast to rtx_insn * for now on result of
14294         gen_move_insn.
14295         (can_move_up): Strengthen param "insn" from const_rtx to
14296         const rtx_insn *.
14297
14298 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14299
14300         * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
14301         rtx_insn *.
14302         (get_uncond_jump_length): Likewise for locals "label", "jump".
14303         (fix_up_crossing_landing_pad): Likewise for locals "new_label",
14304         "jump", "insn".
14305         (add_labels_and_missing_jumps): Likewise for local "new_jump".
14306         (fix_up_fall_thru_edges): Likewise for local "old_jump".
14307         (find_jump_block): Likewise for local "insn".
14308         (fix_crossing_conditional_branches): Likewise for locals
14309         "old_jump", "new_jump".
14310         (fix_crossing_unconditional_branches): Likewise for locals
14311         "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
14312         (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
14313
14314 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14315
14316         * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
14317         rtx to rtx_insn *.
14318         (struct mem_insn): Likewise for field "insn".
14319         (reg_next_use): Strengthen from rtx * to rtx_insn **.
14320         (reg_next_inc_use): Likewise.
14321         (reg_next_def): Likewise.
14322         (move_dead_notes): Strengthen params "to_insn" and "from_insn"
14323         from rtx to rtx_insn *.
14324         (move_insn_before): Likewise for param "next_insn" and local "insns".
14325         (attempt_change): Likewise for local "mov_insn".
14326         (try_merge): Likewise for param "last_insn".
14327         (get_next_ref): Likewise for return type and local "insn".
14328         Strengthen param "next_array" from rtx * to rtx_insn **.
14329         (parse_add_or_inc): Strengthen param "insn" from rtx to
14330         rtx_insn *.
14331         (find_inc): Likewise for locals "insn" and "other_insn" (three of
14332         the latter).
14333         (merge_in_block): Likewise for locals "insn", "curr",
14334         "other_insn".
14335         (pass_inc_dec::execute): Update allocations of the arrays to
14336         reflect the stronger types.
14337
14338 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14339
14340         * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
14341         and "jump" from rtx to rtx_insn *.  Strengthen local "top_label"
14342         from rtx to rtx_code_label *.
14343
14344 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14345
14346         * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
14347         to rtx_insn *.
14348
14349 2014-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
14350
14351         * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
14352         generated a warning and prevented bootstrapping the compiler.
14353
14354 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14355
14356         * rtl.h (delete_related_insns): Strengthen return type from rtx to
14357         rtx_insn *.
14358
14359         * jump.c (delete_related_insns): Likewise, also for locals "next"
14360         and "prev".
14361
14362 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14363
14364         * genautomata.c (output_internal_insn_latency_func): When writing
14365         the function "internal_insn_latency" to insn-automata.c,
14366         strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
14367         allowing the optional guard function of (define_bypass) clauses to
14368         expect a pair of rtx_insn *, rather than a pair of rtx.
14369         (output_insn_latency_func): When writing the function
14370         "insn_latency", add an "uncast_" prefix to params "insn" and
14371         "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
14372         using checked casts from the params, thus enabling the above
14373         change to the generated "internal_insn_latency" function.
14374
14375 2014-08-21  Jan Hubicka  <hubicka@ucw.cz>
14376
14377         PR tree-optimization/62091
14378         * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
14379         handle correctly arrays.
14380         (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
14381         inheritance binfos.
14382         (record_known_type): Walk into inner type.
14383         (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
14384         condition on no type changes.
14385
14386 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14387
14388         * genattrtab.c (write_attr_get): Within the generated get_attr_
14389         functions, rename param "insn" to "uncast_insn" and reintroduce
14390         "insn" as an local rtx_insn * using a checked cast, so that "insn"
14391         is an rtx_insn * within insn-attrtab.c
14392
14393 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14394
14395         * output.h (peephole): Strengthen return type from rtx to
14396         rtx_insn *.
14397         * rtl.h (delete_for_peephole): Likewise for both params.
14398         * genpeep.c (main): In generated "peephole" function, strengthen
14399         return type and local "insn" from rtx to rtx_insn *.  For now,
14400         rename param "ins1" to "uncast_ins1", adding "ins1" back as an
14401         rtx_insn *, with a checked cast.
14402         * jump.c (delete_for_peephole): Strengthen params "from", "to" and
14403         locals "insn", "next", "prev" from rtx to rtx_insn *.
14404
14405 2014-08-21  Marc Glisse  <marc.glisse@inria.fr>
14406
14407         PR tree-optimization/62112
14408         * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
14409         * gimple-iterator.h (gsi_replace): Return bool.
14410         * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
14411         moved from ref_may_alias_global_p.
14412         (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
14413         New overloads.
14414         (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
14415         (stmt_kills_ref_p_1): Rename...
14416         (stmt_kills_ref_p): ... to this.
14417         * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
14418         stmt_kills_ref_p): Declare.
14419         * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
14420         Move the self-assignment case...
14421         (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
14422
14423 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14424
14425         * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
14426
14427         * emit-rtl.c (try_split): Likewise, also for locals "before" and
14428         "after".  For now, don't strengthen param "trial", which requires
14429         adding checked casts when returning it.
14430
14431 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14432
14433         * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
14434         "label" from rtx to rtx_code_label *.  Strengthen param 1 of
14435         "var_location" hook from rtx to rtx_insn *.
14436         (debug_nothing_rtx): Delete in favor of...
14437         (debug_nothing_rtx_code_label): New prototype.
14438         (debug_nothing_rtx_rtx): Delete unused prototype.
14439         (debug_nothing_rtx_insn): New prototype.
14440
14441         * final.c (final_scan_insn): Add checked cast to rtx_insn * when
14442         invoking debug_hooks->var_location (in two places, one in a NOTE
14443         case of a switch statement, the other guarded by a CALL_P
14444         conditional.  Add checked cast to rtx_code_label * when invoking
14445         debug_hooks->label (within CODE_LABEL case of switch statement).
14446
14447         * dbxout.c (dbx_debug_hooks): Update "label" hook from
14448         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14449         "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
14450         (xcoff_debug_hooks): Likewise.
14451         * debug.c (do_nothing_debug_hooks): Likewise.
14452         (debug_nothing_rtx): Delete in favor of...
14453         (debug_nothing_rtx_insn): New function.
14454         (debug_nothing_rtx_rtx): Delete unused function.
14455         (debug_nothing_rtx_code_label): New function.
14456         * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
14457         debug_nothing_rtx to debug_nothing_rtx_code_label.
14458         (dwarf2out_var_location): Strengthen param "loc_note" from rtx
14459         to rtx_insn *.
14460         * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
14461         debug_nothing_rtx to debug_nothing_rtx_insn.
14462         (sdbout_label): Strengthen param "insn" from rtx to
14463         rtx_code_label *.
14464         * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
14465         debug_nothing_rtx to debug_nothing_rtx_code_label.  Update
14466         "var_location" hook from debug_nothing_rtx to
14467         debug_nothing_rtx_insn.
14468
14469 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14470
14471         * recog.h (insn_output_fn): Update this function typedef to match
14472         the changes below to the generated output functions, strengthening
14473         the 2nd param from rtx to rtx_insn *.
14474
14475         * final.c (get_insn_template): Add a checked cast to rtx_insn * on
14476         insn when invoking an output function, to match the new signature
14477         of insn_output_fn with a stronger second param.
14478
14479         * genconditions.c (write_header): In the generated code for
14480         gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
14481         to match the other changes in this patch.
14482
14483         * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
14484         the generated "gen_" functions from rtx to rtx_insn * within their
14485         implementations.
14486
14487         * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
14488         the subfunctions within the generated "recog_", "split", "peephole2"
14489         function trees from rtx to rtx_insn *.  For now, the top-level
14490         generated functions ("recog", "split", "peephole2") continue to
14491         take a plain rtx for "insn", to avoid introducing dependencies on
14492         other patches.  Rename this 2nd param from "insn" to
14493         "uncast_insn", and reintroduce "insn" as a local variable of type
14494         rtx_insn *, initialized at the top of the generated function with
14495         a checked cast on "uncast_insn".
14496         (make_insn_sequence): Strengthen the 1st param "curr_insn" of
14497         the generated "gen_" functions from rtx to rtx_insn * within their
14498         prototypes.
14499
14500         * genoutput.c (process_template): Strengthen the 2nd param within
14501         the generated "output_" functions "insn" from rtx to rtx_insn *.
14502
14503 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14504
14505         * tree-profile.c (tree_profiling): Skip external functions
14506         when doing coverage instrumentation.
14507         * cgraphunit.c (compile): Do not assert that all nodes are reachable.
14508
14509 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14510
14511         * config/rs6000/altivec.h (vec_cpsgn): New #define.
14512         (vec_mergee): Likewise.
14513         (vec_mergeo): Likewise.
14514         (vec_cntlz): Likewise.
14515         * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
14516         entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
14517         VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
14518         VMRGEW, and VMRGOW.
14519         * doc/extend.texi: Document various forms of vec_cpsgn,
14520         vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
14521         vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
14522         vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
14523         vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
14524         vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
14525
14526 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14527
14528         * config/rs6000/rs6000.c (context.h): New include.
14529         (tree-pass.h): Likewise.
14530         (make_pass_analyze_swaps): New decl.
14531         (rs6000_option_override): Register pass_analyze_swaps.
14532         (swap_web_entry): New subsclass of web_entry_base (df.h).
14533         (special_handling_values): New enum.
14534         (union_defs): New function.
14535         (union_uses): Likewise.
14536         (insn_is_load_p): Likewise.
14537         (insn_is_store_p): Likewise.
14538         (insn_is_swap_p): Likewise.
14539         (rtx_is_swappable_p): Likewise.
14540         (insn_is_swappable_p): Likewise.
14541         (chain_purpose): New enum.
14542         (chain_contains_only_swaps): New function.
14543         (mark_swaps_for_removal): Likewise.
14544         (swap_const_vector_halves): Likewise.
14545         (adjust_subreg_index): Likewise.
14546         (permute_load): Likewise.
14547         (permute_store): Likewise.
14548         (handle_special_swappables): Likewise.
14549         (replace_swap_with_copy): Likewise.
14550         (dump_swap_insn_table): Likewise.
14551         (rs6000_analyze_swaps): Likewise.
14552         (pass_data_analyze_swaps): New pass_data.
14553         (pass_analyze_swaps): New rtl_opt_pass.
14554         (make_pass_analyze_swaps): New function.
14555         * config/rs6000/rs6000.opt (moptimize-swaps): New option.
14556
14557 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14558
14559         * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
14560         type from rtx to rtx_insn *.
14561         (create_copy_of_insn_rtx): Likewise.
14562         * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
14563         (create_copy_of_insn_rtx): Likewise, also for local "res".
14564
14565 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14566
14567         * rtl.h (find_first_parameter_load): Strengthen return type from
14568         rtx to rtx_insn *.
14569         * rtlanal.c (find_first_parameter_load): Strengthen return type
14570         from rtx to rtx_insn *.  Add checked cast for now, to postpone
14571         strengthening the params.
14572
14573 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14574
14575         PR fortran/44054
14576         * diagnostic.c: Set default caret.
14577         (diagnostic_show_locus): Use it. Tell pretty-printer that a new
14578         line is needed.
14579         * diagnostic.h (struct diagnostic_context):
14580
14581 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14582
14583         * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
14584         (sel_bb_head): Strengthen return type insn_t (currently just an
14585         rtx) to rtx_insn *.
14586         (sel_bb_end): Likewise.
14587
14588         * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
14589         (sel_bb_head): Strengthen return type and local "head" from
14590         insn_t (currently just an rtx) to rtx_insn *.
14591         (sel_bb_end): Likewise for return type.
14592         (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
14593         working with insn.
14594
14595 2014-08-21  David Malcolm  <dmalcolm@redhat.com>
14596
14597         * basic-block.h (get_last_bb_insn): Strengthen return type from
14598         rtx to rtx_insn *.
14599         * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
14600         end".
14601
14602 2014-08-21  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14603
14604         PR fortran/44054
14605         * diagnostic.c (default_diagnostic_finalizer): Move caret printing
14606         to here ...
14607         (diagnostic_report_diagnostic): ... from here.
14608         * toplev.c (general_init): Move code to c-family.
14609
14610 2014-08-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14611
14612         * df.h (web_entry_base): Replace existing struct web_entry with a
14613         new class web_entry_base with only the predecessor member.
14614         (unionfind_root): Remove declaration and move to class member.
14615         (unionfind_union): Remove declaration and move to friend
14616         function.
14617         (union_defs): Remove declaration.
14618         * web.c (web_entry_base::unionfind_root): Modify to be member
14619         function and adjust accessors.
14620         (unionfind_union): Modify to be friend function and adjust
14621         accessors.
14622         (web_entry): New subclass of web_entry_base containing the reg
14623         member.
14624         (union_match_dups): Modify for struct -> class changes.
14625         (union_defs): Likewise.
14626         (entry_register): Likewise.
14627         (pass_web::execute): Likewise.
14628
14629 2014-08-20  Bill Schmidt  <wschmidt@vnet.ibm.com>
14630
14631         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
14632         builtin define __VEC_ELEMENT_REG_ORDER__.
14633
14634 2014-08-20  Martin Jambor  <mjambor@suse.cz>
14635             Wei Mi  <wmi@google.com>
14636
14637         PR ipa/60449
14638         PR middle-end/61776
14639         * tree-ssa-operands.c (update_stmt_operands): Remove
14640         MODIFIED_NORETURN_CALLS.
14641         * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
14642         (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
14643         (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
14644         (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
14645         * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
14646         * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
14647         (gimple_call_set_ctrl_altering): New func.
14648         (gimple_call_ctrl_altering_p): Ditto.
14649         * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
14650         (make_blocks): Use gimple_call_initialize_ctrl_altering.
14651         (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
14652         (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
14653         remove MODIFIED_NORETURN_CALLS.
14654
14655 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14656
14657         * coverage.c (coverage_compute_profile_id): Return non-0;
14658         also handle symbols with unique name.
14659         (coverage_end_function): Do not skip DECL_EXTERNAL functions.
14660
14661 2014-08-20  Steve Ellcey  <sellcey@mips.com>
14662
14663         PR middle-end/49191
14664         * doc/sourcebuild.texi (non_strict_align): New.
14665
14666 2014-08-20  Jan Hubicka  <hubicka@ucw.cz>
14667
14668         * cgraphunit.c (ipa_passes, compile): Reshedule
14669         symtab_remove_unreachable_nodes passes; update comments.
14670         * ipa-inline.c (pass_data_ipa_inline): Do not schedule
14671         TODO_remove_functions before the pass; the functions ought to be
14672         already removed.
14673         * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
14674         TODO_remove_functions.
14675         * passes.c (pass_data_early_local_passes): Do not schedule function
14676         removal.
14677         (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
14678
14679 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14680
14681         PR c/59304
14682         * opts-common.c (set_option): Call diagnostic_classify_diagnostic
14683         before setting the option.
14684         * diagnostic.c (diagnostic_classify_diagnostic): Record
14685         command-line status.
14686
14687 2014-08-20  Richard Biener  <rguenther@suse.de>
14688
14689         PR lto/62190
14690         * tree.c (build_common_tree_nodes): Use make_or_reuse_type
14691         to build uint{16,32,64}_type_node.
14692
14693 2014-08-20  Terry Guo  <terry.guo@arm.com>
14694
14695         * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
14696         with immediate_operand.
14697
14698 2014-08-20  David Malcolm  <dmalcolm@redhat.com>
14699
14700         * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
14701         "insn" from an as_a to a safe_as_a, for the case when "insn" is
14702         NULL.
14703
14704 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14705
14706         PR preprocessor/51303
14707         * incpath.c (remove_duplicates): Use cpp_warning.
14708
14709 2014-08-20  Manuel López-Ibáñez  <manu@gcc.gnu.org>
14710
14711         PR c/60975
14712         PR c/53063
14713         * doc/options.texi (CPP): Document it.
14714         * doc/invoke.texi (Wvariadic-macros): Fix documentation.
14715         * optc-gen.awk: Handle CPP.
14716         * opth-gen.awk: Likewise.
14717
14718 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14719
14720         * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
14721         rtx_insn *.
14722         (duplicate_insn_chain): Likewise.
14723         * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
14724         rtx_insn *, also for locals "prevfirst" and "nextlast".  Add a
14725         checked cast for now (until we can strengthen the params in the
14726         same way).
14727         (duplicate_insn_chain): Likewise.
14728
14729 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14730
14731         * rtl.h (next_cc0_user): Strengthen return type from rtx to
14732         rtx_insn *.
14733         (prev_cc0_setter): Likewise.
14734
14735         * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
14736         rtx_insn *, adding checked casts for now as necessary.
14737         (prev_cc0_setter): Likewise.
14738
14739 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14740
14741         * expr.h (emit_move_insn): Strengthen return type from rtx to
14742         rtx_insn *.
14743         (emit_move_insn_1): Likewise.
14744         (emit_move_complex_push): Likewise.
14745         (emit_move_complex_parts): Likewise.
14746
14747         * expr.c (emit_move_via_integer): Strengthen return type from rtx
14748         to rtx_insn *.  Replace use of NULL_RTX with NULL when working
14749         with insns.
14750         (emit_move_complex_push): Strengthen return type from rtx to
14751         rtx_insn *.
14752         (emit_move_complex): Likewise, also for local "ret".
14753         (emit_move_ccmode): Likewise.
14754         (emit_move_multi_word): Likewise for return type and locals
14755         "last_insn", "seq".
14756         (emit_move_insn_1): Likewise for return type and locals "result",
14757         "ret".
14758         (emit_move_insn): Likewise for return type and local "last_insn".
14759         (compress_float_constant): Likewise.
14760
14761 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14762
14763         * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
14764         from rtx to rtx_insn *.
14765
14766         * rtl.h (emit_insn_before): Likewise.
14767         (emit_insn_before_noloc): Likewise.
14768         (emit_insn_before_setloc): Likewise.
14769         (emit_jump_insn_before): Likewise.
14770         (emit_jump_insn_before_noloc): Likewise.
14771         (emit_jump_insn_before_setloc): Likewise.
14772         (emit_call_insn_before): Likewise.
14773         (emit_call_insn_before_noloc): Likewise.
14774         (emit_call_insn_before_setloc): Likewise.
14775         (emit_debug_insn_before): Likewise.
14776         (emit_debug_insn_before_noloc): Likewise.
14777         (emit_debug_insn_before_setloc): Likewise.
14778         (emit_label_before): Likewise.
14779         (emit_insn_after): Likewise.
14780         (emit_insn_after_noloc): Likewise.
14781         (emit_insn_after_setloc): Likewise.
14782         (emit_jump_insn_after): Likewise.
14783         (emit_jump_insn_after_noloc): Likewise.
14784         (emit_jump_insn_after_setloc): Likewise.
14785         (emit_call_insn_after): Likewise.
14786         (emit_call_insn_after_noloc): Likewise.
14787         (emit_call_insn_after_setloc): Likewise.
14788         (emit_debug_insn_after): Likewise.
14789         (emit_debug_insn_after_noloc): Likewise.
14790         (emit_debug_insn_after_setloc): Likewise.
14791         (emit_label_after): Likewise.
14792         (emit_insn): Likewise.
14793         (emit_debug_insn): Likewise.
14794         (emit_jump_insn): Likewise.
14795         (emit_call_insn): Likewise.
14796         (emit_label): Likewise.
14797         (gen_clobber): Likewise.
14798         (emit_clobber): Likewise.
14799         (gen_use): Likewise.
14800         (emit_use): Likewise.
14801         (emit): Likewise.
14802
14803         (emit_barrier_before): Strengthen return type from rtx to
14804         rtx_barrier *.
14805         (emit_barrier_after): Likewise.
14806         (emit_barrier): Likewise.
14807
14808         * emit-rtl.c (emit_pattern_before_noloc):  Strengthen return type
14809         from rtx to rtx_insn *.  Add checked casts for now when converting
14810         "last" from rtx to rtx_insn *.
14811         (emit_insn_before_noloc): Likewise for return type.
14812         (emit_jump_insn_before_noloc): Likewise.
14813         (emit_call_insn_before_noloc): Likewise.
14814         (emit_debug_insn_before_noloc): Likewise.
14815         (emit_barrier_before): Strengthen return type and local "insn"
14816         from rtx to rtx_barrier *.
14817         (emit_label_before): Strengthen return type from rtx to
14818         rtx_insn *.  Add checked cast for now when returning param
14819         (emit_pattern_after_noloc): Strengthen return type from rtx to
14820         rtx_insn *.  Add checked casts for now when converting "last" from
14821         rtx to rtx_insn *.
14822         (emit_insn_after_noloc): Strengthen return type from rtx to
14823         rtx_insn *.
14824         (emit_jump_insn_after_noloc): Likewise.
14825         (emit_call_insn_after_noloc): Likewise.
14826         (emit_debug_insn_after_noloc): Likewise.
14827         (emit_barrier_after): Strengthen return type from rtx to
14828         rtx_barrier *.
14829         (emit_label_after): Strengthen return type from rtx to rtx_insn *.
14830         Add checked cast for now when converting "label" from rtx to
14831         rtx_insn *.
14832         (emit_pattern_after_setloc): Strengthen return type from rtx to
14833         rtx_insn *.  Add checked casts for now when converting "last" from
14834         rtx to rtx_insn *.
14835         (emit_pattern_after): Strengthen return type from rtx to
14836         rtx_insn *.
14837         (emit_insn_after_setloc): Likewise.
14838         (emit_insn_after): Likewise.
14839         (emit_jump_insn_after_setloc): Likewise.
14840         (emit_jump_insn_after): Likewise.
14841         (emit_call_insn_after_setloc): Likewise.
14842         (emit_call_insn_after): Likewise.
14843         (emit_debug_insn_after_setloc): Likewise.
14844         (emit_debug_insn_after): Likewise.
14845         (emit_pattern_before_setloc): Likewise.  Add checked casts for now
14846         when converting "last" from rtx to rtx_insn *.
14847         (emit_pattern_before): Strengthen return type from rtx to
14848         rtx_insn *.
14849         (emit_insn_before_setloc): Likewise.
14850         (emit_insn_before): Likewise.
14851         (emit_jump_insn_before_setloc): Likewise.
14852         (emit_jump_insn_before): Likewise.
14853         (emit_call_insn_before_setloc): Likewise.
14854         (emit_call_insn_before): Likewise.
14855         (emit_debug_insn_before_setloc): Likewise.
14856         (emit_debug_insn_before): Likewise.
14857         (emit_insn): Strengthen return type and locals "last", "insn",
14858         "next" from rtx to rtx_insn *.  Add checked cast to rtx_insn
14859         within cases where we know we have an insn.
14860         (emit_debug_insn): Likewise.
14861         (emit_jump_insn): Likewise.
14862         (emit_call_insn): Strengthen return type and local "insn" from rtx
14863         to rtx_insn *.
14864         (emit_label): Strengthen return type from rtx to rtx_insn *.  Add
14865         a checked cast to rtx_insn * for now on "label".
14866         (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
14867         (emit_clobber): Strengthen return type from rtx to rtx_insn *.
14868         (emit_use): Likewise.
14869         (gen_use): Likewise, also for local "seq".
14870         (emit): Likewise for return type and local "insn".
14871         (rtx_insn): Likewise for return type and local "new_rtx".
14872
14873         * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
14874         from rtx to rtx_barrier *.
14875
14876         * config/sh/sh.c (output_stack_adjust): Since emit_insn has
14877         changed return type from rtx to rtx_insn *, we must update
14878         "emit_fn" type, and this in turn means updating...
14879         (frame_insn): ...this.  Strengthen return type from rtx to
14880         rtx_insn *.  Introduce a new local "insn" of the appropriate type.
14881
14882 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14883
14884         * emit-rtl.c (emit_jump_table_data): Strengthen return type from
14885         rtx to rtx_jump_table_data *.  Also for local.
14886         * rtl.h (emit_jump_table_data): Likewise.
14887
14888 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14889
14890         * basic-block.h (create_basic_block_structure): Strengthen third
14891         param "bb_note" from rtx to rtx_note *.
14892         * rtl.h (emit_note_before): Strengthen return type from rtx to
14893         rtx_note *.
14894         (emit_note_after): Likewise.
14895         (emit_note): Likewise.
14896         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14897         * function.h (struct rtl_data): Strengthen field
14898         "x_stack_check_probe_note" from rtx to rtx_note *.
14899
14900         * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
14901         from rtx to rtx_note *.
14902         * cfgrtl.c (create_basic_block_structure): Strengthen third param
14903         "bb_note" from rtx to rtx_note *.
14904         (duplicate_insn_chain): Likewise for local "last".  Add a checked cast
14905         when calling emit_note_copy.
14906         * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
14907         rtx_note *.
14908         (emit_note_after): Likewise.
14909         (emit_note_before): Likewise.
14910         (emit_note_copy): Likewise.  Also, strengthen param similarly.
14911         (emit_note): Likewise.
14912         * except.c (emit_note_eh_region_end): Likewise for return type.
14913         Strengthen local "next" from rtx to rtx_insn *.
14914         (convert_to_eh_region_ranges): Strengthen local "note"
14915         from rtx to rtx_note *.
14916         * final.c (change_scope): Likewise.
14917         (reemit_insn_block_notes): Likewise, for both locals named "note".
14918         Also, strengthen local "insn" from rtx to rtx_insn *.
14919         * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
14920         rtx to rtx_note *.
14921         * reg-stack.c (compensate_edge): Likewise for local "after". Also,
14922         strengthen local "seq" from rtx to rtx_insn *.
14923         * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
14924         to rtx_note *.
14925         * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
14926         vec<rtx_note *>.
14927         (get_bb_note_from_pool): Strengthen return type from rtx to
14928         rtx_note *.
14929         (sel_create_basic_block): Strengthen local "new_bb_note" from
14930         insn_t to rtx_note *.
14931         * var-tracking.c (emit_note_insn_var_location): Strengthen local
14932         "note" from rtx to rtx_note *.
14933         (emit_notes_in_bb): Likewise.
14934
14935 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14936
14937         * function.h (struct rtl_data): Strengthen field
14938         "x_parm_birth_insn" from rtx to rtx_insn *.
14939         * function.c (struct assign_parm_data_all): Strengthen fields
14940         "first_conversion_insn" and "last_conversion_insn" from rtx to
14941         rtx_insn *.
14942
14943 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14944
14945         * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
14946         to rtx_insn *; also for local "var_end_seq".
14947         (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
14948         (maybe_cleanup_end_of_block): Likewise for param "last" and local
14949         "insn".
14950         (expand_gimple_cond): Likewise for locals "last2" and "last".
14951         (mark_transaction_restart_calls): Likewise for local "insn".
14952         (expand_gimple_stmt): Likewise for return type and locals "last"
14953         and "insn".
14954         (expand_gimple_tailcall): Likewise for locals "last2" and "last".
14955         (avoid_complex_debug_insns): Likewise for param "insn".
14956         (expand_debug_locations): Likewise for locals "insn", "last",
14957         "prev_insn" and "insn2".
14958         (expand_gimple_basic_block): Likewise for local "last".
14959         (construct_exit_block): Likewise for locals "head", "end",
14960         "orig_end".
14961         (pass_expand::execute): Likewise for locals "var_seq",
14962         "var_ret_seq", "next".
14963
14964 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14965
14966         * asan.h (asan_emit_stack_protection): Strengthen return type from
14967         rtx to rtx_insn *.
14968         * asan.c (asan_emit_stack_protection): Likewise.  Add local
14969         "insns" to hold the return value.
14970
14971 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14972
14973         * basic-block.h (bb_note): Strengthen return type from rtx to
14974         rtx_note *.
14975         * sched-int.h (bb_note): Likewise.
14976         * cfgrtl.c (bb_note): Likewise.  Add a checked cast to rtx_note *.
14977
14978 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
14979
14980         * rtl.h (make_insn_raw): Strengthen return type from rtx to
14981         rtx_insn *.
14982
14983         * emit-rtl.c (make_insn_raw): Strengthen return type and local
14984         "insn" from rtx to rtx_insn *.
14985         (make_debug_insn_raw): Strengthen return type from rtx to
14986         rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
14987         (make_jump_insn_raw):  Strengthen return type from rtx to
14988         rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
14989         (make_call_insn_raw):  Strengthen return type from rtx to
14990         rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
14991         (emit_pattern_before_noloc): Strengthen return type of "make_raw"
14992         callback from rtx to rtx_insn *; likewise for local "insn" and
14993         "next", adding a checked cast to rtx_insn in the relevant cases of
14994         the switch statement.
14995         (emit_pattern_after_noloc): Strengthen return type of "make_raw"
14996         callback from rtx to rtx_insn *.
14997         (emit_pattern_after_setloc): Likewise.
14998         (emit_pattern_after): Likewise.
14999         (emit_pattern_before_setloc): Likewise.
15000         (emit_pattern_before): Likewise.
15001
15002 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15003
15004         * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
15005         rtx_call_insn *.
15006         * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
15007         accepting an rtx_insn *.
15008         (last_call_insn): Strengthen return type from rtx to
15009         rtx_call_insn *.
15010
15011 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15012
15013         * rtl.h (delete_trivially_dead_insns): Strengthen initial param
15014         "insns" from rtx to rtx_insn *.
15015         * cse.c (delete_trivially_dead_insns): Likewise, also do it for
15016         locals "insn" and "prev".
15017
15018 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15019
15020         * rtl.h (tablejump_p): Strengthen third param from rtx * to
15021         rtx_jump_table_data **.
15022
15023         * cfgbuild.c (make_edges): Introduce local "table", using it in
15024         place of "tmp" for jump table data.
15025         (find_bb_boundaries): Strengthen local "table" from rtx to
15026         rtx_jump_table_data *.
15027         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15028         (outgoing_edges_match): Likewise for locals "table1" and "table2".
15029         (try_crossjump_to_edge): Likewise.
15030         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
15031         "table".
15032         (patch_jump_insn): Introduce local "table", using it in place of
15033         "tmp" for jump table data.
15034         (force_nonfallthru_and_redirect): Introduce local "table", so that
15035         call to tablejump_p can receive an rtx_jump_table_data **.  Update
15036         logic around the call to overwrite "note" appropriately if
15037         tablejump_p returns non-zero.
15038         (get_last_bb_insn): Introduce local "table", using it in place of
15039         "tmp" for jump table data.
15040         * dwarf2cfi.c (create_trace_edges): Likewise.
15041
15042         * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
15043         from rtx to rtx_jump_table_data *.
15044         (create_fix_barrier): Strengthen local "tmp" from rtx to
15045         rtx_jump_table_data *.
15046         (arm_reorg): Likewise for local "table".
15047
15048         * config/s390/s390.c (s390_chunkify_start): Likewise.
15049
15050         * config/spu/spu.c (spu_emit_branch_hint): Likewise.
15051
15052         * jump.c (delete_related_insns): Strengthen local "lab_next" from
15053         rtx to rtx_jump_table_data *.
15054
15055         * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
15056         rtx_jump_table_data **.  Add a checked cast when writing through
15057         the pointer: we know there that local "table" is non-NULL and that
15058         JUMP_TABLE_DATA_P (table) holds.
15059         (label_is_jump_target_p): Introduce local "table", using it in
15060         place of "tmp" for jump table data.
15061
15062 2014-08-19  Marek Polacek  <polacek@redhat.com>
15063
15064         PR c++/62153
15065         * doc/invoke.texi: Document -Wbool-compare.
15066
15067 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15068
15069         * rtl.h (entry_of_function): Strengthen return type from rtx to
15070         rtx_insn *.
15071         * cfgrtl.c (entry_of_function): Likewise.
15072
15073 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15074
15075         * emit-rtl.h (get_insns): Strengthen return type from rtx to
15076         rtx_insn *, adding a checked cast for now.
15077         (get_last_insn): Likewise.
15078
15079 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15080
15081         * rtl.h (gen_label_rtx): Strengthen return type from rtx to
15082         rtx_code_label *.
15083
15084         * emit-rtl.c (gen_label_rtx): Likewise.
15085
15086 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15087
15088         * rtl.h (previous_insn): Strengthen return type from rtx to
15089         rtx_insn *.
15090         (next_insn): Likewise.
15091         (prev_nonnote_insn): Likewise.
15092         (prev_nonnote_insn_bb): Likewise.
15093         (next_nonnote_insn): Likewise.
15094         (next_nonnote_insn_bb): Likewise.
15095         (prev_nondebug_insn): Likewise.
15096         (next_nondebug_insn): Likewise.
15097         (prev_nonnote_nondebug_insn): Likewise.
15098         (next_nonnote_nondebug_insn): Likewise.
15099         (prev_real_insn): Likewise.
15100         (next_real_insn): Likewise.
15101         (prev_active_insn): Likewise.
15102         (next_active_insn): Likewise.
15103
15104         * emit-rtl.c (next_insn): Strengthen return type from rtx to
15105         rtx_insn *, adding a checked cast.
15106         (previous_insn): Likewise.
15107         (next_nonnote_insn): Likewise.
15108         (next_nonnote_insn_bb): Likewise.
15109         (prev_nonnote_insn): Likewise.
15110         (prev_nonnote_insn_bb): Likewise.
15111         (next_nondebug_insn): Likewise.
15112         (prev_nondebug_insn): Likewise.
15113         (next_nonnote_nondebug_insn): Likewise.
15114         (prev_nonnote_nondebug_insn): Likewise.
15115         (next_real_insn): Likewise.
15116         (prev_real_insn): Likewise.
15117         (next_active_insn): Likewise.
15118         (prev_active_insn): Likewise.
15119
15120         * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
15121         param "stepfunc" so that it returns an rtx_insn * rather than an
15122         rtx, to track the change to prev_nonnote_insn_bb, which is the
15123         only function this is called with.
15124         * config/sh/sh.c (sh_find_set_of_reg): Likewise.
15125
15126 2014-08-19  Jan Hubicka  <hubicka@ucw.cz>
15127
15128         * ipa-visibility.c (update_visibility_by_resolution_info): Fix
15129         assert.
15130
15131 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15132
15133         * coretypes.h (class rtx_debug_insn): Add forward declaration.
15134         (class rtx_nonjump_insn): Likewise.
15135         (class rtx_jump_insn): Likewise.
15136         (class rtx_call_insn): Likewise.
15137         (class rtx_jump_table_data): Likewise.
15138         (class rtx_barrier): Likewise.
15139         (class rtx_code_label): Likewise.
15140         (class rtx_note): Likewise.
15141
15142         * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
15143         adding the invariant DEBUG_INSN_P (X).
15144         (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
15145         the invariant NONJUMP_INSN_P (X).
15146         (class rtx_jump_insn): New, a subclass of rtx_insn, adding
15147         the invariant JUMP_P (X).
15148         (class rtx_call_insn): New, a subclass of rtx_insn, adding
15149         the invariant CALL_P (X).
15150         (class rtx_jump_table): New, a subclass of rtx_insn, adding the
15151         invariant JUMP_TABLE_DATA_P (X).
15152         (class rtx_barrier): New, a subclass of rtx_insn, adding the
15153         invariant BARRIER_P (X).
15154         (class rtx_code_label): New, a subclass of rtx_insn, adding
15155         the invariant LABEL_P (X).
15156         (class rtx_note): New, a subclass of rtx_insn, adding
15157         the invariant NOTE_P(X).
15158         (is_a_helper <rtx_debug_insn *>::test): New.
15159         (is_a_helper <rtx_nonjump_insn *>::test): New.
15160         (is_a_helper <rtx_jump_insn *>::test): New.
15161         (is_a_helper <rtx_call_insn *>::test): New.
15162         (is_a_helper <rtx_jump_table_data *>::test): New functions,
15163         overloaded for both rtx and rtx_insn *.
15164         (is_a_helper <rtx_barrier *>::test): New.
15165         (is_a_helper <rtx_code_label *>::test): New functions, overloaded
15166         for both rtx and rtx_insn *.
15167         (is_a_helper <rtx_note *>::test): New.
15168
15169 2014-08-19  Marek Polacek  <polacek@redhat.com>
15170
15171         * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
15172         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15173         * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
15174         CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
15175
15176 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15177
15178         * sel-sched-ir.h (BND_TO): insn_t will eventually be an
15179         rtx_insn *.  To help with transition, for now, convert from an
15180         access macro into a pair of functions: BND_TO, returning an
15181         rtx_insn *, and...
15182         (SET_BND_TO): New function, for use where BND_TO is used as an
15183         lvalue.
15184
15185         * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
15186         SET_BND_TO.
15187         (BND_TO): New function, adding a checked cast.
15188         (SET_BND_TO): New function.
15189
15190         * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
15191         SET_BND_TO.
15192         (compute_av_set_on_boundaries): Likewise.
15193
15194 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15195
15196         * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
15197         destination if it is used in source.
15198         (*clz<mode>2_lzcnt_falsedep_1): Likewise.
15199         (*popcount<mode>2_falsedep_1): Likewise.
15200
15201 2014-08-19  H.J. Lu  <hongjiu.lu@intel.com>
15202
15203         PR other/62168
15204         * configure.ac: Set install_gold_as_default to no first.
15205         * configure: Regenerated.
15206
15207 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15208
15209         * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
15210         "note_list" field will eventually be an rtx_insn *.  To help with
15211         transition, for now, convert from an access macro into a pair of
15212         functions: BB_NOTE_LIST, returning an rtx_insn *, and...
15213         (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
15214         used as an lvalue.
15215
15216         * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
15217         of BB_NOTE_LIST to SET_BB_NOTE_LIST.
15218
15219         * sel-sched-ir.c (init_bb): Likewise.
15220         (sel_restore_notes): Likewise.
15221         (move_bb_info): Likewise.
15222         (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
15223         (SET_BB_NOTE_LIST): New function.
15224
15225 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15226
15227         * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
15228         field will eventually be an rtx_insn *.  To help with transition,
15229         for now, convert from an access macro into a pair of functions:
15230         VINSN_INSN_RTX, returning an rtx_insn *, and...
15231         (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
15232         is used as an lvalue.
15233
15234         * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
15235         SET_VINSN_INSN_RTX where it's used as an lvalue.
15236         (VINSN_INSN_RTX): New function.
15237         (SET_VINSN_INSN_RTX): New function.
15238
15239 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15240
15241         * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
15242         eventually be rtx_insn *, but to help with transition, for now,
15243         convert from an access macro into a pair of functions: DEP_PRO
15244         returning an rtx_insn * and...
15245         (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
15246         lvalue, returning an rtx&.
15247         (DEP_CON): Analogous changes to DEP_PRO above.
15248         (SET_DEP_CON): Likewise.
15249
15250         * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
15251         an lvalue to SET_DEP_CON.
15252         * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
15253         (sd_copy_back_deps): Likewise for DEP_CON.
15254         (DEP_PRO): New function, adding a checked cast for now.
15255         (DEP_CON): Likewise.
15256         (SET_DEP_PRO): New function.
15257         (SET_DEP_CON): Likewise.
15258
15259 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15260
15261         * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
15262         (extra_options): Add i386/cygwin.opt.
15263         * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
15264         (CPP_SPEC): Accept -pthread.
15265         (LINK_SPEC): Ditto.
15266         (GOMP_SELF_SPECS): Update comment.
15267         * config/i386/cygwin.opt: New file for -pthread flag.
15268
15269 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15270
15271         * df-core.c (DF_REF_INSN): New, using a checked cast for now.
15272         * df.h (DF_REF_INSN): Convert from a macro to a function, so
15273         that we can return an rtx_insn *.
15274
15275 2014-08-19  Yaakov Selkowitz  <yselkowi@redhat.com>
15276
15277         * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
15278         when building executables, not DLLs.  Add --large-address-aware
15279         under the same conditions.
15280         * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
15281         when building executables, not DLLs.  Add --large-address-aware
15282         under the same conditions when using -m32.
15283
15284         * config/i386/cygwin-stdint.h: Throughout, make type
15285         definitions dependent on target architecture, not host.
15286
15287 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15288
15289         * rtl.h (PREV_INSN): Convert to an inline function.  Strengthen
15290         the return type from rtx to rtx_insn *,  which will enable various
15291         conversions in followup patches.  For now this is is done by a
15292         checked cast.
15293         (NEXT_INSN): Likewise.
15294         (SET_PREV_INSN): Convert to an inline function.  This is intended
15295         for use as an lvalue, and so returns an rtx& to allow in-place
15296         modification.
15297         (SET_NEXT_INSN): Likewise.
15298
15299 2014-07-08  Mark Wielaard  <mjw@redhat.com>
15300
15301         PR debug/59051
15302         * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
15303
15304 2014-08-19  Marek Polacek  <polacek@redhat.com>
15305
15306         PR c/61271
15307         * cgraphunit.c (handle_alias_pairs): Fix condition.
15308
15309 2014-08-19  Richard Biener  <rguenther@suse.de>
15310
15311         * gimple-fold.c (fold_gimple_assign): Properly build a
15312         null-pointer constant when devirtualizing addresses.
15313
15314 2014-07-07  Mark Wielaard  <mjw@redhat.com>
15315
15316         * dwarf2out.c (decl_quals): New function.
15317         (modified_type_die): Take one cv_quals argument instead of two,
15318         one for const and one for volatile.
15319         (add_type_attribute): Likewise.
15320         (generic_parameter_die): Call add_type_attribute with one modifier
15321         argument.
15322         (base_type_for_mode): Likewise.
15323         (add_bounds_info): Likewise.
15324         (add_subscript_info): Likewise.
15325         (gen_array_type_die): Likewise.
15326         (gen_descr_array_type_die): Likewise.
15327         (gen_entry_point_die): Likewise.
15328         (gen_enumeration_type_die): Likewise.
15329         (gen_formal_parameter_die): Likewise.
15330         (gen_subprogram_die): Likewise.
15331         (gen_variable_die): Likewise.
15332         (gen_const_die): Likewise.
15333         (gen_field_die): Likewise.
15334         (gen_pointer_type_die): Likewise.
15335         (gen_reference_type_die): Likewise.
15336         (gen_ptr_to_mbr_type_die): Likewise.
15337         (gen_inheritance_die): Likewise.
15338         (gen_subroutine_type_die): Likewise.
15339         (gen_typedef_die): Likewise.
15340         (force_type_die): Likewise.
15341
15342 2014-08-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15343
15344         * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
15345         if unset.
15346         * configure: Regenerate.
15347
15348 2014-08-19  Richard Biener  <rguenther@suse.de>
15349
15350         * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
15351         DECL_EXTERNALs in BLOCKs as non-references.
15352         * tree-streamer-out.c (streamer_write_chain): Likewise.
15353
15354 2014-08-19  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15355             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15356             Anna Tikhonova  <anna.tikhonova@intel.com>
15357             Ilya Tocar  <ilya.tocar@intel.com>
15358             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15359             Ilya Verbin  <ilya.verbin@intel.com>
15360             Kirill Yukhin  <kirill.yukhin@intel.com>
15361             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15362
15363         * config/i386/sse.md
15364         (define_mode_iterator VI48_AVX512F): Delete.
15365         (define_mode_iterator VI48_AVX512F_AVX512VL): New.
15366         (define_mode_iterator VI2_AVX512VL): Ditto.
15367         (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
15368         Delete.
15369         (define_insn
15370         ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
15371         New.
15372         (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
15373         (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
15374         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15375         with VI48_AVX512F_AVX512VL): New.
15376         (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
15377         with VI2_AVX512VL): Ditto.
15378
15379 2014-08-19  Marek Polacek  <polacek@redhat.com>
15380
15381         * doc/invoke.texi: Document -Wc99-c11-compat.
15382
15383 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15384
15385         * rtl.h (PREV_INSN): Split macro in two: the existing one,
15386         for rvalues, and...
15387         (SET_PREV_INSN): New macro, for use as an lvalue.
15388         (NEXT_INSN, SET_NEXT_INSN): Likewise.
15389
15390         * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
15391         PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
15392         * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
15393         (fixup_abnormal_edges): Likewise.
15394         (unlink_insn_chain): Likewise.
15395         (fixup_reorder_chain): Likewise.
15396         (cfg_layout_delete_block): Likewise.
15397         (cfg_layout_merge_blocks): Likewise.
15398         * combine.c (update_cfg_for_uncondjump): Likewise.
15399         * emit-rtl.c (link_insn_into_chain): Likewise.
15400         (remove_insn): Likewise.
15401         (delete_insns_since): Likewise.
15402         (reorder_insns_nobb): Likewise.
15403         (emit_insn_after_1): Likewise.
15404         * final.c (rest_of_clean_state): Likewise.
15405         (final_scan_insn): Likewise.
15406         * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
15407         * haifa-sched.c (concat_note_lists): Likewise.
15408         (remove_notes): Likewise.
15409         (restore_other_notes): Likewise.
15410         (move_insn): Likewise.
15411         (unlink_bb_notes): Likewise.
15412         (restore_bb_notes): Likewise.
15413         * jump.c (delete_for_peephole): Likewise.
15414         * optabs.c (emit_libcall_block_1): Likewise.
15415         * reorg.c (emit_delay_sequence): Likewise.
15416         (fill_simple_delay_slots): Likewise.
15417         * sel-sched-ir.c (sel_move_insn): Likewise.
15418         (sel_remove_insn): Likewise.
15419         (get_bb_note_from_pool): Likewise.
15420         * sel-sched.c (move_nop_to_previous_block): Likewise.
15421
15422         * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
15423         * config/c6x/c6x.c (gen_one_bundle): Likewise.
15424         (c6x_gen_bundles): Likewise.
15425         (hwloop_optimize): Likewise.
15426         * config/frv/frv.c (frv_function_prologue): Likewise.
15427         (frv_register_nop): Likewise.
15428         * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
15429         (ia64_reorg): Likewise.
15430         * config/mep/mep.c (mep_reorg_addcombine): Likewise.
15431         (mep_make_bundle): Likewise.
15432         (mep_bundle_insns): Likewise.
15433         * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
15434         * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
15435         * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
15436
15437 2014-08-19  David Malcolm  <dmalcolm@redhat.com>
15438
15439         * basic-block.h (BB_HEAD): Convert to a function.  Strengthen the
15440         return type from rtx to rtx_insn *.
15441         (BB_END): Likewise.
15442         (BB_HEADER): Likewise.
15443         (BB_FOOTER): Likewise.
15444         (SET_BB_HEAD): Convert to a function.
15445         (SET_BB_END): Likewise.
15446         (SET_BB_HEADER): Likewise.
15447         (SET_BB_FOOTER): Likewise.
15448
15449         * cfgrtl.c (BB_HEAD): New function, from macro of same name.
15450         Strengthen the return type from rtx to rtx_insn *.  For now, this
15451         is done by adding a checked cast, but this will eventually
15452         become a field lookup.
15453         (BB_END): Likewise.
15454         (BB_HEADER): Likewise.
15455         (BB_FOOTER): Likewise.
15456         (SET_BB_HEAD): New function, from macro of same name.  This is
15457         intended for use as an lvalue, and so returns an rtx& to allow
15458         in-place modification.
15459         (SET_BB_END): Likewise.
15460         (SET_BB_HEADER): Likewise.
15461         (SET_BB_FOOTER): Likewise.
15462
15463 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15464
15465         * basic-block.h (BB_HEAD): Split macro in two: the existing one,
15466         for rvalues, and...
15467         (SET_BB_HEAD): New macro, for use as a lvalue.
15468         (BB_END, SET_BB_END): Likewise.
15469         (BB_HEADER, SET_BB_HEADER): Likewise.
15470         (BB_FOOTER, SET_BB_FOOTER): Likewise.
15471
15472         * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
15473         of BB_* macros into SET_BB_* macros.
15474         (fix_crossing_unconditional_branches): Likewise.
15475         * caller-save.c (save_call_clobbered_regs): Likewise.
15476         (insert_one_insn): Likewise.
15477         * cfgbuild.c (find_bb_boundaries): Likewise.
15478         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
15479         (outgoing_edges_match): Likewise.
15480         (try_optimize_cfg): Likewise.
15481         * cfgexpand.c (expand_gimple_cond): Likewise.
15482         (expand_gimple_tailcall): Likewise.
15483         (expand_gimple_basic_block): Likewise.
15484         (construct_exit_block): Likewise.
15485         * cfgrtl.c (delete_insn): Likewise.
15486         (create_basic_block_structure): Likewise.
15487         (rtl_delete_block): Likewise.
15488         (rtl_split_block): Likewise.
15489         (emit_nop_for_unique_locus_between): Likewise.
15490         (rtl_merge_blocks): Likewise.
15491         (block_label): Likewise.
15492         (try_redirect_by_replacing_jump): Likewise.
15493         (emit_barrier_after_bb): Likewise.
15494         (fixup_abnormal_edges): Likewise.
15495         (record_effective_endpoints): Likewise.
15496         (relink_block_chain): Likewise.
15497         (fixup_reorder_chain): Likewise.
15498         (fixup_fallthru_exit_predecessor): Likewise.
15499         (cfg_layout_duplicate_bb): Likewise.
15500         (cfg_layout_split_block): Likewise.
15501         (cfg_layout_delete_block): Likewise.
15502         (cfg_layout_merge_blocks): Likewise.
15503         * combine.c (update_cfg_for_uncondjump): Likewise.
15504         * emit-rtl.c (add_insn_after): Likewise.
15505         (remove_insn): Likewise.
15506         (reorder_insns): Likewise.
15507         (emit_insn_after_1): Likewise.
15508         * haifa-sched.c (get_ebb_head_tail): Likewise.
15509         (restore_other_notes): Likewise.
15510         (move_insn): Likewise.
15511         (sched_extend_bb): Likewise.
15512         (fix_jump_move): Likewise.
15513         * ifcvt.c (noce_process_if_block): Likewise.
15514         (dead_or_predicable): Likewise.
15515         * ira.c (update_equiv_regs): Likewise.
15516         * reg-stack.c (change_stack): Likewise.
15517         * sel-sched-ir.c (sel_move_insn): Likewise.
15518         * sel-sched.c (move_nop_to_previous_block): Likewise.
15519
15520         * config/c6x/c6x.c (hwloop_optimize): Likewise.
15521         * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
15522
15523 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15524
15525         * rtl.h (for_each_rtx_in_insn): New function.
15526         * rtlanal.c (for_each_rtx_in_insn): Likewise.
15527
15528 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15529
15530         * coretypes.h (class rtx_insn): Add forward declaration.
15531
15532         * rtl.h: Include is-a.h.
15533         (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
15534         workaround to ensure gengtype knows inheritance is occurring,
15535         whilst continuing to use the pre-existing special-casing for
15536         rtx_def.
15537         (class rtx_insn): New subclass of rtx_def, adding the
15538         invariant that we're dealing with something we can sanely use
15539         INSN_UID, NEXT_INSN, PREV_INSN on.
15540         (is_a_helper <rtx_insn *>::test): New.
15541         (is_a_helper <const rtx_insn *>::test): New.
15542
15543 2014-08-18  David Malcolm  <dmalcolm@redhat.com>
15544
15545         * is-a.h (template<T, U> safe_as_a <U *p>) New function.
15546
15547 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15548
15549         * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
15550         comdats as extern.
15551
15552 2014-08-18  Jan Hubicka  <hubicka@ucw.cz>
15553
15554         * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
15555         to BUILT_IN_UNREACHABLE.
15556
15557 2014-08-18  Uros Bizjak  <ubizjak@gmail.com>
15558
15559         PR target/62011
15560         * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
15561         New tune flag.
15562         * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
15563         * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
15564         (ffs<mode>2): Do not expand with tzcnt for
15565         TARGET_AVOID_FALSE_DEP_FOR_BMI.
15566         (ffssi2_no_cmove): Ditto.
15567         (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
15568         (ctz<mode>2): New expander.
15569         (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
15570         (*ctz<mode>2_falsedep): New insn.
15571         (*ctz<mode>2): Rename from ctz<mode>2.
15572         (clz<mode>2_lzcnt): New expander.
15573         (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
15574         (*clz<mode>2_lzcnt_falsedep): New insn.
15575         (*clz<mode>2): Rename from ctz<mode>2.
15576         (popcount<mode>2): New expander.
15577         (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
15578         (*popcount<mode>2_falsedep): New insn.
15579         (*popcount<mode>2): Rename from ctz<mode>2.
15580         (*popcount<mode>2_cmp): Remove.
15581         (*popcountsi2_cmp_zext): Ditto.
15582
15583 2014-08-18  Ajit Agarwal  <ajitkum@xilinx.com>
15584
15585         * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
15586         (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
15587         * config/microblaze/microblaze.h
15588         (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
15589
15590 2014-08-18  H.J. Lu  <hongjiu.lu@intel.com>
15591
15592         PR other/62168
15593         * configure.ac: Set install_gold_as_default to no for
15594         --enable-gold=no.
15595         * configure: Regenerated.
15596
15597 2014-08-18 Roman Gareev  <gareevroman@gmail.com>
15598
15599         * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
15600         * config.in: Add undef of HAVE_isl.
15601         * configure: Regenerate.
15602         * configure.ac: Add definition of HAVE_isl.
15603         * graphite-blocking.c: Add checking of HAVE_isl.
15604         * graphite-dependences.c: Likewise.
15605         * graphite-interchange.c: Likewise.
15606         * graphite-isl-ast-to-gimple.c: Likewise.
15607         * graphite-optimize-isl.c: Likewise.
15608         * graphite-poly.c: Likewise.
15609         * graphite-scop-detection.c: Likewise.
15610         * graphite-sese-to-poly.c: Likewise.
15611         * graphite.c: Likewise.
15612         * toplev.c: Replace the checking of HAVE_cloog with the checking
15613         of HAVE_isl.
15614
15615 2014-08-18  Richard Biener  <rguenther@suse.de>
15616
15617         PR tree-optimization/62090
15618         * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
15619         (fold_builtin_3): Do not fold snprintf.
15620         (fold_builtin_4): Likewise.
15621         * gimple-fold.c (gimple_fold_builtin_snprintf): New function
15622         moved from builtins.c.
15623         (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
15624         (gimple_fold_builtin): Do not fold sprintf here.
15625
15626 2014-08-18  Richard Biener  <rguenther@suse.de>
15627
15628         * gimple-fold.c (maybe_fold_reference): Move re-gimplification
15629         code to ...
15630         (maybe_canonicalize_mem_ref_addr): ... this function.
15631         (fold_stmt_1): Apply it here before all simplification.
15632
15633 2014-08-18  Ilya Enkovich  <ilya.enkovich@intel.com>
15634
15635         PR ipa/61800
15636         * cgraph.h (cgraph_node::create_indirect_edge): Add
15637         compute_indirect_info param.
15638         * cgraph.c (cgraph_node::create_indirect_edge): Compute
15639         indirect_info only when it is required.
15640         * cgraphclones.c (cgraph_clone_edge): Do not recompute
15641         indirect_info fore cloned indirect edge.
15642
15643 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15644             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15645             Anna Tikhonova  <anna.tikhonova@intel.com>
15646             Ilya Tocar  <ilya.tocar@intel.com>
15647             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15648             Ilya Verbin  <ilya.verbin@intel.com>
15649             Kirill Yukhin  <kirill.yukhin@intel.com>
15650             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15651
15652         * config/i386/sse.md
15653         (define_mode_iterator VI8_AVX2_AVX512BW): New.
15654         (define_insn "<sse2_avx2>_psadbw"): Add evex version.
15655
15656 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15657             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15658             Anna Tikhonova  <anna.tikhonova@intel.com>
15659             Ilya Tocar  <ilya.tocar@intel.com>
15660             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15661             Ilya Verbin  <ilya.verbin@intel.com>
15662             Kirill Yukhin  <kirill.yukhin@intel.com>
15663             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15664
15665         * config/i386/sse.md
15666         (define_mode_iterator VF1_AVX512VL): New.
15667         (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
15668         (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
15669         New.
15670
15671 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15672             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15673             Anna Tikhonova  <anna.tikhonova@intel.com>
15674             Ilya Tocar  <ilya.tocar@intel.com>
15675             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15676             Ilya Verbin  <ilya.verbin@intel.com>
15677             Kirill Yukhin  <kirill.yukhin@intel.com>
15678             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15679
15680         * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
15681         * config/i386/i386.md
15682         (define_code_iterator any_float): New.
15683         (define_code_attr floatsuffix): New.
15684         * config/i386/sse.md
15685         (define_mode_iterator VF1_128_256VL): New.
15686         (define_mode_iterator VF2_512_256VL): New.
15687         (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
15688         TARGET check.
15689         (define_insn "ufloatv8siv8df<mask_name>"): Delete.
15690         (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
15691         New.
15692         (define_mode_attr qq2pssuff): New.
15693         (define_mode_attr sselongvecmode): New.
15694         (define_mode_attr sselongvecmodelower): New.
15695         (define_mode_attr sseintvecmode3): New.
15696         (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
15697         New.
15698         (define_insn "*<floatsuffix>floatv2div2sf2"): New.
15699         (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
15700         (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
15701         (define_insn "ufloatv2siv2df2<mask_name>"): New.
15702
15703 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15704             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15705             Anna Tikhonova  <anna.tikhonova@intel.com>
15706             Ilya Tocar  <ilya.tocar@intel.com>
15707             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15708             Ilya Verbin  <ilya.verbin@intel.com>
15709             Kirill Yukhin  <kirill.yukhin@intel.com>
15710             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15711
15712         * config/i386/sse.md
15713         (define_mode_iterator VF2_AVX512VL): New.
15714         (define_mode_attr sseintvecmode2): New.
15715         (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
15716         (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
15717         (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
15718         (define_insn
15719         "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
15720         Ditto.
15721         (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15722         Ditto.
15723         (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
15724         Ditto.
15725
15726 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15727             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15728             Anna Tikhonova  <anna.tikhonova@intel.com>
15729             Ilya Tocar  <ilya.tocar@intel.com>
15730             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15731             Ilya Verbin  <ilya.verbin@intel.com>
15732             Kirill Yukhin  <kirill.yukhin@intel.com>
15733             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15734
15735         * config/i386/i386.md
15736         (define_insn "*movoi_internal_avx"): Add evex version.
15737         (define_insn "*movti_internal"): Ditto.
15738
15739 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15740             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15741             Anna Tikhonova  <anna.tikhonova@intel.com>
15742             Ilya Tocar  <ilya.tocar@intel.com>
15743             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15744             Ilya Verbin  <ilya.verbin@intel.com>
15745             Kirill Yukhin  <kirill.yukhin@intel.com>
15746             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15747
15748         * config/i386/i386.md
15749         (define_attr "isa"): Add avx512dq, noavx512dq.
15750         (define_attr "enabled"): Ditto.
15751         * config/i386/sse.md
15752         (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
15753
15754 2014-08-18  Alexander Ivchenko  <alexander.ivchenko@intel.com>
15755             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
15756             Anna Tikhonova  <anna.tikhonova@intel.com>
15757             Ilya Tocar  <ilya.tocar@intel.com>
15758             Andrey Turetskiy  <andrey.turetskiy@intel.com>
15759             Ilya Verbin  <ilya.verbin@intel.com>
15760             Kirill Yukhin  <kirill.yukhin@intel.com>
15761             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
15762
15763         * config/i386/i386.c
15764         (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
15765         avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
15766         avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
15767         avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
15768         avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
15769         avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
15770         avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
15771         avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
15772         * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
15773         * config/i386/sse.md
15774         (define_mode_iterator VMOVE): Allow V4TI mode.
15775         (define_mode_iterator V_AVX512VL): New.
15776         (define_mode_iterator V): New handling for AVX512VL.
15777         (define_insn "avx512f_load<mode>_mask"): Delete.
15778         (define_insn "<avx512>_load<mode>_mask"): New.
15779         (define_insn "avx512f_store<mode>_mask"): Delete.
15780         (define_insn "<avx512>_store<mode>_mask"): New.
15781
15782
15783 2014-08-18  Yury Gribov  <y.gribov@samsung.com>
15784
15785         PR sanitizer/62089
15786         * asan.c (instrument_derefs): Fix bitfield check.
15787
15788 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15789
15790         * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
15791         * config/rs6000/htm.md (ttest): Remove clobber.
15792         * config/rs6000/predicates.md (any_mask_operand): New predicate.
15793         (and_operand): Reformat.
15794         (and_2rld_operand): New predicate.
15795         * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
15796         parameter.
15797         * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
15798         parameter.  Handle AND directly.
15799         (rs6000_split_logical_di): Remove last parameter.
15800         (rs6000_split_logical): Remove last parameter.  Remove obsolete
15801         comment.
15802         * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
15803         (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
15804         (ctz<mode>2, ffs<mode>2): Delete clobber.  Reformat.
15805         (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
15806         *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
15807         and 5 anonymous splitters):  Delete.
15808         (and<mode>3): New expander.
15809         (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
15810         (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
15811         (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
15812         (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
15813         (floatdisf2_internal1): Remove clobbers.
15814         (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
15815         *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
15816         (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
15817         (and<mode>3 for BOOL_128): Remove clobber.
15818         (*and<mode>3_internal for BOOL_128): Remove clobber.  Adjust call of
15819         rs6000_split_logical.
15820         (*bool<mode>3_internal for BOOL_128): Adjust call of
15821         rs6000_split_logical.
15822         (*boolc<mode>3_internal1 for BOOL_128,
15823         *boolc<mode>3_internal2 for BOOL_128,
15824         *boolcc<mode>3_internal1 for BOOL_128,
15825         *boolcc<mode>3_internal2 for BOOL_128,
15826         *eqv<mode>3_internal1 for BOOL_128,
15827         *eqv<mode>3_internal2 for BOOL_128,
15828         *one_cmpl<mode>3_internal for BOOL_128): Ditto.
15829         * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
15830         clobber.
15831         (*vec_reload_and_reg_<mptrsize>): Delete.
15832
15833 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15834
15835         * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
15836         and split, *boolccsi3_internal3 and split): Delete.
15837         (*boolccdi3_internal1, *boolccdi3_internal2 and split,
15838         *boolccdi3_internal3 and split): Delete.
15839         (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
15840         (*eqv<mode>3): Move.  Add TODO comment.  Fix attributes.
15841
15842 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15843
15844         * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
15845         and split, *boolcsi3_internal3 and split): Delete.
15846         (*boolcdi3_internal1, *boolcdi3_internal2 and split,
15847         *boolcdi3_internal3 and split): Delete.
15848         (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
15849
15850 2014-08-17  Segher Boessenkool  <segher@kernel.crashing.org>
15851
15852         * config/rs6000/rs6000.c (print_operand) <'e'>: New.
15853         <'u'>: Also support printing the low-order 16 bits.
15854         * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
15855         *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
15856         (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
15857         *booldi3_internal3 and split): Delete.
15858         (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
15859         *bool<mode>3_dot2): New.
15860         (two anonymous define_splits for non_logical_cint_operand): Merge.
15861
15862 2014-08-17  Marek Polacek  <polacek@redhat.com>
15863             Manuel López-Ibáñez  <manu@gcc.gnu.org>
15864
15865         PR c/62059
15866         * diagnostic.c (adjust_line): Add gcc_checking_assert.
15867         (diagnostic_show_locus): Don't print caret diagnostic
15868         if a column is larger than the line_width.
15869
15870 2014-08-17 Roman Gareev  <gareevroman@gmail.com>
15871
15872         * common.opt: Make the ISL AST generator to be the main code generator
15873         of Graphite.
15874
15875 2014-08-16  Gerald Pfeifer  <gerald@pfeifer.com>
15876
15877         * wide-int.h (generic_wide_int): Declare as class instead of struct.
15878
15879 2014-08-16  John David Anglin  <danglin@gcc.gnu.org>
15880
15881         PR target/61641
15882         * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
15883         Declare.
15884         * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
15885         (pa_output_addr_vec, pa_output_addr_diff_vec): New.
15886         * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
15887         Define.
15888         * config/pa/pa.md (begin_brtab): Delete insn.
15889         (end_brtab): Likewise.
15890
15891 2014-08-16  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15892
15893         * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
15894
15895 2014-08-15  Jan Hubicka  <hubicka@ucw.cz>
15896
15897         * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
15898         (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
15899         possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
15900         (get_dynamic_type): Remove.
15901         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
15902         (clear_speculation): Bring to ipa-deivrt.h
15903         (get_class_context): Rename to ...
15904         (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
15905         (contains_type_p): Update.
15906         (get_dynamic_type): Rename to ...
15907         ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
15908         (possible_polymorphic_call_targets): UPdate.
15909         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
15910         * ipa-prop.c (ipa_analyze_call_uses): Update.
15911
15912 2014-08-15  Oleg Endo  <olegendo@gcc.gnu.org>
15913
15914         * doc/invoke.texi (SH options): Document missing processor variant
15915         options.  Remove references to Hitachi.  Undocument deprecated mspace
15916         option.
15917
15918 2014-08-15  Jason Merrill  <jason@redhat.com>
15919
15920         * tree.c (type_hash_canon): Uncomment assert.
15921
15922 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15923
15924         * input.h (in_system_header_at): Add comment.
15925
15926 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15927
15928         PR fortran/44054
15929         * diagnostic.c (build_message_string): Make it extern.
15930         * diagnostic.h (build_message_string): Make it extern.
15931
15932 2014-08-15  Vladimir Makarov  <vmakarov@redhat.com>
15933
15934         * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
15935         load/store from/to non-floating class pseudo.
15936
15937 2014-08-15  Manuel López-Ibáñez  <manu@gcc.gnu.org>
15938
15939         * input.c (diagnostic_file_cache_fini): Fix typo in comment.
15940
15941 2014-08-15  Richard Biener  <rguenther@suse.de>
15942
15943         * tree-ssa-structalias.c (readonly_id): Rename to string_id.
15944         (get_constraint_for_ssa_var): Remove dead code.
15945         (get_constraint_for_1): Adjust.
15946         (find_what_var_points_to): Likewise.
15947         (init_base_vars): Likewise.  STRING_CSTs do not contain pointers.
15948
15949 2014-08-15  Ilya Tocar  <tocarip@gmail.com>
15950
15951         PR target/61878
15952         * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
15953         (_mm512_mask_cmpge_epu32_mask): Ditto.
15954         (_mm512_cmpge_epu32_mask): Ditto.
15955         (_mm512_mask_cmpge_epi64_mask): Ditto.
15956         (_mm512_cmpge_epi64_mask): Ditto.
15957         (_mm512_mask_cmpge_epu64_mask): Ditto.
15958         (_mm512_cmpge_epu64_mask): Ditto.
15959         (_mm512_mask_cmple_epi32_mask): Ditto.
15960         (_mm512_cmple_epi32_mask): Ditto.
15961         (_mm512_mask_cmple_epu32_mask): Ditto.
15962         (_mm512_cmple_epu32_mask): Ditto.
15963         (_mm512_mask_cmple_epi64_mask): Ditto.
15964         (_mm512_cmple_epi64_mask): Ditto.
15965         (_mm512_mask_cmple_epu64_mask): Ditto.
15966         (_mm512_cmple_epu64_mask): Ditto.
15967         (_mm512_mask_cmplt_epi32_mask): Ditto.
15968         (_mm512_cmplt_epi32_mask): Ditto.
15969         (_mm512_mask_cmplt_epu32_mask): Ditto.
15970         (_mm512_cmplt_epu32_mask): Ditto.
15971         (_mm512_mask_cmplt_epi64_mask): Ditto.
15972         (_mm512_cmplt_epi64_mask): Ditto.
15973         (_mm512_mask_cmplt_epu64_mask): Ditto.
15974         (_mm512_cmplt_epu64_mask): Ditto.
15975         (_mm512_mask_cmpneq_epi32_mask): Ditto.
15976         (_mm512_mask_cmpneq_epu32_mask): Ditto.
15977         (_mm512_cmpneq_epu32_mask): Ditto.
15978         (_mm512_mask_cmpneq_epi64_mask): Ditto.
15979         (_mm512_cmpneq_epi64_mask): Ditto.
15980         (_mm512_mask_cmpneq_epu64_mask): Ditto.
15981         (_mm512_cmpneq_epu64_mask): Ditto.
15982         (_mm512_castpd_ps): Ditto.
15983         (_mm512_castpd_si512): Ditto.
15984         (_mm512_castps_pd): Ditto.
15985         (_mm512_castps_si512): Ditto.
15986         (_mm512_castsi512_ps): Ditto.
15987         (_mm512_castsi512_pd): Ditto.
15988         (_mm512_castpd512_pd128): Ditto.
15989         (_mm512_castps512_ps128): Ditto.
15990         (_mm512_castsi512_si128): Ditto.
15991         (_mm512_castpd512_pd256): Ditto.
15992         (_mm512_castps512_ps256): Ditto.
15993         (_mm512_castsi512_si256): Ditto.
15994         (_mm512_castpd128_pd512): Ditto.
15995         (_mm512_castps128_ps512): Ditto.
15996         (_mm512_castsi128_si512): Ditto.
15997         (_mm512_castpd256_pd512): Ditto.
15998         (_mm512_castps256_ps512): Ditto.
15999         (_mm512_castsi256_si512): Ditto.
16000         (_mm512_cmpeq_epu32_mask): Ditto.
16001         (_mm512_mask_cmpeq_epu32_mask): Ditto.
16002         (_mm512_mask_cmpeq_epu64_mask): Ditto.
16003         (_mm512_cmpeq_epu64_mask): Ditto.
16004         (_mm512_cmpgt_epu32_mask): Ditto.
16005         (_mm512_mask_cmpgt_epu32_mask): Ditto.
16006         (_mm512_mask_cmpgt_epu64_mask): Ditto.
16007         (_mm512_cmpgt_epu64_mask): Ditto.
16008         * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
16009         V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
16010         * config/i386/i386.c (enum ix86_builtins): Add
16011         IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
16012         IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
16013         IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
16014         (bdesc_args): Add __builtin_ia32_si512_256si,
16015         __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
16016         __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
16017         __builtin_ia32_pd512_pd.
16018         (ix86_expand_args_builtin): Handle new FTYPEs.
16019         * config/i386/sse.md (castmode): Add 512-bit modes.
16020         (AVX512MODE2P): New.
16021         (avx512f_<castmode><avxsizesuffix>_<castmode): New.
16022         (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
16023
16024 2014-08-15  Richard Biener  <rguenther@suse.de>
16025
16026         * fold-const.c (tree_swap_operands_p): Put all constants
16027         last, also strip sign-changing NOPs when considering further
16028         canonicalization.  Canonicalize also when optimizing for size.
16029
16030 2014-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16031
16032         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
16033         one_match > zero_match case to just before simple_sequence.
16034
16035 2014-08-15  Richard Biener  <rguenther@suse.de>
16036
16037         * data-streamer.h (streamer_string_index, string_for_index):
16038         Remove.
16039         * data-streamer-out.c (streamer_string_index): Make static.
16040         * data-streamer-in.c (string_for_index): Likewise.
16041         * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
16042         * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
16043
16044 2014-08-15  Richard Biener  <rguenther@suse.de>
16045
16046         PR tree-optimization/62031
16047         * tree-data-ref.c (dr_analyze_indices): Do not set
16048         DR_UNCONSTRAINED_BASE.
16049         (dr_may_alias_p): All indirect accesses have to go the
16050         formerly DR_UNCONSTRAINED_BASE path.
16051         * tree-data-ref.h (struct indices): Remove
16052         unconstrained_base member.
16053         (DR_UNCONSTRAINED_BASE): Remove.
16054
16055 2014-08-15  Jakub Jelinek  <jakub@redhat.com>
16056
16057         PR middle-end/62092
16058         * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
16059         OMP_CLAUSE_SHARED for global vars if the global var is mentioned
16060         in OMP_CLAUSE_MAP in some outer target region.
16061
16062 2014-08-15  Bin Cheng  <bin.cheng@arm.com>
16063
16064         * tree-ssa-loop-ivopts.c (ivopts_data): New field
16065         name_expansion_cache.
16066         (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
16067         (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
16068         (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
16069         (difference_cannot_overflow_p): New parameter.  Use affine
16070         expansion for equality check.
16071         (iv_elimination_compare_lt): Pass new argument.
16072
16073 2014-08-14  DJ Delorie  <dj@redhat.com>
16074
16075         * config/rl78/rl78-real.md (addqi3_real): Allow adding global
16076         variables to the accumulator.
16077
16078         * config/rl78/predicates.md (rl78_near_mem_operand): New.
16079         * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
16080         (movhi_virt_mm): Split out near mem-mem moves to avoid problems
16081         with far-far moves.
16082
16083         * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
16084         * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
16085         (umulqihi3_virt): Likewise.
16086         * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
16087         (umulqihi3_real): Likewise.
16088
16089         * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
16090
16091 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16092
16093         PR tree-optimization/62091
16094         * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
16095         function_entry_reached.
16096         (walk_aliased_vdefs): Clear it here.
16097         * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
16098
16099 2014-08-14  Jan Hubicka  <hubicka@ucw.cz>
16100
16101         * ipa-utils.h (compare_virtual_tables): Declare.
16102         * ipa-devirt.c (odr_subtypes_equivalent_p): New function
16103
16104 2014-08-14  Marek Polacek  <polacek@redhat.com>
16105
16106         DR 458
16107         * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
16108         (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
16109
16110 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16111
16112         * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
16113
16114 2014-08-14  Tom de Vries  <tom@codesourcery.com>
16115
16116         PR rtl-optimization/62004
16117         PR rtl-optimization/62030
16118         * ifcvt.c (rtx_interchangeable_p): New function.
16119         (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
16120         * emit-rtl.h (mem_attrs_eq_p): Declare.
16121
16122 2014-08-14  Roman Gareev  <gareevroman@gmail.com>
16123
16124         * graphite-scop-detection.c:
16125         Add inclusion of cp-tree.h.
16126         (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
16127         in case they are pointers to object types
16128
16129 2014-08-14  Richard Biener  <rguenther@suse.de>
16130
16131         * BASE-VER: Change to 5.0.0
16132
16133 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16134             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16135             Anna Tikhonova  <anna.tikhonova@intel.com>
16136             Ilya Tocar  <ilya.tocar@intel.com>
16137             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16138             Ilya Verbin  <ilya.verbin@intel.com>
16139             Kirill Yukhin  <kirill.yukhin@intel.com>
16140             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16141
16142         * config/i386/sse.md (define_mode_attr avx512): New.
16143         (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
16144         V4DI modes.
16145         (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
16146         (define_mode_attr ssse3_avx2): Ditto.
16147         (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
16148         (define_mode_attr avx2_avx512bw): New.
16149         (define_mode_attr ssedoublemodelower): New.
16150         (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
16151         V32HI, V64QI modes.
16152         (define_mode_attr ssebytemode): Allow V8DI modes.
16153         (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
16154         (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
16155         (define_mode_attr ssePSmode2): New.
16156         (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
16157         V16HI, V32HI modes.
16158         (define_mode_attr dbpsadbwmode): New.
16159         (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
16160         V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
16161         (vi8_sse4_1_avx2_avx512): New.
16162         (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
16163         mode attribute.
16164         (define_mode_attr blendbits): Move before its immediate use.
16165
16166 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16167             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16168             Anna Tikhonova  <anna.tikhonova@intel.com>
16169             Ilya Tocar  <ilya.tocar@intel.com>
16170             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16171             Ilya Verbin  <ilya.verbin@intel.com>
16172             Kirill Yukhin  <kirill.yukhin@intel.com>
16173             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16174
16175         * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
16176         * config/i386/subst.md
16177         (define_mode_iterator SUBST_V): Update.
16178         (define_mode_iterator SUBST_A): Ditto.
16179         (define_subst_attr "mask_operand7"): New.
16180         (define_subst_attr "mask_operand10"): New.
16181         (define_subst_attr "mask_operand_arg34") : New.
16182         (define_subst_attr "mask_expand_op3"): New.
16183         (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
16184         (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
16185         (define_subst_attr "mask_avx512vl_condition"): New.
16186         (define_subst_attr "round_mask_operand4"): Ditto.
16187         (define_subst_attr "round_mask_scalar_op3"): Delete.
16188         (define_subst_attr "round_mask_op4"): New.
16189         (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
16190         V16SImode.
16191         (define_subst_attr "round_modev8sf_condition"): New.
16192         (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
16193         <MODE>mode.
16194         (define_subst_attr "round_saeonly_mask_operand4"): New.
16195         (define_subst_attr "round_saeonly_mask_op4"): New.
16196         (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
16197         V8DImode, V16SImode.
16198         (define_subst_attr "round_saeonly_modev8sf_condition"): New.
16199         (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
16200         (define_subst_attr "mask_expand4_args"): New.
16201         (define_subst "mask_expand4"): New.
16202
16203 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16204             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16205             Anna Tikhonova  <anna.tikhonova@intel.com>
16206             Ilya Tocar  <ilya.tocar@intel.com>
16207             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16208             Ilya Verbin  <ilya.verbin@intel.com>
16209             Kirill Yukhin  <kirill.yukhin@intel.com>
16210             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16211
16212         * config/i386/i386.md
16213         (define_attr "isa"): Add avx512bw,noavx512bw.
16214         (define_attr "enabled"): Ditto.
16215         (define_split): Add 32/64-bit mask logic.
16216         (define_insn "*k<logic>qi"): New.
16217         (define_insn "*k<logic>hi"): New.
16218         (define_insn "*anddi_1"): Add mask version.
16219         (define_insn "*andsi_1"): Ditto.
16220         (define_insn "*<code><mode>_1"): Ditto.
16221         (define_insn "*<code>hi_1"): Ditto.
16222         (define_insn "kxnor<mode>"): New.
16223         (define_insn "kunpcksi"): New.
16224         (define_insn "kunpckdi"): New.
16225         (define_insn "*one_cmpl<mode>2_1"): Add mask version.
16226         (define_insn "*one_cmplhi2_1"): Ditto.
16227
16228 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16229             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16230             Anna Tikhonova  <anna.tikhonova@intel.com>
16231             Ilya Tocar  <ilya.tocar@intel.com>
16232             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16233             Ilya Verbin  <ilya.verbin@intel.com>
16234             Kirill Yukhin  <kirill.yukhin@intel.com>
16235             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16236
16237         * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
16238         V32HImode.
16239
16240 2014-08-14  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16241             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16242             Anna Tikhonova  <anna.tikhonova@intel.com>
16243             Ilya Tocar  <ilya.tocar@intel.com>
16244             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16245             Ilya Verbin  <ilya.verbin@intel.com>
16246             Kirill Yukhin  <kirill.yukhin@intel.com>
16247             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16248
16249         * config/i386/i386.c (print_reg): Ð¡orrectly print 64-bit mask
16250         registers.
16251         (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
16252         (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
16253         xmm/ymm16+ when availble.
16254         * config/i386/i386.h
16255         (HARD_REGNO_NREGS): Add mask regs.
16256         (VALID_AVX512F_REG_MODE): Ditto.
16257         (VALID_AVX512F_REG_MODE) : Define.
16258         (VALID_MASK_AVX512BW_MODE): Ditto.
16259         (reg_class) (MASK_REG_P(X)): Define.
16260         * config/i386/i386.md: Do not split long moves with mask register,
16261         use kmovb if avx512bw is availible.
16262         (movdi_internal): Handle mask registers.
16263
16264 2014-08-14  Richard Biener  <rguenther@suse.de>
16265
16266         PR tree-optimization/62081
16267         * tree-ssa-loop.c (pass_fix_loops): New pass.
16268         (pass_tree_loop::gate):  Do not fixup loops here.
16269         * tree-pass.h (make_pass_fix_loops): Declare.
16270         * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
16271
16272 2014-08-14  Richard Biener  <rguenther@suse.de>
16273
16274         * tree.c (type_hash_lookup, type_hash_add): Merge into ...
16275         (type_hash_canon): ... this and avoid 2nd lookup for the add.
16276
16277 2014-08-14  Richard Biener  <rguenther@suse.de>
16278
16279         PR tree-optimization/62090
16280         * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
16281         (fold_builtin_2): Do not fold sprintf.
16282         (fold_builtin_3): Likewise.
16283         * gimple-fold.c (gimple_fold_builtin_sprintf): New function
16284         moved from builtins.c.
16285         (gimple_fold_builtin): Fold sprintf.
16286
16287 2014-08-14  Richard Biener  <rguenther@suse.de>
16288
16289         PR rtl-optimization/62079
16290         * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
16291         run cleanup_cfg.
16292
16293 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16294
16295         * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
16296         current_function_decl.
16297
16298 2014-08-14  Ilya Enkovich  <ilya.enkovich@intel.com>
16299
16300         * cgraph.c (cgraph_node::function_symbol): Fix wrong
16301         cgraph_function_node to cgraph_node::function_symbol
16302         refactoring.
16303
16304 2014-08-14  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16305
16306         * config/arm/arm.c (arm_option_override): Set max_insns_skipped
16307         to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
16308
16309 2014-08-13  Chen Gang  gang.chen.5i5j@gmail.com
16310
16311         * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
16312         warning.
16313
16314 2014-08-13  Roman Gareev  <gareevroman@gmail.com>
16315
16316         * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
16317         generator.
16318
16319 2014-08-12  Jakub Jelinek  <jakub@redhat.com>
16320
16321         PR target/62025
16322         * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
16323         any registers that are used in mem_insn.
16324
16325 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16326
16327         * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
16328
16329 2014-08-12  Steve Ellcey  <sellcey@mips.com>
16330
16331         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
16332         (MULTILIB_DIRNAMES): Ditto.
16333         * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
16334         * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
16335         * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
16336         * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
16337         * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
16338         * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
16339
16340 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16341
16342         PR target/61413
16343         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
16344         of __ARM_SIZEOF_WCHAR_T.
16345
16346 2014-08-12  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16347
16348         PR target/62098
16349         * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
16350         Remove unnecessary attributes.
16351
16352 2014-08-12  Yury Gribov  <y.gribov@samsung.com>
16353
16354         * internal-fn.c (init_internal_fns): Fix off-by-one.
16355
16356 2014-08-12  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16357             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16358             Anna Tikhonova  <anna.tikhonova@intel.com>
16359             Ilya Tocar  <ilya.tocar@intel.com>
16360             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16361             Ilya Verbin  <ilya.verbin@intel.com>
16362             Kirill Yukhin  <kirill.yukhin@intel.com>
16363             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16364
16365         * config/i386/i386.c (standard_sse_constant_opcode): Use
16366         vpxord/vpternlog if avx512 is availible.
16367
16368 2014-08-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
16369
16370         PR middle-end/62103
16371         * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
16372         bitfields, that is when size doesn't match the size of type or the
16373         size of the constructor.
16374
16375 2014-08-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
16376
16377         * config/rs6000/constraints.md (wh constraint): New constraint,
16378         for FP registers if direct move is available.
16379         (wi constraint): New constraint, for VSX/FP registers that can
16380         handle 64-bit integers.
16381         (wj constraint): New constraint for VSX/FP registers that can
16382         handle 64-bit integers for direct moves.
16383         (wk constraint): New constraint for VSX/FP registers that can
16384         handle 64-bit doubles for direct moves.
16385         (wy constraint): Make documentation match implementation.
16386
16387         * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
16388         scalar_in_vmx_p field to simplify tests of whether SFmode or
16389         DFmode can go in the Altivec registers.
16390         (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
16391         (rs6000_setup_reg_addr_masks): Likewise.
16392         (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
16393         field, and wh/wi/wj/wk constraints.
16394         (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
16395         the wh/wi/wj/wk constraints.
16396         (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
16397         upper registers, prefer VSX registers unless the operation is a
16398         memory operation with REG+OFFSET addressing.
16399
16400         * config/rs6000/vsx.md (VSr mode attribute): Add support for
16401         DImode.  Change SFmode to use ww constraint instead of d to allow
16402         SF registers in the upper registers.
16403         (VSr2): Likewise.
16404         (VSr3): Likewise.
16405         (VSr5): Fix thinko in comment.
16406         (VSa): New mode attribute that is an alternative to wa, that
16407         returns the VSX register class that a mode can go in, but may not
16408         be the preferred register class.
16409         (VS_64dm): New mode attribute for appropriate register classes for
16410         referencing 64-bit elements of vectors for direct moves and normal
16411         moves.
16412         (VS_64reg): Likewise.
16413         (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
16414         register allocator to only registers the data type can handle.
16415         (vsx_le_perm_load_<mode>): Likewise.
16416         (vsx_le_perm_store_<mode>): Likewise.
16417         (vsx_xxpermdi2_le_<mode>): Likewise.
16418         (vsx_xxpermdi4_le_<mode>): Likewise.
16419         (vsx_lxvd2x2_le_<mode>): Likewise.
16420         (vsx_lxvd2x4_le_<mode>): Likewise.
16421         (vsx_stxvd2x2_le_<mode>): Likewise.
16422         (vsx_add<mode>3): Likewise.
16423         (vsx_sub<mode>3): Likewise.
16424         (vsx_mul<mode>3): Likewise.
16425         (vsx_div<mode>3): Likewise.
16426         (vsx_tdiv<mode>3_internal): Likewise.
16427         (vsx_fre<mode>2): Likewise.
16428         (vsx_neg<mode>2): Likewise.
16429         (vsx_abs<mode>2): Likewise.
16430         (vsx_nabs<mode>2): Likewise.
16431         (vsx_smax<mode>3): Likewise.
16432         (vsx_smin<mode>3): Likewise.
16433         (vsx_sqrt<mode>2): Likewise.
16434         (vsx_rsqrte<mode>2): Likewise.
16435         (vsx_tsqrt<mode>2_internal): Likewise.
16436         (vsx_fms<mode>4): Likewise.
16437         (vsx_nfma<mode>4): Likewise.
16438         (vsx_eq<mode>): Likewise.
16439         (vsx_gt<mode>): Likewise.
16440         (vsx_ge<mode>): Likewise.
16441         (vsx_eq<mode>_p): Likewise.
16442         (vsx_gt<mode>_p): Likewise.
16443         (vsx_ge<mode>_p): Likewise.
16444         (vsx_xxsel<mode>): Likewise.
16445         (vsx_xxsel<mode>_uns): Likewise.
16446         (vsx_copysign<mode>3): Likewise.
16447         (vsx_float<VSi><mode>2): Likewise.
16448         (vsx_floatuns<VSi><mode>2): Likewise.
16449         (vsx_fix_trunc<mode><VSi>2): Likewise.
16450         (vsx_fixuns_trunc<mode><VSi>2): Likewise.
16451         (vsx_x<VSv>r<VSs>i): Likewise.
16452         (vsx_x<VSv>r<VSs>ic): Likewise.
16453         (vsx_btrunc<mode>2): Likewise.
16454         (vsx_b2trunc<mode>2): Likewise.
16455         (vsx_floor<mode>2): Likewise.
16456         (vsx_ceil<mode>2): Likewise.
16457         (vsx_<VS_spdp_insn>): Likewise.
16458         (vsx_xscvspdp): Likewise.
16459         (vsx_xvcvspuxds): Likewise.
16460         (vsx_float_fix_<mode>2): Likewise.
16461         (vsx_set_<mode>): Likewise.
16462         (vsx_extract_<mode>_internal1): Likewise.
16463         (vsx_extract_<mode>_internal2): Likewise.
16464         (vsx_extract_<mode>_load): Likewise.
16465         (vsx_extract_<mode>_store): Likewise.
16466         (vsx_splat_<mode>): Likewise.
16467         (vsx_xxspltw_<mode>): Likewise.
16468         (vsx_xxspltw_<mode>_direct): Likewise.
16469         (vsx_xxmrghw_<mode>): Likewise.
16470         (vsx_xxmrglw_<mode>): Likewise.
16471         (vsx_xxsldwi_<mode>): Likewise.
16472         (vsx_xscvdpspn): Tighten constraints to only use register classes
16473         the types use.
16474         (vsx_xscvspdpn): Likewise.
16475         (vsx_xscvdpspn_scalar): Likewise.
16476
16477         * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
16478         wj, and wk constraints.
16479         (GPR_REG_CLASS_P): New helper macro for register classes targeting
16480         general purpose registers.
16481
16482         * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
16483         direct moves.
16484         (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
16485         DImode instead of wm.  Use wk constraint for direct move of DFmode
16486         instead of wm.
16487         (extendsidi2_lfiwax): Likewise.
16488         (lfiwax): Likewise.
16489         (lfiwzx): Likewise.
16490         (movdi_internal64): Likewise.
16491
16492         * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
16493         wk constraints. Make the wy constraint documentation match them
16494         implementation.
16495
16496 2014-08-11  Mircea Namolaru  <mircea.namolaru@inria.fr>
16497
16498         Replacement of isl_int by isl_val
16499         * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
16500         (compute_bounds_for_param): use isl_val instead of isl_int
16501         (compute_bounds_for_loop): likewise
16502         * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
16503         (build_linearized_memory_access): use isl_val instead of isl_int
16504         (pdr_stride_in_loop): likewise
16505         * graphite-optimize-isl.c:
16506         (getPrevectorMap): use isl_val instead of isl_int
16507         * graphite-poly.c:
16508         (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
16509         graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
16510         (extern the_isl_ctx): declare
16511         (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
16512         (extract_affine_gmp): likewise
16513         (wrap): likewise
16514         (build_loop_iteration_domains): likewise
16515         (add_param_constraints): likewise
16516
16517 2014-08-11  Richard Biener  <rguenther@suse.de>
16518
16519         PR tree-optimization/62075
16520         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
16521         handle uses in patterns.
16522
16523 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16524             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16525             Anna Tikhonova  <anna.tikhonova@intel.com>
16526             Ilya Tocar  <ilya.tocar@intel.com>
16527             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16528             Ilya Verbin  <ilya.verbin@intel.com>
16529             Kirill Yukhin  <kirill.yukhin@intel.com>
16530             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16531
16532         * common/config/i386/i386-common.c
16533         (OPTION_MASK_ISA_AVX512VL_SET): Define.
16534         (OPTION_MASK_ISA_AVX512F_UNSET): Update.
16535         (ix86_handle_option): Handle OPT_mavx512vl.
16536         * config/i386/cpuid.h (bit_AVX512VL): Define.
16537         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
16538         set -mavx512vl accordingly.
16539         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16540         OPTION_MASK_ISA_AVX512VL.
16541         * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
16542         (ix86_option_override_internal): Define PTA_AVX512VL, handle
16543         PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
16544         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
16545         * config/i386/i386.h (TARGET_AVX512VL): Define.
16546         (TARGET_AVX512VL_P(x)): Ditto.
16547         * config/i386/i386.opt: Add mavx512vl.
16548
16549 2014-08-11  Felix Yang  <fei.yang0953@gmail.com>
16550
16551         PR tree-optimization/62073
16552         * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
16553         a basic block.
16554
16555 2014-08-11  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16556             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16557             Anna Tikhonova  <anna.tikhonova@intel.com>
16558             Ilya Tocar  <ilya.tocar@intel.com>
16559             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16560             Ilya Verbin  <ilya.verbin@intel.com>
16561             Kirill Yukhin  <kirill.yukhin@intel.com>
16562             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16563
16564         * common/config/i386/i386-common.c
16565         (OPTION_MASK_ISA_AVX512BW_SET) : Define.
16566         (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
16567         (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
16568         (ix86_handle_option): Handle OPT_mavx512bw.
16569         * config/i386/cpuid.h (bit_AVX512BW): Define.
16570         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
16571         set -mavx512bw accordingly.
16572         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16573         OPTION_MASK_ISA_AVX512BW.
16574         * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
16575         (ix86_option_override_internal): Define PTA_AVX512BW, handle
16576         PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
16577         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
16578         * config/i386/i386.h (TARGET_AVX512BW): Define.
16579         (TARGET_AVX512BW_P(x)): Ditto.
16580         * config/i386/i386.opt: Add mavx512bw.
16581
16582 2014-08-11  Richard Biener  <rguenther@suse.de>
16583
16584         PR tree-optimization/62070
16585         * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
16586         Remove SSA checking.
16587
16588 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16589
16590         * asan.c (asan_check_flags): New enum.
16591         (build_check_stmt_with_calls): Removed function.
16592         (build_check_stmt): Split inlining logic to
16593         asan_expand_check_ifn.
16594         (instrument_derefs): Rename parameter.
16595         (instrument_mem_region_access): Rename parameter.
16596         (instrument_strlen_call): Likewise.
16597         (asan_expand_check_ifn): New function.
16598         (asan_instrument): Remove old code.
16599         (pass_sanopt::execute): Change handling of
16600         asan-instrumentation-with-call-threshold.
16601         (asan_clear_shadow): Fix formatting.
16602         (asan_function_start): Likewise.
16603         (asan_emit_stack_protection): Likewise.
16604         * doc/invoke.texi (asan-instrumentation-with-call-threshold):
16605         Update description.
16606         * internal-fn.c (expand_ASAN_CHECK): New function.
16607         * internal-fn.def (ASAN_CHECK): New internal function.
16608         * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
16609         Update description.
16610         (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
16611         * tree.c: Small comment fix.
16612
16613 2014-08-11  Yury Gribov  <y.gribov@samsung.com>
16614
16615         * gimple.c (gimple_call_fnspec): Support internal functions.
16616         (gimple_call_return_flags): Use const.
16617         * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
16618         * internal-fn.def: Add fnspec information.
16619         * internal-fn.h (internal_fn_fnspec): New function.
16620         (init_internal_fns): Declare new function.
16621         * internal-fn.c (internal_fn_fnspec_array): New global variable.
16622         (init_internal_fns): New function.
16623         * tree-core.h: Update macro call.
16624         * tree.c (build_common_builtin_nodes): Initialize internal fns.
16625
16626 2014-08-10  Gerald Pfeifer  <gerald@pfeifer.com>
16627
16628         * lto-streamer.h (struct output_block::symbol): Change from
16629         struct symtab_node to plain symtab_node.
16630         (referenced_from_this_partition_p): Change first parameter
16631         from struct symtab_node to plain symtab_node.
16632
16633 2014-08-10  Marek Polacek  <polacek@redhat.com>
16634
16635         PR c/51849
16636         * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
16637
16638 2014-08-09  Jan Hubicka  <hubicka@ucw.cz>
16639
16640         * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
16641         DECL correctly; do not give up on types in static storage.
16642
16643 2014-08-09  Paolo Carlini  <paolo.carlini@oracle.com>
16644
16645         * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
16646
16647 2014-08-09  Roman Gareev  <gareevroman@gmail.com>
16648
16649         * graphite-isl-ast-to-gimple.c:
16650         (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
16651
16652         * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
16653
16654 2014-08-08  Guozhi Wei  <carrot@google.com>
16655
16656         * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
16657
16658 2014-08-08  Cary Coutant  <ccoutant@google.com>
16659
16660         * dwarf2out.c (get_skeleton_type_unit): Remove.
16661         (output_skeleton_debug_sections): Remove skeleton type units.
16662         (output_comdat_type_unit): Likewise.
16663         (dwarf2out_finish): Likewise.
16664
16665 2014-08-07  Yi Yang  <ahyangyi@google.com>
16666
16667         * predict.c (expr_expected_value_1): Remove the redundant assignment.
16668
16669 2014-08-08  Richard Biener  <rguenther@suse.de>
16670
16671         * lto-streamer.h (struct lto_input_block): Make it a class
16672         with a constructor.
16673         (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
16674         (struct lto_function_header, struct lto_simple_header,
16675         struct lto_simple_header_with_strings,
16676         struct lto_decl_header, struct lto_function_header): Make
16677         a simple inheritance hieararchy.  Remove unused fields.
16678         (struct lto_asm_header): Remove.
16679         * lto-streamer-out.c (produce_asm): Adjust.
16680         (lto_output_toplevel_asms): Likewise.
16681         (produce_asm_for_decls): Likewise.
16682         * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
16683         * data-streamer-in.c (string_for_index): Likewise.
16684         * ipa-inline-analysis.c (inline_read_section): Likewise.
16685         * ipa-prop.c (ipa_prop_read_section): Likewise.
16686         (read_replacements_section): Likewise.
16687         * lto-cgraph.c (input_cgraph_opt_section): Likewise.
16688         * lto-section-in.c (lto_create_simple_input_block): Likewise.
16689         (lto_destroy_simple_input_block): Likewise.
16690         * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
16691         (lto_input_toplevel_asms): Likewise.
16692
16693 2014-08-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
16694             Maxim Kuznetsov  <maxim.kuznetsov@intel.com>
16695             Anna Tikhonova  <anna.tikhonova@intel.com>
16696             Ilya Tocar  <ilya.tocar@intel.com>
16697             Andrey Turetskiy  <andrey.turetskiy@intel.com>
16698             Ilya Verbin  <ilya.verbin@intel.com>
16699             Kirill Yukhin  <kirill.yukhin@intel.com>
16700             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
16701
16702         * common/config/i386/i386-common.c
16703         (OPTION_MASK_ISA_AVX512DQ_SET): Define.
16704         (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
16705         (ix86_handle_option): Handle OPT_mavx512dq.
16706         * config/i386/cpuid.h (bit_AVX512DQ): Define.
16707         * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
16708         set -mavx512dq accordingly.
16709         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
16710         OPTION_MASK_ISA_AVX512DQ.
16711         * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
16712         (ix86_option_override_internal): Define PTA_AVX512DQ, handle
16713         PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
16714         (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
16715         * config/i386/i386.h (TARGET_AVX512DQ): Define.
16716         (TARGET_AVX512DQ_P(x)): Ditto.
16717         * config/i386/i386.opt: Add mavx512dq.
16718
16719 2014-08-08  Richard Biener  <rguenther@suse.de>
16720
16721         * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
16722         target_percent, target_percent_s): Export.
16723         (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
16724         fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
16725         fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
16726         fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
16727         fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
16728         Move to gimple-fold.c.
16729         (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
16730         strcat and strcpy.
16731         (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
16732         mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
16733         (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
16734         memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
16735         (rewrite_call_expr_array): Remove.
16736         (fold_builtin_sprintf_chk): Likewise.
16737         (fold_builtin_snprintf_chk): Likewise.
16738         (fold_builtin_varargs): Remove handling of sprintf_chk,
16739         vsprintf_chk, snprintf_chk and vsnprintf_chk.
16740         (gimple_fold_builtin_sprintf_chk): Remove.
16741         (gimple_fold_builtin_snprintf_chk): Likewise.
16742         (gimple_fold_builtin_varargs): Likewise.
16743         (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
16744         * predict.c (optimize_bb_for_size_p): Handle NULL bb.
16745         * gimple.c (gimple_seq_add_seq_without_update): New function.
16746         * gimple.h (gimple_seq_add_seq_without_update): Declare.
16747         * gimple-fold.c: Include output.h.
16748         (gsi_replace_with_seq_vops): New function, split out from ...
16749         (gimplify_and_update_call_from_tree): ... here.
16750         (replace_call_with_value): New function.
16751         (replace_call_with_call_and_fold): Likewise.
16752         (var_decl_component_p): Moved from builtins.c.
16753         (gimple_fold_builtin_memory_op): Moved from builtins.c
16754         fold_builtin_memory_op and rewritten to GIMPLE.
16755         (gimple_fold_builtin_memset): Likewise.
16756         (gimple_fold_builtin_strcpy): Likewise.
16757         (gimple_fold_builtin_strncpy): Likewise.
16758         (gimple_fold_builtin_strcat): Likewise.
16759         (gimple_fold_builtin_fputs): Likewise.
16760         (gimple_fold_builtin_memory_chk): Likewise.
16761         (gimple_fold_builtin_stxcpy_chk): Likewise.
16762         (gimple_fold_builtin_stxncpy_chk): Likewise.
16763         (gimple_fold_builtin_snprintf_chk): Likewise.
16764         (gimple_fold_builtin_sprintf_chk): Likewise.
16765         (gimple_fold_builtin_strlen): New function.
16766         (gimple_fold_builtin_with_strlen): New function split out from
16767         gimple_fold_builtin.
16768         (gimple_fold_builtin): Change signature and handle
16769         bzero, memset, bcopy, memcpy, mempcpy and memmove folding
16770         here.  Call gimple_fold_builtin_with_strlen.
16771         (gimple_fold_call): Adjust.
16772
16773 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16774
16775         * calls.c (precompute_arguments): Check
16776         promoted_for_signed_and_unsigned_p and set the promoted mode.
16777         (promoted_for_signed_and_unsigned_p): New function.
16778         (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
16779         and set the promoted mode.
16780         * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
16781         * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
16782         SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
16783
16784
16785 2014-08-08  Kugan Vivekanandarajah  <kuganv@linaro.org>
16786
16787         * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
16788         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16789         (expand_call): Likewise.
16790         * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
16791         to get promoted mode.
16792         * combine.c (record_promoted_value): Skip > 0 comparison with
16793         SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
16794         * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
16795         of SUBREG_PROMOTED_UNSIGNED_P.
16796         (convert_modes): Likewise.
16797         (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
16798         Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
16799         (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
16800         SUBREG_PROMOTED_UNSIGNED_SET.
16801         * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
16802         instead of SUBREG_PROMOTED_UNSIGNED_SET.
16803         * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
16804         SUBREG_PROMOTED_SET.
16805         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
16806         SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
16807         * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
16808         of SUBREG_PROMOTED_UNSIGNED_P.
16809         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
16810         (SUBREG_PROMOTED_SET): New define.
16811         (SUBREG_PROMOTED_GET): Likewise.
16812         (SUBREG_PROMOTED_SIGN): Likewise.
16813         (SUBREG_PROMOTED_SIGNED_P): Likewise.
16814         (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
16815         (SUBREG_PROMOTED_UNSIGNED_P): Updated.
16816         * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
16817         instead of SUBREG_PROMOTED_UNSIGNED_GET.
16818         (nonzero_bits1): Skip > 0 comparison with the results as
16819         SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
16820         (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
16821         of !SUBREG_PROMOTED_UNSIGNED_P.
16822         * simplify-rtx.c (simplify_unary_operation_1): Use new
16823         SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
16824         (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
16825         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
16826         SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
16827
16828 2014-08-07  Jan Hubicka  <hubicka@ucw.cz>
16829
16830         * ipa-devirt.c: Include gimple-pretty-print.h
16831         (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
16832         further tests.
16833         (decl_maybe_in_construction_p): Fix conditional on cdtor check
16834         (get_polymorphic_call_info): Fix return value
16835         (type_change_info): New sturcture based on ipa-prop
16836         variant.
16837         (noncall_stmt_may_be_vtbl_ptr_store): New predicate
16838         based on ipa-prop variant.
16839         (extr_type_from_vtbl_ptr_store): New function
16840         based on ipa-prop variant.
16841         (record_known_type): New function.
16842         (check_stmt_for_type_change): New function.
16843         (get_dynamic_type): New function.
16844         * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
16845         * tree-ssa-pre.c: ipa-utils.h
16846         (eliminate_dom_walker::before_dom_children): Use ipa-devirt
16847         machinery; sanity check with ipa-prop devirtualization.
16848         * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
16849         polymorphic flag.
16850
16851 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16852
16853         * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
16854         * alias.c, cfgexpand.c, cgraphbuild.c,
16855         config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
16856         config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
16857         config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
16858         config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
16859         config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
16860         config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
16861         config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
16862         dse.c, except.c, gengtype.c, gimple-expr.c,
16863         gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
16864         ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
16865         tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
16866         tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
16867         tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
16868         tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
16869         pointer-set.h.
16870         * pointer-set.c: Remove file.
16871         * pointer-set.h: Remove file.
16872
16873 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16874
16875         * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
16876         * config/arm/types.md (f_sels, f_seld): Delete.
16877
16878 2014-08-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16879
16880         * config/aarch64/aarch64.md (absdi2): Set simd attribute.
16881         (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
16882         (aarch64_movdi_<mode>high): Likewise.
16883         (aarch64_mov<mode>high_di): Likewise.
16884         (aarch64_movdi_<mode>low): Likewise.
16885         (aarch64_mov<mode>low_di): Likewise.
16886         (aarch64_movtilow_tilow): Likewise.
16887         Add comment explaining usage of fp,simd attributes and of
16888         TARGET_FLOAT and TARGET_SIMD.
16889
16890 2014-08-07  Ian Bolton  <ian.bolton@arm.com>
16891             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16892
16893         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
16894         Use MOVN when one of the half-words is 0xffff.
16895
16896 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16897
16898         * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
16899
16900 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16901
16902         * haifa-sched.c (SCHED_SORT): Delete.  Macro used exactly once.
16903         (enum rfs_decition:RFS_*): New constants wrapped in an enum.
16904         (rfs_str): String corresponding to RFS_* constants.
16905         (rank_for_schedule_stats_t): New typedef.
16906         (rank_for_schedule_stats): New static variable.
16907         (rfs_result): New static function.
16908         (rank_for_schedule): Track statistics for deciding heuristics.
16909         (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
16910         static functions.
16911         (ready_sort): Use them for debug printouts.
16912         (schedule_block): Init statistics state.  Print statistics on
16913         rank_for_schedule decisions.
16914
16915 2014-08-07  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
16916
16917         * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
16918
16919 2014-08-07  Ilya Tocar  <ilya.tocar@intel.com>
16920
16921         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
16922         constraint.
16923
16924 2014-08-07  Trevor Saunders  <tsaunders@mozilla.com>
16925
16926         * hash-map.h (default_hashmap_traits): Adjust overloads of hash
16927         function to not conflict.
16928         * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
16929         gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
16930         lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
16931         tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
16932         tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
16933         of pointer_map.
16934
16935 2014-08-07  Marek Polacek  <polacek@redhat.com>
16936
16937         * fold-const.c (fold_binary_loc): Add folding of
16938         (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
16939
16940 2013-08-07  Ilya Enkovich  <ilya.enkovich@intel.com>
16941
16942         * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
16943         instead of type size.
16944         (ASM_FINISH_DECLARE_OBJECT): Likewise.
16945
16946 2014-08-07  Marat Zakirov  <m.zakirov@samsung.com>
16947
16948         * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
16949         (*thumb1_movqi_insn): Likewise.
16950         * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
16951
16952 2014-08-07  Tom de Vries  <tom@codesourcery.com>
16953
16954         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
16955         (glibc_2_11_or_earlier): Remove effective-target keywords.
16956
16957 2014-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
16958
16959         * config/arm/arm.c (bdesc_2arg): Fix typo.
16960         (arm_atomic_assign_expand_fenv): Remove The default implementation.
16961
16962 2014-08-07  Zhenqiang Chen  <zhenqiang.chen@arm.com>
16963
16964         * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
16965
16966 2014-08-06  Vladimir Makarov  <vmakarov@redhat.com>
16967
16968         PR debug/61923
16969         * haifa-sched.c (advance_one_cycle): Fix dump.
16970         (schedule_block): Don't advance cycle if we are already at the
16971         beginning of the cycle.
16972
16973 2014-08-06  Martin Jambor  <mjambor@suse.cz>
16974
16975         PR ipa/61393
16976         * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
16977
16978 2014-08-06  Richard Biener  <rguenther@suse.de>
16979
16980         PR lto/62034
16981         * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
16982         SCCs here.
16983         (lto_input_tree): Pop SCCs here.
16984
16985 2014-08-06  Richard Biener  <rguenther@suse.de>
16986
16987         PR tree-optimization/61320
16988         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
16989         handle misaligned loads.
16990
16991 2014-08-06  Alan Lawrence  <alan.lawrence@arm.com>
16992
16993         * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
16994         (aarch64_expand_vec_perm_const): Check for dup before zip.
16995
16996 2014-08-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16997
16998         * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
16999         CONST_INT_P instead of GET_CODE and compare.
17000         (aarch64_select_cc_mode): Likewise.
17001         (aarch64_print_operand): Likewise.
17002         (aarch64_rtx_costs): Likewise.
17003         (aarch64_simd_valid_immediate): Likewise.
17004         (aarch64_simd_check_vect_par_cnst_half): Likewise.
17005         (aarch64_simd_emit_pair_result_insn): Likewise.
17006
17007 2014-08-05  David Malcolm  <dmalcolm@redhat.com>
17008
17009         * gdbhooks.py (find_gcc_source_dir): New helper function.
17010         (class PassNames): New class, locating and parsing passes.def.
17011         (class BreakOnPass): New command "break-on-pass".
17012
17013 2014-08-05  Trevor Saunders  <tsaunders@mozilla.com>
17014
17015         * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
17016         getting olde.
17017
17018 2014-08-05  Richard Biener  <rguenther@suse.de>
17019
17020         PR rtl-optimization/61672
17021         * emit-rtl.h (mem_attrs_eq_p): Declare.
17022         * emit-rtl.c (mem_attrs_eq_p): Export.  Handle NULL mem-attrs.
17023         * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
17024         * cfgcleanup.c (merge_memattrs): Likewise.
17025         Include emit-rtl.h.
17026
17027 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17028
17029         * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
17030         rather than singleton vectors.
17031         (vqdmlsls_lane_s32): Likewise.
17032
17033 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17034
17035         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
17036         Use VSDQ_HSI mode iterator.
17037         (aarch64_sqrdmulh_laneq<mode>): Likewise.
17038         (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
17039         * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
17040         Use BUILTIN_VDQHS macro.
17041         (sqrdmulh_laneq): Likewise.
17042         * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
17043         (vqdmlals_laneq_s32): Likewise.
17044         (vqdmlslh_laneq_s16): Likewise.
17045         (vqdmlsls_laneq_s32): Likewise.
17046         (vqdmulhh_laneq_s16): Likewise.
17047         (vqdmulhs_laneq_s32): Likewise.
17048         (vqrdmulhh_laneq_s16): Likewise.
17049         (vqrdmulhs_laneq_s32): Likewise.
17050
17051 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17052
17053         * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
17054         (vmuld_laneq_f64): Likewise.
17055         (vmuls_laneq_f32): Likewise.
17056         (vmul_n_f64): Likewise.
17057         (vmuld_lane_f64): Reimplement in C.
17058         (vmuls_lane_f32): Likewise.
17059
17060 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17061
17062         * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
17063         to reservation.
17064         * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
17065
17066 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17067
17068         * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
17069         (rbitsi2): Likewise.
17070         (*arm_rev): Set predicable and predicable_short_it attributes.
17071
17072 2014-08-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17073
17074         * convert.c (convert_to_integer): Guard transformation to lrint by
17075         -fno-math-errno.
17076
17077 2014-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
17078
17079         * config/aarch64/aarch64-builtins.c
17080         (aarch64_simd_builtin_type_mode): Delete.
17081         (v8qi_UP): Remap to V8QImode.
17082         (v4hi_UP): Remap to V4HImode.
17083         (v2si_UP): Remap to V2SImode.
17084         (v2sf_UP): Remap to V2SFmode.
17085         (v1df_UP): Remap to V1DFmode.
17086         (di_UP): Remap to DImode.
17087         (df_UP): Remap to DFmode.
17088         (v16qi_UP):V16QImode.
17089         (v8hi_UP): Remap to V8HImode.
17090         (v4si_UP): Remap to V4SImode.
17091         (v4sf_UP): Remap to V4SFmode.
17092         (v2di_UP): Remap to V2DImode.
17093         (v2df_UP): Remap to V2DFmode.
17094         (ti_UP): Remap to TImode.
17095         (ei_UP): Remap to EImode.
17096         (oi_UP): Remap to OImode.
17097         (ci_UP): Map to CImode.
17098         (xi_UP): Remap to XImode.
17099         (si_UP): Remap to SImode.
17100         (sf_UP): Remap to SFmode.
17101         (hi_UP): Remap to HImode.
17102         (qi_UP): Remap to QImode.
17103         (aarch64_simd_builtin_datum): Make mode a machine_mode.
17104         (VAR1): Build builtin name.
17105         (aarch64_init_simd_builtins): Remove dead code.
17106
17107 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17108
17109         * graphite-isl-ast-to-gimple.c:
17110         (set_options): New function.
17111         (scop_to_isl_ast): Add calling of set_options.
17112
17113 2014-08-05  Jakub Jelinek  <jakub@redhat.com>
17114
17115         * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
17116         (analyze_iv_to_split_insn): Don't initialize them.
17117         (get_ivts_expr): Removed.
17118         (allocate_basic_variable, insert_base_initialization): Use
17119         SET_SRC instead of *get_ivts_expr.
17120         (split_iv): Use &SET_SRC instead of get_ivts_expr.
17121
17122 2014-08-05  Roman Gareev  <gareevroman@gmail.com>
17123
17124         * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
17125         (translate_isl_ast_for_loop): Add checking of the
17126         flag_loop_parallelize_all.
17127         (ast_build_before_for): New function.
17128         (scop_to_isl_ast): Add checking of the
17129         flag_loop_parallelize_all.
17130         * graphite-dependences.c: Move the defenition of the
17131         scop_get_dependences from graphite-optimize-isl.c to this file.
17132         (apply_schedule_on_deps): Add checking of the ux's emptiness.
17133         (carries_deps): Add checking of the x's value.
17134         * graphite-optimize-isl.c: Move the defenition of the
17135         scop_get_dependences to graphite-dependences.c.
17136         * graphite-poly.h: Add declarations of scop_get_dependences
17137         and carries_deps.
17138
17139 2014-08-04  Rohit  <rohitarulraj@freescale.com>
17140
17141         PR target/60102
17142         * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
17143         names.
17144         (alt_reg_names): Likewise.
17145         (rs6000_dwarf_register_span): For SPE high registers, replace
17146         dwarf register numbers with GCC hard register numbers.
17147         (rs6000_init_dwarf_reg_sizes_extra): Likewise.
17148         (rs6000_dbx_register_number): For SPE high registers, return dwarf
17149         register number for the corresponding GCC hard register number.
17150         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
17151         newly added GCC hard register numbers for SPE high registers.
17152         (DWARF_FRAME_REGISTERS):  Likewise.
17153         (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
17154         (DWARF_FRAME_REGNUM): Likewise.
17155         (FIXED_REGISTERS): Likewise.
17156         (CALL_USED_REGISTERS): Likewise.
17157         (CALL_REALLY_USED_REGISTERS): Likewise.
17158         (REG_ALLOC_ORDER): Likewise.
17159         (enum reg_class): Likewise.
17160         (REG_CLASS_NAMES): Likewise.
17161         (REG_CLASS_CONTENTS): Likewise.
17162         (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
17163
17164 2014-08-04  Richard Biener  <rguenther@suse.de>
17165
17166         * gimple-fold.h (gimple_fold_builtin): Remove.
17167         * gimple-fold.c (gimple_fold_builtin): Make static.
17168         * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
17169         fold_stmt, not gimple_fold_builtin.
17170
17171 2014-08-04  Martin Liska <mliska@suse.cz>
17172
17173         * cgraph.h (csi_end_p): Removed.
17174         (csi_next): Likewise.
17175         (csi_node): Likewise.
17176         (csi_start): Likewise.
17177         (cgraph_node_in_set_p): Likewise.
17178         (cgraph_node_set_size): Likewise.
17179         (vsi_end_p): Likewise.
17180         (vsi_next): Likewise.
17181         (vsi_node): Likewise.
17182         (vsi_start): Likewise.
17183         (varpool_node_set_size): Likewise.
17184         (cgraph_node_set_nonempty_p): Likewise.
17185         (varpool_node_set_nonempty_p): Likewise.
17186         * cgraphunit.c (cgraph_process_new_functions): vec replaces
17187         cgraph_node_set.
17188         * ipa-inline-transform.c: Likewise.
17189         * ipa-utils.c (cgraph_node_set_new): Removed.
17190         (cgraph_node_set_add): Likewise.
17191         (cgraph_node_set_remove): Likewise.
17192         (cgraph_node_set_find): Likewise.
17193         (dump_cgraph_node_set): Likewise.
17194         (debug_cgraph_node_set): Likewise.
17195         (free_cgraph_node_set): Likewise.
17196         (varpool_node_set_new): Likewise.
17197         (varpool_node_set_add): Likewise.
17198         (varpool_node_set_remove): Likewise.
17199         (varpool_node_set_find): Likewise.
17200         (dump_varpool_node_set): Likewise.
17201         (free_varpool_node_set): Likewise.
17202         (debug_varpool_node_set): Likewise.
17203         * tree-emutls.c (struct tls_var_data):
17204         (emutls_index): Removed.
17205         (emutls_decl): Likewise.
17206         (gen_emutls_addr): Function implementation uses newly added
17207         hash_map<varpool_node *, tls_var_data>.
17208         (clear_access_vars): Likewise.
17209         (create_emultls_var): Likewise.
17210         (ipa_lower_emutls): Likewise.
17211         (reset_access): New function.
17212
17213 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17214
17215         * config/i386/i386.c (ix86_option_override_internal): Add
17216         PTA_RDRND and PTA_MOVBE for bdver4.
17217
17218 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17219             James Greenhalgh  <james.greenhalgh@arm.com>
17220
17221         * doc/md.texi (clrsb): Document.
17222         (clz): Change reference to x into operand 1.
17223         (ctz): Likewise.
17224         (popcount): Likewise.
17225
17226 2014-08-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17227
17228         PR target/61713
17229         * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
17230         move to subtarget in serial version if result is ignored.
17231
17232 2014-08-04  Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17233             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17234
17235         * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
17236         to any two insns.  Update comment.  Rename to sched_macro_fuse_insns.
17237         (sched_analyze_insn): Update use of try_group_insn to
17238         sched_macro_fuse_insns.
17239         * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
17240         arguments that are not conditional jumps.
17241
17242 2014-08-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
17243
17244         * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
17245         family information. Handle BTVER2 cpu with cpuid family value.
17246
17247 2014-08-04  Tom de Vries  <tom@codesourcery.com>
17248
17249         * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
17250         (glibc_2_11_or_earlier): Document effective-target keywords.
17251
17252 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17253
17254         * ipa-devirt.c (odr_type_warn_count): Add type.
17255         (possible_polymorphic_call_targets): Set it.
17256         (ipa_devirt): Use it.
17257
17258 2014-08-01  Jan Hubicka  <hubicka@ucw.cz>
17259
17260         * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
17261         Document.
17262         * ipa-devirt.c: Include hash-map.h
17263         (struct polymorphic_call_target_d): Add type_warning and decl_warning.
17264         (clear_speculation): Break out of ...
17265         (get_class_context): ... here; speed up handling obviously useless
17266         speculations.
17267         (odr_type_warn_count, decl_warn_count): New structures.
17268         (final_warning_record): New structure.
17269         (final_warning_records): New static variable.
17270         (possible_polymorphic_call_targets): Cleanup handling of
17271         speculative info; do not build speculation when user do not care;
17272         record info about warnings when asked for.
17273         (add_decl_warning): New function.
17274         (type_warning_cmp): New function.
17275         (decl_warning_cmp): New function.
17276         (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
17277         (gate): Enable pass when warnings are requested.
17278         * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
17279         options.
17280
17281 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17282
17283         * hash-map.h (default_hashmap_traits::mark_key_deleted):
17284         Fix cast.
17285         (hash_map::remove): New method.
17286         (hash_map::traverse): New method.
17287         * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
17288         ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
17289         tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
17290         tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
17291         tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
17292         tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
17293         pointer_map.
17294
17295 2014-08-02  Trevor Saunders  <tsaunders@mozilla.com>
17296
17297         * hash-set.h: new File.
17298         * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
17299         cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
17300         ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
17301         lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
17302         tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
17303         tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
17304         tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
17305         varpool.c: Use hash_set instead of pointer_set.
17306
17307 2014-08-01  Alan Lawrence  <alan.lawrence@arm.com>
17308
17309         * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
17310
17311 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17312
17313         * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
17314         for frame access when strict_p is false.
17315
17316 2014-08-01  Renlin Li <renlin.li@arm.com>
17317 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17318
17319         * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
17320         aarch64_offset_7bit_signed_scaled_p, remove static and use it.
17321         * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
17322         Declaration.
17323         * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
17324         predicate.
17325         * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
17326         aarch64_mem_pair_offset.
17327
17328 2014-08-01  Jiong Wang <jiong.wang@arm.com>
17329
17330         * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
17331         offset.
17332         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
17333         * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
17334
17335 2014-08-01  Matthew Fortune  <matthew.fortune@imgtec.com>
17336
17337         * config/mips/mips.h (REGISTER_PREFIX): Define macro.
17338
17339 2014-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
17340
17341         PR regression/61510
17342         * cgraphunit.c (analyze_functions): Use get_create rather than get
17343         for decls which are clones of abstract functions.
17344
17345 2014-08-01  Martin Liska  <mliska@suse.cz>
17346
17347         * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
17348         * ipa-prop.h (count_formal_params): Global function created from static.
17349         * ipa-prop.c (count_formal_params): Likewise.
17350         * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
17351         profiles for semantically equivalent functions.
17352         * passes.c (do_per_function): If we load body of a function
17353         during WPA, this condition should behave same.
17354         * varpool.c (ctor_for_folding): More tolerant assert for variable
17355         aliases created during WPA.
17356
17357 2014-08-01  Martin Liska  <mliska@suse.cz>
17358
17359         * doc/invoke.texi (Options That Control Optimization): Documentation
17360         for -foptimize-strlen introduced. Optimization levels default options
17361         fixed.
17362
17363 2014-08-01  Jakub Jelinek  <jakub@redhat.com>
17364
17365         * opts.c (common_handle_option): Handle -fsanitize=alignment.
17366         * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
17367         (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
17368         type to bool.
17369         * stor-layout.h (min_align_of_type): New prototype.
17370         * asan.c (pass_sanopt::execute): Don't perform gsi_next if
17371         ubsan_expand* told us not to do it.  Remove the extra gsi_end_p
17372         check.
17373         * ubsan.c: Include builtins.h.
17374         (ubsan_expand_bounds_ifn): Change return type to bool,
17375         always return true.
17376         (ubsan_expand_null_ifn): Change return type to bool, change
17377         argument to gimple_stmt_iterator *.  Handle both null and alignment
17378         sanitization, take type from ckind argument's type rather than
17379         first argument.
17380         (instrument_member_call): Removed.
17381         (instrument_mem_ref): Remove t argument, add mem and base arguments.
17382         Handle both null and alignment sanitization, don't say whole
17383         struct access is member access.  Build 3 argument IFN_UBSAN_NULL
17384         call instead of 2 argument.
17385         (instrument_null): Adjust instrument_mem_ref caller.  Don't
17386         instrument calls here.
17387         (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
17388         like SANITIZE_NULL.
17389         * stor-layout.c (min_align_of_type): New function.
17390         * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
17391         Or it into SANITIZE_UNDEFINED.
17392         * doc/invoke.texi (-fsanitize=alignment): Document.
17393
17394 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17395
17396         * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
17397
17398 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17399
17400         * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
17401         inchash.
17402         (vn_reference_compute_hash): Dito.
17403         (vn_nary_op_compute_hash): Dito.
17404         (vn_phi_compute_hash): Dito.
17405         * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
17406
17407 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17408
17409         * tree-ssa-dom.c (iterative_hash_exprs_commutative):
17410         Rename to inchash:add_expr_commutative. Convert to inchash.
17411         (iterative_hash_hashable_expr): Rename to
17412         inchash:add_hashable_expr. Convert to inchash.
17413         (avail_expr_hash): Dito.
17414
17415 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17416
17417         * ipa-devirt.c (polymorphic_call_target_hasher::hash):
17418         Convert to inchash.
17419
17420 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17421
17422         * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
17423
17424 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17425
17426         * Makefile.in (OBJS): Add rtlhash.o
17427         * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
17428         (loc_checksum): Dito.
17429         (loc_checksum_ordered): Dito.
17430         (hash_loc_operands): Dito.
17431         (hash_locs): Dito.
17432         (hash_loc_list): Dito.
17433         * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
17434         * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
17435         * rtlhash.c: New file.
17436         * rtlhash.h: New file.
17437
17438 2014-07-31  Andi Kleen  <ak@linux.intel.com>
17439
17440         * inchash.h (inchash): Change inchash class to namespace.
17441         (class hash): ... Rename from inchash.
17442         (add_object): Move from macro to class template.
17443         * lto-streamer-out.c (hash_tree): Change inchash
17444         to inchash::hash.
17445         * tree.c (build_type_attribute_qual_variant): Dito.
17446         (type_hash_list): Dito.
17447         (attribute_hash_list): Dito.
17448         (iterative_hstate_expr): Rename to inchash::add_expr
17449         (build_range_type_1): Change inchash to inchash::hash
17450         and use hash::add_expr.
17451         (build_array_type_1): Dito.
17452         (build_function_type): Dito
17453         (build_method_type_directly): Dito.
17454         (build_offset_type): Dito.
17455         (build_complex_type): Dito.
17456         (make_vector_type): Dito.
17457         * tree.h (iterative_hash_expr): Dito.
17458
17459 2014-07-31  Chen Gang  <gang.chen.5i5j@gmail.com>
17460
17461         * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
17462
17463 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17464
17465         * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
17466         correct alphabetical position.
17467         (vpaddd_f64): Rewrite using builtins.
17468         (vpaddd_s64): Move to correct alphabetical position.
17469         (vpaddd_u64): New.
17470
17471 2014-07-31  Oleg Endo  <olegendo@gcc.gnu.org>
17472
17473         PR target/61844
17474         * config/sh/sh.c (sh_legitimate_address_p,
17475         sh_legitimize_reload_address): Handle reg+reg address modes when
17476         ALLOW_INDEXED_ADDRESS is false.
17477         * config/sh/predicates.md (general_movsrc_operand,
17478         general_movdst_operand): Likewise.
17479
17480 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17481
17482         * config/aarch64/aarch64-builtins.c
17483         (aarch64_gimple_fold_builtin): Don't fold reduction operations for
17484         BYTES_BIG_ENDIAN.
17485
17486 2014-07-31  James Greenhalgh  <james.greenhalgh@arm.com>
17487
17488         * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
17489         the generated mask based on BYTES_BIG_ENDIAN.
17490         (aarch64_simd_check_vect_par_cnst_half): New.
17491         * config/aarch64/aarch64-protos.h
17492         (aarch64_simd_check_vect_par_cnst_half): New.
17493         * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
17494         the check out to aarch64_simd_check_vect_par_cnst_half.
17495         (vect_par_cnst_lo_half): Likewise.
17496         * config/aarch64/aarch64-simd.md
17497         (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
17498         (move_hi_quad_<mode>): Always generate a low mask.
17499
17500 2014-07-30  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17501
17502         * doc/invoke.texi (AVR Options): Add documentation about
17503         __AVR_DEVICE_NAME__ built-in macro.
17504
17505 2014-07-31  Charles Baylis  <charles.baylis@linaro.org>
17506
17507         PR target/61948
17508         * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
17509         constraints are satisfied.
17510         (<shift>di3_neon): Likewise.
17511
17512 2014-07-31  Richard Biener  <rguenther@suse.de>
17513
17514         PR tree-optimization/61964
17515         * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
17516         by structural equality.
17517
17518 2014-07-31  Yury Gribov  <y.gribov@samsung.com>
17519
17520         * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
17521         * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
17522         * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
17523         New enums.
17524         * gcc.c (sanitize_spec_function): Support new option.
17525         (SANITIZER_SPEC): Remove now redundant check.
17526         * opts.c (common_handle_option): Support new option.
17527         (finish_options): Check for incompatibilities.
17528         * toplev.c (process_options): Split userspace-specific checks.
17529
17530 2014-07-31  Richard Biener  <rguenther@suse.de>
17531
17532         * lto-streamer.h (struct output_block): Remove global.
17533         (struct data_in): Remove labels, num_named_labels and
17534         num_unnamed_labels.
17535         * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
17536         * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
17537
17538 2014-07-31  Marc Glisse  <marc.glisse@inria.fr>
17539
17540         PR c++/60517
17541         * common.opt (-Wreturn-local-addr): Moved from c.opt.
17542         * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
17543         (isolate_path): New argument to avoid inserting a trap.
17544         (find_implicit_erroneous_behaviour): Handle returning the address
17545         of a local variable.
17546         (find_explicit_erroneous_behaviour): Likewise.
17547
17548 2014-07-31  Bingfeng Mei <bmei@broadcom.com>
17549
17550         PR lto/61868
17551         * toplev.c (init_random_seed): Move piece of code never called to
17552         set_random_seed.
17553         (set_random_seed): see above.
17554
17555 2014-07-31  Tom de Vries  <tom@codesourcery.com>
17556
17557         * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
17558
17559 2014-07-31  Richard Sandiford  <rdsandiford@googlemail.com>
17560
17561         * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
17562         (compute_regs_asm_clobbered): Use extract_asm_operands instead.
17563
17564 2014-07-31  Richard Biener  <rguenther@suse.de>
17565
17566         * data-streamer.h (streamer_write_data_stream): Declare here,
17567         renamed from ...
17568         * lto-streamer.h (lto_output_data_stream): ... this.  Remove.
17569         * lto-cgraph.c (lto_output_node): Adjust.
17570         (lto_output_varpool_node): Likewise.
17571         * data-streamer-out.c (streamer_string_index): Likewise.
17572         (streamer_write_data_stream, lto_append_block): Move from ...
17573         * lto-section-out.c (lto_output_data_stream,
17574         lto_append_block): ... here.
17575
17576 2014-07-30  Mike Stump  <mikestump@comcast.net>
17577
17578         * configure.ac: Also check for popen.
17579         * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
17580         * configure: Regenerate.
17581         * config.in:  Regenerate.
17582
17583 2014-07-30  Martin Jambor  <mjambor@suse.cz>
17584
17585         * tree-sra.c (sra_ipa_modify_assign): Change type of the first
17586         parameter to gimple.
17587
17588 2014-07-30  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17589
17590         * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
17591         address as second parameter to __tpf_eh_return routine.
17592
17593 2014-07-30  Jiong Wang  <jiong.wang@arm.com>
17594
17595         * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
17596         Thumb2.
17597
17598 2014-07-30  Tom Tromey  <tromey@redhat.com>
17599
17600         PR c/59855
17601         * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
17602         * doc/extend.texi (Type Attributes): Document designated_init
17603         attribute.
17604
17605 2014-07-30  Roman Gareev  <gareevroman@gmail.com>
17606
17607         * graphite-isl-ast-to-gimple.c:
17608         (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
17609         (gcc_expression_from_isl_expression): Pass type to
17610         gcc_expression_from_isl_ast_expr_id.
17611
17612 2014-07-30  Richard Biener  <rguenther@suse.de>
17613
17614         * lto-streamer.h (lto_write_data): New function.
17615         * langhooks.c (lhd_append_data): Do not free block.
17616         * lto-section-out.c (lto_write_data): New function writing
17617         raw data to the current section.
17618         (lto_write_stream): Adjust for langhook semantic change.
17619         (lto_destroy_simple_output_block): Write header directly.
17620         * lto-opts.c (lto_write_options): Write options directly.
17621         * lto-streamer-out.c (produce_asm): Write heaeder directly.
17622         (lto_output_toplevel_asms): Likewise.
17623         (copy_function_or_variable): Copy data directly.
17624         (write_global_references): Output index table directly.
17625         (lto_output_decl_state_refs): Likewise.
17626         (write_symbol): Write data directly.
17627         (produce_symtab): Adjust.
17628         (produce_asm_for_decls): Output header and refs directly.
17629
17630 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17631
17632         * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
17633         to speculative_targets
17634         (get_class_context): Fix handling of contextes without outer type;
17635         avoid matching non-polymorphic types in LTO.
17636         (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
17637         parameter to speculative_targetsp; handle speculation.
17638         (dump_possible_polymorphic_call_targets): Update dumping.
17639
17640 2014-07-29  Jan Hubicka  <hubicka@ucw.cz>
17641
17642         * common.opt (Wodr): Enable by default.
17643
17644 2014-07-29  Olivier Hainque  <hainque@adacore.com>
17645
17646         * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
17647
17648 2014-07-29  H.J. Lu  <hongjiu.lu@intel.com>
17649
17650         PR bootstrap/61914
17651         * gengtype.c (strtoken): New function.
17652         (create_user_defined_type): Replace strtok with strtoken.
17653
17654 2014-07-29  Nathan Sidwell  <nathan@acm.org>
17655
17656         * gcov-io.c (gcov_var): Make hidden.
17657         * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
17658         (gcov_do_dump): Declare.
17659         (gcov_output_files): Call gcov_do_dump, not gcov_exit).
17660
17661 2014-07-29  Martin Jambor  <mjambor@suse.cz>
17662
17663         * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
17664         parameter to gimple.
17665         (sra_modify_assign): Likewise.
17666
17667 2014-07-29  Richard Biener  <rguenther@suse.de>
17668
17669         PR middle-end/52478
17670         * expr.c (expand_expr_real_2): Revert last change.
17671
17672 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17673
17674         * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
17675         * cgraph.h (cgraph_indirect_call_info): Add speculative data.
17676         * gimple-fold.c (fold_gimple_assign): Fix check for virtual
17677         call.
17678         * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
17679         (contains_type_p): Forward declare.
17680         (polymorphic_call_target_hasher::hash): Hash speculative info.
17681         (polymorphic_call_target_hasher::equal): Compare speculative info.
17682         (get_class_context): Handle speuclation.
17683         (contains_type_p): Update.
17684         (get_polymorphic_call_info_for_decl): Update.
17685         (walk_ssa_copies): Break out from ...
17686         (get_polymorphic_call_info): ... here; set speculative context
17687         before giving up.
17688         * ipa-prop.c (ipa_write_indirect_edge_info,
17689         ipa_read_indirect_edge_info): Stream speculative context.
17690         * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
17691         (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
17692         SPECULATIVE_MAYBE_DERIVED_TYPE).
17693         (possible_polymorphic_call_targets overriders): Update.
17694         (dump_possible_polymorphic_call_targets overriders): Update.
17695         (dump_possible_polymorphic_call_target_p overriders): Update.
17696
17697 2014-07-28  Jan Hubicka  <hubicka@ucw.cz>
17698
17699         * gimple-fold.c (fold_gimple_assign): Fix condition guarding
17700         ipa-devirt path; fix thinko there.
17701
17702 2014-07-28  Trevor Saunders  <tsaunders@mozilla.com>
17703
17704         * config/i386/i386.c (ix86_return_in_memory): Replace one
17705         ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
17706
17707 2014-07-28  Marek Polacek  <polacek@redhat.com>
17708
17709         * doc/invoke.texi (-Wno-odr): Fix @item entry.  Tweak wording.
17710
17711 2014-07-28  Peter Bergner  <bergner@vnet.ibm.com>
17712
17713         * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
17714         * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
17715         * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
17716         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17717         (USE_LD_AS_NEEDED): Likewise.
17718         (ASM_APP_ON): Likewise.
17719         (ASM_APP_OFF): Likewise.
17720         (TARGET_POSIX_IO): Likewise.
17721         * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
17722         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
17723         (USE_LD_AS_NEEDED): Likewise.
17724         (ASM_APP_ON): Likewise.
17725         (ASM_APP_OFF): Likewise.
17726         (TARGET_POSIX_IO): Likewise.
17727
17728 2014-07-28  Eric Botcazou  <ebotcazou@adacore.com>
17729
17730         PR middle-end/61734
17731         * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
17732         operators other than the equality operators.
17733
17734 2014-07-28  Richard Biener  <rguenther@suse.de>
17735
17736         PR middle-end/52478
17737         * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
17738         sure to register SImode ones, not only >= word_mode ones.
17739         * expr.c (expand_expr_real_2): When expanding -ftrapv
17740         binops do not use OPTAB_LIB_WIDEN.
17741
17742 2014-07-28  Richard Sandiford  <rdsandiford@googlemail.com>
17743
17744         PR middle-end/61919
17745         * tree-outof-ssa.c (insert_partition_copy_on_edge)
17746         (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
17747         (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
17748         inserting them in the insn stream.
17749
17750 2014-07-28  Marek Polacek  <polacek@redhat.com>
17751
17752         PR middle-end/61913
17753         * common.opt (Wodr): Add Var.
17754
17755 2014-07-28  Richard Biener  <rguenther@suse.de>
17756
17757         PR tree-optimization/61921
17758         * tree-ssa-structalias.c (create_variable_info_for_1): Check
17759         if there is a varpool node before dereferencing it.
17760
17761 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17762
17763         * graphite-sese-to-poly.c:
17764         (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
17765         id of the pbb), which contains pointer to the pbb1.
17766
17767         * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
17768
17769 2014-07-28  Roman Gareev  <gareevroman@gmail.com>
17770
17771         * graphite-isl-ast-to-gimple.c:
17772         (graphite_create_new_guard): New function.
17773         (translate_isl_ast_node_if): New function.
17774         (translate_isl_ast): Add calling of translate_isl_ast_node_if.
17775
17776         * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
17777
17778 2014-07-27  Anthony Green  <green@moxielogic.com>
17779
17780         * config.gcc: Add moxie-*-moxiebox* configuration.
17781         * config/moxie/moxiebox.h: New file.
17782
17783 2014-07-26  Andrew Pinski  <apinski@cavium.com>
17784
17785         * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
17786         from the read only register.
17787
17788 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17789
17790         * ira-costs.c (find_costs_and_classes): For -O0, use the best class
17791         as the allocation class if it isn't likely to be spilled.
17792
17793 2014-07-26  Richard Sandiford  <rdsandiford@googlemail.com>
17794
17795         * rtl.h (tls_referenced_p): Declare.
17796         * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
17797         * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
17798         (mips_cannot_force_const_mem): Use tls_referenced_p.
17799         * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
17800         * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
17801         instead of pa_tls_referenced_p.
17802         * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
17803         (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
17804         (pa_legitimate_constant_p): Likewise.
17805         (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
17806         * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
17807         (rs6000_cannot_force_const_mem, rs6000_emit_move)
17808         (rs6000_address_for_altivec): Use tls_referenced_p instead of
17809         rs6000_tls_referenced_p.
17810         (rs6000_tls_symbol_ref_1): Delete.
17811
17812 2014-07-26  Marc Glisse  <marc.glisse@inria.fr>
17813
17814         PR target/44551
17815         * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
17816         Optimize inverse of a VEC_CONCAT.
17817
17818 2014-07-25  Xinliang David Li  <davidxl@google.com>
17819
17820         * params.def: New parameter.
17821         * coverage.c (get_coverage_counts): Check new flag.
17822         (coverage_compute_profile_id): Check new flag.
17823         (coverage_begin_function): Check new flag.
17824         (coverage_end_function): Check new flag.
17825         * value-prof.c (coverage_node_map_initialized_p): New function.
17826         (init_node_map): Populate map with all functions.
17827         * doc/invoke.texi: Document new parameter.
17828
17829 2014-07-25  Jan Hubicka  <hubicka@ucw.cz>
17830             Richard Biener <rguenther@suse.de>
17831
17832         * lto-streamer-out.c (struct sccs): Turn to ...
17833         (class DFS): ... this one; refactor the DFS walk so it can
17834         be re-done on per-SCC basis.
17835         (DFS::DFS): New constructor.
17836         (DFS::~DFS): New destructor.
17837         (hash_tree): Add new MAP argument holding in-SCC hash values;
17838         remove POINTER_TYPE hashing hack.
17839         (scc_entry_compare): Rename to ...
17840         (DFS::scc_entry_compare): ... this one.
17841         (hash_scc): Rename to ...
17842         (DFS::hash_scc): ... this one; pass output_block instead
17843         of streamer_cache; work harder to get unique and stable SCC
17844         hashes.
17845         (DFS_write_tree): Rename to ...
17846         (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
17847         (lto_output_tree): Update.
17848
17849 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17850
17851         * lto-streamer-out.c (hash_tree): Convert to inchash.
17852
17853 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17854
17855         * tree.c (build_type_attribute_qual_variant): Use inchash.
17856         (type_hash_list): Dito.
17857         (attribute_hash_list): Dito
17858         (iterative_hstate_expr): Dito.
17859         (iterative_hash_expr): Dito.
17860         (build_range_type_1): Dito.
17861         (build_array_type_1): Dito.
17862         (build_function_type): Dito.
17863         (build_method_type_directly): Dito.
17864         (build_offset_type): Dito.
17865         (build_complex_type): Dito.
17866         (make_vector_type): Dito.
17867         * tree.h (iterative_hash_expr): Add compat wrapper.
17868         (iterative_hstate_expr): Add.
17869
17870 2014-07-25  Andi Kleen  <ak@linux.intel.com>
17871
17872         * Makefile.in (OBJS): Add inchash.o.
17873         (PLUGIN_HEADERS): Add inchash.h.
17874         * ipa-devirt.c: Include inchash.h.
17875         * lto-streamer-out.c: Dito.
17876         * tree-ssa-dom.c: Dito.
17877         * tree-ssa-pre.c: Dito.
17878         * tree-ssa-sccvn.c: Dito.
17879         * tree-ssa-tail-merge.c: Dito.
17880         * asan.c: Dito.
17881         * tree.c (iterative_hash_hashval_t): Move to ...
17882         (iterative_hash_host_wide_int): Move to ...
17883         * inchash.c: Here. New file.
17884         * tree.h (iterative_hash_hashval_t): Move to ...
17885         (iterative_hash_host_wide_int): Move to ...
17886         * inchash.h: Here. New file.
17887
17888 2014-07-25  Richard Biener  <rguenther@suse.de>
17889
17890         PR middle-end/61762
17891         PR middle-end/61894
17892         * fold-const.c (native_encode_int): Add and handle offset
17893         parameter to do partial encodings of expr.
17894         (native_encode_fixed): Likewise.
17895         (native_encode_real): Likewise.
17896         (native_encode_complex): Likewise.
17897         (native_encode_vector): Likewise.
17898         (native_encode_string): Likewise.
17899         (native_encode_expr): Likewise.
17900         * fold-const.c (native_encode_expr): Add offset parameter
17901         defaulting to -1.
17902         * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
17903         (fold_ctor_reference): Handle all reads from tcc_constant
17904         ctors.
17905
17906 2014-07-25  Richard Biener  <rguenther@suse.de>
17907
17908         * tree-inline.c (estimate_move_cost): Mark speed_p argument
17909         as possibly unused.
17910
17911 2014-07-23  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
17912
17913         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
17914
17915 2014-07-24  Kyle McMartin  <kyle@redhat.com>
17916
17917         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
17918
17919 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17920
17921         * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
17922         Add prototype.
17923         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
17924         function.
17925         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
17926         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
17927         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
17928
17929 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17930
17931         * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
17932         and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
17933         aggregate types.  Instead, *all* aggregate types, except for single-
17934         element or homogeneous float/vector aggregates, are quadword-aligned
17935         if required by their type alignment.  Issue -Wpsabi note when a type
17936         is now treated differently than before.
17937
17938 2014-07-24  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
17939
17940         * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
17941         does not fit fully into floating-point registers, and there is still
17942         space in the register parameter area, use GPRs to pass those parts
17943         of the argument.  Issue -Wpsabi note if any parameter is now treated
17944         differently than before.
17945         (rs6000_arg_partial_bytes): Update.
17946
17947 2014-07-24  Uros Bizjak  <ubizjak@gmail.com>
17948
17949         * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
17950
17951 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17952
17953         * rtl.h (target_rtl): Remove lang_dependent_initialized.
17954         * toplev.c (initialize_rtl): Don't use it.  Move previously
17955         "language-dependent" calls to...
17956         (backend_init): ...here.
17957         (lang_dependent_init_target): Don't set lang_dependent_initialized.
17958         Assert that RTL initialization hasn't happend yet.
17959
17960 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17961
17962         PR rtl-optimization/61629
17963         * reginfo.c (reinit_regs): Only call ira_init and recog_init if
17964         they have already been initialized.
17965
17966 2014-07-24  Richard Sandiford  <rdsandiford@googlemail.com>
17967
17968         PR middle-end/61268
17969         * function.c (assign_parm_setup_reg): Prevent invalid sharing of
17970         DECL_INCOMING_RTL and entry_parm.
17971         (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
17972         * calls.c (load_register_parameters): Likewise argument values.
17973         (emit_library_call_value_1, store_one_arg): Likewise argument
17974         save areas.
17975         * config/i386/i386.c (assign_386_stack_local): Likewise the local
17976         stack slot.
17977         * explow.c (validize_mem): Modify the argument in-place.
17978
17979 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17980
17981         * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
17982         (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
17983
17984 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17985
17986         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
17987         (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
17988
17989 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17990
17991         * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
17992         (aarch64_save_callee_saves): New parameter "skip_wb".
17993         (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
17994
17995 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
17996
17997         * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
17998         "wb_candidate2".
17999         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
18000
18001 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18002
18003         * graphite-isl-ast-to-gimple.c:
18004         (graphite_create_new_loop): Add calling of isl_id_free to properly
18005         decrement reference counts.
18006
18007         * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
18008
18009 2014-07-24  Martin Liska  <mliska@suse.cz>
18010         * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
18011         function used.
18012         * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
18013         (rs6000_code_end): Likewise.
18014
18015 2014-07-24  Martin Liska  <mliska@suse.cz>
18016
18017         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
18018         symtab_node funtion used.
18019         (rs6000_xcoff_declare_object_name): Likewise.
18020
18021 2014-07-24  Martin Liska  <mliska@suse.cz>
18022
18023         * cgraphunit.c (compile): Correct function used.
18024
18025 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18026
18027         * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
18028         as non-indexable.
18029
18030 2014-07-24  Jan Hubicka  <hubicka@ucw.cz>
18031
18032         PR lto/61802
18033         * varasm.c (bss_initializer_p): Handle offlined ctors.
18034         (align_variable, get_variable_align): Likewise.
18035         (make_decl_one_only): Likewise.
18036         (default_binds_local_p_1): Likewise.
18037         (decl_binds_to_current_def_p): Likewise.
18038         (get_variable_section): Get constructor if it is offlined.
18039         (assemble_variable_contents): Sanity check that the caller
18040         streamed in the ctor in LTO.
18041
18042 2014-07-24  Roman Gareev  <gareevroman@gmail.com>
18043
18044         * graphite-isl-ast-to-gimple.c:
18045         (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
18046         (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
18047         isl_ast_op_pdiv_r to the different case.
18048
18049         * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
18050
18051 2014-07-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18052
18053         PR middle-end/61876
18054         * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
18055         when flag_errno_math is on.
18056
18057 2014-07-24  Martin Liska  <mliska@suse.cz>
18058
18059         * cgraph.h (varpool_node):
18060         (availability get_availability (void)):
18061         created from cgraph_variable_initializer_availability
18062         (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
18063         created from: cgraph_variable_initializer_availability
18064         (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
18065         (void finalize_named_section_flags (void)):
18066         created from varpool_finalize_named_section_flags
18067         (bool assemble_decl (void)): created from varpool_assemble_decl
18068         (void analyze (void)): created from varpool_analyze_node
18069         (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
18070         void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
18071         (void remove_initializer (void)): created from varpool_remove_initializer
18072         (tree get_constructor (void)): created from varpool_get_constructor
18073         (bool externally_visible_p (void)): created from varpool_externally_visible_p
18074         (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
18075         (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
18076         (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
18077         (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
18078         (static void finalize_decl (tree decl)): created from varpool_finalize_decl
18079         (static bool output_variables (void)): created from varpool_output_variables
18080         (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
18081         created from varpool_extra_name_alias
18082         (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
18083         (static void dump_varpool (FILE *f)): created from dump_varpool
18084         (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
18085         (static varpool_node *create_empty (void)): created from varpool_create_empty_node
18086         (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
18087         (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
18088         (void assemble_aliases (void)): created from assemble_aliases
18089
18090 2014-07-24  Martin Liska  <mliska@suse.cz>
18091
18092         * cgraph.h (symtab_node):
18093         (void register_symbol (void)): created from symtab_register_node
18094         (void remove (void)): created from symtab_remove_node
18095         (void dump (FILE *f)): created from dump_symtab_node
18096         (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
18097         (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
18098         (struct ipa_ref *add_reference (symtab_node *referred_node,
18099         enum ipa_ref_use use_type)): created from add_reference
18100         (struct ipa_ref *add_reference (symtab_node *referred_node,
18101         enum ipa_ref_use use_type, gimple stmt)): created from add_reference
18102         (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
18103         gimple stmt)): created from maybe_add_reference
18104         (bool semantically_equivalent_p (symtab_node *target)): created from
18105         symtab_semantically_equivalent_p
18106         (void remove_from_same_comdat_group (void)): created from
18107         remove_from_same_comdat_group
18108         (void add_to_same_comdat_group (symtab_node *old_node)): created from
18109         symtab_add_to_same_comdat_group
18110         (void dissolve_same_comdat_group_list (void)): created from
18111         symtab_dissolve_same_comdat_group_list
18112         (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
18113         (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
18114         created from symtab_alias_ultimate_target
18115         (inline symtab_node *next_defined_symbol (void)): created from
18116         symtab_next_defined_symbol
18117         (bool resolve_alias (symtab_node *target)): created from
18118         symtab_resolve_alias
18119         (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
18120         void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
18121         (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
18122         (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
18123         (void set_section (const char *section)): created from set_section_1
18124         (enum availability get_availability (void)): created from symtab_node_availability
18125         (void make_decl_local (void)): created from symtab_make_decl_local
18126         (bool real_symbol_p (void)): created from symtab_read_node
18127         (can_be_discarded_p (void)): created from symtab_can_be_discarded
18128         (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
18129         (inline bool in_same_comdat_group_p (symtab_node *target)): created from
18130         symtab_in_same_comdat_p;
18131         (bool address_taken_from_non_vtable_p (void)): created from
18132         address_taken_from_non_vtable_p
18133         (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
18134         (static void dump_table (FILE *)): created from dump_symtab
18135         (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
18136         (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
18137         (static bool used_from_object_file_p_worker (symtab_node *node)): created from
18138         symtab_used_from_object_file_p
18139         (void dump_base (FILE *)): created from dump_symtab_base
18140         (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
18141         (void unregister (void)): created from symtab_unregister_node
18142         (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
18143         (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
18144         (static bool noninterposable_alias (symtab_node *node, void *data)): created from
18145         symtab_nonoverwritable_alias_1
18146         * cgraph.h (cgraph_node):
18147         (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
18148         created from cgraph_remove_node_and_inline_clones
18149         (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
18150         (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
18151         bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
18152         (cgraph_node *function_symbol (enum availability *avail = NULL)):
18153         created from cgraph_function_node
18154         (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
18155         vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
18156         struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
18157         created from cgraph_create_clone
18158         (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
18159         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
18160         created from cgraph_create_virtual_clone
18161         (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
18162         (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
18163         bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
18164         (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
18165         vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
18166         bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
18167         created from cgraph_function_version_info
18168         (struct cgraph_function_version_info *insert_new_function_version (void)):
18169         created from insert_new_cgraph_node_version
18170         (struct cgraph_function_version_info *function_version (void)): created from
18171         get_cgraph_node_version
18172         (void analyze (void)): created from analyze_function
18173         (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
18174         HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
18175         tree real_alias) cgraph_add_thunk
18176         (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
18177         (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
18178         created from cgraph_function_or_thunk_node
18179         (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
18180         created from expand_thunk
18181         (void reset (void)): created from cgraph_reset_node
18182         (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
18183         (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
18184         (void remove (void)): created from cgraph_remove_node
18185         (void dump (FILE *f)): created from dump_cgraph_node
18186         (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
18187         (bool get_body (void)): created from cgraph_get_body
18188         (void release_body (void)): created from cgraph_release_function_body
18189         (void unnest (void)): created from cgraph_unnest_node
18190         (void make_local (void)): created from cgraph_make_node_local
18191         (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
18192         (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
18193         gcov_type count, int freq)): created from cgraph_create_edge
18194         (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
18195         gcov_type count, int freq)): created from cgraph_create_indirect_edge
18196         (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
18197         gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
18198         created from cgraph_create_edge_including_clones
18199         (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
18200         (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
18201         (void remove_callers (void)): created from cgraph_node_remove_callers
18202         (void remove_callees (void)): created from cgraph_node_remove_callees
18203         (enum availability get_availability (void)): created from cgraph_function_body_availability
18204         (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
18205         (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
18206         (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
18207         (void call_duplication_hooks (cgraph_node *node2)): created from
18208         cgraph_call_node_duplication_hooks
18209         (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
18210         void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
18211         (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
18212         void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
18213         (void call_function_insertion_hooks (void)):
18214         created from cgraph_call_function_insertion_hooks
18215         (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
18216         (bool local_p (void)): created from cgraph_local_node
18217         (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
18218         (bool cannot_return_p (void)): created from cgraph_node_cannot_return
18219         (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
18220         (inline bool only_called_directly_or_aliased_p (void)):
18221         created from cgraph_only_called_directly_or_aliased_p
18222         (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
18223         created from cgraph_will_be_removed_from_program_if_no_direct_calls
18224         (bool can_remove_if_no_direct_calls_and_refs_p (void)):
18225         created from cgraph_can_remove_if_no_direct_calls_and_refs_p
18226         (bool can_remove_if_no_direct_calls_p (void)):
18227         created from cgraph_can_remove_if_no_direct_calls_p
18228         (inline bool has_gimple_body_p (void)):
18229         created from cgraph_function_with_gimple_body_p
18230         (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
18231         (static void dump_cgraph (FILE *f)): created from dump_cgraph
18232         (static inline void debug_cgraph (void)): created from debug_cgraph
18233         (static void record_function_versions (tree decl1, tree decl2)):
18234         created from record_function_versions
18235         (static void delete_function_version (tree decl)):
18236         created from delete_function_version
18237         (static void add_new_function (tree fndecl, bool lowered)):
18238         created from cgraph_add_new_function
18239         (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
18240         (static cgraph_node * create (tree decl)): created from cgraph_create_node
18241         (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
18242         (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
18243         (static cgraph_node *get_for_asmname (tree asmname)):
18244         created from cgraph_node_for_asm
18245         (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
18246         created from cgraph_same_body_alias
18247         (static bool used_from_object_file_p_worker (cgraph_node *node,
18248         void *): new function
18249         (static bool non_local_p (cgraph_node *node, void *)):
18250         created from cgraph_non_local_node_p_1
18251         (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
18252         created from verify_cgraph
18253         (static bool make_local (cgraph_node *node, void *)):
18254         created from cgraph_make_node_local
18255         (static cgraph_node *create_alias (tree alias, tree target)):
18256         created from cgraph_create_function_alias
18257         (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
18258         gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
18259         created from cgraph_create_edge_1
18260         * cgraph.h (varpool_node):
18261         (void remove (void)): created from varpool_remove_node
18262         (void dump (FILE *f)): created from dump_varpool_node
18263
18264 2014-07-24  Richard Biener  <rguenther@suse.de>
18265
18266         PR ipa/61823
18267         * tree-ssa-structalias.c (create_variable_info_for_1):
18268         Use varpool_get_constructor.
18269         (create_variable_info_for): Likewise.
18270
18271 2014-07-24  Jiong Wang  <jiong.wang@arm.com>
18272
18273         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
18274         subtract outgoing area size when restoring stack_pointer_rtx.
18275
18276 2014-07-24  Nick Clifton  <nickc@redhat.com>
18277
18278         * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
18279         that operations are taking place in parallel.
18280         * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
18281
18282 2014-07-24  Thomas Schwinge  <thomas@codesourcery.com>
18283
18284         * omp-low.c (extract_omp_for_data): Add missing break statement.
18285
18286 2014-07-24  Richard Biener  <rguenther@suse.de>
18287
18288         * tree-inline.h (estimate_move_cost): Add speed_p parameter.
18289         * tree-inline.c (estimate_move_cost): Add speed_p parameter
18290         and adjust MOVE_RATIO query accordingly.
18291         (estimate_num_insns): Adjust callers.
18292         * ipa-prop.c (ipa_populate_param_decls): Likewise.
18293         * ipa-cp.c (gather_context_independent_values,
18294         estimate_local_effects): Likewise.
18295         * ipa-split.c (consider_split): Likewise.
18296
18297 2014-07-24  Trevor Saunders  <tsaunders@mozilla.com>
18298
18299         * config/i386/driver-i386.c: Remove names of unused arguments and
18300         unnecessary unused attributes.
18301         * config/i386/host-mingw32.c: Likewise.
18302         * config/i386/i386.c: Likewise.
18303         * config/i386/winnt-stubs.c: Likewise.
18304         * config/i386/winnt.c: Likewise.
18305
18306 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18307
18308         * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
18309         (aarch64_gen_loadwb_pair): New helper function.
18310         (aarch64_expand_epilogue): Simplify code using new helper functions.
18311         * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
18312
18313 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18314
18315         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
18316         (aarch64_gen_storewb_pair): New helper function.
18317         (aarch64_expand_prologue): Simplify code using new helper functions.
18318         * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
18319
18320 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18321
18322         * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
18323         Rename to aarch64_save_callee_saves, remove restore code.
18324         (aarch64_restore_callee_saves): New function.
18325
18326 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18327
18328         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
18329         (aarch64_save_callee_saves): New function to handle reg save
18330         for both core and vectore regs.
18331
18332 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18333
18334         * config/aarch64/aarch64.c (aarch64_gen_load_pair)
18335         (aarch64_gen_store_pair): New helper function.
18336         (aarch64_save_or_restore_callee_save_registers)
18337         (aarch64_save_or_restore_fprs): Use new helper functions.
18338
18339 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18340
18341         * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
18342         (aarch64_save_or_restore_callee_save_registers)
18343         (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
18344
18345 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18346
18347         * config/aarch64/aarch64.c
18348         (aarch64_save_or_restore_callee_save_registers)
18349         (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
18350
18351 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18352
18353         * config/aarch64/aarch64.c
18354         (aarch64_save_or_restore_callee_save_registers)
18355         (aarch64_save_or_restore_fprs): Remove 'increment'.
18356
18357 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18358
18359         * config/aarch64/aarch64.c
18360         (aarch64_save_or_restore_callee_save_registers)
18361         (aarch64_save_or_restore_fprs): Use register offset in
18362         cfun->machine->frame.reg_offset.
18363
18364 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18365
18366         * config/aarch64/aarch64.c
18367         (aarch64_save_or_restore_callee_save_registers)
18368         (aarch64_save_or_restore_fprs): Remove base_rtx.
18369
18370 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18371
18372         * config/aarch64/aarch64.c
18373         (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
18374         to 'start_offset'.  Remove local variable 'start_offset'.
18375
18376 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18377
18378         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
18379         type to HOST_WIDE_INT.
18380
18381 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18382
18383         * config/aarch64/aarch64.c (aarch64_expand_prologue)
18384         (aarch64_save_or_restore_fprs)
18385         (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
18386
18387 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18388
18389         * config/arm/t-rtems-eabi: Add
18390         mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
18391         mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
18392         mbig-endian/mthumb/march=armv7-r, and
18393         mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
18394         multilibs.
18395
18396 2014-07-23  Sebastian Huber  <sebastian.huber@embedded-brains.de>
18397             Chris Johns <chrisj@rtems.org>
18398             Joel Sherrill <joel.sherrill@oarcorp.com>
18399
18400         * config.gcc: Add nios2-*-rtems*.
18401         * config/nios2/rtems.h: New file.
18402         * gcc/config/nios2/t-rtems: New file.
18403
18404 2014-07-23  Segher Boessenkool  <segher@kernel.crashing.org>
18405
18406         PR target/61396
18407         * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
18408         constant numbers, not general constants.
18409         (rs6000_expand_vector_init): Ditto.
18410
18411 2014-07-23  Nathan Sidwell  <nathan@acm.org>
18412
18413         * gcov-tool.c (gcov_list): Declare here.
18414         (set_gcov_list): Remove.
18415         (gcov_output_files): Set gcov_list directly.
18416
18417 2014-07-23  Host Schirmeier  <horst@schirmeier.com>
18418
18419         * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
18420
18421 2014-07-23  Jiong Wang  <jiong.wang@arm.com>
18422
18423         * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
18424         callee-saved registers are available for padding purpose
18425         and r3 is not mandatory, then prefer use those callee-saved
18426         instead of r3.
18427
18428 2014-07-23  Richard Biener  <rguenther@suse.de>
18429
18430         * params.def (PARAM_MAX_COMBINE_INSNS): New.
18431         * combine.c: Include statistics.h and params.h.
18432         (combine_instructions): Guard three and four insn combines
18433         with max-combine-insns value.  Record statistics for combines
18434         performed.
18435         * doc/invoke.texi (max-combine-insns): Document new param.
18436
18437 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18438
18439         * graphite-isl-ast-to-gimple.c:
18440         (translate_isl_ast_node_block): New function.
18441         (translate_isl_ast): Add calling of translate_isl_ast_node_block.
18442
18443         * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
18444         * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
18445
18446 2014-07-23  Roman Gareev  <gareevroman@gmail.com>
18447
18448         * graphite-isl-ast-to-gimple.c:
18449         (get_max_schedule_dimensions): New function.
18450         (extend_schedule): Likewise.
18451         (generate_isl_schedule): Add calling of extend_schedule and
18452         get_max_schedule_dimensions.
18453
18454 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18455
18456         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
18457         (case UNSPEC): Handle UNSPEC_RBIT.
18458
18459 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18460
18461         * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
18462         (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
18463
18464 2014-07-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18465
18466         * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
18467
18468 2014-07-22  Roman Gareev  <gareevroman@gmail.com>
18469
18470         * graphite-isl-ast-to-gimple.c:
18471         Add inclusion of gimple-ssa.h, tree-into-ssa.h.
18472         (ivs_params_clear):
18473         (build_iv_mapping): New function.
18474         (translate_isl_ast_node_user): Likewise.
18475         (translate_isl_ast): Add calling of translate_isl_ast_node_user.
18476
18477         * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
18478         * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
18479         * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
18480
18481 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18482
18483         PR target/55701
18484         * config/arm/arm.md (setmem): New pattern.
18485         * config/arm/arm-protos.h (struct tune_params): New fields.
18486         (arm_gen_setmem): New prototype.
18487         * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
18488         (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
18489         (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
18490         (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
18491         (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
18492         (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
18493         (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
18494         (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
18495         (arm_const_inline_cost): New function.
18496         (arm_block_set_max_insns): New function.
18497         (arm_block_set_non_vect_profit_p): New function.
18498         (arm_block_set_vect_profit_p): New function.
18499         (arm_block_set_unaligned_vect): New function.
18500         (arm_block_set_aligned_vect): New function.
18501         (arm_block_set_unaligned_non_vect): New function.
18502         (arm_block_set_aligned_non_vect): New function.
18503         (arm_block_set_vect, arm_gen_setmem): New functions.
18504
18505 2014-07-21  Bin Cheng  <bin.cheng@arm.com>
18506
18507         * config/arm/arm.c (output_move_neon): Handle REG explicitly.
18508
18509 2014-07-21  Uros Bizjak  <ubizjak@gmail.com>
18510
18511         PR target/61855
18512         * config/i386/avx512fintrin.h: Move constants for mantissa extraction
18513         out of #ifdef __OPTIMIZE__.
18514
18515 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18516
18517         * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
18518         different trapping status if -fnon-call-exceptions is enabled.
18519
18520 2014-07-20  Eric Botcazou  <ebotcazou@adacore.com>
18521
18522         * expr.c (store_field): Handle VOIDmode for calls that return values
18523         in multiple locations.
18524
18525 2014-07-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18526
18527         * config/rs6000/altivec.md (unspec enum):  Fix typo in UNSPEC_VSLDOI.
18528         (altivec_vsldoi_<mode>): Likewise.
18529
18530 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18531
18532         * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
18533         to the number of characters in the line.
18534
18535 2014-07-20  Roman Gareev  <gareevroman@gmail.com>
18536
18537         * graphite-isl-ast-to-gimple.c: Add using of
18538         build_nonstandard_integer_type instead of int128_integer_type_node.
18539
18540 2014-07-19  Eric Botcazou  <ebotcazou@adacore.com>
18541
18542         * toplev.c (output_stack_usage): Adjust the location of the warning.
18543
18544 2014-07-19  Daniel Cederman  <cederman@gaisler.com>
18545
18546         * config/sparc/sync.md (*membar_storeload_leon3): New insn.
18547         (*membar_storeload): Disable for LEON3.
18548
18549 2014-07-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
18550
18551         PR rtl-optimization/61461
18552         * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
18553
18554 2014-07-18  Uros Bizjak  <ubizjak@gmail.com>
18555
18556         PR target/61794
18557         * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
18558         Fix instruction constraint.
18559         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
18560
18561 2014-07-18  Jonathan Wakely  <jwakely@redhat.com>
18562
18563         * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
18564
18565 2014-07-18  Chung-Ju Wu  <jasonwucj@gmail.com>
18566
18567         * config/nds32/nds32.c (nds32_can_eliminate): Follow the
18568         GNU coding standards.
18569         (nds32_register_move_cost): Likewise.
18570         (nds32_memory_move_cost): Likewise.
18571         (nds32_address_cost): Likewise.
18572
18573 2014-07-18  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
18574
18575         * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
18576
18577 2014-07-17  John David Anglin  <danglin@gcc.gnu.org>
18578
18579         * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
18580         __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
18581         and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
18582         (HAVE_sync_compare_and_swapqi): Define.
18583         (HAVE_sync_compare_and_swaphi): Likewise.
18584         (HAVE_sync_compare_and_swapsi): Likewise.
18585
18586 2014-07-17  Richard Sandiford  <rdsandiford@googlemail.com>
18587
18588         * config/mips/p5600.md: Add missing cpu tests.
18589
18590 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18591
18592         * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
18593         (vmla_f64): Likewise.
18594         (vfms_f64): Likewise.
18595         (vmls_f64): Likewise.
18596
18597 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18598
18599         * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
18600         (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
18601
18602 2014-07-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18603
18604         * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
18605         (vmlal_high_lane_s32): Likewise.
18606         (vmlal_high_lane_u16): Likewise.
18607         (vmlal_high_lane_u32): Likewise.
18608         (vmlsl_high_lane_s16): Likewise.
18609         (vmlsl_high_lane_s32): Likewise.
18610         (vmlsl_high_lane_u16): Likewise.
18611         (vmlsl_high_lane_u32): Likewise.
18612
18613 2014-07-17  Terry Guo  <terry.guo@arm.com>
18614
18615         * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
18616         (alus_reg): Renamed to alus_sreg.
18617         * config/arm/arm-fixed.md: Change type of non-dsp instructions
18618         from alu_reg to alu_sreg.  Change type of dsp instructions from
18619         alu_reg to alu_dsp_reg.
18620         * config/arm/thumb1.md: Likewise.
18621         * config/arm/thumb2.md: Likewise.
18622         * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
18623         * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
18624         with alu_sreg and alus_sreg.
18625         * config/arm/arm1026ejs.md (alu_op): Likewise.
18626         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
18627         * config/arm/arm926ejs.md (9_alu_op): Likewise.
18628         * config/arm/fa526.md (526_alu_op): Likewise.
18629         * config/arm/fa606te.md (606te_alu_op): Likewise.
18630         * config/arm/fa626te.md (626te_alu_op): Likewise.
18631         * config/arm/fa726te.md (726te_alu_op): Likewise.
18632         * config/arm/fmp626.md (mp626_alu_op): Likewise.
18633         * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
18634         alu_sreg, alu_dsp_reg and alus_sreg.
18635         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
18636         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18637         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18638         * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
18639         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
18640         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18641         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18642         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18643         * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
18644         * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
18645         subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
18646         *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
18647         (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
18648         sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
18649         subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
18650         alus_reg to alus_sreg.
18651
18652 2014-07-17  Andreas Schwab  <schwab@linux-m68k.org>
18653
18654         * real.c (encode_ieee_extended_motorola): Clear integer bit in the
18655         infinity format.
18656
18657 2014-07-17  Richard Biener  <rguenther@suse.de>
18658
18659         PR rtl-optimization/61801
18660         * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
18661         don't set reg_pending_barrier if it appears in a debug-insn.
18662
18663 2014-07-16  DJ Delorie  <dj@redhat.com>
18664
18665         * config/rx/rx.c (rx_option_override): Fix alignment values.
18666         (rx_align_for_label): Likewise.
18667
18668 2014-07-17  Hans-Peter Nilsson  <hp@axis.com>
18669
18670         PR target/61737.
18671         * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
18672         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
18673         (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
18674         functions.
18675         (cris_print_index, cris_print_operand, cris_constant_index_p)
18676         (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
18677         (cris_address_cost): Ditto last CONSTANT_P.
18678         (cris_symbol_type_of): Rename from cris_pic_symbol_type_of.  All
18679         callers changed.  Yield cris_offsettable_symbol for non-PIC
18680         constant symbolic expressions including labels.  Yield cris_unspec
18681         for all unspecs.
18682         (cris_expand_pic_call_address): New parameter MARKERP.  Set its
18683         target to pic_offset_table_rtx for calls that will likely go
18684         through PLT, const0_rtx when they can't.  All callers changed.
18685         Assert flag_pic.  Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
18686         symbolic expressions to be PICified.  Remove second, redundant,
18687         assert on can_create_pseudo_p returning non-zero.  Use
18688         replace_equiv_address_nv, not replace_equiv_address, for final
18689         operand update.
18690         * config/cris/cris.md ("movsi"): Move variable t to pattern
18691         toplevel. Adjust assert for new cris_symbol_type member.  Use
18692         CONSTANT_P instead of CONSTANT_ADDRESS_P.
18693         ("*movsi_internal") <case 9>: Make check for valid unspec operands
18694         for lapc stricter.
18695         <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
18696         ("call", "call_value"): Use second incoming operand as a marker
18697         for pic-offset-table-register being used.
18698         ("*expanded_call_non_v32", "*expanded_call_v32")
18699         ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
18700         second incoming operand to CALL, match cris_call_type_marker.
18701         ("*expanded_call_value_side"): Ditto.  Disable before reload_completed.
18702         ("*expanded_call_side"): Ditto.  Fix typo in comment.
18703         (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
18704         CONSTANT_P.
18705         * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
18706         * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
18707         (enum cris_symbol_type): Rename from cris_pic_symbol_type.  All
18708         users changed.  Add members cris_offsettable_symbol and cris_unspec.
18709         (cris_symbol_type): Rename from cris_pic_symbol_type.
18710         * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
18711         just CONSTANT_P.
18712         * config/cris/cris-protos.h (cris_symbol_type_of,
18713         cris_expand_pic_call_address): Adjust prototypes.
18714         (cris_legitimate_constant_p): New prototype.
18715
18716         * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
18717         an existing tmake_file.  Don't add t-slibgcc and t-linux.
18718
18719 2014-07-17  Jason Merrill  <jason@redhat.com>
18720
18721         PR c++/61623
18722         * symtab.c (symtab_remove_from_same_comdat_group): Also
18723         set_comdat_group to NULL_TREE.
18724         (verify_symtab): Fix diagnostic.
18725
18726 2014-07-16  David Wohlferd  <dw@LimeGreenSocks.com>
18727
18728         PR target/61662
18729         * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
18730
18731 2014-07-16  Dodji Seketeli  <dodji@redhat.com>
18732
18733         Support location tracking for built-in macro tokens
18734         * input.h (is_location_from_builtin_token): New function declaration.
18735         * input.c (is_location_from_builtin_token): New function definition.
18736         * toplev.c (general_init): Tell libcpp what the pre-defined
18737         spelling location for built-in tokens is.
18738
18739 2014-07-16  Jakub Jelinek  <jakub@redhat.com>
18740
18741         * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
18742         on the FUNCTION_DECL.
18743
18744 2014-07-16  Richard Biener  <rguenther@suse.de>
18745
18746         PR other/61782
18747         * doc/extend.texi (always_inline): Clarify.
18748
18749 2014-07-15  Eric Christopher  <echristo@gmail.com>
18750
18751         * doc/invoke.texi (Link Options): Document -z option.
18752
18753 2014-07-15  Uros Bizjak  <ubizjak@gmail.com>
18754
18755         * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
18756         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
18757
18758 2014-07-15  Jan Hubicka  <hubicka@ucw.cz>
18759
18760         * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
18761
18762 2014-07-15  Bernd Schmidt  <bernds@codesourcery.com>
18763
18764         * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
18765         varpool_assemble_decl.
18766         * varpool.c (varpool_assemble_decl): Assert that node->definition is
18767         true.
18768
18769 2014-07-15  Michael Matz  <matz@suse.de>
18770
18771         PR rtl-optimization/61772
18772         * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
18773
18774 2014-07-15  Richard Biener  <rguenther@suse.de>
18775
18776         * opts.c (default_options_table): Disable bit-ccp at -Og.
18777
18778 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18779
18780         * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
18781
18782 2014-07-14  Jan Hubicka  <hubicka@ucw.cz>
18783
18784         * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
18785         NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
18786         call langhook for unknown declaration.
18787         (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
18788         * tree.h (DECL_ARGUMENTS): Update.
18789         * print-tree.c (print_node): Update.
18790         * tree-core.h (tree_decl_non_common): Remove arguments.
18791         (tree_function_decl): Add arguments.
18792
18793 2014-07-14  Richard Earnshaw  <rearnsha@arm.com>
18794
18795         * aarch64.md (add_losym_<mode>): Set type to alu_imm.
18796
18797 2014-07-14  Richard Biener  <rguenther@suse.de>
18798
18799         PR tree-optimization/61779
18800         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
18801         simplifying a condition.
18802
18803 2014-07-14  Richard Biener  <rguenther@suse.de>
18804
18805         * builtins.c (c_strlen): Make only_value == 2 really only
18806         affect warning generation.
18807
18808 2014-07-14  Richard Biener  <rguenther@suse.de>
18809
18810         PR tree-optimization/61757
18811         PR tree-optimization/61783
18812         PR tree-optimization/61787
18813         * tree-ssa-dom.c (record_equality): Revert canonicalization
18814         change and add comment.
18815         (propagate_rhs_into_lhs): Revert previous fix, removing
18816         loop depth restriction again.
18817
18818 2014-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18819
18820         * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
18821         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
18822         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
18823         * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
18824         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
18825         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
18826         * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
18827
18828 2014-07-14  Richard Biener  <rguenther@suse.de>
18829
18830         * cgraph.h (decl_in_symtab_p): Make inline.
18831
18832 2014-07-14  Jakub Jelinek  <jakub@redhat.com>
18833
18834         PR middle-end/61294
18835         * doc/invoke.texi (-Wmemset-transposed-args): Document.
18836
18837         PR target/61656
18838         * config/i386/i386.c (classify_argument): Don't merge classes above
18839         number of words.
18840
18841 2014-07-13  Jan Hubicka  <hubicka@ucw.cz>
18842
18843         * cgraph.h (symtab_node): Add nonzero_address.
18844         (decl_in_symtab_p): Break out from ...
18845         (symtab_get_node): ... here.
18846         * fold-const.c: Include cgraph.h
18847         (tree_single_nonzero_warnv_p): Use symtab to determine
18848         if symbol is non-zero.
18849         * symtab.c (symtab_node::nonzero_address): New method.
18850
18851 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18852
18853         * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
18854         forgotten in previous commit.
18855
18856 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18857
18858         * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
18859         on builtin types.
18860         * ipa-devirt.c: Include stor-layout.h and intl.h
18861         (odr_subtypes_equivalent_p): New function.
18862         (warn_odr): New function.
18863         (warn_type_mismatch): New function.
18864         (odr_types_equivalent_p): New function.
18865         (add_type_duplicate): Use it.
18866         * common.opt (Wodr): New flag.
18867         * doc/invoke.texi (Wodr): Document new warning.
18868
18869 2014-07-12  Jan Hubicka  <hubicka@ucw.cz>
18870
18871         * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
18872         (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
18873         * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
18874         (varpool_get_constructor): Push CTORS_IN timevar.
18875         * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
18876
18877 2014-07-12  Uros Bizjak  <ubizjak@gmail.com>
18878
18879         * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
18880         Remove VOID_FTYPE_PUSHORT.
18881         * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
18882         Change code to USHORT_FTYPE_VOID.
18883         (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
18884         (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
18885         (ix86_atomic_assign_expand_fenv): Update for
18886         __builtin_ia32_fnstsw changes.
18887         * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
18888         (fnstsw): Change operand 0 to nonimmediate operand.
18889
18890 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18891
18892         * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
18893         (varpool_get_constructor): New function.
18894         (varpool_ctor_useable_for_folding_p): Break out from ...
18895         (ctor_for_folding): ... here; use varpool_get_constructor.
18896         (varpool_assemble_decl): Likewise.
18897         * lto-streamer.h (struct output_block): Turn cgraph_node
18898         to symbol filed.
18899         (lto_input_variable_constructor): Declare.
18900         * ipa-visibility.c (function_and_variable_visibility): Use
18901         varpool_get_constructor.
18902         * cgraph.h (varpool_get_constructor): Declare.
18903         (varpool_ctor_useable_for_folding_p): New function.
18904         * lto-streamer-out.c (get_symbol_initial_value): Take encoder
18905         parameter; return error_mark_node for non-trivial constructors.
18906         (lto_write_tree_1, DFS_write_tree): Update use of
18907         get_symbol_initial_value.
18908         (output_function): Update initialization of symbol.
18909         (output_constructor): New function.
18910         (copy_function): Rename to ..
18911         (copy_function_or_variable): ... this one; handle vars too.
18912         (lto_output): Output variable sections.
18913         * lto-streamer-in.c (input_constructor): New function.
18914         (lto_read_body): Rename from ...
18915         (lto_read_body_or_constructor): ... this one; handle vars too.
18916         (lto_input_variable_constructor): New function.
18917         * ipa-prop.c (ipa_prop_write_jump_functions,
18918         ipa_prop_write_all_agg_replacement): Update.
18919         * lto-cgraph.c (compute_ltrans_boundary): Use it.
18920         (output_cgraph_opt_summary): Set symbol to NULL.
18921
18922 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18923
18924         * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
18925         non-polymorphic types.
18926         * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
18927         * ipa-devirt.c (types_same_for_odr): Do not explode when one
18928         of types is not polymorphic.
18929
18930 2014-07-11  Vladimir Makarov  <vmakarov@redhat.com>
18931
18932         * lra-constraints.c (remove_inheritance_pseudos): Process
18933         destination pseudo too.
18934
18935 2014-07-11  Rong Xu  <xur@google.com>
18936
18937         * gcov-tool.c (gcov_output_files): Fix build error introduced in
18938         commit r212448.
18939
18940 2014-07-11  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
18941
18942         * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
18943         * config/avr/avr-devices.c (AVR_MCU): Same.
18944         (avr_mcu_types): add text start value to end of device list.
18945         * config/avr/avr-mcus.def: Add text section start for all devices.
18946         (ata5782): Add new avr5 device.
18947         (ata5831): Same.
18948         * config/avr/avr-tables.opt: Regenerate.
18949         * config/avr/avr.h: Add declaration for text section start handler.
18950         (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
18951         SPEC functions.
18952         (LINK_SPEC): Include text section start handler to linker spec.
18953         * config/avr/driver-avr.c (avr_device_to_text_start): New function to
18954         pass -Ttext option to linker if the text section start for the device
18955         is not zero.
18956         * config/avr/t-multilib: Regenerate.
18957         * doc/avr-mmcu.texi: Regenerate.
18958
18959 2014-07-11  David Edelsohn  <dje.gcc@gmail.com>
18960
18961         * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
18962         * config/rs6000/aix52.h (LINK_SPEC): Same.
18963         * config/rs6000/aix53.h (LINK_SPEC): Same.
18964         * config/rs6000/aix61.h (LINK_SPEC): Same.
18965         * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
18966
18967 2014-07-11  Roman Gareev  <gareevroman@gmail.com>
18968
18969         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
18970         (graphite_verify): New function.
18971         (ivs_params_clear): New function.
18972         (gcc_expression_from_isl_ast_expr_id): New function.
18973         (gcc_expression_from_isl_expr_int): New function.
18974         (binary_op_to_tree): New function.
18975         (ternary_op_to_tree): New function.
18976         (unary_op_to_tree): New function.
18977         (nary_op_to_tree): New function.
18978         (gcc_expression_from_isl_expr_op): New function.
18979         (gcc_expression_from_isl_expression): New function.
18980         (graphite_create_new_loop): New function.
18981         (translate_isl_ast_for_loop): New function.
18982         (get_upper_bound): New function.
18983         (graphite_create_new_loop_guard): New function.
18984         (translate_isl_ast_node_for): New function.
18985         (translate_isl_ast): New function.
18986         (add_parameters_to_ivs_params): New function.
18987         (scop_to_isl_ast): New parameter ip.
18988         (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
18989
18990 2014-07-11  Jan Hubicka  <hubicka@ucw.cz>
18991
18992         * config/xtensa/predicates.md (call expander): Update for
18993         DECL_SECTION_NAME being string.
18994
18995 2014-07-11  Richard Biener  <rguenther@suse.de>
18996
18997         PR middle-end/61473
18998         * builtins.c (fold_builtin_memory_op): Inline memory moves that
18999         can be implemented with a single load followed by a single store.
19000         (c_strlen): Only warn when only_value is not 2.
19001
19002 2014-07-11  Evgeny Stupachenko  <evstupac@gmail.com>
19003
19004         * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
19005
19006 2014-07-11  Marat Zakirov  <m.zakirov@samsung.com>
19007
19008         PR target/61561
19009         * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
19010         (*movhi_bytes): Likewise.
19011         (*arm_movqi_insn): Likewise.
19012
19013 2014-07-11  Uros Bizjak  <ubizjak@gmail.com>
19014
19015         PR target/56858
19016         * config/alpha/alpha.c: Include tree-pass.h, context.h
19017         and pass_manager.h.
19018         (pass_data_handle_trap_shadows): New pass.
19019         (pass_handle_trap_shadows::gate): New pass gate function.
19020         (make_pass_handle_trap_shadows): New function.
19021         (rest_of_handle_trap_shadows): Ditto.
19022
19023         (alpha_align_insns_1): Rename from alpha_align_insns.
19024         (pass_data_align_insns): New pass.
19025         (pass_align_insns::gate): New pass gate function.
19026         (make_pass_aling_insns): New function.
19027         (rest_of_align_insns): Ditto.
19028         (alpha_align_insns): Ditto.
19029
19030         (alpha_option_override): Declare handle_trap_shadows info
19031         and align_insns_info.  Register handle_trap_shadows and align_insns
19032         passes here.
19033         (alpha_reorg): Do not call alpha_trap_shadows and
19034         alpha_align_insn from here.
19035
19036         (alpha_pad_function_end): Do not skip BARRIERs.
19037
19038 2014-07-10  Rong Xu  <xur@google.com>
19039
19040         Add gcov-tool: an offline gcda profile processing tool support.
19041         * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
19042         (gcov_is_error): Ditto.
19043         (gcov_read_string): Ditto.
19044         (gcov_read_sync): Ditto.
19045         * gcov-io.h: Move counter defines to gcov-counter.def.
19046         * gcov-dump.c (tag_counters): Use gcov-counter.def.
19047         * coverage.c: Ditto.
19048         * gcov-tool.c: Offline gcda profile processing tool.
19049         (unlink_gcda_file): Remove one gcda file.
19050         (unlink_profile_dir): Remove gcda files from the profile path.
19051         (gcov_output_files): Output gcda files to an output dir.
19052         (profile_merge): Merge two profiles in directory.
19053         (print_merge_usage_message): Print merge usage.
19054         (merge_usage): Print merge usage and exit.
19055         (do_merge): Driver for profile merge sub-command.
19056         (profile_rewrite): Rewrite profile.
19057         (print_rewrite_usage_message): Print rewrite usage.
19058         (rewrite_usage): Print rewrite usage and exit.
19059         (do_rewrite): Driver for profile rewrite sub-command.
19060         (print_usage): Print gcov-info usage and exit.
19061         (print_version): Print gcov-info version.
19062         (process_args): Process arguments.
19063         (main): Main routine for gcov-tool.
19064         * Makefile.in: Build and install gcov-tool.
19065         * gcov-counter.def: New file split from gcov-io.h.
19066         * doc/gcc.texi: Include gcov-tool.texi.
19067         * doc/gcov-tool.texi: Document for gcov-tool.
19068
19069 2014-07-10  Richard Biener  <rguenther@suse.de>
19070
19071         PR tree-optimization/61757
19072         * tree-ssa-dom.c (loop_depth_of_name): Restore.
19073         (propagate_rhs_into_lhs): Revert part of last change.
19074
19075 2014-07-10  Thomas Schwinge  <thomas@codesourcery.com>
19076
19077         * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
19078         FUNCTION_DECLs.
19079
19080 2014-07-10  Eric Botcazou  <ebotcazou@adacore.com>
19081
19082         PR middle-end/53590
19083         * function.c (allocate_struct_function): Revert r188667 change.
19084
19085         * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
19086
19087 2014-07-10  Tom G. Christensen  <tgc@jupiterrise.com>
19088
19089         * doc/install.texi: Remove links to defunct package providers for
19090         Solaris.
19091
19092 2014-07-09  Tom de Vries  <tom@codesourcery.com>
19093
19094         * final.c (get_call_fndecl): Declare.
19095         (self_recursive_call_p): New function.
19096         (collect_fn_hard_reg_usage): Handle self-recursive function calls.
19097
19098 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19099
19100         * ipa-devirt.c (record_node): Walk through aliases.
19101
19102 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19103
19104         * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
19105
19106 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19107
19108         Revert:
19109         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19110
19111 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19112
19113         * ipa-visibility.c (function_and_variable_visibility): Remove
19114         temporary hack disabling local aliases on AIX.
19115
19116 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19117
19118         * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
19119         * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
19120
19121 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19122
19123         * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
19124         * rs6000/rs6000.c: Inline output of .set instruction.
19125         (declare_alias_data): New struct.
19126         (rs6000_declare_alias): New function.
19127         (rs6000_xcoff_declare_function_name): Use it.
19128         (rs6000_xcoff_declare_object_name): New function.
19129         * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
19130         (ASM_OUTPUT_DEF): Turn to empty definition.
19131
19132 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19133
19134         PR bootstrap/61679
19135         * hash-table.h: use hash_table::value_type instead of
19136         Descriptor::value_type in the return types of several methods.
19137
19138 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19139
19140         * tree-pass.h (pass_data): Remove has_execute member.
19141         * passes.c (execute_one_pass): Don't check pass->has_execute.
19142         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
19143         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
19144         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
19145         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
19146         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
19147         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
19148         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
19149         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
19150         gimple-low.c, gimple-ssa-isolate-paths.c,
19151         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
19152         ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
19153         ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
19154         ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
19155         lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
19156         postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
19157         reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
19158         stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
19159         tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
19160         tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
19161         tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
19162         tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
19163         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
19164         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19165         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
19166         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
19167         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
19168         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
19169         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
19170         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
19171         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
19172         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
19173         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
19174         web.c: Remove initializer for pass_data::has_execute.
19175
19176 2014-07-08  Trevor Saunders  <tsaunders@mozilla.com>
19177
19178         * graphite-htab.h: Use hash_map instead of hash_table.
19179         * graphite-clast-to-gimple.c: Adjust.
19180         * passes.c: Use hash_map instead of hash_table.
19181         * sese.c: Likewise.
19182         * sese.h: Remove now unused code.
19183
19184 2014-07-08  Sriraman Tallam  <tmsriram@google.com>
19185
19186         PR target/61599
19187         * config/i386/i386.c (ix86_in_large_data_p): Check for size less
19188         than zero.
19189
19190 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19191
19192         PR rtl-optimization/61673
19193         * combine.c (simplify_comparison): Test just mode's sign bit
19194         in tmode rather than the sign bit and any bits above it.
19195
19196 2014-07-08  Roman Gareev  <gareevroman@gmail.com>
19197
19198         * graphite-isl-ast-to-gimple.c (generate_isl_context):
19199         Add __isl_give to the declaration.
19200         (generate_isl_schedule): Likewise.
19201         (scop_to_isl_ast): Likewise.
19202
19203 2014-07-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19204
19205         * config/arm/arm.c (cortexa5_extra_costs): New table.
19206         (arm_cortex_a5_tune): Use cortexa5_extra_costs.
19207
19208 2014-07-08  Jakub Jelinek  <jakub@redhat.com>
19209
19210         PR tree-optimization/61725
19211         * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
19212         range, use range_includes_zerop_p instead of integer_zerop on
19213         vr0->min, only use log2 of max if min is not negative.
19214
19215 2014-07-08  Richard Biener  <rguenther@suse.de>
19216
19217         * tree-ssa-dom.h (loop_depth_of_name): Remove.
19218         * tree-ssa-dom.c (record_equivalences_from_phis): Remove
19219         restriction on loop depth difference.
19220         (record_equality): Likewise.
19221         (propagate_rhs_into_lhs): Likewise.  Simplify condition.
19222         (loop_depth_of_name): Remove.
19223         * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
19224         restriction on loop depth difference.
19225         (init_copy_prop): Likewise.
19226
19227 2014-07-08  Jan Hubicka  <hubicka@ucw.cz>
19228
19229         * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
19230         parameter.
19231         (walk_aliased_vdefs): Likewise.
19232         * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
19233         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
19234         (detect_type_change_from_memory_writes): Check if entry was reached.
19235
19236 2014-07-08  Richard Biener  <rguenther@suse.de>
19237
19238         PR tree-optimization/61681
19239         * tree-ssa-structalias.c (find_what_var_points_to): Expand
19240         NONLOCAL inside ESCAPED.
19241
19242 2014-07-08  Richard Biener  <rguenther@suse.de>
19243
19244         PR tree-optimization/61680
19245         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19246         Handle properly all read-write dependences with group accesses.
19247
19248 2014-07-08  Yuri Rumyantsev  <ysrumyan@gmail.com>
19249
19250         PR tree-optimization/61576
19251         * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
19252         block containing reduction statement is predecessor of phi basi block.
19253
19254 2014-07-08  Marek Polacek  <polacek@redhat.com>
19255
19256         PR c/60226
19257         * fold-const.c (round_up_loc): Change the parameter type.
19258         Remove assert.
19259         * fold-const.h (round_up_loc): Adjust declaration.
19260         * stor-layout.c (finalize_record_size): Check for too large types.
19261
19262 2014-07-07  Jan Hubicka  <hubicka@ucw.cz>
19263
19264         * symtab.c: Include calls.h.
19265         (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
19266
19267 2014-07-07  Maciej W. Rozycki  <macro@codesourcery.com>
19268
19269         * config/rs6000/rs6000.c (output_vec_const_move): Handle
19270         little-endian code generation.
19271         * config/rs6000/spe.md (spe_evmergehi): Rename to...
19272         (vec_perm00_v2si): ... this.  Handle little-endian code generation.
19273         (spe_evmergehilo): Rename to...
19274         (vec_perm01_v2si): ... this.  Handle little-endian code generation.
19275         (spe_evmergelo): Rename to...
19276         (vec_perm11_v2si): ... this.  Handle little-endian code generation.
19277         (spe_evmergelohi): Rename to...
19278         (vec_perm10_v2si): ... this.  Handle little-endian code generation.
19279         (spe_evmergehi, spe_evmergehilo): New expanders.
19280         (spe_evmergelo, spe_evmergelohi): Likewise.
19281         (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
19282         (*frob_tf_ti): Likewise.
19283         (*frob_<mode>_di_2): Likewise.
19284         (*frob_tf_di_8_2): Likewise.
19285         (*frob_di_<mode>): Likewise.
19286         (*frob_ti_tf): Likewise.
19287         (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
19288         (*frob_ti_<mode>_8_2): Likewise.
19289         (*frob_ti_tf_2): Likewise.
19290         (mov_si<mode>_e500_subreg0): Rename to...
19291         (mov_si<mode>_e500_subreg0_be): ... this.  Restrict to the big
19292         endianness only.
19293         (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
19294         (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
19295         (*mov_si<mode>_e500_subreg0_elf_low_be): ... this.  Restrict to
19296         the big endianness only.
19297         (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
19298         (*mov_si<mode>_e500_subreg0_2): Rename to...
19299         (*mov_si<mode>_e500_subreg0_2_be): ... this.  Restrict to the
19300         big big endianness only.
19301         (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
19302         (*mov_si<mode>_e500_subreg4): Rename to...
19303         (*mov_si<mode>_e500_subreg4_be): ... this.  Restrict to the big
19304         endianness only.
19305         (mov_si<mode>_e500_subreg4_le): New instruction pattern.
19306         (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
19307         (*mov_si<mode>_e500_subreg4_elf_low_be): ... this.  Restrict to
19308         the big endianness only.
19309         (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
19310         pattern.
19311         (*mov_si<mode>_e500_subreg4_2): Rename to...
19312         (*mov_si<mode>_e500_subreg4_2_be): ... this.  Restrict to the big
19313         endianness only.
19314         (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
19315         (*mov_sitf_e500_subreg8): Rename to...
19316         (*mov_sitf_e500_subreg8_be): ... this.  Restrict to the big
19317         endianness only.
19318         (*mov_sitf_e500_subreg8_le): New instruction pattern.
19319         (*mov_sitf_e500_subreg8_2): Rename to...
19320         (*mov_sitf_e500_subreg8_2_be): ... this.  Restrict to the big
19321         endianness only.
19322         (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
19323         (*mov_sitf_e500_subreg12): Rename to...
19324         (*mov_sitf_e500_subreg12_be): ... this.  Restrict to the big
19325         endianness only.
19326         (*mov_sitf_e500_subreg12_le): New instruction pattern.
19327         (*mov_sitf_e500_subreg12_2): Rename to...
19328         (*mov_sitf_e500_subreg12_2_be): ... this.  Restrict to the big
19329         endianness only.
19330         (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
19331
19332 2014-07-07  Max Ostapenko  <m.ostapenko@partner.samsung.com>
19333
19334         * asan.c (instrument_strlen_call): Do not instrument first byte
19335         in strlen if already instrumented.
19336
19337 2014-07-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19338
19339         * config/arm/arm.opt (mwords-little-endian): Delete.
19340         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
19341         of TARGET_LITTLE_WORDS.
19342         (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
19343         * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
19344         warning.
19345         * doc/invoke.texi: Remove references to -mwords-little-endian.
19346
19347 2014-07-07  Jakub Jelinek  <jakub@redhat.com>
19348
19349         * expmed.c (struct init_expmed_rtl): Change all fields but
19350         pow2 and cint from struct rtx_def to rtx.
19351         (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
19352         (init_expmed): Likewise.  Allocate all the 18 rtxes and ggc_free them
19353         at the end again.
19354
19355 2014-07-06  Marek Polacek  <polacek@redhat.com>
19356
19357         PR c/6940
19358         * doc/invoke.texi: Document -Wsizeof-array-argument.
19359
19360 2014-07-05  Gerald Pfeifer  <gerald@pfeifer.com>
19361
19362         * wide-int.h (wide_int_storage): Change declaration from struct
19363         to class.
19364
19365 2014-07-05  Jan Hubicka  <hubicka@ucw.cz>
19366
19367         * cgraph.c (cgraph_create_indirect_edge): Update call of
19368         get_polymorphic_call_info.
19369         * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
19370         (possible_polymorphic_call_targets): Add parameter call.
19371         (decl_maybe_in_construction_p): New predicate.
19372         (get_polymorphic_call_info): Add parameter call;
19373         use decl_maybe_in_construction_p.
19374         * gimple-fold.c (fold_gimple_assign): Update use of
19375         possible_polymorphic_call_targets.
19376         (gimple_fold_call): Likewise.
19377         * ipa-prop.c: Inlcude calls.h
19378         (ipa_binfo_from_known_type_jfunc): Check that known type is record.
19379         (param_type_may_change_p): New predicate.
19380         (detect_type_change_from_memory_writes): Break out from ...
19381         (detect_type_change): ... this one; use param_type_may_change_p.
19382         (detect_type_change_ssa): Use param_type_may_change_p.
19383         (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
19384
19385 2014-07-05  Charles Baylis  <charles.baylis@linaro.org>
19386
19387         PR target/49423
19388         * config/arm/arm-protos.h (arm_legitimate_address_p,
19389         arm_is_constant_pool_ref): Add prototypes.
19390         * config/arm/arm.c (arm_legitimate_address_p): Remove static.
19391         (arm_is_constant_pool_ref) New function.
19392         * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
19393         arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
19394         (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
19395         operand. Remove pool_range and neg_pool_range attributes.
19396         (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
19397         pool_range and neg_pool_range attributes.
19398         * config/arm/constraints.md (Uh): New constraint.
19399         (Uq): Don't allow constant pool references.
19400
19401 2014-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
19402
19403         * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
19404         (move_lo_quad_internal_be_<mode>): Likewise.
19405         (move_lo_quad_<mode>): Convert to define_expand.
19406         (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
19407         (aarch64_simd_move_hi_quad_be_<mode>): New.
19408         (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
19409         (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
19410         (aarch64_combinez_be<mode>): New.
19411         (aarch64_combine<mode>): Convert to define_expand.
19412         (aarch64_combine_internal<mode>): New.
19413         (aarch64_simd_combine<mode>): Remove bogus RTL description.
19414
19415 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19416
19417         * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
19418         combination of earlyclobber and read/write modifiers.
19419
19420 2014-07-04  Tom de Vries  <tom@codesourcery.com>
19421
19422         * config/aarch64/aarch64-simd.md
19423         (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
19424
19425 2014-07-04  Richard Earnshaw  <rearnsha@arm.com>
19426
19427         PR target/61714
19428         * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
19429
19430 2014-07-04  Jakub Jelinek  <jakub@redhat.com>
19431
19432         PR middle-end/61654
19433         * cgraphunit.c (expand_thunk): Call free_dominance_info.
19434
19435         PR tree-optimization/61684
19436         * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
19437         rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
19438
19439 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19440             Kito Cheng  <kito@0xlab.org>
19441             Monk Chiang  <sh.chiang04@gmail.com>
19442
19443         * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
19444         (nds32_symbol_load_store_p): Move to ...
19445         (nds32_fp_as_gp_check_available): Move to ...
19446         * config/nds32/nds32-fp-as-gp.c: ... here.
19447         * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
19448         extern declaration.
19449
19450 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19451             Kito Cheng  <kito@0xlab.org>
19452             Monk Chiang  <sh.chiang04@gmail.com>
19453
19454         * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
19455         (nds32_expand_store_multiple): Move to ...
19456         (nds32_expand_movmemqi): Move to ...
19457         * config/nds32/nds32-memory-manipulation.c: ... here.
19458
19459 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19460             Kito Cheng  <kito@0xlab.org>
19461             Monk Chiang  <sh.chiang04@gmail.com>
19462
19463         * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
19464         (nds32_output_casesi_pc_relative): Move to ...
19465         (nds32_output_casesi): Move to ...
19466         (nds32_mem_format): Move to ...
19467         (nds32_output_16bit_store): Move to ...
19468         (nds32_output_16bit_load): Move to ...
19469         (nds32_output_32bit_store): Move to ...
19470         (nds32_output_32bit_load): Move to ...
19471         (nds32_output_32bit_load_s): Move to ...
19472         (nds32_output_stack_push): Move to ...
19473         (nds32_output_stack_pop): Move to ...
19474         * config/nds32/nds32-md-auxiliary.c: ... here.
19475
19476 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19477             Ling-Hua Tseng  <uranus@tinlans.org>
19478
19479         * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
19480         the purpose of this file.
19481
19482 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19483             Kito Cheng  <kito@0xlab.org>
19484             Monk Chiang  <sh.chiang04@gmail.com>
19485
19486         * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
19487         (nds32_address_cost): Move implementation to ...
19488         * config/nds32/nds32-cost.c: ... here.
19489         * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
19490         (nds32_address_cost_impl): Declare.
19491
19492 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19493             Kito Cheng  <kito@0xlab.org>
19494             Monk Chiang  <sh.chiang04@gmail.com>
19495
19496         * config/nds32/nds32.c
19497         (nds32_consecutive_registers_load_store_p): Move to ...
19498         (nds32_valid_multiple_load_store): Move to ...
19499         (nds32_valid_stack_push_pop): Move to ...
19500         (nds32_can_use_bclr_p): Move to ...
19501         (nds32_can_use_bset_p): Move to ...
19502         (nds32_can_use_btgl_p): Move to ...
19503         (nds32_can_use_bitci_p): Move to ...
19504         * config/nds32/nds32-predicates.c: ... here.
19505
19506 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19507             Kito Cheng  <kito@0xlab.org>
19508             Monk Chiang  <sh.chiang04@gmail.com>
19509
19510         * config/nds32/nds32.c
19511         (nds32_expand_builtin_null_ftype_reg): Move to ...
19512         (nds32_expand_builtin_reg_ftype_imm): Move to ...
19513         (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
19514         (nds32_init_builtins): Move implementation to ...
19515         (nds32_expand_builtin): Move implementation to ...
19516         * config/nds32/nds32-intrinsic.c: ... here.
19517         * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
19518         (nds32_expand_builtin_impl): Declare.
19519
19520 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19521             Kito Cheng  <kito@0xlab.org>
19522             Monk Chiang  <sh.chiang04@gmail.com>
19523
19524         * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
19525         (nds32_emit_section_tail_template): Move to ...
19526         (nds32_emit_isr_jmptbl_section): Move to ...
19527         (nds32_emit_isr_vector_section): Move to ...
19528         (nds32_emit_isr_reset_conten): Move to ...
19529         (nds32_check_isr_attrs_conflict): Move to ...
19530         (nds32_construct_isr_vectors_information): Move to ...
19531         (nds32_asm_file_start): Move implementation to ...
19532         (nds32_asm_file_end): Move implementation to ...
19533         * config/nds32/nds32-isr.c: ... here.
19534         * config/nds32/nds32-protos.h
19535         (nds32_check_isr_attrs_conflict): Declare.
19536         (nds32_construct_isr_vectors_information): Declare.
19537         (nds32_asm_file_start_for_isr): Declare.
19538         (nds32_asm_file_end_for_isr): Declare.
19539
19540 2014-07-04  Chung-Ju Wu  <jasonwucj@gmail.com>
19541             Kito Cheng  <kito@0xlab.org>
19542             Monk Chiang  <sh.chiang04@gmail.com>
19543
19544         * config.gcc (nds32*): Add new modules to extra_objs.
19545         (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
19546         (nds32be-*-*): Likewise.
19547         * config/nds32/nds32-cost.c: New file.
19548         * config/nds32/nds32-fp-as-gp.c: New file.
19549         * config/nds32/nds32-intrinsic.c: New file.
19550         * config/nds32/nds32-isr.c: New file.
19551         * config/nds32/nds32-md-auxiliary.c: New file.
19552         * config/nds32/nds32-memory-manipulation.c: New file.
19553         * config/nds32/nds32-pipelines-auxiliary.c: New file.
19554         * config/nds32/nds32-predicates.c: New file.
19555         * config/nds32/t-nds32: New file.
19556
19557 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19558
19559         PR tree-optimization/61682
19560         * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
19561         using cases and when one of the operands is equal to 1.
19562
19563 2014-07-03  Segher Boessenkool  <segher@kernel.crashing.org>
19564
19565         * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
19566         ashr<mode>3): Correct mode of operands[2].
19567         (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
19568         lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
19569         Correct mode of operands[2].  Fix split condition.
19570
19571 2014-07-03  Richard Earnshaw  <rearnsha@arm.com>
19572
19573         * arm.md (arch): Add armv6_or_vfpv3.
19574         (arch_enabled): Add test for the above.
19575         * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
19576         on VFP9.
19577         (sqrtsf_vfp, sqrtdf_vfp): Likewise.
19578
19579 2014-07-03  Jakub Jelinek  <jakub@redhat.com>
19580
19581         * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
19582         * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
19583         HWI 1 and negate the unsigned value.
19584         * expmed.c (expand_sdiv_pow2): For modes wider than word always
19585         use AND instead of shift.
19586         * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
19587
19588 2014-07-03  Marek Polacek  <polacek@redhat.com>
19589
19590         * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
19591         (-fsanitize=float-divide-by-zero): Move to the table with
19592         -fsanitize=undefined suboptions.
19593         (-fsanitize=float-cast-overflow): Likewise.
19594
19595 2014-07-03  Maciej W. Rozycki  <macro@codesourcery.com>
19596
19597         * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
19598         BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
19599         endianness.
19600
19601 2014-07-03  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19602
19603         * loop-invariant.c (struct invariant): Add a new member: eqno;
19604         (find_identical_invariants): Update eqno;
19605         (create_new_invariant): Init eqno;
19606         (get_inv_cost): Compute comp_cost with eqno;
19607
19608 2014-07-02  Segher Boessenkool  <segher@kernel.crashing.org>
19609
19610         * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
19611         (walk_insn_part) <ROTATE, ROTATERT>: New cases.
19612         (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
19613         * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
19614         Only do the transformation if both HAVE_rotate and HAVE_rotatert.
19615
19616 2014-07-02  Christian Bruel  <christian.bruel@st.com>
19617
19618         PR target/29349
19619         PR target/53513
19620         * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
19621         (make_preds_opaque): Delete.
19622         (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
19623         (commit_mode_sets): New function.
19624         (optimize_mode_switching): Handle current_mode to mode_switching_emit.
19625         Process all modes at once.
19626         * basic-block.h (pre_edge_lcm_avs): Declare.
19627         * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
19628         Call clear_aux_for_edges. Fix comments.
19629         (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
19630         (pre_edge_rev_lcm): Idem.
19631         * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
19632         parameter.
19633         * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
19634         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
19635         Idem.
19636         * config/i386/i386.c (x96_emit_mode_set): Idem.
19637         * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
19638         * config/sh/sh.md (toggle_pr):  Defined if TARGET_FPU_SINGLE.
19639         (fpscr_toggle) Disallow from delay slot.
19640         * target.def (emit_mode_set): Add prev_mode parameter.
19641         * doc/tm.texi: Regenerate.
19642
19643 2014-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19644
19645         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
19646         variable i.
19647
19648 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19649
19650         * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
19651         vtable_pointer_value_to_vtable): Constify.
19652         (contains_polymorphic_type_p): Declare.
19653         * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
19654         vtable_pointer_value_to_vtable): Constify.
19655         (contains_polymorphic_type_p): New predicate.
19656         * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
19657         polymorphic types.
19658         (ipa_set_ancestor_jf): Likewise.
19659         (detect_type_change): Return false in easy cases.
19660         (compute_complex_assign_jump_func): Require type to contain
19661         polymorphic type.
19662         (compute_known_type_jump_func): Likewise.
19663
19664 2014-07-01  Jan Hubicka  <hubicka@ucw.cz>
19665
19666         * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
19667         Remove.
19668         (type_in_anonymous_namespace_p): Constify argument.
19669         * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
19670         * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
19671         (main_odr_variant): New function.
19672         (hash_type_name): Make static; update assert; do not ICE on
19673         non-records.
19674         (types_same_for_odr): Bring here from tree.c; simplify and remove
19675         old structural comparing code that doesn't work for templates.
19676         (odr_hasher::equal): Update assert.
19677         (add_type_duplicate): Return true when bases should be computed;
19678         replace incomplete loader by complete; do not output duplicated
19679         warnings; do not ICE on non-records; set odr_violated flag.
19680         (get_odr_type): Be ready to replace incomplete type by complete
19681         one; work on ODR variants instead of main variants; reorder item
19682         in array so bases have still smaller indexes.
19683         (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
19684         (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
19685
19686 2014-07-01  Cary Coutant  <ccoutant@google.com>
19687
19688         * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
19689         lookup.
19690         (resolve_addr_in_expr): When replacing the rtx in a location list
19691         entry, get a new address table entry.
19692         (dwarf2out_finish): Call index_location_lists even if there are no
19693         addr_index_table entries yet.
19694
19695 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19696
19697         * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
19698         change for not being obvious.
19699
19700 2014-07-01  Trevor Saunders  <tsaunders@mozilla.com>
19701
19702         * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
19703         unused argument.
19704
19705 2014-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19706
19707         * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
19708         (vcagt_f64): Likewise.
19709         (vcale_f64): Likewise.
19710         (vcaled_f64): Likewise.
19711         (vcales_f32): Likewise.
19712         (vcalt_f64): Likewise.
19713         (vcaltd_f64): Likewise.
19714         (vcalts_f32): Likewise.
19715
19716 2014-07-01  Marek Polacek  <polacek@redhat.com>
19717
19718         * doc/invoke.texi: Document -Wint-conversion.
19719
19720 2014-07-01  Marek Polacek  <polacek@redhat.com>
19721
19722         PR c/58286
19723         * doc/invoke.texi: Document -Wincompatible-pointer-types.
19724
19725 2014-07-01  Martin Liska  <mliska@suse.cz>
19726
19727         IPA REF alias refactoring
19728         * cgraph.h (iterate_direct_aliases): New function.
19729         (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
19730         * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
19731         FOR_EACH_ALIAS added.
19732         (cgraph_for_node_and_aliases): Likewise.
19733         * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
19734         * ipa-inline.c (reset_edge_caches): Likewise.
19735         (update_caller_keys): Likewise.
19736         * trans-mem.c (ipa_tm_execute): Likewise.
19737         *varpool.c (varpool_analyze_node): Likewise.
19738         (varpool_for_node_and_aliases): Likewise.
19739         * ipa-ref.h (first_alias): New function.
19740         (last_alias): Likewise.
19741         (has_aliases_p): Likewise.
19742         * ipa-ref.c (ipa_ref::remove_reference): Removal function
19743         is sensitive to IPA_REF_ALIASes.
19744         * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
19745         are put at the beginning of the list.
19746         (symtab_node::iterate_direct_aliases): New function.
19747
19748 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19749
19750         Revert:
19751         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19752         type is complete.
19753         (write_ts_type_common_tree_pointers): Do not stream fields not set
19754         for incomplete types; do not stream duplicated fields for variants;
19755         sanity check that variant and type match.
19756         (write_ts_type_non_common_tree_pointers): Likewise.
19757         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19758         TYPE_SIZE whether type is complete.
19759         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19760         write_ts_type_common_tree_pointers
19761         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19762
19763 2014-06-30  Joseph Myers  <joseph@codesourcery.com>
19764
19765         * var-tracking.c (add_stores): Return instead of asserting if old
19766         and new values for conditional store are the same.
19767
19768 2014-06-30  Richard Henderson  <rth@redhat.com>
19769
19770         PR rtl-opt/61608
19771         PR target/39284
19772         * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
19773         the cfg if there were any changes.
19774         * passes.def: Revert move of peephole2 after reorder_blocks;
19775         move duplicate_computed_gotos before peephole2.
19776
19777 2014-06-30  Uros Bizjak  <ubizjak@gmail.com>
19778
19779         * except.c (emit_note_eh_region_end): New helper function.
19780         (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
19781         emit EH_REGION_END note.
19782         * jump.c (cleanup_barriers): Do not split a call and its
19783         corresponding CALL_ARG_LOCATION note.
19784
19785 2014-06-30  Jeff Law  <law@redhat.com>
19786
19787         PR tree-optimization/61607
19788         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
19789         deeper into the SSA_NAME_VALUE chain.
19790
19791 2014-06-30  Marek Polacek  <polacek@redhat.com>
19792
19793         * convert.c (convert_to_integer): Don't instrument conversions if the
19794         function has no_sanitize_undefined attribute.
19795         * ubsan.c: Don't run the ubsan pass if the function has
19796         no_sanitize_undefined attribute.
19797
19798 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19799
19800         * doc/invoke.texi (-fsanitize=bounds): Move to the table with
19801         -fsanitize=undefined suboptions.
19802
19803 2014-06-30  Alan Lawrence  <alan.lawrence@arm.com>
19804
19805         * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
19806         * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
19807         against bigendian and adjust indices.
19808
19809 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19810
19811         * doc/install.texi (Specific, aarch64*-*-*): Fix markup.  Reword a bit.
19812
19813 2014-06-30  Marcus Shawcroft  <marcus.shawcroft@arm.com>
19814
19815         PR target/61633
19816         * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
19817         Add alternative; make early clobber.  Adjust both split patterns
19818         to use operand 0 as the working register.
19819
19820 2014-06-30  Jakub Jelinek  <jakub@redhat.com>
19821
19822         * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
19823         as ira_object_id_map might be NULL, or 1.
19824
19825 2014-06-30  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
19826
19827         * loop-invariant.c (get_inv_cost): Handle register class.
19828         (gain_for_invariant): Check the register pressure of the inv
19829         and its overlapped register class, other than all.
19830
19831 2014-06-30  Gerald Pfeifer  <gerald@pfeifer.com>
19832
19833         * doc/invoke.texi (Optimize Options): Fix descriptions of
19834         ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
19835
19836 2014-06-29  David Wohlferd <dw@LimeGreenSocks.com>
19837
19838         * doc/extend.texi (Function Attributes): Update 'naked' attribute
19839         documentation.
19840
19841 2014-06-29  Tobias Grosser <tobias@grosser.es>
19842
19843         PR bootstrap/61650
19844         * graphite-isl-ast-to-gimple.c: Add missing guards.
19845
19846 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19847
19848         * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
19849         * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
19850         * flag-types.h: Add new enum fgraphite_generator.
19851         * graphite-isl-ast-to-gimple.c: New.
19852         * graphite-isl-ast-to-gimple.h: New.
19853         * graphite.c (graphite_transform_loops): Add choice of Graphite
19854         code generator, which depends on flag_graphite_code_gen.
19855
19856 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19857
19858         * graphite-dependences.c (subtract_commutative_associative_deps):
19859         Add NULL checking of the following variables: must_raw_no_source,
19860         may_raw_no_source, must_war_no_source, may_war_no_source,
19861         must_waw_no_source, may_waw_no_source, must_raw, may_raw,
19862         must_war, may_war, must_waw, may_waw.
19863
19864 2014-06-29  Roman Gareev  <gareevroman@gmail.com>
19865
19866         * graphite-clast-to-gimple.c: gloog is renamed to
19867         graphite_regenerate_ast_cloog.  gloog_error is renamed to
19868         graphite_regenerate_error.
19869         * graphite-clast-to-gimple.h: The definition of the struct
19870         bb_pbb_def is moved to graphite-htab.h.
19871         Add inclusion of the hash-table.h.
19872         * graphite-htab.h: The declaration of the function gloog is moved
19873         to graphite-clast-to-gimple.h and renamed to
19874         graphite_regenerate_ast_cloog.
19875         * graphite.c (graphite_transform_loops): gloog is renamed
19876         to graphite_regenerate_ast_cloog.
19877
19878 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19879
19880         * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
19881         type is complete.
19882         (write_ts_type_common_tree_pointers): Do not stream fields not set
19883         for incomplete types; do not stream duplicated fields for variants;
19884         sanity check that variant and type match.
19885         (write_ts_type_non_common_tree_pointers): Likewise.
19886         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
19887         TYPE_SIZE whether type is complete.
19888         (lto_input_ts_type_common_tree_pointers): Do same changes as in
19889         write_ts_type_common_tree_pointers
19890         (lto_input_ts_type_non_common_tree_pointers): Likewise.
19891
19892 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19893
19894         * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
19895
19896 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19897
19898         * tree-inline.c (remap_type_1): Do not duplicate fields
19899         that are shared in between type and its main variant.
19900
19901 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19902
19903         * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
19904         of the type.
19905         (ipa_set_ancestor_jf) Likewise.
19906         (check_stmt_for_type_change): Check that we work on main variant.
19907         (detect_type_change): Look into main variant.
19908         (compute_known_type_jump_func): Check that main variant has BINFO.
19909
19910 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19911
19912         * ipa-devirt.c (set_type_binfo): New function.
19913         (add_type_duplicate): Use it.
19914         (get_odr_type): Sanity check that binfos points to main variants.
19915         (get_class_context): Be sure the context's outer_type is main variant.
19916         (contains_type_p): Walk main variant.
19917         (get_polymorphic_call_info_for_decl): Set outer_type to be
19918         main variant.
19919         (get_polymorphic_call_info): Likewise.
19920         (possible_polymorphic_call_targets): Sanity check that we operate
19921         on main variant.
19922
19923 2014-06-28  Jan Hubicka  <hubicka@ucw.cz>
19924
19925         * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
19926
19927 2014-06-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
19928
19929         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
19930         accidental change due to wide-int branch merge.
19931
19932 2014-06-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
19933
19934         * configure.ac (gcc_cv_as_compress_debug): Check for assembler
19935         compressed debug support.
19936         (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
19937         * configure: Regenerate.
19938         * config.in: Regenerate.
19939         * common.opt (compressed_debug_sections): New enum.
19940         (gz, gz=): New options.
19941         * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
19942         (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
19943         (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
19944         * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
19945         LINK_COMPRESS_DEBUG_SPEC.
19946         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
19947         * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
19948         * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
19949         (Debugging Options): Document -gz[=type].
19950
19951 2014-06-27  Martin Jambor  <mjambor@suse.cz>
19952
19953         PR ipa/61160
19954         * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
19955         args_to_skip, use those from node instead.  Copy args_to_skip and
19956         combined_args_to_skip from node to the new thunk.
19957         (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
19958         (cgraph_create_virtual_clone): Moved computation of
19959         combined_args_to_skip...
19960         (cgraph_clone_node): ...here, simplify it to bitmap_ior..
19961
19962 2014-06-27  trevor Saunders  <tsaunders@mozilla.com>
19963
19964         * config/i386/winnt.c (i386_pe_section_type_flags): Remove
19965         redundant diagnostic machinary.
19966
19967 2014-06-27  Richard Biener  <rguenther@suse.de>
19968
19969         * tree-ssa-math-opts.c (bswap_replace): Fix
19970         SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
19971
19972 2014-06-27  Martin Liska  <mliska@suse.cz>
19973
19974         * gimple.h (gimple_location_safe): New function introduced.
19975         * cgraphunit.c (walk_polymorphic_call_targets): Usage
19976         of gimple_location_safe replaces gimple_location.
19977         (gimple_fold_call): Likewise.
19978         * ipa-devirt.c (ipa_devirt): Likewise.
19979         * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
19980         * ipa.c (walk_polymorphic_call_targets): Likewise.
19981         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
19982
19983 2014-06-27  Jakub Jelinek  <jakub@redhat.com>
19984
19985         PR tree-optimization/57233
19986         PR tree-optimization/61299
19987         * tree-vect-generic.c (get_compute_type, count_type_subparts): New
19988         functions.
19989         (expand_vector_operations_1): Use them.  If {L,R}ROTATE_EXPR
19990         would be lowered to scalar shifts, check if corresponding
19991         shifts and vector BIT_IOR_EXPR are supported and don't lower
19992         or lower just to narrower vector type in that case.
19993         * expmed.c (expand_shift_1): Fix up handling of vector
19994         shifts and rotates.
19995
19996 2014-06-26  Uros Bizjak  <ubizjak@gmail.com>
19997
19998         PR target/61586
19999         * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
20000
20001 2014-06-26  Jan Hubicka  <hubicka@ucw.cz>
20002
20003         * doc/invoke.texi (-fsemantic-interposition): Document.
20004         * common.opt (fsemantic-interposition): New flag.
20005         * varasm.c (decl_replaceable_p): Use it.
20006
20007 2014-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20008
20009         PR target/61542
20010         * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
20011         extraction other than index 3.
20012
20013 2014-06-26  Teresa Johnson  <tejohnson@google.com>
20014
20015         * doc/invoke.texi: Fix typo.
20016         * dumpfile.c: Add support for documented -fdump-* options
20017         optimized/missed/note/optall.
20018
20019 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20020
20021         * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
20022         (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
20023         (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
20024         (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
20025         * opts.c (default_options_optimization): Set
20026         PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
20027         * doc/invoke.texi (allow-load-data-races)
20028         (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
20029         (allow-store-data-races): Document the new default.
20030
20031 2014-06-26  Martin Jambor  <mjambor@suse.cz>
20032
20033         * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
20034         renamed to ipa_impossible_devirt_target.  Fix typo.
20035         * ipa-prop.h (ipa_impossible_devirt_target): Declare.
20036         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
20037         ipa_impossible_devirt_target.
20038
20039 2014-06-26  Richard Biener  <rguenther@suse.de>
20040
20041         PR tree-optimization/61607
20042         * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
20043         explaining why we restrict copies on loop depth.
20044         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20045         on loop depth.
20046         (record_equivalences_from_phis): Instead add it here.
20047
20048 2014-06-26  Bernd Schmidt  <bernds@codesourcery.com>
20049
20050         * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
20051         (LTO_WRAPPER_OBJS): New variable.
20052         (lto-wrapper$(exeext)): Use it.
20053         * collect2.c: Include "collect-utils.h".
20054         (verbose, debug): Remove variables.
20055         (at_file_supplied): No longer static.
20056         (tool_name): New variable.
20057         (do_wait, fork_execute, maybe_unlink): Don't declare.
20058         (tool_cleanup): No longer static.
20059         (notice): Remove function.
20060         (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
20061         fork_execute calls.
20062         (collect_wait, do_wait, collect_execute): Remove functions.
20063         (maybe_unlink): No longer static.
20064         * collect2.h (verbose, debug): Don't declare.
20065         (at_file_supplied): Declare.
20066         * collect-utils.c (utils_cleanup): New arg from_signal.  All callers
20067         changed.
20068         (collect_execute): Replace with implementation from collect2, plus a
20069         new arg use_atfile.  All callers changed.
20070         (collect_wait): Replace with implementation from collect2.
20071         (maybe_unlink_file): Remove function.
20072         (fork_execute): Replace with implementation from collect2, plus a
20073         new arg use_atfile.  All callers changed.
20074         (do_wait): Add call to utils_cleanup to the error path.
20075         * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
20076         (tool_cleanup): Adjust declarations.
20077         * lto-wrapper.c (tool_cleanup): Add unused bool argument.
20078         * tlink.c: Include "collect-utils.h".
20079         (tlink_execute): New arg use_atfile.  All callers changed.
20080         (tlink_init, tlink_execute): Remove declarations.
20081
20082         * collect-utils.c (save_temps): New variable.
20083         (do_wait): Use it instead of debug.  Use fatal_error.
20084         * collect-utils.h (save_temps): Declare.
20085         * collect2.c (verbose): Rename from vflag.  All uses changed.
20086         (tool_cleanup): New function, copied from collect_atexit.
20087         (collect_atexit, handler): Just call it.
20088         * collect2.h (verbose): Declaration renamed from vflag.
20089         * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
20090         debug.
20091
20092         * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
20093         (lto-wrapper$(exeext)): Link with collect-utils.o.
20094         * collect-utils.c: New file.
20095         * collect-utils.h: New file.
20096         * lto-wrapper.c: Include "collect-utils.h".
20097         (args_name): Delete variable.
20098         (tool_name): New variable.
20099         (tool_cleanup): New function.
20100         (maybe_unlink): Renamed from maybe_unlink_file.  All callers changed.
20101         (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
20102         (fork_execute): Remove functions.
20103
20104 2014-06-26  Nick Clifton  <nickc@redhat.com>
20105
20106         * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
20107
20108         * doc/extend.texi (Function Attributes): Fix typo in description
20109         of RX vector attribute.
20110
20111 2014-06-26  James Greenhalgh  <james.greenhalgh@arm.com>
20112
20113         * config.gcc (supported_defaults): Error when passing either
20114         --with-tune or --with-arch in conjunction with --with-cpu for ARM.
20115
20116 2014-06-26  Richard Biener  <rguenther@suse.de>
20117
20118         * tree-ssa-dom.c (cprop_operand): Remove restriction on
20119         propagating volatile pointers.
20120
20121 2014-06-26  Richard Biener  <rguenther@suse.de>
20122
20123         PR tree-optimization/61607
20124         * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
20125         loop if we redirected its latch edge.
20126         (thread_block_1): Do not cancel loops prematurely.
20127
20128 2014-06-25  Jan Hubicka  <hubicka@ucw.cz>
20129
20130         * toplev.c (backend_init_target): Move init_emit_regs and
20131         init_regs to...
20132         (backend_init) ... here; skip ira_init_once and backend_init_target.
20133         (target_reinit) ... and here; clear
20134         this_target_rtl->lang_dependent_initialized.
20135         (lang_dependent_init_target): Clear
20136         this_target_rtl->lang_dependent_initialized;
20137         break out rtl initialization to ...
20138         (initialize_rtl): ... here; call also backend_init_target
20139         and ira_init_once.
20140         * toplev.h (initialize_rtl): New function.
20141         * function.c: Include toplev.h
20142         (init_function_start): Call initialize_rtl.
20143         * rtl.h (target_rtl): Add target_specific_initialized,
20144         lang_dependent_initialized.
20145
20146 2014-06-25  Paul Gortmaker  <paul.gortmaker@windriver.com>
20147             Jakub Jelinek  <jakub@redhat.com>
20148
20149         * gcc.c (set_multilib_dir): Malloc "." pointer as well.
20150
20151 2014-06-25  Tom de Vries  <tom@codesourcery.com>
20152
20153         * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
20154
20155 2014-06-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
20156
20157         * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
20158         check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
20159         Issue a strict overflow warning if appropriate.
20160
20161 2014-06-25  Martin Liska  <mliska@suse.cz>
20162
20163         IPA REF refactoring
20164         * Makefile.in: Removed header file (ipa-ref-inline.h).
20165         * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
20166         called.
20167         (cgraph_speculative_call_info): Likewise.
20168         (cgraph_for_node_thunks_and_aliases): Likewise.
20169         (cgraph_for_node_and_aliases): Likewise.
20170         (verify_cgraph_node): Likewise.
20171         * cgraph.h: Batch of IPA REF functions become member functions of
20172         symtab_node: add_reference, maybe_add_reference, clone_references,
20173         clone_referring, clone_reference, find_reference,
20174         remove_stmt_references, remove_all_references,
20175         remove_all_referring, dump_references, dump_referring,
20176         has_alias_p, iterate_reference, iterate_referring.
20177         * cgraphbuild.c (record_reference): New IPA REF function used.
20178         (record_type_list): Likewise.
20179         (record_eh_tables): Likewise.
20180         (mark_address): Likewise.
20181         (mark_load): Likewise.
20182         (mark_store): Likewise.
20183         (pass_build_cgraph_edges): Likewise.
20184         (rebuild_cgraph_edge): Likewise.
20185         (cgraph_rebuild_references): Likewise.
20186         (pass_remove_cgraph_callee_edges): Likewise.
20187         * cgraphclones.c (cgraph_clone_node): Likewise.
20188         (cgraph_create_virtual_clone): Likewise.
20189         (cgraph_materialize_clone): Likewise.
20190         (cgraph_materialize_all_clones): Likewise.
20191         * cgraphunit.c (cgraph_reset_node): Likewise.
20192         (cgraph_reset_node): Likewise.
20193         (analyze_function): Likewise.
20194         (assemble_thunks_and_aliases): Likewise.
20195         (expand_function): Likewise.
20196         * ipa-comdats.c (propagate_comdat_group): Likewise.
20197         (enqueue_references): Likewise.
20198         * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
20199         (create_specialized_node): Likewise.
20200         * ipa-devirt.c (referenced_from_vtable_p): Likewise.
20201         * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
20202         * ipa-inline.c (reset_edge_caches): Likewise.
20203         (update_caller_keys): Likewise.
20204         (execute): Likewise.
20205         * ipa-prop.c (remove_described_reference): Likewise.
20206         (propagate_controlled_uses): Likewise.
20207         (ipa_edge_duplication_hook): Likewise.
20208         (ipa_modify_call_arguments): Likewise.
20209         * ipa-pure-const.c (propagate_pure_const): Likewise.
20210         * ipa-ref-inline.h: Header file removed, functions moved
20211         to symtab_node class.
20212         * ipa-ref.c (remove_reference): New class member function.
20213         (cannot_lead_to_return): New class member function.
20214         (referring_ref_list): Likewise.
20215         (referred_ref_list): Likewise.
20216         Rest of functions moved to symtab_node class.
20217         * ipa-ref.h: New member functions remove_reference,
20218         cannot_lead_to_return, referring_ref_list, referred_ref_list added
20219         to ipa_ref class.
20220         ipa_ref_list class has new member functions: first_reference,
20221         first_referring, clear, nreferences.
20222         * ipa-reference.c (analyze_function): New IPA REF function used.
20223         (write_node_summary_p): Likewise.
20224         (ipa_reference_write_optimization_summary): Likewise.
20225         * ipa-split.c (split_function): Likewise.
20226         * ipa-utils.c (ipa_reverse_postorder): Likewise.
20227         * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
20228         (function_and_variable_visibility): Likewise.
20229         * ipa.c (has_addr_references_p): Likewise.
20230         (process_references): Argument type changed.
20231         (symtab_remove_unreachable_nodes): New IPA REF function used.
20232         (process_references): Likewise.
20233         (set_writeonly_bit): Likewise.
20234         * lto-cgraph.c: Implementation of new symtab_node member functions
20235         that uses new IPA REF functions.
20236         * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
20237         function used.
20238         * lto-streamer-out.c (output_symbol_p): Likewise.
20239         * lto-streamer.h (referenced_from_this_partition_p): Argument type
20240         changed.
20241         * symtab.c: Implementation of new IPA REF API.
20242         * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
20243         (ipa_tm_create_version): Likewise.
20244         (ipa_tm_execute): Likewise.
20245         * tree-emutls.c (gen_emutls_addr): Likewise.
20246         * tree-inline.c (copy_bb): Likewise.
20247         (delete_unreachable_blocks_update_callgraph): Likewise.
20248         * varpool.c (varpool_remove_unreferenced_decls): Likewise.
20249         (varpool_for_node_and_aliases): Likewise.
20250
20251 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20252
20253         * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
20254
20255 2014-06-25  Trevor Saunders  <tsaunders@mozilla.com>
20256
20257         PR bootstrap/61598
20258         * fold-const.c (fold_checksum_tree): Use a hash_table of const
20259         tree_node * instead of tree_node *.
20260         (fold): Adjust.
20261         (print_fold_checksum): Likewise.
20262         (fold_check_failed): Likewise.
20263         (debug_fold_checksum): Likewise.
20264         (fold_build1_stat_loc): Likewise.
20265         (fold_build2_stat_loc): Likewise.
20266         (fold_build3_stat_loc): Likewise.
20267         (fold_build_call_array_loc): Likewise.
20268
20269 2014-06-25  David Edelsohn  <dje.gcc@gmail.com>
20270
20271         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
20272         implementation with call to...
20273         * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
20274         function.
20275         * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
20276         Declare.
20277
20278 2014-06-25  Marc Glisse  <marc.glisse@inria.fr>
20279
20280         PR tree-optimization/57742
20281         * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
20282         after replacing the statement.
20283
20284 2014-06-25  Nick Clifton  <nickc@redhat.com>
20285
20286         * config/v850/v850.c (GHS_default_section_names): Change to const
20287         char * type.
20288         (GHS_current_section_names): Likewise.
20289         (v850_insert_attributes): Do not build strings, just assign the
20290         names directly.  Change the type of 'chosen_section' to const
20291         char*.
20292         * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
20293         directly to the array entry.
20294         * config/v850/v850.h (GHS_default_section_names): Change to const
20295         char * type.
20296         (GHS_current_section_names): Likewise.
20297
20298 2014-06-25  Jakub Jelinek  <jakub@redhat.com>
20299
20300         * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
20301         (LANG_HOOKS_DECLS): Add it.
20302         * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
20303         has correct type.
20304         * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
20305         * langhooks.h (struct lang_hooks_for_decls): Add
20306         omp_clause_linear_ctor hook.
20307         * omp-low.c (lower_rec_input_clauses): Set max_vf even if
20308         OMP_CLAUSE_LINEAR_ARRAY is set.  Don't fold_convert
20309         OMP_CLAUSE_LINEAR_STEP.  For OMP_CLAUSE_LINEAR_ARRAY in
20310         combined simd loop use omp_clause_linear_ctor hook.
20311
20312 2014-06-24  Cong Hou  <congh@google.com>
20313
20314         * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
20315         pattern recognition.
20316         (type_conversion_p): PROMOTION is true if it's a type promotion
20317         conversion, and false otherwise.  Return true if the given expression
20318         is a type conversion one.
20319         * tree-vectorizer.h: Adjust the number of patterns.
20320         * tree.def: Add SAD_EXPR.
20321         * optabs.def: Add sad_optab.
20322         * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
20323         * expr.c (expand_expr_real_2): Likewise.
20324         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
20325         * gimple.c (get_gimple_rhs_num_ops): Likewise.
20326         * optabs.c (optab_for_tree_code): Likewise.
20327         * tree-cfg.c (estimate_operator_cost): Likewise.
20328         * tree-ssa-operands.c (get_expr_operands): Likewise.
20329         * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
20330         * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
20331         * doc/generic.texi: Add document for SAD_EXPR.
20332         * doc/md.texi: Add document for ssad and usad.
20333
20334 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20335
20336         * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
20337         qualification in cast.
20338
20339 2014-06-24  Jan Hubicka  <hubicka@ucw.cz>
20340
20341         * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
20342         * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
20343         * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
20344         (tree_function_decl): ... here.
20345         * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
20346         streaming of vindex to ...
20347         (write_ts_function_decl_tree_pointers): ... here.
20348         * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
20349         Do not stream DECL_VINDEX.
20350         (lto_input_ts_function_decl_tree_pointers): Stream it here.
20351
20352 2014-06-24  Catherine Moore  <clm@codesourcery.com>
20353             Sandra Loosemore  <sandra@codesourcery.com>
20354
20355         * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
20356         * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
20357         * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
20358
20359 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20360
20361         * doc/invoke.texi (Warning Options): Remove duplicated
20362         -Wmaybe-uninitialized.
20363
20364 2014-06-24  Marc Glisse  <marc.glisse@inria.fr>
20365
20366         PR tree-optimization/57742
20367         * tree-ssa-strlen.c (get_string_length): Ignore malloc.
20368         (handle_builtin_malloc, handle_builtin_memset): New functions.
20369         (strlen_optimize_stmt): Call them.
20370         * passes.def: Move strlen after loop+dom but before vrp.
20371
20372 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20373
20374         PR target/61570
20375         * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
20376         model family 6 CPU with has_longmode never use a CPU without
20377         64-bit support.
20378
20379 2014-06-24  H.J. Lu  <hongjiu.lu@intel.com>
20380
20381         PR target/61570
20382         * config/i386/driver-i386.c (host_detect_local_cpu): Revert
20383         the last change.
20384
20385 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20386
20387         * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
20388         * dominance.c (iterate_fix_dominators): Use hash_map instead of
20389         pointer_map.
20390         * hash-map.h: New file.
20391         * ipa-comdats.c: Use hash_map instead of pointer_map.
20392         * ipa.c: Likewise.
20393         * lto-section-out.c: Adjust.
20394         * lto-streamer.h: Replace pointer_map with hash_map.
20395         * symtab.c (verify_symtab): Likewise.
20396         * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
20397         * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
20398         * tree-streamer.h: Likewise.
20399         * tree-streamer.c: Adjust.
20400         * pointer-set.h: Remove pointer_map.
20401
20402 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20403
20404         * hash-table.h: Add a template arg to choose between storing values
20405         and storing pointers to values, and then provide partial
20406         specializations for both.
20407         * tree-browser.c (tree_upper_hasher): Provide the type the hash table
20408         should store, not the type values should point to.
20409         * tree-into-ssa.c (var_info_hasher): Likewise.
20410         * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20411         * tree-complex.c: Adjust.
20412         * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
20413         table instead of int_tree_map *.
20414         * tree-parloops.c: Adjust.
20415         * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
20416         type is being stored.
20417         * tree-vectorizer.c: Adjust.
20418
20419 2014-06-24  Trevor Saunders  <tsaunders@mozilla.com>
20420
20421         * hash-table.h: Remove a layer of indirection from hash_table so that
20422         it contains the hash table's data instead of a pointer to the data.
20423         * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
20424         config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
20425         config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
20426         data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
20427         fold-const.c, gcse.c, ggc-common.c,
20428         gimple-ssa-strength-reduction.c, gimplify.c,
20429         graphite-clast-to-gimple.c, graphite-dependences.c,
20430         graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
20431         ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
20432         loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
20433         lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
20434         postreload-gcse.c, sese.c, statistics.c, store-motion.c,
20435         trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
20436         tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
20437         tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
20438         tree-ssa-live.c, tree-ssa-loop-im.c,
20439         tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
20440         tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
20441         tree-ssa-structalias.c, tree-ssa-tail-merge.c,
20442         tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
20443         tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
20444         tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
20445         vtable-verify.c, vtable-verify.h: Adjust.
20446
20447 2014-06-24  Richard Biener  <rguenther@suse.de>
20448
20449         PR tree-optimization/61572
20450         * tree-ssa-sink.c (statement_sink_location): Do not sink
20451         loads from hard registers.
20452
20453 2014-06-24  Jakub Jelinek  <jakub@redhat.com>
20454
20455         * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
20456         not mentioned in clauses use private clause if the iterator is
20457         declared in #pragma omp for simd, and when adding lastprivate
20458         instead, add it to the outer #pragma omp for too.  Diagnose
20459         if the variable is private in outer context.  For simd collapse > 1
20460         loops, replace all iterators with temporaries.
20461         * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
20462         same even in collapse > 1 loops.
20463
20464         * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
20465         OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
20466         non-NULL.
20467         <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
20468         (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
20469         non-NULL.
20470         (gimplify_adjust_omp_clauses): Likewise.
20471         * omp-low.c (lower_rec_simd_input_clauses,
20472         lower_rec_input_clauses, expand_omp_simd): Handle non-constant
20473         safelen the same as safelen(1).
20474         * tree-nested.c (convert_nonlocal_omp_clauses,
20475         convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED.  For
20476         OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
20477         (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
20478         Fixup handling of GIMPLE_OMP_TARGET.
20479         (convert_tramp_reference_stmt, convert_gimple_call): Handle
20480         GIMPLE_OMP_TARGET.
20481
20482 2014-06-24  Chung-Lin Tang  <cltang@codesourcery.com>
20483
20484         PR tree-optimization/61554
20485         * tree-ssa-propagate.c: Include "bitmap.h".
20486         (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
20487         properly update constructor/destructor.
20488         (substitute_and_fold_dom_walker::before_dom_children):
20489         Remove call to gimple_purge_dead_eh_edges, add bb->index to
20490         need_eh_cleaup instead.
20491         (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
20492         need_eh_cleanup.
20493
20494 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20495
20496         * varpool.c (dump_varpool_node): Dump used_by_single_function.
20497         * tree-pass.h (make_pass_ipa_single_use): New pass.
20498         * cgraph.h (used_by_single_function): New flag.
20499         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
20500         Stream it.
20501         * passes.def (pass_ipa_single_use): Scedule.
20502         * ipa.c (BOTTOM): New macro.
20503         (meet): New function
20504         (propagate_single_user): New function.
20505         (ipa_single_use): New function.
20506         (pass_data_ipa_single_use): New pass.
20507         (pass_ipa_single_use): New pass.
20508         (pass_ipa_single_use::gate): New gate.
20509         (make_pass_ipa_single_use): New function.
20510
20511 2014-06-23  Kai Tietz  <ktietz@redhat.com>
20512
20513         PR target/39284
20514         * passes.def (peephole2): Move peephole2 pass before sched2 pass.
20515         * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
20516
20517 2014-06-23  Richard Biener  <rguenther@suse.de>
20518
20519         * tree-ssa-loop.c (gate_loop): New function.
20520         (pass_tree_loop::gate): Call it.
20521         (pass_data_tree_no_loop, pass_tree_no_loop,
20522         make_pass_tree_no_loop): New.
20523         * tree-vectorizer.c: Include tree-scalar-evolution.c
20524         (pass_slp_vectorize::execute): Initialize loops and SCEV if
20525         required.
20526         (pass_slp_vectorize::clone): New method.
20527         * timevar.def (TV_TREE_NOLOOP): New.
20528         * tree-pass.h (make_pass_tree_no_loop): Declare.
20529         * passes.def (pass_tree_no_loop): New pass group with
20530         SLP vectorizer.
20531
20532 2014-06-23  H.J. Lu  <hongjiu.lu@intel.com>
20533
20534         PR target/61570
20535         * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
20536         to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
20537
20538 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20539
20540         * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
20541         "yes" where needed.
20542
20543 2014-06-23  Alan Modra  <amodra@gmail.com>
20544
20545         PR bootstrap/61583
20546         * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
20547         to zero on debug statements.
20548
20549 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20550
20551         PR target/60825
20552         * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
20553         Ignore third operand if present by marking qualifier_internal.
20554
20555         * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
20556
20557         * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
20558         vector extension.
20559         (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
20560         arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
20561         (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
20562         vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
20563         vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
20564         vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
20565         vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
20566         vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
20567         vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
20568         vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
20569         vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
20570         vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
20571         vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
20572         vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
20573         vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
20574         vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
20575         logic in GCC vector extensions
20576
20577         (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
20578         vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
20579         vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
20580         vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
20581         vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
20582         vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
20583         vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
20584         vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
20585         vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
20586         vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
20587
20588         (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
20589
20590         (vget_high_s64, vget_high_u64): Reimplement with GCC vector
20591         extensions.
20592
20593         (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
20594         (vget_low_s64): Use __GET_LOW macro.
20595         (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
20596         gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
20597         (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
20598         (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
20599         __builtin_aarch64_lane_boundsi, use GCC vector extensions.
20600
20601         (vcombine_s64): Use GCC vector extensions; remove cast.
20602         (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
20603         vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
20604         vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
20605         Fix type signature; remove cast.
20606
20607 2014-06-23  Alan Lawrence  <alan.lawrence@arm.com>
20608
20609         PR target/60825
20610         * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
20611         V1DFmode.
20612         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
20613         add V1DFmode
20614         (BUILTIN_VD1): New.
20615         (BUILTIN_VD_RE): Remove.
20616         (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
20617         (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
20618         * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
20619         variant but not df.
20620         (vreinterpretv1df*, vreinterpret*v1df): New.
20621         (vreinterpretdf*, vreinterpret*df): Remove.
20622         * config/aarch64/aarch64-simd.md (aarch64_create,
20623         aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
20624         * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
20625         (VD1): New.
20626         * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
20627         (vcreate_f64): Remove cast, use v1df builtin.
20628         (vcombine_f64): Remove cast, get elements with gcc vector extensions.
20629         (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
20630         vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
20631         vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
20632         vmov_n_f64, vst1_f64): Use gcc vector extensions.
20633         (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
20634         add range check using __builtin_aarch64_im_lane_boundsi.
20635         (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
20636         vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
20637         type signature, use gcc vector extensions.
20638         (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
20639         vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
20640         vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
20641         vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
20642         vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
20643         vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
20644         vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
20645         vreinterpret_u64_f64): Use v1df builtin not df.
20646
20647 2014-06-23  James Greenhalgh  <james.greenhalgh@arm.com>
20648
20649         * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
20650         vector registers.
20651
20652 2014-06-23  Jan Hubicka  <hubicka@ucw.cz>
20653
20654         * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
20655         priority directly.
20656
20657 2014-06-23  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20658
20659         * loop-invariant.c (pre_check_invariant_p): New function.
20660         (find_invariant_insn): Call pre_check_invariant_p.
20661
20662 2014-06-22  Richard Henderson  <rth@redhat.com>
20663
20664         PR target/61565
20665         * compare-elim.c (struct comparison): Add eh_note.
20666         (find_comparison_dom_walker::before_dom_children): Don't eliminate
20667         a redundant comparison in a different EH region.  Purge EH edges if
20668         necessary.
20669
20670 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20671
20672         * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
20673         (var_shift): Use it.
20674         (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
20675         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
20676         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
20677         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
20678         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
20679         *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
20680         *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
20681         *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
20682         *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
20683         *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
20684         *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
20685         *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
20686         *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
20687         *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
20688         *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
20689         *rotldi3_internal15be): Use the new attribute.  Merge register and
20690         integer alternatives.
20691
20692 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20693
20694         * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
20695         define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
20696         split, *ashrdi3_internal3 and split): Delete, merge into...
20697         (ashr<mode>3): New expander.
20698         (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
20699         (*ashrsi3_64): Fix formatting.  Replace "i" by "n".
20700
20701 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20702
20703         * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
20704         *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
20705         *rotldi3_internal3 and split): Delete, merge into...
20706         (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
20707         (*rotlsi3_64): Fix formatting.  Fix condition.  Replace "i" by "n".
20708         Use "rotlw" extended mnemonic.
20709
20710 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20711
20712         * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
20713         and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
20714         and split, *ashldi3_internal3 and split): Delete, merge into...
20715         (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
20716         (*ashlsi3_64): Fix formatting.  Replace "i" by "n".
20717
20718 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20719
20720         * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
20721         (lshrsi3, two anonymous define_insns and define_splits,
20722         lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
20723         *lshrdi3_internal3 and split): Delete, merge into...
20724         (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
20725         (*lshrsi3_64): Fix formatting.  Replace "i" by "n".
20726
20727 2014-06-22  Segher Boessenkool  <segher@kernel.crashing.org>
20728
20729         * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
20730         Remove "O" alternative.
20731
20732 2014-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
20733
20734         * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
20735         (mips_move_from_gpr_cost): Likewise.
20736         (mips_register_move_cost): Update accordingly.
20737         (mips_secondary_reload_class): Remove name of in_p.
20738
20739 2014-06-22  Marc Glisse  <marc.glisse@inria.fr>
20740
20741         PR target/61503
20742         * config/i386/i386.md (x86_64_shrd, x86_shrd,
20743         ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
20744
20745 2014-06-21  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
20746
20747         * config/nios2/nios2.c: Include "builtins.h".
20748
20749 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20750
20751         * cgraph.h (tls_model_names): New variable.
20752         * print-tree.c (print_node): Simplify.
20753         * varpool.c (tls_model_names): New variable.
20754         (dump_varpool_node): Output tls model.
20755
20756 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20757
20758         * ipa-visibility.c (function_and_variable_visibility): Disable
20759         temporarily local aliases for some targets.
20760
20761 2014-06-20  Marek Polacek  <polacek@redhat.com>
20762
20763         * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
20764         * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
20765         into SANITIZE_UNDEFINED.
20766         * doc/invoke.texi: Describe -fsanitize=bounds.
20767         * gimplify.c (gimplify_call_expr): Add gimplification of internal
20768         functions created in the FEs.
20769         * internal-fn.c: Move "internal-fn.h" after "tree.h".
20770         (expand_UBSAN_BOUNDS): New function.
20771         * internal-fn.def (UBSAN_BOUNDS): New internal function.
20772         * internal-fn.h: Don't define internal functions here.
20773         * opts.c (common_handle_option): Add -fsanitize=bounds.
20774         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
20775         BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
20776         * tree-core.h: Define internal functions here.
20777         (struct tree_base): Add ifn field.
20778         * tree-pretty-print.c: Include "internal-fn.h".
20779         (dump_generic_node): Handle functions without CALL_EXPR_FN.
20780         * tree.c (get_callee_fndecl): Likewise.
20781         (build_call_expr_internal_loc): New function.
20782         * tree.def (CALL_EXPR): Update description.
20783         * tree.h (CALL_EXPR_IFN): Define.
20784         (build_call_expr_internal_loc): Declare.
20785         * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
20786         types.
20787         (ubsan_type_descriptor): Change bool parameter to enum
20788         ubsan_print_style.  Adjust the code.  Add handling of
20789         UBSAN_PRINT_ARRAY.
20790         (ubsan_expand_bounds_ifn): New function.
20791         (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
20792         (ubsan_build_overflow_builtin): Likewise.
20793         (instrument_bool_enum_load): Likewise.
20794         (ubsan_instrument_float_cast): Likewise.
20795         * ubsan.h (enum ubsan_print_style): New enum.
20796         (ubsan_expand_bounds_ifn): Declare.
20797         (ubsan_type_descriptor): Adjust declaration.  Use a default parameter.
20798
20799 2014-06-20  Maciej W. Rozycki  <macro@codesourcery.com>
20800
20801         * config/rs6000/rs6000.md: Append `DONE' to preparation
20802         statements of `bswap' pattern splitters.
20803
20804 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20805
20806         * target.def (call_fusage_contains_non_callee_clobbers): Update
20807         definition.
20808         * doc/tm.texi: Regenerate.
20809
20810 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20811             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20812
20813         PR sanitizer/61547
20814         * asan.c (instrument_strlen_call): Fixed instrumentation of
20815         trailing byte.
20816
20817 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20818
20819         PR ipa/61540
20820         * ipa-prop.c (impossible_devirt_target): New function.
20821         (try_make_edge_direct_virtual_call): Use it, also instead of
20822         asserting.
20823
20824 2014-06-20  Yury Gribov  <y.gribov@samsung.com>
20825             Max Ostapenko  <m.ostapenko@partner.samsung.com>
20826
20827         PR sanitizer/61530
20828         * asan.c (build_check_stmt): Add condition.
20829
20830 2014-06-20  Martin Jambor  <mjambor@suse.cz>
20831
20832         PR ipa/61211
20833         * cgraph.c (clone_of_p): Allow skipped_branch to deal with
20834         expanded clones.
20835
20836 2014-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20837
20838         * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
20839         Update comments.
20840         (VCONQ): Make comment more helpful.
20841         (VCON): Delete.
20842         * config/aarch64/aarch64-simd.md
20843         (aarch64_sqdmulh_lane<mode>):
20844         Use VCOND for operands 2.  Update lane checking and flipping logic.
20845         (aarch64_sqrdmulh_lane<mode>): Likewise.
20846         (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
20847         (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
20848         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
20849         attribute of operand 3 to VCOND.
20850         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
20851         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
20852         (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
20853         (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
20854         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
20855         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
20856         define_insn.
20857         (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
20858         (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
20859         (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
20860         (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
20861         (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
20862         (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
20863         operand to VCOND.  Update lane flipping and bounds checking logic.
20864         (aarch64_sqdmlal2_lane<mode>): Likewise.
20865         (aarch64_sqdmlsl_lane<mode>): Likewise.
20866         (aarch64_sqdmull_lane<mode>): Likewise.
20867         (aarch64_sqdmull2_lane<mode>): Likewise.
20868         (aarch64_sqdmlal_laneq<mode>):
20869         Replace VCON usage with VCONQ.
20870         Emit aarch64_sqdmlal_laneq<mode>_internal insn.
20871         (aarch64_sqdmlal2_laneq<mode>): Emit
20872         aarch64_sqdmlal2_laneq<mode>_internal insn.
20873         Replace VCON with VCONQ.
20874         (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
20875         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
20876         (aarch64_sqdmull_laneq<mode>): Emit
20877         aarch64_sqdmull_laneq<mode>_internal insn.
20878         Replace VCON with VCONQ.
20879         (aarch64_sqdmull2_laneq<mode>): Emit
20880         aarch64_sqdmull2_laneq<mode>_internal insn.
20881         (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
20882         * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
20883         of 3rd argument to int16x4_t.
20884         (vqdmlalh_lane_s16): Likewise.
20885         (vqdmlslh_lane_s16): Likewise.
20886         (vqdmull_high_lane_s16): Likewise.
20887         (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
20888         (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
20889         (vqdmlsl_lane_s16): Likewise.
20890         (vqdmull_lane_s16): Don't create temporary int16x8_t value.
20891         (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
20892         (vqdmlals_lane_s32): Likewise.
20893         (vqdmlsls_lane_s32): Likewise.
20894         (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
20895         (vqdmulls_lane_s32): Likewise.
20896         (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
20897         (vqdmlsl_lane_s32): Likewise.
20898         (vqdmull_lane_s32): Don't create temporary int32x4_t value.
20899         (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
20900         (vqrdmulhh_lane_s16): Likewise.
20901         (vqdmlsl_high_lane_s16): Likewise.
20902         (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
20903         (vqdmlsl_high_lane_s32): Likewise.
20904         (vqrdmulhs_lane_s32): Likewise.
20905
20906 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20907
20908         * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
20909         get_call_reg_set_usage.
20910
20911 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20912
20913         * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
20914         it contains all call_used_regs.
20915
20916 2014-06-20  Tom de Vries  <tom@codesourcery.com>
20917
20918         * final.c (collect_fn_hard_reg_usage): Add and use variable
20919         function_used_regs.
20920
20921 2014-06-20  Jan Hubicka  <hubicka@ucw.cz>
20922
20923         * cgraph.h (struct symtab_node): Add field in_init_priority_hash
20924         (set_init_priority, get_init_priority, set_fini_priority,
20925         get_fini_priority): New methods.
20926         * tree.c (init_priority_for_decl): Remove.
20927         (init_ttree): Do not initialize init priority.
20928         (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
20929         (decl_priority_info): Remove.
20930         (decl_init_priority_insert): Rewrite.
20931         (decl_fini_priority_insert): Rewrite.
20932         * tree.h (tree_priority_map_eq, tree_priority_map_hash,
20933         tree_priority_map_marked_p): Remove.
20934         * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
20935         * lto-streamer-out.c (hash_tree): Do not hash priorities.
20936         * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
20937         not output priorities.
20938         (pack_ts_function_decl_value_fields): Likewise.
20939         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
20940         not input priorities.
20941         (unpack_ts_function_decl_value_fields): Likewise.
20942         * symtab.c (symbol_priority_map): Declare.
20943         (init_priority_hash): Declare.
20944         (symtab_unregister_node): Unregister from priority hash, too.
20945         (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
20946         New methods.
20947         (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
20948         (symbol_priority_info): New function.
20949         (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
20950         New methods.
20951         * tree-core.h (tree_priority_map): Remove.
20952
20953 2014-06-20  Jakub Jelinek  <jakub@redhat.com>
20954
20955         * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
20956         0xff to uint64_t before shifting it up.
20957
20958 2014-06-20  Julian Brown  <julian@codesourcery.com>
20959             Chung-Lin Tang  <cltang@codesourcery.com>
20960
20961         * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
20962         TARGET_THUMB1_ONLY. Add comments.
20963
20964 2014-06-19  Tom de Vries  <tom@codesourcery.com>
20965
20966         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
20967         return type to void.
20968         * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
20969
20970 2014-06-19  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
20971
20972         * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
20973         as "move", from depends_on.
20974
20975 2014-06-19  Terry Guo  <terry.guo@arm.com>
20976
20977         * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
20978         stage.
20979
20980 2014-06-18  Segher Boessenkool  <segher@kernel.crashing.org>
20981
20982         * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
20983         Remove cr5.
20984         (REG_ALLOC_ORDER): Update comment.  Move cr5 earlier.
20985
20986 2014-06-18  Kaz Kojima  <kkojima@gcc.gnu.org>
20987
20988         PR target/61550
20989         * config/sh/sh.c (prepare_move_operands): Don't process TLS
20990         addresses here if reload in progress or completed.
20991
20992 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
20993
20994         * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
20995         "TARGET_MIPS16 ? M16_REGS : GR_REGS".
20996         * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
20997         (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
20998         (mips_register_priority): New function that implements the target
20999         hook TARGET_REGISTER_PRIORITY.
21000         (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
21001         (mips_lra_p): Likewise for TARGET_LRA_P.
21002         (TARGET_REGISTER_PRIORITY): Define macro.
21003         (TARGET_SPILL_CLASS): Likewise.
21004         (TARGET_LRA_P): Likewise.
21005         * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
21006         classes.
21007         (REG_CLASS_NAMES): Likewise.
21008         (REG_CLASS_CONTENTS): Likewise.
21009         (BASE_REG_CLASS): Use M16_SP_REGS.
21010         * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
21011         New set attribute to enable alternatives depending on the register
21012         allocator used.
21013         (*mul_acc_si_r3900, *mul_sub_si): Likewise.
21014         (*lea64): Disable pattern for MIPS16.
21015         * config/mips/mips.opt (mlra): New option.
21016
21017 2014-06-18  Robert Suchanek  <robert.suchanek@imgtec.com>
21018
21019         * lra-constraints.c (base_to_reg): New function.
21020         (process_address): Use new function.
21021
21022 2014-06-18  Tom de Vries  <tom@codesourcery.com>
21023
21024         * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
21025         * config/aarch64/aarch64.c
21026         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
21027         (aarch64_emit_call_insn): New function.
21028         (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
21029         of emit_call_insn.
21030         * config/aarch64/aarch64.md (define_expand "call_internal")
21031         (define_expand "call_value_internal", define_expand "sibcall_internal")
21032         (define_expand "sibcall_value_internal"): New.
21033         (define_expand "call", define_expand "call_value")
21034         (define_expand "sibcall", define_expand "sibcall_value"): Use internal
21035         expand variant and aarch64_emit_call_insn.
21036
21037 2014-06-18  Radovan Obradovic  <robradovic@mips.com>
21038             Tom de Vries  <tom@codesourcery.com>
21039
21040         * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
21041         * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
21042         Redefine to true.
21043         (arm_emit_call_insn): Add and use sibcall parameter.  Add IP and CC
21044         clobbers to CALL_INSN_FUNCTION_USAGE.
21045         (define_expand "sibcall_internal")
21046         (define_expand "sibcall_value_internal"): New.
21047         (define_expand "call", define_expand "call_value"): Add argument to
21048         arm_emit_call_insn.
21049         (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
21050         (define_expand "sibcall_value"): Use sibcall_value_internal and
21051         arm_emit_call_insn.
21052
21053 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21054
21055         * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
21056
21057 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21058
21059         * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
21060         __udivmoddi4.
21061
21062 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21063
21064         * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
21065         push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
21066         annotations. Fix DWARF information.
21067
21068 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21069
21070         * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
21071         __udivmoddi4, and fixups for negative operands.
21072
21073 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21074
21075         * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
21076
21077 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21078
21079         * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
21080         to __udivmoddi4.
21081
21082 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21083
21084         * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
21085         manipulation.
21086
21087 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21088
21089         * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
21090         describing register usage on function entry and exit.
21091
21092 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21093
21094         * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
21095         (__aeabi_ldivmod): Fix whitespace.
21096
21097 2014-06-18  Andreas Schwab  <schwab@suse.de>
21098
21099         * doc/md.texi (Standard Names): Use @itemx for grouped items.
21100         Remove blank line after @item.
21101
21102 2014-06-18  Richard Henderson  <rth@redhat.com>
21103
21104         PR target/61545
21105         * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
21106
21107 2014-06-18  Charles Baylis  <charles.baylis@linaro.org>
21108
21109         * config/arm/arm.c (neon_vector_mem_operand): Allow register
21110         POST_MODIFY for neon loads and stores.
21111         (arm_print_operand): Output post-index register for neon loads and
21112         stores.
21113
21114 2014-06-18  Richard Biener  <rguenther@suse.de>
21115
21116         * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
21117
21118 2014-06-18  Richard Biener  <rguenther@suse.de>
21119
21120         * tree-pass.h (make_pass_dce_loop): Remove.
21121         * passes.def: Replace pass_dce_loop with pass_dce.
21122         * tree-ssa-dce.c (perform_tree_ssa_dce): If something
21123         changed free niter estimates and reset the scev cache.
21124         (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
21125         make_pass_dce_loop): Remove.
21126         * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
21127         (fini_copy_prop): Return whether something changed.  Always
21128         let substitute_and_fold perform DCE and free niter estimates
21129         and reset the scev cache if so.
21130         (execute_copy_prop): If sth changed schedule cleanup-cfg.
21131         (pass_data_copy_prop): Do not unconditionally schedule
21132         cleanup-cfg or update-ssa.
21133
21134 2014-06-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
21135
21136         PR tree-optimization/61518
21137         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
21138         reduction var is used in reduction stmt or phi-function only.
21139
21140 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21141
21142         * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
21143
21144 2014-06-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21145
21146         PR tree-optimization/61517
21147         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
21148         whose rhs's first tree is the source expression instead of the
21149         expression itself.
21150         (find_bswap_or_nop): Likewise.
21151         (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
21152         gimple stmt whose rhs's first tree is the source. In the memory source
21153         case, move the stmt to be replaced close to one of the original load to
21154         avoid the problem of a store between the load and the stmt's original
21155         location.
21156         (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
21157         signature.
21158
21159 2014-06-18  Andreas Schwab  <schwab@suse.de>
21160
21161         PR rtl-optimization/54555
21162         * postreload.c (move2add_use_add2_insn): Substitute
21163         STRICT_LOW_PART only if it is cheaper.
21164
21165 2014-06-18  Uros Bizjak  <ubizjak@gmail.com>
21166
21167         * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
21168         Do not use unspec as call operand.  Use memory_operand instead of
21169         memory_nox32_operand and add "m" operand constraint.  Disable
21170         pattern for TARGET_X32.
21171         (*sibcall_pop_memory): Ditto.
21172         (*sibcall_value_memory): Ditto.
21173         (*sibcall_value_pop_memory): Ditto.
21174         (sibcall peepholes): Merge SImode and DImode patterns using
21175         W mode iterator.  Use memory_operand instead of memory_nox32_operand.
21176         Disable pattern for TARGET_X32.  Check if eliminated register is
21177         really dead after call insn.  Generate call RTX without unspec operand.
21178         (sibcall_value peepholes): Ditto.
21179         (sibcall_pop peepholes): Fix call insn RTXes.  Use memory_operand
21180         instead of memory_nox32_operand.  Check if eliminated register is
21181         really dead after call insn. Generate call RTX without unspec operand.
21182         (sibcall_value_pop peepholes): Ditto.
21183         * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
21184
21185 2014-06-18  Terry Guo  <terry.guo@arm.com>
21186
21187         PR target/61544
21188         * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
21189         reach the head.
21190
21191 2014-06-18  Olivier Hainque  <hainque@adacore.com>
21192
21193         * tree-core.h (tree_block): Add an "end_locus" field, allowing
21194         memorization of the end of block source location.
21195         * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
21196         * gimplify.c (gimplify_bind_expr): Propagate the block start and
21197         end source location info we have on the block entry/exit code we
21198         generate.
21199
21200 2014-06-18  Richard Biener  <rguenther@suse.de>
21201
21202         * common.opt (fssa-phiopt): New option.
21203         * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
21204         but not with -Og.
21205         * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
21206         * doc/invoke.texi (-fssa-phiopt): Document.
21207
21208 2014-06-18  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21209
21210         * genattrtab.c (n_bypassed): New variable.
21211         (process_bypasses): Initialise n_bypassed.
21212         Count number of bypassed reservations.
21213         (make_automaton_attrs): Allocate space for bypassed reservations
21214         rather than number of bypasses.
21215
21216 2014-06-18  Richard Biener  <rguenther@suse.de>
21217
21218         * tree-ssa-propagate.c (replace_phi_args_in): Return whether
21219         we propagated anything.
21220         (substitute_and_fold_dom_walker::before_dom_children): Something
21221         changed if we propagated into PHI arguments.
21222         * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
21223         we removed a stmt.
21224
21225 2014-06-18  Evgeny Stupachenko  <evstupac@gmail.com>
21226
21227         * config/i386/i386.c (ix86_reassociation_width): Add alternative for
21228         vector case.
21229         * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
21230         * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
21231         * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
21232         Introduces alternative way of loads group permutaions.
21233         (vect_transform_grouped_load): Try alternative way of permutations.
21234
21235 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21236
21237         * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
21238         changed in ORT_TARGET region, don't jump to do_outer.
21239         (struct gimplify_adjust_omp_clauses_data): New type.
21240         (gimplify_adjust_omp_clauses_1): Adjust for data being
21241         a struct gimplify_adjust_omp_clauses_data pointer instead
21242         of tree *.  Pass pre_p as a new argument to
21243         lang_hooks.decls.omp_finish_clause hook.
21244         (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
21245         splay_tree_foreach to pass both list_p and pre_p.
21246         (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
21247         gimplify_omp_workshare, gimplify_omp_target_update): Adjust
21248         gimplify_adjust_omp_clauses callers.
21249         * langhooks.c (lhd_omp_finish_clause): New function.
21250         * langhooks-def.h (lhd_omp_finish_clause): New prototype.
21251         (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
21252         * langhooks.h (struct lang_hooks_for_decls): Add a new
21253         gimple_seq * argument to omp_finish_clause hook.
21254         * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
21255         non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
21256         (scan_omp_parallel, lower_omp_for): When adding
21257         _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
21258         * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
21259         * tree-nested.c (convert_nonlocal_omp_clauses,
21260         convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
21261         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
21262
21263 2014-06-17  Andrew MacLeod  <amacleod@redhat.com>
21264
21265         * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
21266         * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
21267
21268 2014-06-17  Xinliang David Li  <davidxl@google.com>
21269
21270         * tree-pretty-print.c (dump_function_header): Print cgraph uid.
21271         * passes.c (pass_init_dump_file): Do not set initialize
21272         flag to false unconditionally.
21273
21274 2014-06-17  Richard Biener  <rguenther@suse.de>
21275
21276         * genopinit.c (main): Use vec<>::qsort method.
21277         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
21278         Likewise.
21279         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
21280
21281 2014-06-17  Matthew Fortune  <matthew.fortune@imgtec.com>
21282
21283         * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
21284         * config/mips/mips.c (mips_expand_fcc_reload): Remove.
21285         (mips_move_to_gpr_cost): Remove ST_REGS case.
21286         (mips_move_from_gpr_cost): Likewise.
21287         (mips_register_move_cost): Likewise.
21288         (mips_secondary_reload_class): Likewise.
21289
21290 2014-06-17  Richard Biener  <rguenther@suse.de>
21291
21292         * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
21293         (pass_all_optimizations): Move 3rd copy-prop pass from after
21294         fre to before ifcombine/phiopt.
21295
21296 2014-06-17  Richard Biener  <rguenther@suse.de>
21297
21298         * tree-switch-conversion.c (collect_switch_conv_info): Simplify
21299         and allow all blocks to be forwarders.
21300
21301 2014-06-17  Yufeng Zhang  <yufeng.zhang@arm.com>
21302
21303         PR target/61483
21304         * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
21305         variable 'size'; calculate 'size' right in the front; use
21306         'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
21307         pcum->aapcs_stack_words.
21308
21309 2014-06-17  Nick Clifton  <nickc@redhat.com>
21310
21311         * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
21312         (umulhi3, mulsidi3, umulsidi3): Likewise.
21313
21314 2014-06-17  Thomas Schwinge  <thomas@codesourcery.com>
21315
21316         PR middle-end/61508
21317         * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
21318         check for section name.
21319
21320 2014-06-17  Richard Biener  <rguenther@suse.de>
21321
21322         * tree-ssa-propagate.c: Include domwalk.h.
21323         (substitute_and_fold): Outline main worker into a domwalker ...
21324         (substitute_and_fold_dom_walker::before_dom_children): ... here.
21325         Schedule stmts we can fully propagate for removal.  Remove
21326         poor-mans DCE.
21327         (substitute_and_fold): Apply a dominator walk to perform
21328         substitution.  Process stmts scheduled for removal here.
21329
21330 2014-06-17  Richard Biener  <rguenther@suse.de>
21331
21332         * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
21333         of PHI node moving.
21334
21335 2014-06-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
21336
21337         * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
21338         default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
21339         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
21340         __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
21341         * config/arm/vfp.md (set_fpscr): Make pattern conditional on
21342         TARGET_HARD_FLOAT.
21343         (get_fpscr) : Likewise.
21344
21345 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21346
21347         PR rtl-optimization/61325
21348         * lra-constraints.c (valid_address_p): Add forward declaration.
21349         (simplify_operand_subreg): Check address validity before and after
21350         alter_reg of memory subreg.
21351
21352 2014-06-16  Uros Bizjak  <ubizjak@gmail.com>
21353
21354         * config/i386/i386.c (decide_alg): Correctly handle
21355         maximum size of stringop algorithm.
21356
21357 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21358
21359         * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
21360
21361 2014-06-16  Vladimir Makarov  <vmakarov@redhat.com>
21362
21363         PR rtl-optimization/61522
21364         * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
21365
21366 2014-06-16  Jan Hubicka  <hubicka@ucw.cz>
21367
21368         Revert:
21369         * symtab.c (symtab_node::reset_section): New method.
21370         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21371         for localization.
21372         * cgraph.h (reset_section): Declare.
21373         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21374         do not consider comdat locals.
21375         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21376         for new symbol.
21377         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21378         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21379         reset sections of symbols dragged out of the comdats.
21380         (function_and_variable_visibility): Reset sections of
21381         localized symbols.
21382
21383 2014-06-16  Richard Biener  <rguenther@suse.de>
21384
21385         PR tree-optimization/61482
21386         * tree-vrp.c (adjust_range_with_scev): Avoid setting of
21387         [-INF(OVF), +INF(OVF)] range.
21388
21389 2014-06-16  Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
21390
21391         * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
21392         instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
21393         handling 32-bit multiplication.
21394
21395 2014-06-16  Chung-Lin Tang  <cltang@codesourcery.com>
21396
21397         PR middle-end/61430
21398         * lra-lives.c (process_bb_lives): Skip creating copy during
21399         insn scan when src/dest has constrained to same regno.
21400
21401 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21402
21403         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
21404         DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
21405
21406 2014-06-16  Yury Gribov  <y.gribov@samsung.com>
21407
21408         * asan.c (check_func): New function.
21409         (maybe_create_ssa_name): Likewise.
21410         (build_check_stmt_with_calls): Likewise.
21411         (use_calls_p): Likewise.
21412         (report_error_func): Change interface.
21413         (build_check_stmt): Allow non-integer lengths; add support
21414         for new parameter.
21415         (asan_instrument): Likewise.
21416         (instrument_mem_region_access): Moved code to build_check_stmt.
21417         (instrument_derefs): Likewise.
21418         (instrument_strlen_call): Likewise.
21419         * cfgcleanup.c (old_insns_match_p): Add support for new functions.
21420         * doc/invoke.texi: Describe new parameter.
21421         * params.def: Define new parameter.
21422         * params.h: Likewise.
21423         * sanitizer.def: Describe new builtins.
21424
21425 2014-06-16  Richard Biener  <rguenther@suse.de>
21426
21427         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21428         Make all defs available at the end.
21429         (eliminate): If we remove a PHI node schedule cfg-cleanup.
21430
21431 2014-06-18  Jakub Jelinek  <jakub@redhat.com>
21432
21433         PR plugins/45078
21434         * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
21435
21436 2014-06-16  Richard Sandiford  <rdsandiford@googlemail.com>
21437
21438         PR bootstrap/61516
21439         * auto-inc-dec.c (merge_in_block): Fix location of insn_info
21440         initialization.  Replace remaining use of uid.
21441
21442 2014-06-15  Jan Hubicka  <hubicka@ucw.cz>
21443
21444         * c-family/c-common.c (handle_tls_model_attribute): Use
21445         set_decl_tls_model.
21446         * c-family/c-common.c (handle_tls_model_attribute): Use
21447         set_decl_tls_model.
21448         * cgraph.h (struct varpool_node): Add tls_model.
21449         * tree.c (decl_tls_model, set_decl_tls_model): New functions.
21450         * tree.h (DECL_TLS_MODEL): Update.
21451         (DECL_THREAD_LOCAL_P): Check that variable is static.
21452         (decl_tls_model): Declare.
21453         (set_decl_tls_model): Declare.
21454         * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
21455         set symbol prorperties.
21456         (get_emutls_init_templ_addr): Cleanup.
21457         (new_emutls_decl): Update.
21458         * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
21459         (lto_input_varpool_node): Likewise.
21460         * lto-streamer-out.c (hash_tree): Likewise.
21461         * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
21462         not stream DECL_TLS_MODEL.
21463         * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
21464         * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
21465
21466 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21467
21468         * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
21469
21470 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21471
21472         * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
21473         (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
21474         lists.
21475         (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
21476         (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
21477         (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
21478         (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
21479         (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
21480         (df_get_artificial_defs, df_get_artificial_uses)
21481         (df_single_def, df_single_use): Update accordingly.
21482         (df_refs_chain_dump): Take the first element in a linked list as
21483         parameter, rather than a pointer to an array of pointers.
21484         * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
21485         * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
21486         (df_chain_create_bb_process_use): Likewise.
21487         (df_md_bb_local_compute_process_def): Likewise.
21488         * fwprop.c (process_defs, process_uses): Likewise.
21489         (register_active_defs, update_uses): Likewise.
21490         (forward_propagate_asm): Update for new df_ref linking.
21491         * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
21492         (df_null_ref_rec, df_null_mw_rec): Likewise.
21493         (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
21494         explicitly.
21495         (df_scan_free_bb_info): Remove check for null artificial_defs.
21496         (df_install_ref_incremental): Adjust for new df_ref linking.
21497         Use a single-element insertion rather than a full sort.
21498         (df_ref_chain_delete_du_chain): Take the first element
21499         in a linked list as parameter, rather than a pointer to an array of
21500         pointers.
21501         (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
21502         (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
21503         (df_insn_info_delete): Remove check for null defs and call to
21504         df_scan_free_mws_vec.
21505         (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
21506         null rather than df_null_*_rec.
21507         (df_insn_rescan_debug_internal): Likewise, and update null
21508         checks in the same way.  Remove check for null defs.
21509         (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
21510         Move a single element rather doing a full sort.
21511         (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
21512         linking.
21513         (df_notes_rescan): Likewise.  Use a merge rather than a full sort.
21514         Initialize df_ref and df_mw_hardreg lists to null rather than
21515         df_null_*_rec.
21516         (df_ref_compare): Take df_refs as parameter, transferring the
21517         old interface to...
21518         (df_ref_ptr_compare): ...this new function.
21519         (df_sort_and_compress_refs): Update accordingly.
21520         (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
21521         old interface to...
21522         (df_mw_ptr_compare): ...this new function.
21523         (df_sort_and_compress_mws): Update accordingly.
21524         (df_install_refs, df_install_mws): Return a linked list rather than
21525         an array of pointers.
21526         (df_refs_add_to_chains): Assert that old lists are empty rather
21527         than freeing them.
21528         (df_insn_refs_verify): Don't handle null defs speciailly.
21529         * web.c (union_match_dups): Update for new df_ref linking.
21530
21531 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21532
21533         * df.h (df_ref_create, df_ref_remove): Delete.
21534         * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
21535         (df_ref_remove): Likewise.
21536
21537 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21538
21539         * df.h (df_single_def, df_single_use): New functions.
21540         * ira.c (find_moveable_pseudos): Use them.
21541
21542 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21543
21544         * df.h (FOR_EACH_INSN_INFO_MW): New macro.
21545         * df-problems.c (df_note_bb_compute): Use it.
21546         * regstat.c (regstat_bb_compute_ri): Likewise.
21547
21548 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21549
21550         * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
21551         * cse.c (cse_extended_basic_block): Use them.
21552         * dce.c (mark_artificial_use): Likewise.
21553         * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
21554         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21555         (df_chain_remove_problem, df_chain_bb_dump): Likewise.
21556         (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
21557         (df_simulate_initialize_backwards): Likewise.
21558         (df_simulate_finalize_backwards): Likewise.
21559         (df_simulate_initialize_forwards): Likewise.
21560         (df_md_simulate_artificial_defs_at_top): Likewise.
21561         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21562         * regrename.c (init_rename_info): Likewise.
21563         * regstat.c (regstat_bb_compute_ri): Likewise.
21564         (regstat_bb_compute_calls_crossed): Likewise.
21565
21566 2014-06-15  Richard Sandiford  <rdsandiford@googlemail.com>
21567
21568         * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
21569         (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
21570         (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
21571         * auto-inc-dec.c (find_inc, merge_in_block): Use them.
21572         * combine.c (create_log_links): Likewise.
21573         * compare-elim.c (find_flags_uses_in_insn): Likewise.
21574         (try_eliminate_compare): Likewise.
21575         * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
21576         * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
21577         (remove_reg_equal_equiv_notes_for_defs): Likewise.
21578         (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
21579         (word_dce_process_block, dce_process_block): Likewise.
21580         * ddg.c (def_has_ccmode_p): Likewise.
21581         * df-core.c (df_bb_regno_first_def_find): Likewise.
21582         (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
21583         * df-problems.c (df_rd_simulate_one_insn): Likewise.
21584         (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
21585         (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
21586         (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
21587         (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
21588         (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
21589         (df_simulate_find_defs, df_simulate_find_uses): Likewise.
21590         (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
21591         (df_simulate_uses, df_md_simulate_one_insn): Likewise.
21592         * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
21593         * fwprop.c (local_ref_killed_between_p): Likewise.
21594         (all_uses_available_at, free_load_extend): Likewise.
21595         * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
21596         * hw-doloop.c (scan_loop): Likewise.
21597         * ifcvt.c (dead_or_predicable): Likewise.
21598         * init-regs.c (initialize_uninitialized_regs): Likewise.
21599         * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
21600         (process_bb_node_lives): Likewise.
21601         * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
21602         (find_moveable_pseudos): Likewise.
21603         * loop-invariant.c (check_dependencies, record_uses): Likewise.
21604         * recog.c (peep2_find_free_register): Likewise.
21605         * ree.c (get_defs): Likewise.
21606         * regstat.c (regstat_bb_compute_ri): Likewise.
21607         (regstat_bb_compute_calls_crossed): Likewise.
21608         * sched-deps.c (find_inc, find_mem): Likewise.
21609         * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
21610         (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
21611         * shrink-wrap.c (requires_stack_frame_p): Likewise.
21612         (prepare_shrink_wrap): Likewise.
21613         * store-motion.c (compute_store_table, build_store_vectors): Likewise.
21614         * web.c (union_defs, pass_web::execute): Likewise.
21615         * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
21616         (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
21617
21618 2014-06-13  Vladimir Makarov  <vmakarov@redhat.com>
21619
21620         * lra-assign.c (assign_by_spills): Add code to assign vector regs
21621         to inheritance pseudos.
21622         * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
21623
21624 2014-06-13  Peter Bergner  <bergner@vnet.ibm.com>
21625
21626         PR target/61415
21627         * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
21628         (BU_MISC_2): Rename to ...
21629         (BU_LDBL128_2): ... this.
21630         * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
21631         (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
21632         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
21633         RS6000_BTM_LDBL128.
21634         (rs6000_invalid_builtin): Add long double 128-bit builtin support.
21635         (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
21636         * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
21637         (unpacktf_1): Likewise.
21638         * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
21639         (__builtin_longdouble_dw1): Likewise.
21640         * doc/sourcebuild.texi (longdouble128): Document.
21641
21642 2014-06-13  Jeff Law  <law@redhat.com>
21643
21644         PR rtl-optimization/61094
21645         PR rtl-optimization/61446
21646         * ree.c (combine_reaching_defs): Get the mode for the copy from
21647         the extension insn rather than the defining insn.
21648
21649 2014-06-13  Dehao Chen  <dehao@google.com>
21650
21651         * dwarf2out.c (add_linkage_name): Emit more linkage name.
21652
21653 2014-06-13  Thomas Schwinge  <thomas@codesourcery.com>
21654
21655         * doc/install.texi (--enable-linker-plugin-configure-flags)
21656         (--enable-linker-plugin-flags): Document new flags.
21657
21658 2014-06-13  Martin Jambor  <mjambor@suse.cz>
21659
21660         PR ipa/61186
21661         * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
21662         cache_token if returning early.
21663
21664 2014-06-13  Nick Clifton  <nickc@redhat.com>
21665
21666         * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
21667         requested alignment is active.
21668         (LABEL_ALIGN): Likewise.
21669         (LOOP_ALIGN): Likewise.
21670
21671 2014-06-13  Richard Biener  <rguenther@suse.de>
21672
21673         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21674         Rewrite to propagate the VN result into all uses where
21675         possible and to remove stmts becoming dead because of that.
21676         (eliminate): Generalize stmt removal handling, remove in
21677         reverse dominator order to support proper debug stmt
21678         generation.  Update stmts before removing stmts.
21679         * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
21680
21681 2014-06-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
21682
21683         PR tree-optimization/61375
21684         * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
21685         symbolic number cannot be represented in an uint64_t.
21686         (find_bswap_or_nop_1): Likewise.
21687
21688 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21689
21690         * symtab.c (symtab_node::reset_section): New method.
21691         * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
21692         for localization.
21693         * cgraph.h (reset_section): Declare.
21694         * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
21695         do not consider comdat locals.
21696         * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
21697         for new symbol.
21698         * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
21699         (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
21700         reset sections of symbols dragged out of the comdats.
21701         (function_and_variable_visibility): Reset sections of
21702         localized symbols.
21703
21704 2014-06-12  Jan Hubicka  <hubicka@ucw.cz>
21705
21706         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
21707         to use symtab and decl_binds_to_current_def_p
21708         * tree-vectorizer.c (increase_alignment): Increase alignment
21709         of alias target, too.
21710
21711 2014-06-12  Jakub Jelinek  <jakub@redhat.com>
21712
21713         PR middle-end/61486
21714         * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
21715         (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
21716         if outer combined construct is distribute.
21717         (gimplify_omp_for): For OMP_DISTRIBUTE set
21718         gimplify_omp_ctxp->distribute.
21719         * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
21720         GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
21721         mapping into decl map.
21722
21723 2014-06-12  Jason Merrill  <jason@redhat.com>
21724
21725         * common.opt (fabi-version): Change default to 0.
21726
21727 2014-06-12  Jason Merrill  <jason@redhat.com>
21728
21729         * toplev.c (process_options): Reject -fabi-version=1.
21730
21731 2014-06-12  Jeff Law  <law@redhat.com>
21732
21733         PR tree-optimization/61009
21734         * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
21735         value when we stop processing a block due to problematic PHIs.
21736
21737 2014-06-12  Alan Lawrence  <alan.lawrence@arm.com>
21738
21739         * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
21740         vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
21741         vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
21742         vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
21743         vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
21744         vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
21745         vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
21746         are not in the spec.
21747
21748 2014-06-10  Alan Lawrence  <alan.lawrence@arm.com>
21749
21750         PR target/59843
21751         * config/aarch64/aarch64-modes.def: Add V1DFmode.
21752         * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
21753         Support V1DFmode.
21754
21755 2014-06-12  Eric Botcazou  <ebotcazou@adacore.com>
21756
21757         * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
21758
21759 2014-06-12  Georg-Johann Lay  <avr@gjlay.de>
21760
21761         PR target/61443
21762         * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
21763         loading from address spaces.
21764
21765 2014-06-12  Martin Liska  <mliska@suse.cz>
21766
21767         PR ipa/61462
21768         * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
21769         statement is reachable.
21770
21771 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
21772
21773         * symtab.c (section_hash): New hash.
21774         (symtab_unregister_node): Clear section before freeing.
21775         (hash_section_hash_entry): New haser.
21776         (eq_sections): New function.
21777         (symtab_node::set_section_for_node): New method.
21778         (set_section_1): Update.
21779         (symtab_node::set_section): Take string instead of tree as parameter.
21780         (symtab_resolve_alias): Update.
21781         * cgraph.h (section_hash_entry_d): New structure.
21782         (section_hash_entry): New typedef.
21783         (cgraph_node): Change comdat_group_ to x_comdat_group,
21784         change section_ to x_section and turn into section_hash_entry;
21785         update accestors; put set_section_for_node offline.
21786         * tree.c (decl_section_name): Turn into string.
21787         (set_decl_section_name): Change parameter to be string.
21788         * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
21789         * sdbout.c (sdbout_one_type): Update.
21790         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
21791         * varasm.c (IN_NAMED_SECTION, get_named_section,
21792         resolve_unique_section, hot_function_section, get_named_text_section,
21793         USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
21794         make_decl_rtl, default_unique_section): Update.
21795         * config/c6x/c6x.c (c6x_in_small_data_p): Update.
21796         (c6x_elf_unique_section): Update.
21797         * config/nios2/nios2.c (nios2_in_small_data_p): Update.
21798         * config/pa/pa.c (pa_function_section): Update.
21799         * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
21800         * config/ia64/ia64.c (ia64_in_small_data_p): Update.
21801         * config/arc/arc.c (arc_in_small_data_p): Update.
21802         * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
21803         * config/mcore/mcore.c (mcore_unique_section): Update.
21804         * config/mips/mips.c (mips16_build_function_stub): Update.
21805         (mips16_build_call_stub): Update.
21806         (mips_function_rodata_section): Update.
21807         (mips_in_small_data_p): Update.
21808         * config/score/score.c (score_in_small_data_p): Update.
21809         * config/rx/rx.c (rx_in_small_data): Update.
21810         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
21811         (rs6000_xcoff_asm_named_section): Update.
21812         (rs6000_xcoff_unique_section): Update.
21813         * config/frv/frv.c (frv_string_begins_with): Update.
21814         (frv_in_small_data_p): Update.
21815         * config/v850/v850.c (v850_encode_data_area): Update.
21816         * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
21817         (bfin_handle_l1_data_attribute): Update.
21818         (bfin_handle_l2_attribute): Update.
21819         * config/mep/mep.c (mep_unique_section): Update.
21820         * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
21821         Update.
21822         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
21823         (h8300_handle_tiny_data_attribute): Update.
21824         * config/m32r/m32r.c (m32r_in_small_data_p): Update.
21825         (m32r_in_small_data_p): Update.
21826         * config/alpha/alpha.c (alpha_in_small_data_p): Update.
21827         * config/i386/i386.c (ix86_in_large_data_p): Update.
21828         * config/i386/winnt.c (i386_pe_unique_section): Update.
21829         * config/darwin.c (darwin_function_section): Update.
21830         * config/lm32/lm32.c (lm32_in_small_data_p): Update.
21831         * tree-emutls.c (get_emutls_init_templ_addr): Update.
21832         (new_emutls_decl): Update.
21833         * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
21834         input_varpool_node): Update.
21835         (ead_string_cst): Turn to ...
21836         (read_string): ... this one.
21837         * dwarf2out.c (secname_for_decl): Update.
21838         * asan.c (asan_protect_global): Update.
21839
21840 2014-06-11  DJ Delorie  <dj@redhat.com>
21841
21842         * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
21843         cache lines.
21844         * config/rx/rx.c (rx_option_override): Likewise.
21845         (rx_align_for_label): Likewise.
21846
21847         * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
21848
21849 2014-06-11  Maciej W. Rozycki  <macro@codesourcery.com>
21850
21851         * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
21852         prototype.
21853
21854 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21855
21856         * common.md: New file.
21857         * doc/md.texi: Update description of generic, machine-independent
21858         constraints.
21859         * config/s390/constraints.md (e): Delete.
21860         * Makefile.in (md_file): Include common.md.
21861         * config/m32c/t-m32c (md_file): Likewise.
21862         * genpreds.c (general_mem): New array.
21863         (generic_constraint_letters): Remove constraints now defined by
21864         common.md.
21865         (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21866         Allow the first character to be '<' or '>' as well.
21867         * genoutput.c (general_mem): New array.
21868         (indep_constraints): Remove constraints now defined by common.md.
21869         (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
21870         Remove special handling of 'm'.
21871         * ira-costs.c (record_reg_classes): Remove special handling of
21872         constraints now defined by common.md.
21873         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21874         * ira-lives.c (single_reg_class): Likewise.
21875         (ira_implicitly_set_insn_hard_regs): Likewise.
21876         * lra-constraints.c (reg_class_from_constraints): Likewise.
21877         (process_alt_operands, process_address, curr_insn_transform): Likewise.
21878         * postreload.c (reload_cse_simplify_operands): Likewise.
21879         * reload.c (push_secondary_reload, scratch_reload_class)
21880         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21881         * reload1.c (maybe_fix_stack_asms): Likewise.
21882         * targhooks.c (default_secondary_reload): Likewise.
21883         * stmt.c (parse_output_constraint): Likewise.
21884         * recog.c (preprocess_constraints): Likewise.
21885         (constrain_operands, peep2_find_free_register): Likewise.
21886         (asm_operand_ok): Likewise, but add a comment saying why 'o'
21887         must be handled specially.
21888
21889 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21890
21891         * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
21892         * genpreds.c (have_const_dbl_constraints): Delete.
21893         (add_constraint): Don't set it.
21894         (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
21895         * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
21896         constraints using the lookup_constraint logic.
21897         * ira-lives.c (single_reg_class): Likewise.
21898         * ira.c (ira_setup_alts): Likewise.
21899         * lra-constraints.c (process_alt_operands): Likewise.
21900         * recog.c (asm_operand_ok, constrain_operands): Likewise.
21901         * reload.c (find_reloads): Likewise.
21902
21903 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21904
21905         * genpreds.c (const_int_start, const_int_end): New variables.
21906         (choose_enum_order): Output CONST_INT constraints before memory
21907         constraints.
21908         (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
21909         Add CT_CONST_INT.
21910         * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
21911         * ira.c (ira_setup_alts): Likewise.
21912         * lra-constraints.c (process_alt_operands): Likewise.
21913         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21914         * reload.c (find_reloads): Likewise.
21915
21916 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21917
21918         * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
21919         decmem_ok and incmem_ok.  Reformat other bitfields for consistency.
21920         * recog.c (preprocess_constraints): Update accordingly.
21921
21922 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21923
21924         * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
21925         (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
21926         (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
21927         * genpreds.c (print_type_tree): New function.
21928         (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
21929         REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
21930         EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
21931         Write out enum constraint_type and get_constraint_type.
21932         * lra-constraints.c (satisfies_memory_constraint_p): Take a
21933         constraint_num rather than a constraint string.
21934         (satisfies_address_constraint_p): Likewise.
21935         (reg_class_from_constraints): Avoid old constraint macros.
21936         (process_alt_operands, process_address_1): Likewise.
21937         (curr_insn_transform): Likewise.
21938         * ira-costs.c (record_reg_classes): Likewise.
21939         (record_operand_costs): Likewise.
21940         * ira-lives.c (single_reg_class): Likewise.
21941         (ira_implicitly_set_insn_hard_regs): Likewise.
21942         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
21943         * postreload.c (reload_cse_simplify_operands): Likewise.
21944         * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21945         (constrain_operands, peep2_find_free_register): Likewise.
21946         * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
21947         (find_reloads, alternative_allows_const_pool_ref): Likewise.
21948         * reload1.c (maybe_fix_stack_asms): Likewise.
21949         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21950         * targhooks.c (default_secondary_reload): Likewise.
21951         * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
21952         to EXTRA_CONSTRAINT_STR.
21953         * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
21954
21955 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21956
21957         * genpreds.c (write_constraint_satisfied_p_1): Replace with...
21958         (write_constraint_satisfied_p_array): ...this new function.
21959         (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
21960         an array.
21961         (write_insn_preds_c): Update accordingly.
21962
21963 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21964
21965         * genpreds.c (write_lookup_constraint): Rename to...
21966         (write_lookup_constraint_1): ...this.
21967         (write_lookup_constraint_array): New function.
21968         (write_tm_preds_h): Define lookup_constraint as an inline function
21969         that uses write_lookup_constraint_array where possible.
21970         (write_insn_preds_c): Update for the changes above.
21971
21972 2014-06-11  Richard Sandiford  <rdsandiford@googlemail.com>
21973
21974         * doc/md.texi (regclass_for_constraint): Rename to...
21975         (reg_class_for_constraint): ...this.
21976         * genpreds.c (num_constraints, enum_order, register_start)
21977         (register_end, satisfied_start, memory_start, memory_end)
21978         (address_start, address_end): New variables.
21979         (add_constraint): Count the number of constraints.
21980         (choose_enum_order): New function.
21981         (write_enum_constraint_num): Iterate over enum_order.
21982         (write_regclass_for_constraint): Rename to...
21983         (write_reg_class_for_constraint_1): ...this and update output
21984         accordingly.
21985         (write_constraint_satisfied_p): Rename to...
21986         (write_constraint_satisfied_p_1): ...this and update output
21987         accordingly.  Do nothing if all extra constraints are register
21988         constraints.
21989         (write_insn_extra_memory_constraint): Delete.
21990         (write_insn_extra_address_constraint): Delete.
21991         (write_range_function): New function.
21992         (write_tm_preds_h): Define constraint_satisfied_p and
21993         reg_class_for_constraint as inline functions that do a range check
21994         before calling the out-of-line function.  Use write_range_function
21995         to implement insn_extra_{register,memory,address}_constraint,
21996         the first of which is new.
21997         (write_insn_preds_c): Update after above changes to write_* functions.
21998         (main): Call choose_enum_order.
21999
22000 2014-06-11  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22001
22002         PR tree-optimization/61306
22003         * tree-ssa-math-opts.c (struct symbolic_number): Store type of
22004         expression instead of its size.
22005         (do_shift_rotate): Adapt to change in struct symbolic_number. Return
22006         false to prevent optimization when the result is unpredictable due to
22007         arithmetic right shift of signed type with highest byte is set.
22008         (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
22009         (init_symbolic_number): Likewise.
22010         (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
22011         when the result is unpredictable due to sign extension.
22012
22013 2014-06-11  Terry Guo  <terry.guo@arm.com>
22014
22015         * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
22016         (*thumb1_addsi3): Ditto.
22017         (*thumb_subdi3): Ditto.
22018         (thumb1_subsi3_insn): Ditto.
22019         (*thumb_mulsi3): Ditto.
22020         (*thumb_mulsi3_v6): Ditto.
22021         (*thumb1_andsi3_insn): Ditto.
22022         (thumb1_bicsi3): Ditto.
22023         (*thumb1_iorsi3_insn): Ditto.
22024         (*thumb1_xorsi3_insn): Ditto.
22025         (*thumb1_ashlsi3): Ditto.
22026         (*thumb1_ashrsi3): Ditto.
22027         (*thumb1_lshrsi3): Ditto.
22028         (*thumb1_rotrsi3): Ditto.
22029         (*thumb1_negdi2): Ditto.
22030         (*thumb1_negsi2): Ditto.
22031         (*thumb1_abssi2): Ditto.
22032         (*thumb1_neg_abssi2): Ditto.
22033         (*thumb1_one_cmplsi2): Ditto.
22034         (*thumb1_zero_extendhisi2): Ditto.
22035         (*thumb1_zero_extendqisi2): Ditto.
22036         (*thumb1_zero_extendqisi2_v6): Ditto.
22037         (thumb1_extendhisi2): Ditto.
22038         (thumb1_extendqisi2): Ditto.
22039         (*thumb1_movdi_insn): Ditto.
22040         (*thumb1_movsi_insn): Ditto.
22041         (*thumb1_movhi_insn): Ditto.
22042         (thumb_movhi_clobber): Ditto.
22043         (*thumb1_movqi_insn): Ditto.
22044         (*thumb1_movhf): Ditto.
22045         (*thumb1_movsf_insn): Ditto.
22046         (*thumb_movdf_insn): Ditto.
22047         (movmem12b): Ditto.
22048         (movmem8b): Ditto.
22049         (cbranchqi4): Ditto.
22050         (cbranchsi4_insn): Ditto.
22051         (cbranchsi4_scratch): Ditto.
22052         (*negated_cbranchsi4): Ditto.
22053         (*tbit_cbranch): Ditto.
22054         (*tlobits_cbranch): Ditto.
22055         (*tstsi3_cbranch): Ditto.
22056         (*cbranchne_decr1): Ditto.
22057         (*addsi3_cbranch): Ditto.
22058         (*addsi3_cbranch_scratch): Ditto.
22059         (*thumb_cmpdi_zero): Ditto.
22060         (cstoresi_eq0_thumb1): Ditto.
22061         (cstoresi_ne0_thumb1): Ditto.
22062         (*cstoresi_eq0_thumb1_insn): Ditto.
22063         (*cstoresi_ne0_thumb1_insn): Ditto.
22064         (cstoresi_nltu_thumb1): Ditto.
22065         (cstoresi_ltu_thumb1): Ditto.
22066         (thumb1_addsi3_addgeu): Ditto.
22067         (*thumb_jump): Ditto.
22068         (*call_reg_thumb1_v5): Ditto.
22069         (*call_reg_thumb1): Ditto.
22070         (*call_value_reg_thumb1_v5): Ditto.
22071         (*call_value_reg_thumb1): Ditto.
22072         (*call_insn): Ditto.
22073         (*call_value_insn): Ditto.
22074         (thumb1_casesi_internal_pic): Ditto.
22075         (thumb1_casesi_dispatch): Ditto.
22076         (*thumb1_indirect_jump): Ditto.
22077         (prologue_thumb1_interwork): Ditto.
22078         (*epilogue_insns): Ditto.
22079         (consttable_1): Ditto.
22080         (consttable_2): Ditto.
22081         (tablejump): Ditto.
22082         (*thumb1_tablejump): Ditto.
22083         (thumb_eh_return): Ditto.
22084         (define_peephole2): Two of them are thumb1 only and got moved into
22085         new file thumb1.md.
22086         (define_split): Six of them are thumb1 only and got moved into new
22087         file thumb1.md.
22088         * config/arm/thumb1.md: New file comprised of above thumb1 only
22089         patterns.
22090
22091 2014-06-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22092
22093         * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
22094         * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
22095         dependencies.
22096         * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
22097         (aarch64_crc_builtin_datum): New struct.
22098         (aarch64_crc_builtin_data): New.
22099         (aarch64_init_crc32_builtins): New function.
22100         (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
22101         (aarch64_crc32_expand_builtin): New.
22102         (aarch64_expand_builtin): Add CRC32 builtin expansion case.
22103         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
22104         __ARM_FEATURE_CRC32 when appropriate.
22105         (TARGET_CRC32): Define.
22106         * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
22107         UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
22108         UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
22109         (aarch64_<crc_variant>): New pattern.
22110         * config/aarch64/arm_acle.h: New file.
22111         * config/aarch64/iterators.md (CRC): New int iterator.
22112         (crc_variant, crc_mode): New int attributes.
22113         * doc/aarch64-acle-intrinsics.texi: New file.
22114         * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
22115         Include aarch64-acle-intrinsics.texi.
22116
22117 2014-06-11  Evgeny Stupachenko  <evstupac@gmail.com>
22118
22119         * tree-vect-data-refs.c (vect_grouped_store_supported): New
22120         check for stores group of length 3.
22121         (vect_permute_store_chain): New permutations for stores group of
22122         length 3.
22123         * tree-vect-stmts.c (vect_model_store_cost): Change cost
22124         of vec_perm_shuffle for the new permutations.
22125
22126 2014-06-11  Jan Hubicka  <hubicka@ucw.cz>
22127
22128         * ipa-visibility.c (function_and_variable_visibility): Disable virtual
22129         table rewriting temporarily on targets not supporting ONE_ONLY.
22130
22131 2014-06-11  Richard Biener  <rguenther@suse.de>
22132
22133         PR middle-end/61437
22134         Revert
22135         2014-06-04  Richard Biener  <rguenther@suse.de>
22136
22137         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22138         TREE_PUBLIC and DECL_EXTERNAL decls.
22139
22140 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22141
22142         * varasm.c (set_implicit_section): New function.
22143         (resolve_unique_section): Use it to set implicit section
22144         for aliases, too.
22145         (get_named_text_section): Use symtab_get_node (decl)->implicit_section
22146         (default_function_section): Likewise.
22147         (decl_binds_to_current_def_p): Constify argument.
22148         * varasm.h (decl_binds_to_current_def_p): Update prototype.
22149         * asan.c (asan_protect_global): Use
22150         symtab_get_node (decl)->implicit_section.
22151         * symtab.c (dump_symtab_base): Dump implicit sections.
22152         (verify_symtab_base): Verify sanity of sectoins and comdats.
22153         (symtab_resolve_alias): Alias share the section of its target.
22154         (set_section_1): New function.
22155         (symtab_node::set_section): Move here, recurse to aliases.
22156         (verify_symtab): Check for duplicated symtab lists.
22157         * tree-core.h (implicit_section_name_p): Remove.
22158         * tree-vect-data-refs.c: Include varasm.h.
22159         (vect_can_force_dr_alignment_p): Fix conditional on when
22160         decl bints to current definition; use
22161         symtab_get_node (decl)->implicit_section.
22162         * cgraph.c (cgraph_make_node_local_1): Fix section set.
22163         * cgraph.h (struct symtab_node): Add implicit_section.
22164         (set_section): Rename to ...
22165         (set_section_for_node): ... this one.
22166         (set_section): Declare.
22167         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
22168         * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
22169         input_overwrite_node, input_varpool_node): Stream implicit_section.
22170         * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
22171         removal; it will fail in LTO.
22172
22173 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22174
22175         * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
22176         Change second alternative type to f_mcr.
22177         * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
22178         and 12th alternatives' types to f_mcr and f_mrc.
22179         (*movdi_aarch64): Same for 12th and 13th alternatives.
22180         (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
22181         (aarch64_movtilow_tilow): Change type to fmov.
22182
22183 2014-06-10  Jiong Wang  <jiong.wang@arm.com>
22184
22185         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
22186         (aarch64_save_or_restore_callee_save_registers): Fix layout.
22187
22188 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22189
22190         * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
22191         New expander.
22192         (aarch64_sqrdmulh_lane<mode>): Likewise.
22193         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22194         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22195         (aarch64_sqdmulh_laneq<mode>): New expander.
22196         (aarch64_sqrdmulh_laneq<mode>): Likewise.
22197         (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
22198         (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
22199         (aarch64_sqdmulh_lane<mode>): New expander.
22200         (aarch64_sqrdmulh_lane<mode>): Likewise.
22201         (aarch64_sq<r>dmulh_lane<mode>): Rename to...
22202         (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
22203         (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
22204         (aarch64_sqdmlal_laneq<mode>): Likewise.
22205         (aarch64_sqdmlsl_lane<mode>): Likewise.
22206         (aarch64_sqdmlsl_laneq<mode>): Likewise.
22207         (aarch64_sqdmlal2_lane<mode>): Likewise.
22208         (aarch64_sqdmlal2_laneq<mode>): Likewise.
22209         (aarch64_sqdmlsl2_lane<mode>): Likewise.
22210         (aarch64_sqdmlsl2_laneq<mode>): Likewise.
22211         (aarch64_sqdmull_lane<mode>): Likewise.
22212         (aarch64_sqdmull_laneq<mode>): Likewise.
22213         (aarch64_sqdmull2_lane<mode>): Likewise.
22214         (aarch64_sqdmull2_laneq<mode>): Likewise.
22215
22216 2014-06-10  Richard Biener  <rguenther@suse.de>
22217
22218         PR tree-optimization/61438
22219         * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
22220         (eliminate_dom_walker::before_dom_children): Only try to inhibit
22221         insertion of IVs if running PRE.
22222         (eliminate): Adjust.
22223         (pass_pre::execute): Likewise.
22224         (pass_fre::execute): Likewise.
22225
22226 2014-06-10  Richard Biener  <rguenther@suse.de>
22227
22228         PR middle-end/61456
22229         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22230         Do not use the main variant for the type comparison.
22231         (ncr_compar): Likewise.
22232         (nonoverlapping_component_refs_p): Likewise.
22233
22234 2014-06-10  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22235
22236         * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
22237         REG_CFA_RESTORE mode.
22238
22239 2014-06-10  Evgeny Stupachenko  <evstupac@gmail.com>
22240
22241         * config/i386/i386.c (expand_vec_perm_pblendv): New.
22242         * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
22243         expand_vec_perm_pblendv.
22244
22245 2014-06-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22246
22247         * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
22248         available.
22249         Simplify description of __crc32d and __crc32cd intrinsics.
22250         * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
22251         availability.
22252
22253 2014-06-10  Thomas Schwinge  <thomas@codesourcery.com>
22254
22255         PR lto/61334
22256         * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
22257         * config.in: Regenerate.
22258         * configure: Likewise.
22259
22260 2014-06-10  Jan Hubicka  <hubicka@ucw.cz>
22261
22262         * ipa-reference.c (is_proper_for_analysis): Exclude addressable
22263         and public vars.
22264         (intersect_static_var_sets): Remove.
22265         (propagate): Do not prune local statics.
22266
22267 2014-06-10  Jakub Jelinek  <jakub@redhat.com>
22268
22269         PR fortran/60928
22270         * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
22271         Set lastprivate_firstprivate even if omp_private_outer_ref
22272         langhook returns true.
22273         <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
22274         langhook, call unshare_expr on new_var and call
22275         build_outer_var_ref to get the last argument.
22276
22277 2014-06-10  Marek Polacek  <polacek@redhat.com>
22278
22279         PR c/60988
22280         * doc/extend.texi: Add cindex for transparent_union.
22281
22282 2014-06-09  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22283
22284         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
22285         init_symbolic_number ().
22286
22287 2014-05-18  John David Anglin  <danglin@gcc.gnu.org>
22288
22289         PR middle-end/61141
22290         * emit-rtl.c (reset_all_used_flags): In a sequence, check that
22291         XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
22292         (verify_rtl_sharing): Likewise.
22293
22294 2014-06-09  Marc Glisse  <marc.glisse@inria.fr>
22295
22296         PR c++/54442
22297         * tree.c (build_qualified_type): Use a canonical type for
22298         TYPE_CANONICAL.
22299
22300 2014-06-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22301
22302         * config/arm/arm-modes.def: Remove XFmode.
22303
22304 2014-06-09  Alan Lawrence  <alan.lawrence@arm.com>
22305
22306         PR target/61062
22307         * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
22308         vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
22309         vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
22310         vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
22311         vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
22312         vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
22313         vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
22314         vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
22315         vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
22316
22317 2014-06-09  Jan Hubicka  <hubicka@ucw.cz>
22318
22319         * tree-core.h (tree_decl_with_vis): Remove section_name.
22320
22321 2014-06-09  Kito Cheng  <kito@0xlab.org>
22322
22323         * ira.c (ira): Don't call init_caller_save if LRA enabled
22324         since LRA use its own infrastructure to handle that.
22325
22326 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22327
22328         * symtab.c (dump_symtab_base): Update dumping.
22329         (symtab_make_decl_local): Clear only DECL_COMDAT.
22330         * tree-vect-data-refs.c (Check that variable is static before
22331         tampering with sections.
22332         * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
22333         (cgraph_create_virtual_clone): Likewise.
22334         * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
22335         (decl_section_name, set_decl_section_name): New accessors.
22336         (find_decls_types_r): Do not walk section name
22337         * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
22338         (decl_comdat_group, decl_comdat_group_id): Constify.
22339         (decl_section_name, set_decl_section_name): Update.
22340         * varpool.c (varpool_finalize_named_section_flags): Use get_section.
22341         * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
22342         (cgraph_make_node_local_1): Clear section and comdat group.
22343         * cgraph.h (set_comdat_group): Sanity check.
22344         (get_section, set_section): New.
22345         * ipa-comdats.c (ipa_comdats): Use get_section.
22346         * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
22347         * lto-streamer-out.c: Do not follow section names.
22348         * c-family/c-common.c (handle_section_attribute): Update.
22349         * lto-cgraph.c (lto_output_node): Output section.
22350         (lto_output_varpool_node): Likewise.
22351         (read_comdat_group): Rename to ...
22352         (read_identifier): ... this one.
22353         (read_string_cst): New function.
22354         (input_node, input_varpool_node): Input section names.
22355         * tree-emutls.c (get_emutls_init_templ_addr): Update.
22356         (new_emutls_decl): Update.
22357         (secname_for_decl): Check section names only of static vars.
22358         * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
22359         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
22360         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
22361         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
22362         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
22363         * config/mcore/mcore.c (mcore_unique_section): Likewise.
22364         * config/mips/mips.c (mips16_build_function_stub): Likewise.
22365         * config/v850/v850.c (v850_insert_attributes): Likewise.
22366         * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
22367         Likewise.
22368         (h8300_handle_tiny_data_attribute): Likewise.
22369         * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
22370         (bfin_handle_l2_attribute): Likewise.
22371
22372 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22373
22374         * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
22375         remove static initializer.
22376
22377 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22378
22379         * varasm.c (use_blocks_for_decl_p): Check symbol table
22380         instead of alias attribute.
22381         (place_block_symbol): Recurse on aliases.
22382
22383 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22384
22385         * ipa-visibility.c: Include varasm.h
22386         (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
22387
22388 2014-06-07  Jan Hubicka  <hubicka@ucw.cz>
22389
22390         * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
22391         outputting aliases.
22392
22393 2014-06-07  Steven Bosscher  <steven@gcc.gnu.org>
22394
22395         * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
22396         from test_insn into GGC space escape via SET_SRC.
22397
22398 2014-06-07  Eric Botcazou  <ebotcazou@adacore.com>
22399
22400         * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
22401         call statement, if any.
22402         (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
22403         statements, if any.  Tidy up.
22404
22405 2014-06-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
22406
22407         PR target/61431
22408         * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
22409         iterators, VSX_D that handles 64-bit types, and VSX_LE that
22410         handles swapping the two 64-bit double words on little endian
22411         systems.  Include V1TImode and optionally TImode in VSX_LE so that
22412         these types are properly swapped.  Change all of the insns and
22413         splits that do the 64-bit swaps to use VSX_LE.
22414         (vsx_le_perm_load_<mode>): Likewise.
22415         (vsx_le_perm_store_<mode>): Likewise.
22416         (splitters for little endian memory operations): Likewise.
22417         (vsx_xxpermdi2_le_<mode>): Likewise.
22418         (vsx_lxvd2x2_le_<mode>): Likewise.
22419         (vsx_stxvd2x2_le_<mode>): Likewise.
22420
22421 2014-06-06  Uros Bizjak  <ubizjak@gmail.com>
22422
22423         PR target/61423
22424         * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
22425         define_insn_and_split pattern, merged from *floatunssi<mode>2_1
22426         and corresponding splitters.  Zero extend general register
22427         or memory input operand to XMM temporary.  Enable for
22428         TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
22429         (floatunssi<mode>2): Update expander predicate.
22430
22431 2014-06-06  Vladimir Makarov  <vmakarov@redhat.com>
22432
22433         PR rtl-optimization/61325
22434         * lra-constraints.c (process_address_1): Check scale equal to one
22435         to prevent transformation: base + scale * index => base + new_reg.
22436
22437 2014-06-06  Richard Biener  <rguenther@suse.de>
22438
22439         PR tree-optimization/59299
22440         * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
22441         a def operand.
22442         (nearest_common_dominator_of_uses): Likewise.
22443         (statement_sink_location): Adjust.  Support sinking loads.
22444
22445 2014-06-06  Martin Jambor  <mjambor@suse.cz>
22446
22447         * ipa-prop.c (get_place_in_agg_contents_list): New function.
22448         (build_agg_jump_func_from_list): Likewise.
22449         (determine_known_aggregate_parts): Renamed to
22450         determine_locally_known_aggregate_parts.  Moved some functionality
22451         to the two functions above, removed bound checks.
22452
22453 2014-06-06  James Greenhalgh  <james.greenhalgh@arm.com>
22454
22455         * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
22456         * config/aarch64/aarch64.c (aarch64_move_pointer): New.
22457         (aarch64_progress_pointer): Likewise.
22458         (aarch64_copy_one_part_and_move_pointers): Likewise.
22459         (aarch64_expand_movmen): Likewise.
22460         * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
22461         * config/aarch64/aarch64.md (movmem<mode>): New.
22462
22463 2014-06-06  Bingfeng Mei  <bmei@broadcom.com>
22464
22465         * targhooks.c (default_add_stmt_cost): Call target specific
22466         hook instead of default one.
22467
22468 2014-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22469
22470         * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
22471         endianness instead of host endianness.
22472         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
22473         comments.
22474
22475 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22476
22477         PR debug/53927
22478         * function.c (instantiate_decls): Process the saved static chain.
22479         (expand_function_start): If not optimizing, save the static chain
22480         onto the stack.
22481         * tree-nested.c (convert_all_function_calls): Always create the static
22482         chain for nested functions if not optimizing.
22483
22484 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22485
22486         * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
22487
22488 2014-06-06  Richard Biener  <rguenther@suse.de>
22489
22490         * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
22491         (construct_init_block): Likewise.
22492         (construct_exit_block): Likewise.
22493         (pass_expand::execute): Likewise.
22494         * graphite.c (graphite_transforms): Replace check for current_loops
22495         with a check for > 1 loops.
22496         (pass_graphite_transforms::execute): Adjust.
22497         * ipa-split.c (split_function): Remove check for current_loops.
22498         * omp-low.c (expand_parallel_call): Likewise.
22499         (expand_omp_for_init_counts): Likewise.
22500         (extract_omp_for_update_vars): Likewise.
22501         (expand_omp_for_generic): Likewise.
22502         (expand_omp_sections): Likewise.
22503         (expand_omp_target): Likewise.
22504         * tracer.c (tail_duplicate): Likewise.
22505         (pass_tracer::execute): Likewise.
22506         * trans-mem.c (expand_transaction): Likewise.
22507         * tree-complex.c (expand_complex_div_wide): Likewise.
22508         * tree-eh.c (lower_resx): Likewise.
22509         (cleanup_empty_eh_merge_phis): Likewise.
22510         * tree-predcom.c (run_tree_predictive_commoning): Replace check for
22511         current_loops with a check for > 1 loops.
22512         (pass_predcom::execute): Adjust.
22513         * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
22514         * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
22515         * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
22516         * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
22517         * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
22518         * tree-switch-conversion.c (process_switch): Likewise.
22519         * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
22520         * tree-vrp.c (vrp_visit_phi_node): Likewise.
22521         (execute_vrp): Likewise.
22522         * ubsan.c (ubsan_expand_null_ifn): Likewise.
22523
22524 2014-06-06  Eric Botcazou  <ebotcazou@adacore.com>
22525
22526         * rtl.h (insn_location): Declare.
22527         * cfgcleanup.c (try_forward_edges): Compare the locus of locations
22528         with UNKNOWN_LOCATION.
22529         * emit-rtl.c (insn_location): New function.
22530         * final.c (notice_source_line): Check that the instruction has a
22531         location before retrieving it and use insn_location.
22532         * modulo-sched.c (loop_single_full_bb_p): Likewise.
22533         * print-rtl.c (print_rtx): Likewise.
22534
22535 2014-06-06  Richard Biener  <rguenther@suse.de>
22536
22537         * passes.def: Move 2nd VRP pass before phi-only-cprop.
22538
22539 2014-06-06  Christian Bruel  <christian.bruel@st.com>
22540
22541         PR tree-optimization/43934
22542         * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
22543         cost.
22544
22545 2014-06-06  Richard Sandiford  <rdsandiford@googlemail.com>
22546
22547         * ira-lives.c (single_reg_class): Add missing break.  Explicitly
22548         return NO_REGS for extra address and memory constraints.  Handle
22549         operands that match (or are equivalent to something that matches)
22550         extra constant constraints.  Ignore other non-register operands.
22551
22552 2014-06-06  Alan Modra  <amodra@gmail.com>
22553
22554         PR target/61300
22555         * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
22556         * doc/tm.texi: Regenerate.
22557         * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
22558         Use throughout in place of REG_PARM_STACK_SPACE.
22559         * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
22560         "incoming" param.  Pass to rs6000_function_parms_need_stack.
22561         (rs6000_function_parms_need_stack): Add "incoming" param, ignore
22562         prototype_p when incoming.  Use function decl when incoming
22563         to handle K&R style functions.
22564         * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
22565         (INCOMING_REG_PARM_STACK_SPACE): Define.
22566
22567 2014-06-05  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22568
22569         PR target/52472
22570         * cfgexpand.c (expand_debug_expr): Use address space of nested
22571         TREE_TYPE for ADDR_EXPR and MEM_REF.
22572
22573 2014-06-05  Jeff Law  <law@redhat.com>
22574
22575         PR tree-optimization/61289
22576         * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
22577         DST_MAP parameters.   Invalidate by walking all the SSA_NAME_VALUES
22578         looking for those which match LHS.  All callers changed.
22579         (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
22580         parameters and code which manipulated them.  All callers changed.
22581         (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
22582         and DST_MAP parameters.  Simplify invalidation code by just calling
22583         invalidate_equivalences.  All callers changed.
22584         (thread_across_edge): Simplify now that we don't need to maintain
22585         the map of equivalences to invalidate.
22586
22587 2014-06-05  Kai Tietz  <ktietz@redhat.com>
22588             Richard Henderson  <rth@redhat.com>
22589
22590         PR target/46219
22591         * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
22592         checking for !TARGET_X32.
22593         * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
22594         (sibcall_intern): New define_insn, plus required peepholes.
22595         (sibcall_pop_intern): Likewise.
22596         (sibcall_value_intern): Likewise.
22597         (sibcall_value_pop_intern): Likewise.
22598
22599 2014-06-05  Ilya Enkovich  <ilya.enkovich@intel.com>
22600
22601         * tree-inline.c (tree_function_versioning): Check DF info existence
22602         before accessing it.
22603
22604 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22605
22606         * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
22607         frame_size.
22608         * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
22609         aarch64_frame hard_fp_offset and frame_size.
22610         (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
22611         frame_size; remove original_frame_size.
22612         (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
22613         (aarch64_initial_elimination_offset): Remove frame_size and
22614         offset.  Use aarch64_frame frame_size.
22615
22616 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22617             Jiong Wang  <jiong.wang@arm.com>
22618             Renlin  <renlin.li@arm.com>
22619
22620         * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
22621         initialization of R30 offset.  Update offset.  Iterate core
22622         regisers upto X30.  Remove X29, X30 specific code.
22623
22624 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22625             Jiong Wang  <jiong.wang@arm.com>
22626
22627         * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
22628         (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
22629         (aarch64_register_saved_on_entry): Adjust test.
22630
22631 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22632
22633         * config/aarch64/aarch64.h (machine_function): Move
22634         saved_varargs_size from here...
22635         (aarch64_frame): ... to here.
22636
22637         * config/aarch64/aarch64.c (aarch64_expand_prologue)
22638         (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
22639         (aarch64_initial_elimination_offset)
22640         (aarch64_setup_incoming_varargs): Adjust location of
22641         saved_varargs_size.
22642
22643 2014-06-05  Marcus Shawcroft  <marcus.shawcroft@arm.com>
22644
22645         * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
22646         layout comment.
22647
22648 2014-06-05  Jaydeep Patil  <Jaydeep.Patil@imgtec.com>
22649             Prachi Godbole  <Prachi.Godbole@imgtec.com>
22650
22651         * config/mips/mips-cpus.def: Add definition for p5600.  Updated
22652         mips32r5 entry to use PROCESSOR_P5600.
22653         * config/mips/mips-tables.opt: Regenerate.
22654         * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
22655         * config/mips/mips.c (mips_fmadd_bypass): New function.
22656         (mips_rtx_cost_data): Add costs for p5600.
22657         (mips_issue_rate): Add support for p5600.
22658         (mips_multipass_dfa_lookahead): Likewise.
22659         * config/mips/mips.h (TUNE_P5600): New define.
22660         (TUNE_MACC_CHAINS): Add TUNE_P5600.
22661         (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
22662         * config/mips/mips.md: Include p5600.md.
22663         (processor): Add p5600.
22664         * config/mips/p5600.md: New file.
22665
22666 2014-06-05  Evgeny Stupachenko  <evstupac@gmail.com>
22667
22668         * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
22669         * config/i386/predicates.md (palignr_operand): New.
22670         Indicates if permutation is suitable for palignr instruction.
22671
22672 2014-06-05  Yuri Rumyantsev  <ysrumyan@gmail.com>
22673
22674         PR tree-optimization/61319
22675         * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
22676         stmt belongs to loop.
22677
22678 2014-06-05  Richard Biener  <rguenther@suse.de>
22679
22680         * gimplify.c (create_tmp_from_val): Remove is_formal parameter
22681         and set DECL_GIMPLE_REG_P unconditionally if appropriate.
22682         (lookup_tmp_var): Adjust.
22683         (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
22684
22685 2014-06-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
22686
22687         * config/arm/arm.md (enabled): Disable opt_enabled attribute.
22688
22689 2014-06-05  Marek Polacek  <polacek@redhat.com>
22690
22691         PR c/49706
22692         * doc/invoke.texi: Document -Wlogical-not-parentheses.
22693
22694 2014-06-04  Tom de Vries  <tom@codesourcery.com>
22695
22696         * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
22697         CONST_INT.
22698
22699 2014-06-04  Marc Glisse  <marc.glisse@inria.fr>
22700
22701         PR tree-optimization/61385
22702         * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
22703
22704 2014-06-04  Bernd Schmidt  <bernds@codesourcery.com>
22705
22706         * lto-wrapper.c (fatal, fatal_perror): Remove functions.  All callers
22707         changed to use fatal_error.
22708         (main): Ensure lto_wrapper_cleanup is run atexit.
22709
22710 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22711
22712         * lra-constraints.c (valid_address_p): Move earlier in file.
22713         (address_eliminator): New structure.
22714         (satisfies_memory_constraint_p): New function.
22715         (satisfies_address_constraint_p): Likewise.
22716         (process_alt_operands, process_address, curr_insn_transform): Use them.
22717
22718 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22719
22720         * lra-int.h (lra_static_insn_data): Make operand_alternative a
22721         const pointer.
22722         (target_lra_int, default_target_lra_int, this_target_lra_int)
22723         (op_alt_data): Delete.
22724         * lra.h (lra_init): Delete.
22725         * lra.c (default_target_lra_int, this_target_lra_int): Delete.
22726         (init_insn_code_data_once): Remove op_alt_data handling.
22727         (finish_insn_code_data_once): Likewise.
22728         (init_op_alt_data): Delete.
22729         (get_static_insn_data): Initialize operand_alternative to null.
22730         (free_insn_recog_data): Cast operand_alternative before freeing it.
22731         (setup_operand_alternative): Take the operand_alternative as
22732         parameter and assume it isn't already cached in the static
22733         insn data.
22734         (lra_set_insn_recog_data): Update accordingly.
22735         (lra_init): Delete.
22736         * ira.c (ira_init): Don't call lra_init.
22737         * target-globals.h (this_target_lra_int): Declare.
22738         (target_globals): Remove lra_int.
22739         (restore_target_globals): Update accordingly.
22740         * target-globals.c: Don't include lra-int.h.
22741         (default_target_globals, save_target_globals): Remove lra_int.
22742
22743 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22744
22745         * recog.h (operand_alternative): Convert reg_class, reject,
22746         matched and matches into bitfields.
22747         (preprocess_constraints): New overload.
22748         (preprocess_insn_constraints): New function.
22749         (preprocess_constraints): Take the insn as parameter.
22750         (recog_op_alt): Change into a pointer.
22751         (target_recog): Add x_op_alt.
22752         * recog.c (asm_op_alt): New variable.
22753         (recog_op_alt): Change into a pointer.
22754         (preprocess_constraints): New overload, replacing the old function
22755         definition with one that doesn't use global state.
22756         (preprocess_insn_constraints): New function.
22757         (preprocess_constraints): Use them.  Take the insn as parameter.
22758         Use asm_op_alt for asms.
22759         (recog_init): Free existing x_op_alt entries.
22760         * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
22761         pointer const.
22762         (make_early_clobber_and_input_conflicts): Likewise.
22763         (process_bb_node_lives): Pass the insn to process_constraints.
22764         * reg-stack.c (check_asm_stack_operands): Likewise.
22765         (subst_asm_stack_regs): Likewise.
22766         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22767         * regrename.c (build_def_use): Likewise.
22768         * sched-deps.c (sched_analyze_insn): Likewise.
22769         * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
22770         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
22771         (note_invalid_constants): Likewise.
22772         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22773         (ix86_legitimate_combined_insn): Make operand_alternative pointer
22774         const.
22775
22776 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22777
22778         * recog.c (preprocess_constraints): Don't skip disabled alternatives.
22779         * ira-lives.c (check_and_make_def_conflict): Check for disabled
22780         alternatives.
22781         (make_early_clobber_and_input_conflicts): Likewise.
22782         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22783
22784 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22785
22786         * recog.h (alternative_class): New function.
22787         (which_op_alt): Return a const recog_op_alt.
22788         * reg-stack.c (check_asm_stack_operands): Update type accordingly.
22789         (subst_asm_stack_regs): Likewise.
22790         * config/arm/arm.c (note_invalid_constants): Likewise.
22791         * regcprop.c (copyprop_hardreg_forward_1): Likewise.  Don't modify
22792         the operand_alternative; use alternative class instead.
22793         * sel-sched.c (get_reg_class): Likewise.
22794         * regrename.c (build_def_use): Likewise.
22795         (hide_operands, restore_operands, record_out_operands): Update type
22796         accordingly.
22797
22798 2014-06-04  Richard Sandiford  <rdsandiford@googlemail.com>
22799
22800         * recog.h (recog_op_alt): Convert to a flat array.
22801         (which_op_alt): New function.
22802         * recog.c (recog_op_alt): Convert to a flat array.
22803         (preprocess_constraints): Update accordingly, grouping all
22804         operands of the same alternative together, rather than the
22805         other way around.
22806         * ira-lives.c (check_and_make_def_conflict): Likewise.
22807         (make_early_clobber_and_input_conflicts): Likewise.
22808         * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
22809         * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
22810         (subst_asm_stack_regs): Likewise.
22811         * regcprop.c (copyprop_hardreg_forward_1): Likewise.
22812         * regrename.c (hide_operands, record_out_operands): Likewise.
22813         (build_def_use): Likewise.
22814         * sel-sched.c (get_reg_class): Likewise.
22815         * config/arm/arm.c (note_invalid_constants): Likewise.
22816
22817 2014-06-04  Jason Merrill  <jason@redhat.com>
22818
22819         PR c++/51253
22820         PR c++/61382
22821         * gimplify.c (gimplify_arg): Non-static.
22822         * gimplify.h: Declare it.
22823
22824 2014-06-04  Richard Biener  <rguenther@suse.de>
22825
22826         * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
22827         TREE_PUBLIC and DECL_EXTERNAL decls.
22828
22829 2014-06-04  Matthew Fortune  <matthew.fortune@imgtec.com>
22830
22831         * regcprop.c (copyprop_hardreg_forward_1): Account for
22832         HARD_REGNO_CALL_PART_CLOBBERED.
22833
22834 2014-06-04  Richard Biener  <rguenther@suse.de>
22835
22836         * configure.ac: Check whether the underlying type of int64_t
22837         is long or long long.
22838         * configure: Regenerate.
22839         * config.in: Likewise.
22840         * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
22841         (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
22842
22843 2014-06-04  Richard Biener  <rguenther@suse.de>
22844
22845         PR tree-optimization/60098
22846         * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
22847         we hit a kill.
22848         (dse_optimize_stmt): Simplify, now that we found a kill
22849         earlier.
22850
22851 2014-06-04  Richard Biener  <rguenther@suse.de>
22852
22853         * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
22854         of accesses with non-invariant address.
22855
22856 2014-06-04  Martin Liska  <mliska@suse.cz>
22857
22858         * cgraph.h (cgraph_make_wrapper): New function introduced.
22859         * cgraphunit.c (cgraph_make_wrapper): The function implementation.
22860         * ipa-inline.h (inline_analyze_function): The function is global.
22861         * ipa-inline-analysis.c (inline_analyze_function): Likewise.
22862
22863 2014-06-04  Martin Liska  <mliska@suse.cz>
22864
22865         * tree.h (private_lookup_attribute_starting): New function.
22866         (lookup_attribute_starting): Likewise.
22867         * tree.c (private_lookup_attribute_starting): Likewise.
22868
22869 2014-06-04  Martin Liska  <mliska@suse.cz>
22870
22871         * cgraph.h (expand_thunk): New argument added.
22872         (address_taken_from_non_vtable_p): New global function.
22873         * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
22874         * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
22875         * cgraphunit.c (analyze_function): Likewise.
22876         (assemble_thunks_and_aliases): Argument added to call.
22877         (expand_thunk): New argument forces to produce GIMPLE thunk.
22878
22879 2014-06-04  Martin Liska  <mliska@suse.cz>
22880
22881         * coverage.h (coverage_compute_cfg_checksum): Argument added.
22882         * coverage.c (coverage_compute_cfg_checksum): Likewise.
22883         * profile.c (branch_prob): Likewise.
22884
22885 2014-06-04  Martin Jambor  <mjambor@suse.cz>
22886
22887         PR ipa/61340
22888         * ipa-pure-const.c (propagate_pure_const): Add unreachable default
22889         handler for switch on an ipa_ref_use enum.
22890         * ipa-reference.c (analyze_function): Likewise.
22891
22892 2014-06-04  Kai Tietz  <ktietz@redhat.com>
22893
22894         * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
22895         from old call-instruction.
22896
22897 2014-06-04  Bin Cheng  <bin.cheng@arm.com>
22898
22899         * config/aarch64/aarch64.c (aarch64_classify_address)
22900         (aarch64_legitimize_reload_address): Support full addressing modes
22901         for vector modes.
22902         * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
22903         (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
22904
22905 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22906
22907         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
22908         for OP0.
22909
22910 2014-06-03  Andrew Pinski  <apinski@cavium.com>
22911
22912         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
22913         (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
22914
22915 2014-06-03  Kai Tietz  <ktietz@redhat.com>
22916
22917         * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
22918         for 64-bit ms-abi.
22919
22920 2014-06-03  Dehao Chen  <dehao@google.com>
22921
22922         * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
22923         the same loop.
22924
22925 2014-06-03  Marek Polacek  <polacek@redhat.com>
22926
22927         PR c/60439
22928         * doc/invoke.texi: Document -Wswitch-bool.
22929         * function.c (stack_protect_epilogue): Cast controlling expression of
22930         the switch to int.
22931         * gengtype.c (walk_type): Generate switch expression with its
22932         controlling expression cast to int.
22933
22934 2014-06-03  Vishnu K S  <Vishnu.k_s@atmel.com>
22935
22936         * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
22937         and attiny841.
22938         * config/avr/avr-tables.opt: Regenerate.
22939         * config/avr/t-multilib: Regenerate.
22940         * doc/avr-mmcu.texi: Regenerate.
22941
22942 2014-06-03  Vishnu K S  <vishnu.k_s@atmel.com>
22943             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
22944
22945         * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
22946         (ata6617c, ata664251): Add new avr35 devices.
22947         (ata6612c): Add new avr4 device.
22948         (ata6613c, ata6614q): Add new avr5 devices.
22949         * config/avr/avr-tables.opt: Regenerate.
22950         * config/avr/t-multilib: Regenerate.
22951         * doc/avr-mmcu.texi: Regenerate.
22952
22953 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22954
22955         * gcc/config/aarch64/aarch64-builtins.c
22956         (aarch64_types_binop_ssu_qualifiers): New static data.
22957         (TYPES_BINOP_SSU): Define.
22958         * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
22959         urshr_n, ushll_n): Use appropriate unsigned qualifiers.
22960         * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
22961         vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
22962         vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
22963         vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
22964         vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
22965         vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
22966         vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
22967         suffix to builtin function name, remove cast.
22968         (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
22969         vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
22970         vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
22971
22972 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
22973
22974         * gcc/config/aarch64/aarch64-builtins.c
22975         (aarch64_types_binop_uus_qualifiers,
22976         aarch64_types_shift_to_unsigned_qualifiers,
22977         aarch64_types_unsigned_shiftacc_qualifiers): Define.
22978         * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
22979         uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
22980         sqshlu_n, uqshl_n): Update qualifiers.
22981         * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
22982         vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
22983         vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
22984         vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
22985         vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
22986         vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
22987         vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
22988         vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
22989         vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
22990         vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
22991         vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
22992         vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
22993         vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
22994         vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
22995         vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
22996         vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
22997         vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
22998         vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
22999         vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
23000         vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
23001         vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
23002         vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
23003         vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
23004         vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
23005         vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
23006         vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
23007         vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
23008
23009 2014-06-03  Teresa Johnson  <tejohnson@google.com>
23010
23011         * tree-sra.c (modify_function): Record caller nodes after rebuild.
23012
23013 2014-06-02  Jason Merrill  <jason@redhat.com>
23014
23015         PR c++/61020
23016         * varpool.c (ctor_for_folding): Handle uninitialized vtables.
23017
23018 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23019
23020         * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
23021         location == 0.
23022
23023 2014-06-03  Alan Lawrence  <alan.lawrence@arm.com>
23024
23025         * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
23026         New pattern.
23027         * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
23028         (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
23029         * config/aarch64/iterators.md (REVERSE): New iterator.
23030         (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
23031         (rev_op): New int_attribute.
23032         * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
23033         vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
23034         vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
23035         vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
23036         vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
23037         vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
23038         vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
23039         Replace temporary __asm__ with __builtin_shuffle.
23040
23041 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23042
23043         * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
23044         mips64r5.
23045         * config/mips/mips-tables.opt: Regenerate.
23046         * config/mips/mips.c (mips_compute_frame_info): Changed if statement
23047         to use mips_isa_rev rather than ISA_MIPS32R2.
23048         * config/mips/mips.h (ISA_MIPS32R3): New define.
23049         (ISA_MIPS32R5): New define.
23050         (ISA_MIPS64R3): New define.
23051         (ISA_MIPS64R5): New define.
23052         (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
23053         ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
23054         (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
23055         and mips64r5.
23056         (MIPS_ISA_SYNCI_SPEC): Likewise.
23057         (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
23058         (LINK_SPEC): Added mips32r3 and mips32r5.
23059         * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
23060         to mips32r2; and mips64r3 and mips64r5 to mips64r2.
23061         * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
23062         * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
23063         * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
23064         * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
23065         * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
23066
23067 2014-06-03  Andrew Bennett  <andrew.bennett@imgtec.com>
23068
23069         * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
23070         options.
23071         * config/mips/mips.opt (mxpa): New option.
23072         * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
23073         assembler.
23074
23075 2014-06-03  Martin Jambor  <mjambor@suse.cz>
23076
23077         PR ipa/61160
23078         * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
23079         thunks.
23080
23081 2014-06-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
23082
23083         PR tree-optimization/61328
23084         * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
23085         initialization from find_bswap_or_nop_1.
23086         (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
23087         in source_expr2 before using the size value the function sets. Also
23088         make use of init_symbolic_number () in both the old place and
23089         find_bswap_or_nop_load () to avoid reading uninitialized memory when
23090         doing recursion in the GIMPLE_BINARY_RHS case.
23091
23092 2014-06-03  Richard Biener  <rguenther@suse.de>
23093
23094         PR tree-optimization/61383
23095         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
23096         stmts can't trap.
23097
23098 2014-06-03  Richard Sandiford  <rdsandiford@googlemail.com>
23099
23100         * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
23101         (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
23102         (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
23103         (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
23104         in this file.
23105         (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
23106         (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
23107         * system.h: ...here and make it unconditional.
23108         * target.def (conditional_register_usage): Mention
23109         define_register_constraint instead of old-style constraint macros.
23110         * doc/tm.texi.in: Remove documentation for old-style constraint macros.
23111         * doc/tm.texi: Regenerate.
23112         * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
23113         protected by !USE_MD_CONSTRAINTS.
23114         * config/frv/frv.md: Remove quote from old version of documentation.
23115         * config/frv/frv.c (frv_conditional_register_usage): Likewise.
23116         * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
23117         CONST_DOUBLE_OK_FOR_LETTER.
23118         * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
23119
23120 2014-06-02  Andrew Pinski  <apinski@cavium.com>
23121
23122         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
23123         /lib/ld-linux32-aarch64.so.1 is used for ILP32.
23124         (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
23125         file whose name depends on -mabi= and -mbig-endian.
23126         * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
23127         Handle LP64 better and handle ilp32 too.
23128         (MULTILIB_OPTIONS): Delete.
23129         (MULTILIB_DIRNAMES): Delete.
23130
23131 2014-06-02  Andrew MacLeod  <amacleod@redhat.com>
23132
23133         * expr.h: Remove prototypes of functions defined in builtins.c.
23134         * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
23135         Remove prototypes of functions defined in builtins.c.
23136         * builtins.h: Update prototype list to include all exported functions.
23137         * builtins.c: (default_libc_has_function, gnu_libc_has_function,
23138         no_c99_libc_has_function): Move to targhooks.c
23139         (build_string_literal, build_call_expr_loc_array,
23140         build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
23141         to tree.c.
23142         (expand_builtin_object_size, fold_builtin_object_size): Make static.
23143         * targhooks.c (default_libc_has_function, gnu_libc_has_function,
23144         no_c99_libc_has_function): Relocate from builtins.c.
23145         * tree.c: Include builtins.h.
23146         (build_call_expr_loc_array, build_call_expr_loc_vec,
23147         build_call_expr_loc, build_call_expr, build_string_literal): Relocate
23148         from builtins.c.
23149         * fold-const.h (fold_fma): Move prototype to builtins.h.
23150         * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
23151         * asan.c: Include builtins.h.
23152         * cfgexpand.c: Likewise.
23153         * convert.c: Likewise.
23154         * emit-rtl.c: Likewise.
23155         * except.c: Likewise.
23156         * expr.c: Likewise.
23157         * fold-const.c: Likewise.
23158         * gimple-fold.c: Likewise.
23159         * gimple-ssa-strength-reduction.c: Likewise.
23160         * gimplify.c: Likewise.
23161         * ipa-inline.c: Likewise.
23162         * ipa-prop.c: Likewise.
23163         * lto-streamer-out.c: Likewise.
23164         * stmt.c: Likewise.
23165         * tree-inline.c: Likewise.
23166         * tree-object-size.c: Likewise.
23167         * tree-sra.c: Likewise.
23168         * tree-ssa-ccp.c: Likewise.
23169         * tree-ssa-forwprop.c: Likewise.
23170         * tree-ssa-loop-ivcanon.c: Likewise.
23171         * tree-ssa-loop-ivopts.c: Likewise.
23172         * tree-ssa-math-opts.c: Likewise.
23173         * tree-ssa-reassoc.c: Likewise.
23174         * tree-ssa-threadedge.c: Likewise.
23175         * tree-streamer-in.c: Likewise.
23176         * tree-vect-data-refs.c: Likewise.
23177         * tree-vect-patterns.c: Likewise.
23178         * tree-vect-stmts.c: Likewise.
23179         * config/aarch64/aarch64.c: Likewise.
23180         * config/alpha/alpha.c: Likewise.
23181         * config/arc/arc.c: Likewise.
23182         * config/arm/arm.c: Likewise.
23183         * config/avr/avr.c: Likewise.
23184         * config/bfin/bfin.c: Likewise.
23185         * config/c6x/c6x.c: Likewise.
23186         * config/cr16/cr16.c: Likewise.
23187         * config/cris/cris.c: Likewise.
23188         * config/epiphany/epiphany.c: Likewise.
23189         * config/fr30/fr30.c: Likewise.
23190         * config/frv/frv.c: Likewise.
23191         * config/h8300/h8300.c: Likewise.
23192         * config/i386/i386.c: Likewise.
23193         * config/i386/winnt.c: Likewise.
23194         * config/ia64/ia64.c: Likewise.
23195         * config/iq2000/iq2000.c: Likewise.
23196         * config/lm32/lm32.c: Likewise.
23197         * config/m32c/m32c.c: Likewise.
23198         * config/m32r/m32r.c: Likewise.
23199         * config/m68k/m68k.c: Likewise.
23200         * config/mcore/mcore.c: Likewise.
23201         * config/mep/mep.c: Likewise.
23202         * config/microblaze/microblaze.c: Likewise.
23203         * config/mips/mips.c: Likewise.
23204         * config/mmix/mmix.c: Likewise.
23205         * config/mn10300/mn10300.c: Likewise.
23206         * config/moxie/moxie.c: Likewise.
23207         * config/msp430/msp430.c: Likewise.
23208         * config/nds32/nds32.c: Likewise.
23209         * config/pa/pa.c: Likewise.
23210         * config/pdp11/pdp11.c: Likewise.
23211         * config/picochip/picochip.c: Likewise.
23212         * config/rl78/rl78.c: Likewise.
23213         * config/rs6000/rs6000.c: Likewise.
23214         * config/rx/rx.c: Likewise.
23215         * config/s390/s390.c: Likewise.
23216         * config/score/score.c: Likewise.
23217         * config/sh/sh.c: Likewise.
23218         * config/sparc/sparc.c: Likewise.
23219         * config/spu/spu.c: Likewise.
23220         * config/stormy16/stormy16.c: Likewise.
23221         * config/tilegx/tilegx.c: Likewise.
23222         * config/tilepro/tilepro.c: Likewise.
23223         * config/v850/v850.c: Likewise.
23224         * config/vax/vax.c: Likewise.
23225         * config/xtensa/xtensa.c: Likewise.
23226
23227 2014-06-02  Jeff Law  <law@redhat.com>
23228
23229         PR rtl-optimization/61094
23230         * ree.c (combine_reaching_defs): Do not reextend an insn if it
23231         was marked as do_no_reextend.  If a copy is needed to eliminate
23232         an extension, then mark it as do_not_reextend.
23233
23234 2014-06-02  Marcus Shawcroft  <marcus.shawcroft@arm.com>
23235
23236         * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
23237
23238 2014-06-02  Richard Henderson  <rth@redhat.com>
23239
23240         PR target/61336
23241         * config/alpha/alpha.c (print_operand_address): Allow symbolic
23242         addresses inside asms.  Use output_operand_lossage instead of
23243         gcc_unreachable.
23244
23245 2014-06-02  Uros Bizjak  <ubizjak@gmail.com>
23246
23247         PR target/61239
23248         * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
23249         GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
23250
23251 2014-06-02  Tom de Vries  <tom@codesourcery.com>
23252
23253         * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
23254         case that x has VOIDmode.
23255
23256 2014-06-02  Bernd Schmidt  <bernds@codesourcery.com>
23257
23258         * varasm.c (copy_constant): Delete function.
23259         (build_constant_desc): Don't call it.
23260
23261 2014-06-02  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23262
23263         PR target/61154
23264         * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
23265         * config/arm/arm.md (mov64 splitter): Replace const_double_operand
23266         with immediate_operand.
23267
23268 2014-06-02  Andreas Schwab  <schwab@suse.de>
23269
23270         * config/ia64/ia64.c
23271         (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
23272         pending_data_specs first.
23273
23274 2014-06-02  Richard Biener  <rguenther@suse.de>
23275
23276         PR tree-optimization/61378
23277         * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
23278         valueized_anything.
23279
23280 2014-06-01  Uros Bizjak  <ubizjak@gmail.com>
23281
23282         * config/i386/constraints.md (Bw): Rename from 'w'.
23283         (Bz): Rename from 'z'.
23284         * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
23285
23286 2014-06-01  Kai Tietz  <ktietz@redhat.com>
23287
23288         PR target/61377
23289         * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
23290         * config/i386/i386.md (sibcall_insn_operand): Use Bs
23291         instead of m constraint.
23292
23293 2014-05-31  Andreas Schwab  <schwab@linux-m68k.org>
23294
23295         * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
23296         a separate alternative where the scratch operand 2 is marked as
23297         early clobber.
23298
23299 2014-05-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
23300
23301         * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
23302         (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
23303         (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
23304         and __builtins_arm_get_fpscr.
23305         (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
23306         __builtins_arm_get_fpscr.
23307         (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
23308         __builtins_arm_ldfpscr.
23309         (arm_atomic_assign_expand_fenv): New function.
23310         * config/arm/vfp.md (set_fpscr): New pattern.
23311         (get_fpscr) : Likewise.
23312         * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
23313         VUNSPEC_SET_FPSCR.
23314         * doc/extend.texi (AARCH64 Built-in Functions) : Document
23315         __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
23316
23317 2014-05-30  Jakub Jelinek  <jakub@redhat.com>
23318
23319         * asan.c (report_error_func): Add SLOW_P argument, use
23320         BUILT_IN_ASAN_*_N if set.
23321         (build_check_stmt): Likewise.
23322         (instrument_derefs): If T has insufficient alignment,
23323         force same handling as for odd sizes.
23324
23325         * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
23326         BUILT_IN_ASAN_REPORT_STORE_N): New.
23327         * asan.c (struct asan_mem_ref): Change access_size type to
23328         HOST_WIDE_INT.
23329         (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
23330         update_mem_ref_hash_table): Likewise.
23331         (asan_mem_ref_hasher::hash): Hash in a HWI.
23332         (report_error_func): Change size_in_bytes argument to HWI.
23333         Use *_N builtins if size_in_bytes is larger than 16 or not power of
23334         two.
23335         (build_shadow_mem_access): New function.
23336         (build_check_stmt): Use it.  Change size_in_bytes argument to HWI.
23337         Handle size_in_bytes not power of two or larger than 16.
23338         (instrument_derefs): Don't give up if size_in_bytes is not
23339         power of two or is larger than 16.
23340
23341 2014-05-30  Kai Tietz  <ktietz@redhat.com>
23342
23343         PR target/60104
23344         * config/i386/i386.c (x86_output_mi_thunk): Add memory case
23345         for sibling-tail-calls.
23346         * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
23347         to its use.
23348         * config/i386/predicates.md (sibcall_memory_operand): New predicate.
23349         (sibcall_insn_operand): Add check for sibcall_memory_operand.
23350
23351 2014-05-30  Pitchumani Sivanupandi <pitchumani.s@atmel.com>
23352
23353         * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
23354         * config/avr/avr-tables.opt: Regenerate.
23355         * config/avr/t-multilib: Regenerate.
23356         * doc/avr-mmcu.texi: Regenerate.
23357
23358 2014-05-30  Ian Lance Taylor  <iant@google.com>
23359
23360         * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
23361         target("sse").
23362
23363 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23364
23365         * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
23366         Redefine as true.
23367
23368 2014-05-30  Tom de Vries  <tom@codesourcery.com>
23369
23370         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23371         * lra.c (initialize_lra_reg_info_element): Add init of
23372         actual_call_used_reg_set field.
23373         (lra): Call lra_create_live_ranges before lra_inheritance for
23374         -fuse-caller-save.
23375         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23376         -fuse-caller-save.
23377         * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
23378         instead of call_used_reg_set for -fuse-caller-save.
23379         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23380
23381 2014-05-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23382
23383         * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
23384         to mov_imm.
23385         * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
23386
23387 2014-05-30  Richard Sandiford  <rdsandiford@googlemail.com>
23388
23389         * ira.c (ira_get_dup_out_num): Check for output operands at
23390         the start of the loop.  Handle cases where an included alternative
23391         follows an excluded one.
23392
23393 2014-05-29  Mike Stump  <mikestump@comcast.net>
23394
23395         PR debug/61352
23396         * collect2.c (maybe_run_lto_and_relink): Be sure to always run
23397         post ld passes when lto is used.
23398
23399 2014-05-29  Vladimir Makarov  <vmakarov@redhat.com>
23400
23401         PR rtl-optimization/61325
23402         * lra-constraints.c (process_address): Rename to process_address_1.
23403         (process_address): New function.
23404
23405 2014-05-29  Alan Lawrence  <alan.lawrence@arm.com>
23406
23407         * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
23408         TYPES_BINOPV): New static data.
23409         * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
23410         New builtin.
23411         * config/aarch64/aarch64-simd.md (aarch64_ext,
23412         aarch64_im_lane_boundsi): New patterns.
23413         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
23414         patterns for EXT.
23415         (aarch64_evpc_ext): New function.
23416
23417         * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
23418
23419         * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
23420         vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
23421         vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
23422         vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
23423         vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
23424
23425 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23426
23427         * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
23428
23429 2014-05-29  Richard Earnshaw <rearnsha@arm.com>
23430             Richard Sandiford  <rdsandiford@googlemail.com>
23431
23432         * arm/iterators.md (shiftable_ops): New code iterator.
23433         (t2_binop0, arith_shift_insn): New code attributes.
23434         * arm/predicates.md (shift_nomul_operator): New predicate.
23435         * arm/arm.md (insn_enabled): Delete.
23436         (enabled): Remove insn_enabled test.
23437         (*arith_shiftsi): Delete.  Replace with ...
23438         (*<arith_shift_insn>_multsi): ... new pattern.
23439         (*<arith_shift_insn>_shiftsi): ... new pattern.
23440         * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
23441
23442 2014-05-29  Radovan Obradovic  <robradovic@mips.com>
23443             Tom de Vries  <tom@codesourcery.com>
23444
23445         * config/mips/mips.h (POST_CALL_TMP_REG): Define.
23446         * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
23447         clobber.
23448         (mips_split_call): Use POST_CALL_TMP_REG.
23449         (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
23450
23451 2014-05-29  Tom de Vries  <tom@codesourcery.com>
23452
23453         * final.c (collect_fn_hard_reg_usage): Guard variable declaration
23454         with #ifdef STACK_REGS.
23455
23456 2014-05-28  Jan Hubicka  <hubicka@ucw.cz>
23457
23458         * varasm.c (get_variable_section): Walk aliases.
23459         (place_block_symbol): Walk aliases.
23460
23461 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23462
23463         Revert:
23464         2014-05-28  Tom de Vries  <tom@codesourcery.com>
23465
23466         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23467         * lra.c (initialize_lra_reg_info_element): Add init of
23468         actual_call_used_reg_set field.
23469         (lra): Call lra_create_live_ranges before lra_inheritance for
23470         -fuse-caller-save.
23471         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23472         -fuse-caller-save.
23473         * lra-constraints.c (need_for_call_save_p): Use
23474         actual_call_used_reg_set instead of call_used_reg_set for
23475         -fuse-caller-save.
23476         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23477
23478 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23479
23480         * doc/md.texi: Document that the % constraint character must
23481         be at the beginning of the string.
23482         * genoutput.c (validate_insn_alternatives): Check that '=',
23483         '+' and '%' only appear at the beginning of a constraint.
23484         * ira.c (commutative_constraint_p): Delete.
23485         (ira_get_dup_out_num): Expect the '%' commutativity marker to be
23486         at the start of the string.
23487         * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
23488         duplicate '='s.
23489         * config/arm/neon.md (bicdi3_neon): Likewise.
23490         * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
23491         (slt_si, sltu_si): Likewise.
23492         * config/vax/vax.md (sbcdi3): Likewise.
23493         * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
23494         * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
23495         (mul64): Move '%' to beginning of constraint.
23496         * config/arm/arm.md (*xordi3_insn): Likewise.
23497         * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
23498         (xorsi3): Likewise.
23499
23500 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23501
23502         * doc/md.texi: Document the restrictions on the "enabled" attribute.
23503
23504 2014-05-28  Jason Merrill  <jason@redhat.com>
23505
23506         PR c++/47202
23507         * cgraph.h (symtab_node::get_comdat_group_id): New.
23508         * cgraphunit.c (analyze_functions): Call it.
23509         * symtab.c (dump_symtab_node): Likewise.
23510         * tree.c (decl_comdat_group_id): New.
23511         * tree.h: Declare it.
23512         * lto-streamer-out.c (write_symbol): Use it.
23513         * trans-mem.c (ipa_tm_create_version_alias): Likewise.
23514
23515 2014-05-28  Francois-Xavier Coudert  <fxcoudert@gcc.gnu.org>
23516
23517         PR bootstrap/PR61146
23518         * wide-int.cc: Do not include longlong.h when compiling with clang.
23519
23520 2014-05-28  Richard Biener  <rguenther@suse.de>
23521
23522         * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
23523         * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
23524         (vrp_visit_assignment_or_call): Print less vertical space.
23525         (vrp_visit_stmt): Likewise.
23526         (vrp_visit_phi_node): Likewise.  For a PHI argument with
23527         VR_VARYING range consider recording it as copy.
23528
23529 2014-05-28  Richard Biener  <rguenther@suse.de>
23530
23531         Revert
23532         2014-05-28  Richard Biener  <rguenther@suse.de>
23533
23534         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23535
23536 2014-05-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23537
23538         * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
23539         sufficiently aligned and an offset is used at the same time.
23540         (expand_expr_real_1): Likewise.
23541
23542 2014-05-28  Richard Biener  <rguenther@suse.de>
23543
23544         PR middle-end/61045
23545         * fold-const.c (fold_comparison): When folding
23546         X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
23547         the sign of the remaining constant operand stays the same.
23548
23549 2014-05-28  Kaushik Phatak  <kaushik.phatak@kpit.com>
23550
23551         * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
23552         __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
23553         (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
23554         to the assembler.
23555         (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
23556         * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
23557         (m32bit-doubles) Likewise.
23558         * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
23559         * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
23560         option for RL78.
23561
23562 2014-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23563
23564         * configure.ac ($gcc_cv_ld_clearcap): New test.
23565         * configure: Regenerate.
23566         * config.in: Regenerate.
23567         * config/sol2.opt (mclear-hwcap): New option.
23568         * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
23569         * config/sol2-clearcap.map: Moved here from
23570         testsuite/gcc.target/i386/clearcap.map.
23571         * config/sol2-clearcapv2.map: Move here from
23572         gcc.target/i386/clearcapv2.map.
23573         * config/t-sol2 (install): Depend on install-clearcap-map.
23574         (install-clearcap-map): New target.
23575         * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
23576         -mclear-hwcap.
23577
23578 2014-05-28  Richard Biener  <rguenther@suse.de>
23579
23580         * hwint.h (*_HALF_WIDE_INT*): Move to ...
23581         * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
23582         ... here and remove the rest.
23583         * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
23584
23585 2014-05-28  Richard Biener  <rguenther@suse.de>
23586
23587         PR tree-optimization/61335
23588         * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
23589         new range fails, drop to varying.
23590
23591 2014-05-28  Olivier Hainque  <hainque@adacore.com>
23592
23593         * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
23594         (CPP_SPEC): Add entry for -mcpu=8548.
23595         * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
23596         * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
23597
23598 2014-05-28  Tom de Vries  <tom@codesourcery.com>
23599
23600         * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
23601         * lra.c (initialize_lra_reg_info_element): Add init of
23602         actual_call_used_reg_set field.
23603         (lra): Call lra_create_live_ranges before lra_inheritance for
23604         -fuse-caller-save.
23605         * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
23606         -fuse-caller-save.
23607         * lra-constraints.c (need_for_call_save_p): Use
23608         actual_call_used_reg_set instead of call_used_reg_set for
23609         -fuse-caller-save.
23610         * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
23611
23612 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23613             Tom de Vries  <tom@codesourcery.com>
23614
23615         * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
23616         to gccoptlist.
23617         (@item -fuse-caller-save): New item.
23618
23619 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23620             Tom de Vries  <tom@codesourcery.com>
23621
23622         * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
23623         OPT_fuse_caller_save.
23624
23625 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23626             Tom de Vries  <tom@codesourcery.com>
23627
23628         * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
23629         * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
23630         get_call_reg_set_usage.
23631         * resource.c (mark_set_resources, mark_target_live_regs): Use
23632         get_call_reg_set_usage.
23633         * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
23634         field.
23635         (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
23636         * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
23637         Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23638         * ira-build.c (ira_create_allocno): Init
23639         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23640         (create_cap_allocno, propagate_allocno_info)
23641         (propagate_some_info_from_allocno)
23642         (copy_info_to_removed_store_destinations): Handle
23643         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
23644         * ira-costs.c (ira_tune_allocno_costs): Use
23645         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
23646
23647 2014-05-28  Radovan Obradovic  <robradovic@mips.com>
23648             Tom de Vries  <tom@codesourcery.com>
23649
23650         * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
23651         and function_used_regs_valid fields.
23652         * final.c: Move include of hard-reg-set.h to before rtl.h to declare
23653         find_all_hard_reg_sets.
23654         (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
23655         (get_call_reg_set_usage): New function.
23656         (rest_of_handle_final): Use collect_fn_hard_reg_usage.
23657         * regs.h (get_call_reg_set_usage): Declare.
23658
23659 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23660
23661         PR libgcc/61152
23662         * config/dbx.h (License): Add Runtime Library Exception.
23663         * config/newlib-stdint.h (License): Same.
23664         * config/rtems.h (License): Same
23665         * config/initfini-array.h (License): Same
23666         * config/v850/v850.h (License): Same.
23667         * config/v850/v850-opts.h (License): Same
23668         * config/v850/rtems.h (License): Same.
23669
23670 2014-05-28  Georg-Johann Lay  <avr@gjlay.de>
23671
23672         PR target/61044
23673         * doc/extend.texi (Local Labels): Note that label differences are
23674         not supported for AVR.
23675
23676 2014-05-28  Richard Sandiford  <rdsandiford@googlemail.com>
23677             Olivier Hainque  <hainque@adacore.com>
23678
23679         * rtl.h (set_for_reg_notes): Declare.
23680         * emit-rtl.c (set_for_reg_notes): New function.
23681         (set_unique_reg_note): Use it.
23682         * optabs.c (add_equal_note): Likewise
23683
23684 2014-05-27  Andrew Pinski  <apinski@cavium.com>
23685
23686         * config/aarch64/aarch64.md (stack_protect_set_<mode>):
23687         Use <w> for the register in assembly template.
23688         (stack_protect_test): Use the mode of operands[0] for the result.
23689         (stack_protect_test_<mode>): Use <w> for the register
23690         in assembly template.
23691
23692 2014-05-27  DJ Delorie  <dj@redhat.com>
23693
23694         * config/rx/rx.c (add_vector_labels): New.
23695         (rx_output_function_prologue): Call it.
23696         (rx_handle_func_attribute): Don't require empty arguments.
23697         (rx_handle_vector_attribute): New.
23698         (rx_attribute_table): Add "vector" attribute.
23699         * doc/extend.texi (interrupt, vector): Document new/changed
23700         RX-specific attributes.
23701
23702         * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
23703
23704 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23705
23706         * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
23707         predicate to detect a negative quotient.
23708
23709 2014-05-27  Eric Botcazou  <ebotcazou@adacore.com>
23710
23711         * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
23712         to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
23713         Add X - Y CMP 0 to X CMP Y transformation.
23714         (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
23715
23716 2014-05-27  Segher Boessenkool  <segher@kernel.crashing.org>
23717
23718         * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
23719         before printing.
23720
23721 2014-05-27  Steve Ellcey  <sellcey@mips.com>
23722
23723         * config/mips/mips.c: Add include of cgraph.h.
23724
23725 2014-05-27  Richard Biener  <rguenther@suse.de>
23726
23727         * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
23728
23729 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23730
23731         PR libgcc/61152
23732         * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
23733         * config/arm/arm-cores.def (License): Same.
23734         * config/arm/arm-opts.h (License): Same.
23735         * config/arm/aout.h (License): Same.
23736         * config/arm/bpabi.h (License): Same.
23737         * config/arm/elf.h (License): Same.
23738         * config/arm/linux-elf.h (License): Same.
23739         * config/arm/linux-gas.h (License): Same.
23740         * config/arm/netbsd-elf.h (License): Same.
23741         * config/arm/uclinux-eabi.h (License): Same.
23742         * config/arm/uclinux-elf.h (License): Same.
23743         * config/arm/vxworks.h (License): Same.
23744
23745 2014-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23746
23747         * config/arm/neon.md (neon_bswap<mode>): New pattern.
23748         * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
23749         (arm_init_neon_builtins): Handle NEON_BSWAP.
23750         Define required type nodes.
23751         (arm_expand_neon_builtin): Handle NEON_BSWAP.
23752         (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
23753         * config/arm/arm_neon_builtins.def (bswap): Define builtins.
23754         * config/arm/iterators.md (VDQHSD): New mode iterator.
23755
23756 2014-05-27  Richard Biener  <rguenther@suse.de>
23757
23758         * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
23759         Try using literal operands when comparing value-ranges failed.
23760
23761 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23762
23763         * ira.c (commutative_operand): Adjust for change to recog_data.
23764         [Missing from previous commit.]
23765
23766 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23767
23768         * system.h (TEST_BIT): New macro.
23769         * recog.h (alternative_mask): New type.
23770         (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
23771         (recog_data_d): Replace alternative_enabled_p array with
23772         enabled_alternatives.
23773         (target_recog): New structure.
23774         (default_target_recog, this_target_recog): Declare.
23775         (get_enabled_alternatives, recog_init): Likewise.
23776         * recog.c (default_target_recog, this_target_recog): New variables.
23777         (get_enabled_alternatives): New function.
23778         (extract_insn): Use it.
23779         (recog_init): New function.
23780         (preprocess_constraints, constrain_operands): Adjust for change to
23781         recog_data.
23782         * postreload.c (reload_cse_simplify_operands): Likewise.
23783         * reload.c (find_reloads): Likewise.
23784         * ira-costs.c (record_reg_classes): Likewise.
23785         * ira-lives.c (single_reg_class): Likewise.  Fix bug in which
23786         all alternatives after a disabled one would be skipped.
23787         (ira_implicitly_set_insn_hard_regs): Likewise.
23788         * ira.c (ira_setup_alts): Adjust for change to recog_data.
23789         * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
23790         with enabled_alternatives.
23791         * lra.c (free_insn_recog_data): Update accordingly.
23792         (lra_update_insn_recog_data): Likewise.
23793         (lra_set_insn_recog_data): Likewise.  Use get_enabled_alternatives.
23794         * lra-constraints.c (process_alt_operands): Likewise.  Handle
23795         only_alternative as part of the enabled mask.
23796         * target-globals.h (this_target_recog): Declare.
23797         (target_globals): Add a recog field.
23798         (restore_target_globals): Restore this_target_recog.
23799         * target-globals.c: Include recog.h.
23800         (default_target_globals): Initialize recog field.
23801         (save_target_globals): Likewise.
23802         * reginfo.c (reinit_regs): Call recog_init.
23803         * toplev.c (backend_init_target): Likewise.
23804
23805 2014-05-27  Richard Sandiford  <rdsandiford@googlemail.com>
23806
23807         * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
23808         rather than any named insn's code.
23809
23810 2014-05-27  Georg-Johann Lay  <avr@gjlay.de>
23811
23812         PR libgcc/61152
23813         * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
23814         * config/arm/arm-cores.def (License): Same.
23815
23816 2014-05-26  Jan Hubicka  <hubicka@ucw.cz>
23817
23818         * tree.h (decl_comdat_group): Declare.
23819         * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
23820         * tree.c (decl_comdat_group): Here.
23821
23822 2014-05-26  Richard Sandiford  <r.sandiford@uk.ibm.com>
23823
23824         PR rtl-optimization/61222
23825         * combine.c (simplify_shift_const_1): When moving a PLUS outside
23826         the shift, truncate the PLUS operand to the result mode.
23827
23828 2014-05-26  Uros Bizjak  <ubizjak@gmail.com>
23829
23830         PR target/61271
23831         * config/i386/i386.c (ix86_rtx_costs)
23832         <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
23833         Fix condition.
23834
23835 2014-05-26  Martin Jambor  <mjambor@suse.cz>
23836
23837         * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
23838         subreg uses.
23839
23840 2014-05-26  Richard Biener  <rguenther@suse.de>
23841
23842         * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
23843         wi::int_traits <long long>, wi::int_traits <unsigned long long>):
23844         Provide specializations.
23845         (wi::int_traits <HOST_WIDE_INT>,
23846         wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
23847
23848 2014-05-26  Alan Modra  <amodra@gmail.com>
23849
23850         PR target/61098
23851         * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
23852         params and return a bool.  Remove dead code.  Update comment.
23853         Assert we have a const_int source.  Remove bogus code from
23854         32-bit HWI days.  Move !TARGET_POWERPC64 handling, and correct
23855         handling of constants > 2G and reg_equal note, from..
23856         (rs6000_emit_set_long_const): ..here.  Remove unneeded param and
23857         return value.  Update comment.  If we can, use a new pseudo
23858         for intermediate calculations.
23859         * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
23860         prototype.
23861         * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
23862         call to rs6000_emit_set_const in splitter.
23863         (movdi_internal64+2, +3): Likewise.
23864
23865 2014-05-26  Richard Biener  <rguenther@suse.de>
23866
23867         * system.h: Define __STDC_FORMAT_MACROS before
23868         including inttypes.h.
23869         * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
23870         HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
23871         HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
23872         HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
23873         HOST_WIDEST_INT_C): Remove.
23874         (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
23875         if C99 inttypes.h is not available.
23876         * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
23877         * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
23878         * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
23879         * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
23880         * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
23881         (struct output_info): Likewise.
23882         (print_statistics): Adjust.
23883         (dump_bitmap_statistics): Likewise.
23884         * bt-load.c (migrate_btr_defs): Print with PRId64.
23885         * cfg.c (dump_edge_info, dump_bb_info): Likewise.
23886         (MAX_SAFE_MULTIPLIER): Adjust.
23887         * cfghooks.c (dump_bb_for_graph): Print with PRId64.
23888         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
23889         dump_cgraph_node): Likewise.
23890         * final.c (dump_basic_block_info): Likewise.
23891         * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
23892         * gcov.c (format_gcov): Likewise.
23893         * ipa-cp.c (good_cloning_opportunity_p): Likewise.  Use int64_t
23894         for calculation.
23895         (get_clone_agg_value): Use HOST_WIDE_INT for offset.
23896         * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
23897         (inline_small_functions, dump_overall_stats, dump_inline_stats):
23898         Use PRId64 for dumping.
23899         * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
23900         * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
23901         (add_allocno_hard_regs): Adjust.
23902         * loop-doloop.c (doloop_modify): Print using PRId64.
23903         * loop-iv.c (inverse): Compute in uint64_t.
23904         (determine_max_iter, iv_number_of_iterations): Likewise.
23905         * loop-unroll.c (decide_peel_completely, decide_peel_simple):
23906         Print using PRId64.
23907         * lto-streamer-out.c (write_symbol): Use uint64_t.
23908         * mcf.c (CAP_INFINITY): Use int64_t maximum.
23909         (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
23910         find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
23911         * modulo-sched.c (const_iteration_count): Use int64_t.
23912         (sms_schedule): Dump using PRId64.
23913         * predict.c (dump_prediction): Likewise.
23914         * pretty-print.h (pp_widest_integer): Remove.
23915         * profile.c (get_working_sets, is_edge_inconsistent,
23916         is_inconsistent, read_profile_edge_counts): Dump using PRId64.
23917         * tree-pretty-print.c (pp_double_int): Remove case handling
23918         HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
23919         * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
23920         and adjust users.
23921         (pass_optimize_bswap::execute): Remove restriction on hosts.
23922         * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
23923         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23924         * tree.c (widest_int_cst_value): Remove.
23925         * tree.h (widest_int_cst_value): Likewise.
23926         * value-prof.c (dump_histogram_value): Print using PRId64.
23927         * gengtype.c (main): Also inject int64_t.
23928         * ggc-page.c (struct max_alignment): Use int64_t.
23929         * alloc-pool.c (struct allocation_object_def): Likewise.
23930         * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
23931         for computation.
23932         * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
23933         * doc/tm.texi: Regenerated.
23934         * gengtype-lex.l (IWORD): Handle [u]int64_t.
23935         * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
23936         * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
23937         mmix_output_register_setting): Use [u]int64_t in prototypes.
23938         * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
23939         mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
23940         mmix_output_octa, mmix_output_shifted_value): Adjust.
23941         (mmix_intval): Adjust.  Remove unreachable case.
23942         * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
23943
23944 2014-05-26  Richard Biener  <rguenther@suse.de>
23945
23946         * configure.ac: Drop __int64 type check.  Insist that we
23947         found uint64_t and int64_t.
23948         * hwint.h (HOST_BITS_PER___INT64): Remove.
23949         (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
23950         (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
23951         (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
23952         (HOST_WIDEST_FAST_INT): Remove __int64 case.
23953         * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
23954         for dst_q_src_df_rms_cdt.
23955         * configure: Regenerate.
23956         * config.in: Likewise.
23957
23958 2014-05-26  Michael Tautschnig  <mt@debian.org>
23959
23960         PR target/61249
23961         * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
23962         __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
23963
23964 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23965
23966         PR rtl-optimization/61278
23967         * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
23968
23969 2014-05-26  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
23970
23971         PR rtl-optimization/61220
23972         Part of PR rtl-optimization/61225
23973         * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
23974         insn; skip split_edge for a block with only one successor.
23975
23976 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23977
23978         * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
23979         for variables.
23980
23981 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23982
23983         * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
23984         (update_vtable_references): New function.
23985         (function_and_variable_visibility): Rewrite also vtable initializers.
23986         * varpool.c (cgraph_variable_initializer_availability): Remove assert.
23987
23988 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23989
23990         * ggc.h (ggc_grow): New function.
23991         * ggc-none.c (ggc_grow): New function.
23992         * ggc-page.c (ggc_grow): Likewise.
23993
23994 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
23995
23996         * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
23997         address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
23998         comdat_can_be_unshared_p, cgraph_externally_visible_p,
23999         varpool_externally_visible_p, can_replace_by_local_alias,
24000         update_visibility_by_resolution_info, function_and_variable_visibility,
24001         pass_data_ipa_function_and_variable_visibility,
24002         make_pass_ipa_function_and_variable_visibility,
24003         whole_program_function_and_variable_visibility,
24004         pass_data_ipa_whole_program_visibility,
24005         make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
24006         * cgraph.h (cgraph_local_node_p): Declare.
24007         * ipa-visibility.c: New file.
24008         * Makefile.in (OBJS): Add ipa-visiblity.o
24009
24010 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24011
24012         * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
24013         that var decl is available.
24014
24015 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24016
24017         * tree-core.h (tree_decl_with_vis): Replace comdat_group by
24018         symtab_node pointer.
24019         * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
24020         (find_decls_types_r): Do not walk COMDAT_GROUP.
24021         * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
24022         * varasm.c (make_decl_one_only): Use set_comdat_group;
24023         create node if needed.
24024         * ipa-inline-transform.c (save_inline_function_body): Update
24025         way we decl->symtab mapping.
24026         * symtab.c (symtab_hash, hash_node, eq_node
24027         symtab_insert_node_to_hashtable): Remove.
24028         (symtab_register_node): Update.
24029         (symtab_unregister_node): Update.
24030         (symtab_get_node): Reimplement as inline function.
24031         (symtab_add_to_same_comdat_group): Update.
24032         (symtab_dissolve_same_comdat_group_list): Update.
24033         (dump_symtab_base): Update.
24034         (verify_symtab_base): Update.
24035         (symtab_make_decl_local): Update.
24036         (fixup_same_cpp_alias_visibility): Update.
24037         (symtab_nonoverwritable_alias): Update.
24038         * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
24039         * ipa.c (update_visibility_by_resolution_info): UPdate.
24040         * bb-reorder.c: Include cgraph.h
24041         * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
24042         with comdat groups.
24043         * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
24044         * cgraph.c (cgraph_get_create_node): Update.
24045         * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
24046         and comdat_group_.
24047         (symtab_get_node): Make inline.
24048         (symtab_insert_node_to_hashtable): Remove.
24049         (symtab_can_be_discarded): Update.
24050         (decl_comdat_group): New function.
24051         * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
24052         Update.
24053         * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
24054         comdat group name.
24055         (read_comdat_group): New function.
24056         (input_node, input_varpool_node): Use it.
24057         * trans-mem.c (ipa_tm_create_version_alias): Update code creating
24058         comdat groups.
24059         * mips.c (mips_start_unique_function): Likewise.
24060         (ix86_code_end): Likewise.
24061         (rs6000_code_end): Likweise.
24062         * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
24063
24064 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24065
24066         * gengtype-state.c (fatal_reading_state): Bring offline.
24067         * optabs.c (widening_optab_handler): Bring offline.
24068         * optabs.h (widening_optab_handler): Likewise.
24069         * final.c (get_attr_length_1): Likewise.
24070
24071 2014-05-23  Jan Hubicka  <hubicka@ucw.cz>
24072
24073         * sched-int.h (sd_iterator_cond): Manually tail recurse.
24074
24075 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24076
24077         * config/rs6000/440.md (ppc440-integer): Include shift without dot.
24078         (ppc440-compare): Include shift with dot.
24079         * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
24080         * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
24081         without dot.
24082         * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
24083         without dot.
24084         (e6500_sfx2): Include it.
24085         * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
24086         *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
24087         *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
24088         andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
24089         *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
24090         *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
24091         *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
24092         *lshiftrt_internal1le, *lshiftrt_internal1be,
24093         *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
24094         *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
24095         *rotldi3_internal10le, *rotldi3_internal10be,
24096         *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
24097         ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
24098         ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
24099         *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
24100         define_insns): Use type "shift" in the appropriate alternatives.
24101
24102 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24103
24104         * config/rs6000/rs6000.md (type): Add "logical".  Delete
24105         "fast_compare".
24106         (dot): Adjust comment.
24107         (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
24108         *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
24109         *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
24110         anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
24111         *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
24112         *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
24113         *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
24114         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24115
24116         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24117         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24118         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24119         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24120         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24121         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24122         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24123         * config/rs6000/8540.md (ppc8540_su): Adjust.
24124         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24125         cell-cmp-microcoded): Adjust.
24126         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24127         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24128         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24129         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24130         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24131         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24132         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24133         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24134         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24135         Adjust.
24136         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24137         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
24138         Adjust.  Adjust comment.
24139         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24140         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24141
24142 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24143
24144         * config/rs6000/rs6000.md (type): Add "add".
24145         (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
24146         *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
24147         define_insns): Use it.
24148         * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
24149
24150         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24151         * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
24152         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24153         * config/rs6000/601.md (ppc601-integer): Adjust.
24154         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24155         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24156         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24157         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24158         * config/rs6000/8540.md (ppc8540_su): Adjust.
24159         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24160         cell-cmp-microcoded): Adjust.
24161         * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
24162         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24163         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
24164         * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
24165         * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
24166         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24167         * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
24168         * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
24169         * config/rs6000/power6.md (power6-integer, power6-fast-compare):
24170         Adjust.
24171         * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
24172         * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
24173         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24174         * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
24175
24176 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24177
24178         * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
24179         "delayed_compare", "var_delayed_compare".
24180         (var_shift): New attribute.
24181         (cell_micro): Adjust.
24182         (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
24183         *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
24184         rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
24185         *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
24186         *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
24187         *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
24188         *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
24189         *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
24190         *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
24191         *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
24192         *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
24193         rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
24194         *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
24195         *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
24196         *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
24197         *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
24198         *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
24199         *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
24200         *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
24201         *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
24202         *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
24203         *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
24204         *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
24205         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24206         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24207
24208         * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
24209         * config/rs6000/440.md (ppc440-integer): Adjust.
24210         * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
24211         * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
24212         * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
24213         * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
24214         * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
24215         * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
24216         * config/rs6000/8540.md (ppc8540_su): Adjust.
24217         * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
24218         cell-cmp-microcoded): Adjust.
24219         * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
24220         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24221         * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
24222         e500mc64_delayed): Adjust.
24223         * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
24224         * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
24225         * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
24226         * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
24227         * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
24228         * config/rs6000/power6.md (power6-shift, power6-var-rotate,
24229         power6-delayed-compare, power6-var-delayed-compare): Adjust.
24230         * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
24231         * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
24232         Adjust comment.
24233         * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
24234         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24235
24236 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24237
24238         * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv".  Add "div".
24239         (bits): New mode_attr.
24240         (idiv_ldiv): Delete mode_attr.
24241         (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
24242         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24243         rs6000_adjust_priority, is_nonpipeline_insn,
24244         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24245
24246         * config/rs6000/40x.md (ppc403-idiv): Adjust.
24247         * config/rs6000/440.md (ppc440-idiv): Adjust.
24248         * config/rs6000/476.md (ppc476-idiv): Adjust.
24249         * config/rs6000/601.md (ppc601-idiv): Adjust.
24250         * config/rs6000/603.md (ppc603-idiv): Adjust.
24251         * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
24252         ppc620-ldiv): Adjust.
24253         * config/rs6000/7450.md (ppc7450-idiv): Adjust.
24254         * config/rs6000/7xx.md (ppc750-idiv): Adjust.
24255         * config/rs6000/8540.md (ppc8540_divide): Adjust.
24256         * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
24257         * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
24258         * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
24259         * config/rs6000/e500mc.md (e500mc_divide): Adjust.
24260         * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
24261         * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
24262         * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
24263         * config/rs6000/mpc.md (mpccore-idiv): Adjust.
24264         * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
24265         * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
24266         * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
24267         * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
24268         * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
24269         * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
24270         * config/rs6000/titan.md (titan_fxu_div): Adjust.
24271
24272 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24273
24274         * config/rs6000/rs6000.md (type): Delete "insert_word",
24275         "insert_dword".  Add "insert".
24276         (size): Update comment.
24277         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24278         insn_must_be_first_in_group): Adjust.
24279         (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
24280         *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
24281         *insvsi_internal6, insvdi_internal): Adjust.
24282
24283         * config/rs6000/40x.md (ppc403-integer): Adjust.
24284         * config/rs6000/440.md (ppc440-integer): Adjust.
24285         * config/rs6000/476.md (ppc476-simple-integer): Adjust.
24286         * config/rs6000/601.md (ppc601-integer): Adjust.
24287         * config/rs6000/603.md (ppc603-integer): Adjust.
24288         * config/rs6000/6xx.md (ppc604-integer): Adjust.
24289         * config/rs6000/7450.md (ppc7450-integer): Adjust.
24290         * config/rs6000/7xx.md (ppc750-integer): Adjust.
24291         * config/rs6000/8540.md (ppc8540_su): Adjust.
24292         * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
24293         * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
24294         * config/rs6000/e500mc.md (e500mc_su): Adjust.
24295         * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
24296         * config/rs6000/e5500.md (e5500_sfx): Adjust.
24297         * config/rs6000/e6500.md (e6500_sfx): Adjust.
24298         * config/rs6000/mpc.md (mpccore-integer): Adjust.
24299         * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
24300         * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
24301         * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
24302         * config/rs6000/power7.md (power7-integer): Adjust.
24303         * config/rs6000/power8.md (power8-1cyc): Adjust.
24304         * config/rs6000/rs64.md (rs64a-integer): Adjust.
24305         * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
24306
24307 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24308
24309         * config/rs6000/rs6000.md (type): Add "mul".  Delete "imul",
24310         "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
24311         (size): New attribute.
24312         (dot): New attribute.
24313         (cell_micro): Adjust.
24314         (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
24315         umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
24316         *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
24317         umuldi3_highpart): Adjust.
24318         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
24319         rs6000_adjust_priority, is_nonpipeline_insn,
24320         insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
24321
24322         * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
24323         ppc405-imul3): Adjust.
24324         * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
24325         * config/rs6000/476.md (ppc476-imul): Adjust.
24326         * config/rs6000/601.md (ppc601-imul): Adjust.
24327         * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
24328         * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
24329         ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
24330         * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
24331         * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
24332         Adjust.
24333         * config/rs6000/8540.md (ppc8540_multiply): Adjust.
24334         * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
24335         * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
24336         cell-imul): Adjust.
24337         * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
24338         * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
24339         * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
24340         * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
24341         * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
24342         * config/rs6000/mpc.md (mpccore-imul): Adjust.
24343         * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
24344         power4-lmul, power4-imul, power4-imul3): Adjust.
24345         * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
24346         power5-lmul, power5-imul, power5-imul3): Adjust.
24347         * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
24348         power6-lmul, power6-imul, power6-imul3): Adjust.
24349         * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
24350         * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
24351
24352         * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
24353         rs64a-lmul): Adjust.
24354         * config/rs6000/titan.md (titan_imul): Adjust.
24355
24356 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24357
24358         * config/rs6000/rs6000.md (type): Add new value "halfmul".
24359         (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
24360         *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
24361         *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
24362         *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
24363         *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
24364         * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
24365         * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
24366         * config/rs6000/476.md (ppc476-imul): Add type halfmul.
24367         * config/rs6000/titan.md: Delete nonsensical comment.
24368         (titan_imul): Add type imul3.
24369         (titan_mulhw): Remove type imul3; add type halfmul.
24370
24371 2014-05-23  Segher Boessenkool  <segher@kernel.crashing.org>
24372
24373         * config/rs6000/rs6000.md (type): Reorder, reformat.
24374
24375 2014-05-23  Martin Jambor  <mjambor@suse.cz>
24376
24377         PR tree-optimization/53787
24378         * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
24379         * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
24380         analysis_done, update all uses.
24381         * ipa-prop.c: Include domwalk.h
24382         (param_analysis_info): Removed.
24383         (param_aa_status): New type.
24384         (ipa_bb_info): Likewise.
24385         (func_body_info): Likewise.
24386         (ipa_get_bb_info): New function.
24387         (aa_overwalked): Likewise.
24388         (find_dominating_aa_status): Likewise.
24389         (parm_bb_aa_status_for_bb): Likewise.
24390         (parm_preserved_before_stmt_p): Changed to use new param AA info.
24391         (load_from_unmodified_param): Accept func_body_info as a parameter
24392         instead of parms_ainfo.
24393         (parm_ref_data_preserved_p): Changed to use new param AA info.
24394         (parm_ref_data_pass_through_p): Likewise.
24395         (ipa_load_from_parm_agg_1): Likewise.  Update callers.
24396         (compute_complex_assign_jump_func): Changed to use new param AA info.
24397         (compute_complex_ancestor_jump_func): Likewise.
24398         (ipa_compute_jump_functions_for_edge): Likewise.
24399         (ipa_compute_jump_functions): Removed.
24400         (ipa_compute_jump_functions_for_bb): New function.
24401         (ipa_analyze_indirect_call_uses): Likewise, moved variable
24402         declarations down.
24403         (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
24404         and info, moved variable declarations down.
24405         (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
24406         node and info.
24407         (ipa_analyze_stmt_uses): Likewise.
24408         (ipa_analyze_params_uses): Removed.
24409         (ipa_analyze_params_uses_in_bb): New function.
24410         (ipa_analyze_controlled_uses): Likewise.
24411         (free_ipa_bb_info): Likewise.
24412         (analysis_dom_walker): New class.
24413         (ipa_analyze_node): Handle node-specific forbidden analysis,
24414         initialize and free func_body_info, use dominator walker.
24415         (ipcp_modif_dom_walker): New class.
24416         (ipcp_transform_function): Create and free func_body_info, use
24417         ipcp_modif_dom_walker, moved a lot of functionality there.
24418
24419 2014-05-23  Marek Polacek  <polacek@redhat.com>
24420             Jakub Jelinek  <jakub@redhat.com>
24421
24422         * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
24423         * gcc.c (sanitize_spec_function): Likewise.
24424         * convert.c (convert_to_integer): Include "ubsan.h".  Add
24425         floating-point to integer instrumentation.
24426         * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
24427         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
24428         SANITIZE_NONDEFAULT.
24429         * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
24430         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
24431         BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
24432         * ubsan.c: Include "realmpfr.h" and "dfp.h".
24433         (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
24434         (ubsan_type_descriptor): Set tkind to 0xffff for types other than
24435         float/double/long double.
24436         (ubsan_instrument_float_cast): New function.
24437         * ubsan.h (ubsan_instrument_float_cast): Declare.
24438
24439 2014-05-23 Jiong Wang  <jiong.wang@arm.com>
24440
24441         * config/aarch64/predicates.md (aarch64_call_insn_operand): New
24442         predicate.
24443         * config/aarch64/constraints.md ("Ucs", "Usf"):  New constraints.
24444         * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
24445         Adjust for tailcalling through registers.
24446         * config/aarch64/aarch64.h (enum reg_class): New caller save
24447         register class.
24448         (REG_CLASS_NAMES): Likewise.
24449         (REG_CLASS_CONTENTS): Likewise.
24450         * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
24451         Allow tailcalling without decls.
24452
24453 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24454
24455         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24456         Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
24457
24458         * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
24459         gsi, and variables v_* to v*.
24460
24461 2014-05-23  Eric Botcazou  <ebotcazou@adacore.com>
24462
24463         * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
24464
24465 2014-05-23  Thomas Schwinge  <thomas@codesourcery.com>
24466
24467         * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
24468         * omp-low.c: Update accordingly.
24469
24470         * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
24471         for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
24472         GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
24473         GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
24474         GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
24475         GF_OMP_TARGET_KIND_UPDATE.
24476
24477         * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
24478         Explicitly enumerate the expected region types.
24479
24480 2014-05-23  Paul Eggert  <eggert@cs.ucla.edu>
24481
24482         PR other/56955
24483         * doc/extend.texi (Function Attributes): Fix  __attribute__ ((malloc))
24484         documentation; the old documentation didn't clearly state the
24485         constraints on the contents of the pointed-to storage.
24486
24487 2014-05-23  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24488
24489         Fix bootstrap error on ia64
24490         * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
24491         Return default value.
24492
24493 2014-05-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24494
24495         PR tree-optimization/54733
24496         * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
24497         (CMPNOP): Define.
24498         (find_bswap_or_nop_load): New.
24499         (find_bswap_1): Renamed to ...
24500         (find_bswap_or_nop_1): This. Also add support for memory source.
24501         (find_bswap): Renamed to ...
24502         (find_bswap_or_nop): This. Also add support for memory source and
24503         detection of bitwise operations equivalent to load in target
24504         endianness.
24505         (execute_optimize_bswap): Likewise. Also move its leading comment back
24506         in place and split statement transformation into ...
24507         (bswap_replace): This.
24508
24509 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24510
24511         PR rtl-optimization/61215
24512         * lra-elelimination.c (lra_eliminate_regs_1): Don't use
24513         simplify_gen_subreg until final substitution.
24514
24515 2014-05-23  Alan Modra  <amodra@gmail.com>
24516
24517         PR target/61231
24518         * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
24519         * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
24520         Use "Y" constraint rather than "m".
24521
24522 2014-05-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
24523
24524         * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
24525         define.
24526         * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
24527         New function declaration.
24528         * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
24529         AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
24530         AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
24531         (aarch64_init_builtins) : Initialize builtins
24532         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24533         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24534         (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
24535         __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
24536         and __builtins_aarch64_set_fpsr.
24537         (aarch64_atomic_assign_expand_fenv): New function.
24538         * config/aarch64/aarch64.md (set_fpcr): New pattern.
24539         (get_fpcr) : Likewise.
24540         (set_fpsr) : Likewise.
24541         (get_fpsr) : Likewise.
24542         (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
24543         and UNSPECV_SET_FPSR.
24544         * doc/extend.texi (AARCH64 Built-in Functions) : Document
24545         __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
24546         __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
24547
24548 2014-05-22  Vladimir Makarov  <vmakarov@redhat.com>
24549
24550         PR rtl-optimization/60969
24551         * ira-costs.c (record_reg_classes): Process NO_REGS for matching
24552         constraints.  Set up mem cost for NO_REGS case.
24553
24554 2014-05-22  Thomas Schwinge  <thomas@codesourcery.com>
24555
24556         * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
24557
24558 2012-05-22  Bernd Schmidt  <bernds@codesourcery.com>
24559
24560         * config/darwin.c: Include "lto-section-names.h".
24561         (LTO_SEGMENT_NAME): Don't define.
24562         * config/i386/winnt.c: Include "lto-section-names.h".
24563         * lto-streamer.c: Include "lto-section-names.h".
24564         * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
24565         * lto-wrapper.c: Include "lto-section-names.h".
24566         (LTO_SECTION_NAME_PREFIX): Don't define.
24567         * lto-section-names.h: New file.
24568         * cgraphunit.c: Include "lto-section-names.h".
24569
24570 2014-05-22  Peter Bergner  <bergner@vnet.ibm.com>
24571
24572         * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
24573
24574 2014-05-22  Richard Earnshaw  <rearnsha@arm.com>
24575
24576         PR target/61208
24577         * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
24578
24579 2014-05-22  Nick Clifton  <nickc@redhat.com>
24580
24581         * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
24582
24583 2014-05-22  Eric Botcazou  <ebotcazou@adacore.com>
24584
24585         * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
24586         -> (T)A transformation to integer types.
24587
24588 2014-05-22  Teresa Johnson  <tejohnson@google.com>
24589
24590         * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
24591         (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
24592         (gcov_rewrite): Use gcov_nonruntime_assert.
24593         (gcov_open): Ditto.
24594         (gcov_write_words): Ditto.
24595         (gcov_write_length): Ditto.
24596         (gcov_read_words): Use gcov_nonruntime_assert, and remove
24597         gcc_assert from IN_LIBGCOV code.
24598         (gcov_read_summary): Use gcov_error to flag profile corruption.
24599         (gcov_sync): Use gcov_nonruntime_assert.
24600         (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
24601         (gcov_histo_index): Use gcov_nonruntime_assert.
24602         (static void gcov_histogram_merge): Ditto.
24603         (compute_working_sets): Ditto.
24604         * gcov-io.h (gcov_nonruntime_assert): Define.
24605         (gcov_error): Define for !IN_LIBGCOV
24606
24607 2014-05-22  Richard Biener  <rguenther@suse.de>
24608
24609         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
24610         BUILT_IN_REALLOC like BUILT_IN_STRDUP.
24611         (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
24612         and deallocation site.
24613         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24614         Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
24615         passing through the incoming points-to set.
24616         (handle_lhs_call): Use flags argument instead of recomputing it.
24617         (find_func_aliases_for_call): Call handle_lhs_call with proper
24618         call return flags.
24619
24620 2014-05-22  Jakub Jelinek  <jakub@redhat.com>
24621
24622         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
24623         all padding bits in REAL_VALUE_TYPE are cleared.
24624
24625 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24626
24627         Cleanup and improve multipass_dfa_lookahead_guard
24628         * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
24629         (core2i7_first_cycle_multipass_begin,)
24630         (core2i7_first_cycle_multipass_issue,)
24631         (core2i7_first_cycle_multipass_backtrack): Update signature.
24632         * config/ia64/ia64.c
24633         (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
24634         (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
24635         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
24636         hook definition.
24637         (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
24638         ia64_first_cycle_multipass_dfa_lookahead_guard_spec.  Update return
24639         values.
24640         * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
24641         return values.
24642         * doc/tm.texi: Regenerate.
24643         * doc/tm.texi.in
24644         (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
24645         * haifa-sched.c (ready_try): Make signed to allow negative values.
24646         (rebug_ready_list_1): Update.
24647         (choose_ready): Simplify.
24648         (sched_extend_ready_list): Update.
24649
24650 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24651
24652         Remove IA64 speculation tweaking flags
24653         * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
24654         speculation tuning flags.
24655         (msched-prefer-non-data-spec-insns,)
24656         (msched-prefer-non-control-spec-insns): Obsolete options.
24657         * haifa-sched.c (choose_ready): Remove handling of
24658         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24659         * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
24660         and PREFER_NON_DATA_SPEC.
24661         * sel-sched.c (process_spec_exprs): Remove handling of
24662         PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
24663
24664 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24665
24666         Improve scheduling debug output
24667         * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
24668         (advance_one_cycle): Update.
24669         (schedule_insn, queue_to_ready): Add debug printouts.
24670         (debug_ready_list_1): New static function.
24671         (debug_ready_list): Update.
24672         (max_issue): Add debug printouts.
24673         (dump_insn_stream): New static function.
24674         (schedule_block): Use it.  Also better indent printouts.
24675
24676 2014-05-22  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
24677
24678         Fix sched_insn debug counter
24679         * haifa-sched.c (schedule_insn): Update.
24680         (struct haifa_saved_data): Add nonscheduled_insns_begin.
24681         (save_backtrack_point, restore_backtrack_point): Update.
24682         (first_nonscheduled_insn): New static function.
24683         (queue_to_ready, choose_ready): Use it.
24684         (schedule_block): Init nonscheduled_insns_begin.
24685         (sched_emit_insn): Update.
24686
24687
24688 2014-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
24689
24690         * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
24691         to GENERAL_REGS.
24692         (aarch64_secondary_reload) : LikeWise.
24693         (aarch64_class_max_nregs) : Remove CORE_REGS.
24694         * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
24695         (REG_CLASS_NAMES) : Likewise.
24696         (REG_CLASS_CONTENTS) : LikeWise.
24697         (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
24698
24699 2014-05-21  Guozhi Wei  <carrot@google.com>
24700
24701         PR target/61202
24702         * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
24703         constraint.
24704         (vqdmulhq_n_s16): Likewise.
24705
24706 2014-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
24707
24708         * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
24709
24710 2014-05-21  Marek Polacek  <polacek@redhat.com>
24711
24712         PR sanitizer/61272
24713         * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
24714
24715 2014-05-21  Martin Jambor  <mjambor@suse.cz>
24716
24717         * doc/invoke.texi (Optimize Options): Document parameters
24718         ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
24719         ipa-cp-array-index-hint-bonus.
24720
24721 2014-05-21  Mark Wielaard  <mjw@redhat.com>
24722
24723         PR debug/16063
24724         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
24725         version >= 3 or not strict DWARF.
24726         * langhooks.h (struct lang_hooks_for_types): Add
24727         enum_underlying_base_type.
24728         * langhooks.c (lhd_enum_underlying_base_type): New function.
24729         * gcc/langhooks.h (struct lang_hooks_for_types): Add
24730         enum_underlying_base_type.
24731         * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
24732         (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
24733         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
24734
24735 2014-05-21  Richard Biener  <rguenther@suse.de>
24736
24737         * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
24738
24739 2014-05-21  John Marino  <gnugcc@marino.st>
24740
24741         * config.gcc (*-*-dragonfly*): New target.
24742         * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
24743         * configure: Regenerate.
24744         * config/dragonfly-stdint.h: New.
24745         * config/dragonfly.h: New.
24746         * config/dragonfly.opt: New.
24747         * config/i386/dragonfly.h: New.
24748         * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
24749
24750 2014-05-21  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
24751
24752         * tree.def (VOID_CST): New.
24753         * tree-core.h (TI_VOID): New.
24754         * tree.h (void_node): New.
24755         * tree.c (tree_node_structure_for_code, tree_code_size)
24756         (iterative_hash_expr): Handle VOID_CST.
24757         (build_common_tree_nodes): Initialize void_node.
24758
24759 2014-05-21  Bernd Schmidt  <bernds@codesourcery.com>
24760
24761         * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
24762         functions.
24763         (reload, calculate_needs_all_insns, reload_as_needed): Use them.
24764
24765         * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
24766         more places.
24767
24768         * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
24769         flag_reorder_blocks_and_partition.
24770         * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
24771
24772 2014-05-21  Oleg Endo  <olegendo@gcc.gnu.org>
24773
24774         PR target/54236
24775         * config/sh/sh.md (*addc_r_1): Rename to addc_t_r.  Remove empty
24776         constraints.
24777         (*addc_r_t): Add new insn_and_split.
24778
24779 2014-05-21  Jakub Jelinek  <jakub@redhat.com>
24780
24781         PR middle-end/61252
24782         * omp-low.c (handle_simd_reference): New function.
24783         (lower_rec_input_clauses): Use it.  Defer adding reference
24784         initialization even for reduction without placeholder if in simd,
24785         handle it properly later on.
24786
24787 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24788
24789         PR tree-optimization/60899
24790         * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
24791         assume all static symbols will have definition wile parsing and
24792         check the do have definition later in compilation; check that
24793         variable referring symbol will be output before concluding that
24794         reference is safe; be conservative for referring local statics;
24795         be more precise about when comdat is output in other partition.
24796
24797 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24798
24799         PR bootstrap/60984
24800         * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
24801         parameter.
24802         * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
24803         (ipa_inline): Loop inline_to_all_callers until no more aliases
24804         are removed.
24805
24806 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24807
24808         * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
24809         set writeonly flag only for vars actually written to.
24810
24811 2014-05-20  Dehao Chen  <dehao@google.com>
24812
24813         * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
24814         and callee count to get clone count.
24815         * tree-inline.c (expand_call_inline): Use callee count instead of bb
24816         count in copy_body.
24817
24818 2014-05-20  Richard Sandiford  <rdsandiford@googlemail.com>
24819
24820         PR rtl-optimization/61243
24821         * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
24822
24823 2014-05-20  Xinliang David Li  <davidxl@google.com>
24824
24825         * cgraphunit.c (walk_polymorphic_call_targets): Add
24826         dbgcnt and fopt-info support.
24827         * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
24828         * ipa-devirt.c (ipa_devirt): Ditto.
24829         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
24830         * ipa.c (walk_polymorphic_call_targets): Ditto.
24831         * gimple-fold.c (fold_gimple_assign): Ditto.
24832         (gimple_fold_call): Ditto.
24833         * dbgcnt.def: New counter.
24834
24835 2014-05-20  DJ Delorie  <dj@redhat.com>
24836
24837         * config/msp430/msp430.md (split): Don't allow subregs when
24838         splitting SImode adds.
24839         (andneghi): Fix subtraction logic.
24840         * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
24841
24842 2014-05-20  Jan Hubicka  <hubicka@ucw.cz>
24843
24844         * tree.h (DECL_ONE_ONLY): Return true only for externally visible
24845         symbols.
24846         * except.c (switch_to_exception_section, resolve_unique_section,
24847         get_named_text_section, default_function_rodata_section,
24848         align_variable, get_block_for_decl, default_section_type_flags):
24849         Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
24850         * symtab.c (symtab_add_to_same_comdat_group,
24851         symtab_make_decl_local, fixup_same_cpp_alias_visibility,
24852         symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
24853         Likewise.
24854         * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
24855         * bb-reorder.c (pass_partition_blocks::gate): Likewise.
24856         * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
24857         (c6x_function_in_section_p): Likewise.
24858         * config/darwin.c (machopic_select_section): Likewise.
24859         * config/arm/arm.c (arm_function_in_section_p): Likewise.
24860         * config/mips/mips.c (mips_function_rodata_section): Likewise.
24861         * config/mep/mep.c (mep_select_section): LIkewise.
24862         * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
24863
24864 2014-05-20  Eric Botcazou  <ebotcazou@adacore.com>
24865
24866         * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
24867         EH region of calls to pure functions that can throw an exception.
24868         * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
24869         (copy_reference_ops_from_call): Also copy the EH region of the call if
24870         it can throw an exception.
24871
24872 2014-05-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24873
24874         * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
24875         nested VEC_SELECTs that are inverses of each other.
24876
24877 2014-05-20  Richard Biener  <rguenther@suse.de>
24878
24879         * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
24880         (extract_and_process_scc_for_name): not here.
24881         (cond_dom_walker::before_dom_children): Only process
24882         stmts that end the BB in interesting ways.
24883         (run_scc_vn): Mark param uses as visited.
24884
24885 2014-05-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24886
24887         * config/arm/arm.md (arith_shiftsi): Do not predicate for
24888         arm_restrict_it.
24889
24890 2014-05-20  Nick Clifton  <nickc@redhat.com>
24891
24892         * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
24893         (msp430_gimplify_va_arg_expr): New function.
24894         (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
24895
24896         * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
24897         operand 0 in order to prevent confusion about the number of
24898         registers involved.
24899
24900 2014-05-20  Richard Biener  <rguenther@suse.de>
24901
24902         PR tree-optimization/61221
24903         * tree-ssa-pre.c (el_to_update): Remove.
24904         (eliminate_dom_walker::before_dom_children): Handle released
24905         VDEFs by value-numbering them to the associated VUSE.  Update
24906         stmt immediately for substituted call address.
24907         (eliminate): Remove delayed stmt updating code.
24908         * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
24909         possibly late re-numbered vuses.
24910         (vn_reference_lookup_2): Adjust.
24911         (vn_reference_lookup_pieces): Likewise.
24912         (vn_reference_lookup): Likewise.
24913
24914 2014-05-20  Richard Biener  <rguenther@suse.de>
24915
24916         * config.gcc: Remove need_64bit_hwint.
24917         * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
24918         * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
24919         it to be true.
24920         * config.in: Regenerate.
24921         * configure: Likewise.
24922
24923 2014-05-19  David Wohlferd <dw@LimeGreenSocks.com>
24924
24925         * doc/extend.texi: Create Label Attributes section,
24926         move all label attributes into it and reference it.
24927
24928 2014-05-19  Richard Earnshaw  <rearnsha@arm.com>
24929
24930         * arm.c (thumb1_reorg): When scanning backwards skip anything
24931         that's not a proper insn.
24932
24933 2014-05-19  Richard Biener  <rguenther@suse.de>
24934
24935         PR tree-optimization/61221
24936         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24937         Do nothing for unreachable blocks.
24938         * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
24939         Improve unreachability detection.
24940
24941 2014-05-19  Richard Biener  <rguenther@suse.de>
24942
24943         PR tree-optimization/61209
24944         * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
24945
24946 2014-05-19  Nick Clifton  <nickc@redhat.com>
24947
24948         * except.c (init_eh): Fix computation of builtin setjmp buffer
24949         size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
24950
24951 2014-05-19  Richard Biener  <rguenther@suse.de>
24952
24953         PR tree-optimization/61184
24954         * tree-vrp.c (is_negative_overflow_infinity): Use
24955         TREE_OVERFLOW_P and do that check first.
24956         (is_positive_overflow_infinity): Likewise.
24957         (is_overflow_infinity): Likewise.
24958         (vrp_operand_equal_p): Properly treat operands with
24959         differing overflow as not equal.
24960
24961 2014-05-19  Bernd Schmidt  <bernds@codesourcery.com>
24962
24963         * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
24964         shift simplification where it was intended.
24965
24966 2014-05-19  Christian Bruel  <christian.bruel@st.com>
24967
24968         PR target/61195
24969         * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
24970
24971 2014-05-19  Richard Sandiford  <r.sandiford@uk.ibm.com>
24972
24973         PR target/61084
24974         * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
24975         than wide_int.
24976
24977 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
24978
24979         * reg-notes.def (CROSSING_JUMP): Likewise.
24980         * rtl.h (rtx_def): Update comment for jump flag.
24981         (CROSSING_JUMP_P): Define.
24982         * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
24983         of a REG_CROSSING_JUMP note.
24984         * cfghooks.c (tidy_fallthru_edges): Likewise.
24985         * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
24986         * emit-rtl.c (try_split): Likewise.
24987         * haifa-sched.c (sched_create_recovery_edges): Likewise.
24988         * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
24989         * jump.c (redirect_jump_2): Likewise.
24990         * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
24991         (relax_delay_slots): Likewise.
24992         * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
24993         (bbit_di): Likewise.
24994         * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
24995         * config/sh/sh.md (jump_compact): Likewise.
24996         * bb-reorder.c (rotate_loop): Likewise.
24997         (pass_duplicate_computed_gotos::execute): Likewise.
24998         (add_reg_crossing_jump_notes): Rename to...
24999         (update_crossing_jump_flags): ...this.
25000         (pass_partition_blocks::execute): Update accordingly.
25001
25002 2014-05-19  Richard Sandiford  <rdsandiford@googlemail.com>
25003
25004         * tree.h: Remove extraneous template <>.
25005
25006 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25007
25008         * ipa.c (symtab_remove_unreachable_nodes): Remove
25009         symbol from comdat group if its body was eliminated.
25010         (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
25011         * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
25012         (symtab_unregister_node): ... this one.
25013         (verify_symtab_base): More strict checking of comdats.
25014         * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
25015
25016 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25017
25018         * tree-pass.h (make_pass_ipa_comdats): New pass.
25019         * timevar.def (TV_IPA_COMDATS): New timevar.
25020         * passes.def (pass_ipa_comdats): Add.
25021         * Makefile.in (OBJS): Add ipa-comdats.o
25022         * ipa-comdats.c: New file.
25023
25024 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25025
25026         * ipa.c (update_visibility_by_resolution_info): New function.
25027         (function_and_variable_visibility): Use it.
25028
25029 2014-05-17  Jan Hubicka  <hubicka@ucw.cz>
25030
25031         * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
25032         New functions.
25033         (FOR_EACH_DEFINED_SYMBOL): New macro.
25034         (varpool_first_static_initializer, varpool_next_static_initializer,
25035         varpool_first_defined_variable, varpool_next_defined_variable):
25036         Fix comments.
25037         (symtab_in_same_comdat_p): Correctly deal with inline functions.
25038
25039 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25040
25041         * ggc-page.c (ggc_handle_finalizers): Add comment.
25042
25043 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25044
25045         * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
25046         * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
25047         (ggc_internal_cleared_alloc): Likewise.
25048         * ggc-page.c (finalizer): New class.
25049         (vec_finalizer): Likewise.
25050         (globals::finalizers): New member.
25051         (globals::vec_finalizers): Likewise.
25052         (ggc_internal_alloc): Record the finalizer if any for the block being
25053         allocated.
25054         (ggc_handle_finalizers): New function.
25055         (ggc_collect): Call ggc_handle_finalizers.
25056         * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
25057         finalizer.
25058         (ggc_internal_cleared_alloc): Likewise.
25059         (finalize): New function.
25060         (need_finalization_p): Likewise.
25061         (ggc_alloc): Install the type's destructor as the finalizer if it
25062         might do something.
25063         (ggc_cleared_alloc): Likewise.
25064         (ggc_vec_alloc): Likewise.
25065         (ggc_cleared_vec_alloc): Likewise.
25066
25067 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25068
25069         * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
25070
25071 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25072
25073         * alias.c (record_alias_subset): Adjust.
25074         * bitmap.c (bitmap_element_allocate): Likewise.
25075         (bitmap_gc_alloc_stat): Likewise.
25076         * cfg.c (init_flow): Likewise.
25077         (alloc_block): Likewise.
25078         (unchecked_make_edge): Likewise.
25079         * cfgloop.c (alloc_loop): Likewise.
25080         (flow_loops_find): Likewise.
25081         (rescan_loop_exit): Likewise.
25082         * cfgrtl.c (init_rtl_bb_info): Likewise.
25083         * cgraph.c (insert_new_cgraph_node_version): Likewise.
25084         (cgraph_allocate_node): Likewise.
25085         (cgraph_create_edge_1): Likewise.
25086         (cgraph_allocate_init_indirect_info): Likewise.
25087         * cgraphclones.c (cgraph_clone_edge): Likewise.
25088         * cgraphunit.c (add_asm_node): Likewise.
25089         (init_lowered_empty_function): Likewise.
25090         * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
25091         * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
25092         (alpha_use_linkage): Likewise.
25093         * config/arc/arc.c (arc_init_machine_status): Likewise.
25094         * config/arm/arm.c (arm_init_machine_status): Likewise.
25095         * config/avr/avr.c (avr_init_machine_status): Likewise.
25096         * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
25097         * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
25098         * config/cris/cris.c (cris_init_machine_status): Likewise.
25099         * config/darwin.c (machopic_indirection_name): Likewise.
25100         (darwin_build_constant_cfstring): Likewise.
25101         (darwin_enter_string_into_cfstring_table): Likewise.
25102         * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
25103         * config/frv/frv.c (frv_init_machine_status): Likewise.
25104         * config/i386/i386.c (get_dllimport_decl): Likewise.
25105         (ix86_init_machine_status): Likewise.
25106         (assign_386_stack_local): Likewise.
25107         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
25108         (i386_pe_maybe_record_exported_symbol): Likewise.
25109         (i386_pe_record_stub): Likewise.
25110         * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
25111         * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
25112         * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
25113         (m32c_note_pragma_address): Likewise.
25114         * config/mep/mep.c (mep_init_machine_status): Likewise.
25115         (mep_note_pragma_flag): Likewise.
25116         * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
25117         (mips16_local_alias): Likewise.
25118         (mips_init_machine_status): Likewise.
25119         * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
25120         * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
25121         * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
25122         * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
25123         * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
25124         * config/pa/pa.c (pa_init_machine_status): Likewise.
25125         (pa_get_deferred_plabel): Likewise.
25126         * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
25127         * config/rs6000/rs6000.c (builtin_function_type): Likewise.
25128         (rs6000_init_machine_status): Likewise.
25129         (output_toc): Likewise.
25130         * config/s390/s390.c (s390_init_machine_status): Likewise.
25131         * config/score/score.c (score_output_external): Likewise.
25132         * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
25133         * config/spu/spu.c (spu_init_machine_status): Likewise.
25134         * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
25135         * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
25136         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
25137         * coverage.c (coverage_end_function): Likewise.
25138         * dbxout.c (dbxout_init): Likewise.
25139         * doc/gty.texi: Don't mention variable_size attribute.
25140         * dwarf2cfi.c (new_cfi): Adjust.
25141         (new_cfi_row): Likewise.
25142         (copy_cfi_row): Likewise.
25143         (create_cie_data): Likewise.
25144         * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
25145         (new_loc_descr): Likewise.
25146         (find_AT_string_in_table): Likewise.
25147         (add_addr_table_entry): Likewise.
25148         (new_die): Likewise.
25149         (add_var_loc_to_decl): Likewise.
25150         (clone_die): Likewise.
25151         (clone_as_declaration): Likewise.
25152         (break_out_comdat_types): Likewise.
25153         (new_loc_list): Likewise.
25154         (add_loc_descr_to_each): Likewise.
25155         (add_location_or_const_value_attribute): Likewise.
25156         (add_linkage_name): Likewise.
25157         (lookup_filename): Likewise.
25158         (dwarf2out_var_location): Likewise.
25159         (new_line_info_table): Likewise.
25160         (dwarf2out_init): Likewise.
25161         (mem_loc_descriptor): Likewise.
25162         (loc_descriptor): Likewise.
25163         (add_const_value_attribute): Likewise.
25164         (tree_add_const_value_attribute): Likewise.
25165         (comp_dir_string): Likewise.
25166         (dwarf2out_vms_debug_main_pointer): Likewise.
25167         (string_cst_pool_decl): Likewise.
25168         * emit-rtl.c (set_mem_attrs): Likewise.
25169         (get_reg_attrs): Likewise.
25170         (start_sequence): Likewise.
25171         (init_emit): Likewise.
25172         (init_emit_regs): Likewise.
25173         * except.c (init_eh_for_function): Likewise.
25174         (gen_eh_region): Likewise.
25175         (gen_eh_region_catch): Likewise.
25176         (gen_eh_landing_pad): Likewise.
25177         (add_call_site): Likewise.
25178         * function.c (add_frame_space): Likewise.
25179         (insert_temp_slot_address): Likewise.
25180         (assign_stack_temp_for_type): Likewise.
25181         (get_hard_reg_initial_val): Likewise.
25182         (allocate_struct_function): Likewise.
25183         (prepare_function_start): Likewise.
25184         (types_used_by_var_decl_insert): Likewise.
25185         * gengtype.c (variable_size_p): Remove function.
25186         (enum alloc_quantity): Remove enum.
25187         (write_typed_alloc_def): Remove function.
25188         (write_typed_struct_alloc_def): Likewise.
25189         (write_typed_typedef_alloc_def): Likewise.
25190         (write_typed_alloc_defns): Likewise.
25191         (main): Adjust.
25192         * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
25193         (ggc_cleared_alloc_ptr_array_two_args): Likewise.
25194         * ggc.h (ggc_alloc): new function.
25195         (ggc_cleared_alloc): Likewise.
25196         (ggc_vec_alloc): Template on type of vector element, and remove
25197         element size argument.
25198         (ggc_cleared_vec_alloc): Likewise.
25199         * gimple.c (gimple_build_omp_for): Adjust.
25200         (gimple_copy): Likewise.
25201         * ipa-cp.c (get_replacement_map): Likewise.
25202         (find_aggregate_values_for_callers_subset): Likewise.
25203         (known_aggs_to_agg_replacement_list): Likewise.
25204         * ipa-devirt.c (get_odr_type): Likewise.
25205         * ipa-prop.c (ipa_node_duplication_hook): Likewise.
25206         (read_agg_replacement_chain): Likewise.
25207         * loop-iv.c (get_simple_loop_desc): Likewise.
25208         * lto-cgraph.c (input_node_opt_summary): Likewise.
25209         * lto-section-in.c (lto_new_in_decl_state): Likewise.
25210         * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
25211         (input_eh_region): Likewise.
25212         (input_eh_lp): Likewise.
25213         (input_cfg): Likewise.
25214         * optabs.c (set_optab_libfunc): Likewise.
25215         (init_tree_optimization_optabs): Likewise.
25216         (set_conv_libfunc): Likewise.
25217         * passes.c (do_per_function_toporder): Likewise.
25218         * rtl.h: Don't use variable_size gty attribute.
25219         * sese.c (if_region_set_false_region): Adjust.
25220         * stringpool.c (gt_pch_save_stringpool): Likewise.
25221         * target-globals.c (save_target_globals): Likewise.
25222         * toplev.c (general_init): Likewise.
25223         * trans-mem.c (record_tm_replacement): Likewise.
25224         (split_bb_make_tm_edge): Likewise.
25225         * tree-cfg.c (move_sese_region_to_fn): Likewise.
25226         * tree-data-ref.h (lambda_vector_new): Likewise.
25227         * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
25228         * tree-iterator.c (tsi_link_before): Likewise.
25229         (tsi_link_after): Likewise.
25230         * tree-scalar-evolution.c (new_scev_info_str): Likewise.
25231         * tree-ssa-loop-niter.c (record_estimate): Likewise.
25232         * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
25233         * tree-ssa-operands.h: Don't use variable_size gty attribute.
25234         * tree-ssa.c (init_tree_ssa): Adjust.
25235         * tree-ssanames.c (set_range_info): Likewise.
25236         (get_ptr_info): Likewise.
25237         (duplicate_ssa_name_ptr_info): Likewise.
25238         (duplicate_ssa_name_range_info): Likewise.
25239         * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
25240         (unpack_ts_fixed_cst_value_fields): Likewise.
25241         * tree.c (build_fixed): Likewise.
25242         (build_real): Likewise.
25243         (build_string): Likewise.
25244         (decl_priority_info): Likewise.
25245         (decl_debug_expr_insert): Likewise.
25246         (decl_value_expr_insert): Likewise.
25247         (decl_debug_args_insert): Likewise.
25248         (type_hash_add): Likewise.
25249         (build_omp_clause): Likewise.
25250         * ubsan.c (decl_for_type_insert): Likewise.
25251         * varasm.c (get_unnamed_section): Likewise.
25252         (get_noswitch_section): Likewise.
25253         (get_section): Likewise.
25254         (get_block_for_section): Likewise.
25255         (create_block_symbol): Likewise.
25256         (build_constant_desc): Likewise.
25257         (create_constant_pool): Likewise.
25258         (force_const_mem): Likewise.
25259         (record_tm_clone_pair): Likewise.
25260         * varpool.c (varpool_create_empty_node): Likewise.
25261
25262 2014-05-17  Trevor Saunders  <tsaunders@mozilla.com>
25263
25264         * dwarf2out.c (tree_add_const_value_attribute): Call
25265         ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
25266         * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
25267         instead of ggc_internal_<x>alloc_stat.
25268         * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
25269         (ggc_realloc): Likewise.
25270         * ggc-none.c (ggc_internal_alloc): Likewise.
25271         (ggc_internal_cleared_alloc): Likewise.
25272         * ggc-page.c: Likewise.
25273         * ggc.h (ggc_internal_alloc_stat): Likewise.
25274         (ggc_internal_alloc): Remove macro.
25275         (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
25276         (ggc_internal_cleared_alloc): Remove macro.
25277         (GGC_RESIZEVEC): Adjust.
25278         (ggc_resizevar): Remove macro.
25279         (ggc_internal_vec_alloc_stat): Drop _stat suffix.
25280         (ggc_internal_cleared_vec_alloc_stat): Likewise.
25281         (ggc_internal_vec_cleared_alloc): Remove macro.
25282         (ggc_alloc_atomic_stat): Drop _stat suffix.
25283         (ggc_alloc_atomic): Remove macro.
25284         (ggc_alloc_cleared_atomic): Remove macro.
25285         (ggc_alloc_string_stat): Drop _stat suffix.
25286         (ggc_alloc_string): Remove macro.
25287         (ggc_alloc_rtx_def_stat): Adjust.
25288         (ggc_alloc_tree_node_stat): Likewise.
25289         (ggc_alloc_cleared_tree_node_stat): Likewise.
25290         (ggc_alloc_cleared_gimple_statement_stat): Likewise.
25291         (ggc_alloc_cleared_simd_clone_stat): Likewise.
25292         * gimple.c (gimple_build_omp_for): Likewise.
25293         (gimple_copy): Likewise.
25294         * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
25295         * toplev.c (realloc_for_line_map): Adjust.
25296         * tree-data-ref.h (lambda_vector_new): Likewise.
25297         * tree-phinodes.c (allocate_phi_node): Likewise.
25298         * tree.c (grow_tree_vec_stat): Likewise.
25299         * vec.h (va_gc::reserve): Adjust.
25300
25301 2014-05-17  Ajit Agarwal  <ajitkum@xilinx.com>
25302
25303         * config/microblaze/microblaze.c (break_handler): New Declaration.
25304         (microblaze_break_function_p,microblaze_is_break_handler): New.
25305         (compute_frame_size): Use microblaze_break_function_p.
25306         Add the test of break_handler.
25307         (microblaze_function_prologue) : Add the test of variable
25308         break_handler.  Check the fnname by BREAK_HANDLER_NAME.
25309         (microblaze_function_epilogue) : Add the test of break_handler.
25310         (microblaze_globalize_label) : Add the test of break_handler.
25311         Check the name by BREAK_HANDLER_NAME.
25312
25313         * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
25314
25315         * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
25316         microblaze_is_break_handler test.
25317         (call_internal1,call_value_intern): Use microblaze_break_function_p.
25318         Use SYMBOL_REF_DECL.
25319
25320         * config/microblaze/microblaze-protos.h
25321         (microblaze_break_function_p,microblaze_is_break_handler):
25322         New Declaration.
25323
25324         * doc/extend.texi (MicroBlaze break_handler Functions): Document
25325         new MicroBlaze break_handler functions.
25326
25327 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25328
25329         * doc/extend.texi (Size of an asm): Move node text according
25330         to its @menu entry position.
25331
25332 2014-05-17  Marc Glisse  <marc.glisse@inria.fr>
25333
25334         PR tree-optimization/61140
25335         PR tree-optimization/61150
25336         PR tree-optimization/61197
25337         * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
25338
25339 2014-05-17  Uros Bizjak  <ubizjak@gmail.com>
25340
25341         * doc/invoke.texi (free): Mention Alpha.  Also enabled at -Os.
25342
25343 2014-05-17  Richard Sandiford  <r.sandiford@uk.ibm.com>
25344
25345         * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
25346         __SIZEOF_INT128__ is defined.
25347
25348 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25349
25350         * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
25351         (rs6000_delegitimize_address): Use it.
25352
25353 2014-05-17  Richard Sandiford  <rdsandiford@googlemail.com>
25354
25355         * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
25356         inplace argument.  Store the new address in the original MEM when true.
25357         * emit-rtl.c (change_address_1): Likewise.
25358         (adjust_address_1, adjust_automodify_address_1, offset_address):
25359         Update accordingly.
25360         * rtl.h (plus_constant): Add an inplace argument.
25361         * explow.c (plus_constant): Likewise.  Try to reuse the original PLUS
25362         when true.  Avoid generating (plus X (const_int 0)).
25363         * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
25364         in-place.  Pass true to plus_constant.
25365         (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
25366
25367 2014-05-16  Dehao Chen  <dehao@google.com>
25368
25369         * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
25370
25371 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25372
25373         PR target/54089
25374         * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
25375         patterns.
25376         * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
25377
25378 2014-05-16  Dehao Chen  <dehao@google.com>
25379
25380         * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
25381         optimize_function_for_size_p.
25382         * regs.h (REG_FREQ_FROM_BB): Likewise.
25383
25384 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25385
25386         PR target/51244
25387         * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
25388         negt_reg_operand cases.
25389         * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
25390         predicate.
25391         * config/sh/predicates.md (cbranch_treg_value): Simplify.
25392
25393 2014-05-16  Oleg Endo  <olegendo@gcc.gnu.org>
25394
25395         * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
25396         target variants.
25397
25398 2014-05-16  David Malcolm  <dmalcolm@redhat.com>
25399
25400         Revert:
25401         2014-04-29  David Malcolm  <dmalcolm@redhat.com>
25402
25403         * tree-cfg.c (dump_function_to_file): Dump the return type of
25404         functions, in a line to itself before the function body, mimicking
25405         the layout of a C function.
25406
25407 2014-05-16  Dehao Chen  <dehao@google.com>
25408
25409         * cfghooks.c (make_forwarder_block): Use direct computation to
25410         get fall-through edge's count and frequency.
25411
25412 2014-05-16  Benno Schulenberg  <bensberg@justemail.net>
25413
25414         * config/arc/arc.c (arc_init): Fix typo in error message.
25415         * config/i386/i386.c (ix86_expand_builtin): Likewise.
25416         (split_stack_prologue_scratch_regno): Likewise.
25417         * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
25418         word from error message.
25419
25420 2014-05-16  Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25421
25422         * ira-costs.c: Fix typo in comment.
25423
25424 2014-05-16  David Wohlferd <dw@LimeGreenSocks.com>
25425
25426         * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
25427
25428 2014-05-16  Jan Hubicka  <hubicka@ucw.cz>
25429
25430         * varpool.c (dump_varpool_node): Dump write-only flag.
25431         * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
25432         write-only flag.
25433         * tree-cfg.c (execute_fixup_cfg): Remove statements setting
25434         write-only variables.
25435         * ipa.c (process_references): New function.
25436         (set_readonly_bit): New function.
25437         (set_writeonly_bit): New function.
25438         (clear_addressable_bit): New function.
25439         (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
25440         fix handling of aliases.
25441         * cgraph.h (struct varpool_node): Add writeonly flag.
25442
25443 2014-05-16  Vladimir Makarov  <vmakarov@redhat.com>
25444
25445         PR rtl-optimization/60969
25446         * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
25447         Calculate costs for this case.
25448
25449 2014-05-16  Eric Botcazou  <ebotcazou@adacore.com>
25450
25451         * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
25452         <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
25453
25454 2014-05-16  Richard Biener  <rguenther@suse.de>
25455
25456         PR tree-optimization/61194
25457         * tree-vect-patterns.c (adjust_bool_pattern): Also handle
25458         bool patterns ending in a COND_EXPR.
25459
25460 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25461
25462         * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
25463
25464 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25465
25466         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
25467         where we were unable to cost an RTX.
25468
25469 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25470
25471         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
25472         HIGH, LO_SUM.
25473
25474 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25475             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25476
25477         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
25478
25479 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25480             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25481
25482         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
25483         FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
25484
25485 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25486             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25487
25488         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
25489         operators.
25490
25491 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25492             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25493
25494         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25495         DIV/MOD.
25496
25497 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25498             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25499
25500         * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
25501         (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
25502
25503 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25504             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25505
25506         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
25507         rotates and shifts.
25508
25509 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25510             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25511
25512         * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
25513         ZERO_EXTEND and SIGN_EXTEND better.
25514
25515 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25516             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25517
25518         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
25519         logical operations.
25520
25521 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25522             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25523
25524         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
25525         costs when costing loads and stores to memory.
25526
25527 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25528             Philip Tomsich  <philipp.tomsich@theobroma-systems.com>
25529
25530         * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
25531         for SET RTX.
25532
25533 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25534
25535         * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
25536
25537 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25538             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25539
25540         * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
25541         to...
25542         (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
25543         well formed.
25544         (aarch64_rtx_mult_cost): New.
25545         (aarch64_rtx_costs): Use it, refactor as appropriate.
25546
25547 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25548             Philipp Tomsich  <philipp.tomsich@theobroma-systems.com>
25549
25550         * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
25551         emit instructions, return number of instructions which would
25552         be emitted.
25553         (aarch64_add_constant): Update call to aarch64_build_constant.
25554         (aarch64_output_mi_thunk): Likewise.
25555         (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
25556         a CONST_DOUBLE.
25557
25558 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25559
25560         * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
25561         (TARGET_RTX_COSTS): Call it.
25562
25563 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25564
25565         * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
25566         (cortexa57_vector_cost): Likewise.
25567         (cortexa57_tunings): Use them.
25568
25569 2014-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
25570
25571         * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
25572         (cpu_addrcost_table): Use it.
25573         * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
25574         (aarch64_address_cost): Rewrite using aarch64_classify_address,
25575         move it.
25576
25577 2014-05-16  Richard Biener  <rguenther@suse.de>
25578
25579         * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
25580         (set_ssa_val_to): Handle unexpected sets to VN_TOP.
25581         (visit_phi): Ignore edges marked as not executable.
25582         (class cond_dom_walker): New.
25583         (cond_dom_walker::before_dom_children): Value-number
25584         control statements and mark successor edges as not
25585         executable if possible.
25586         (run_scc_vn): First walk all control statements in
25587         dominator order, marking edges as not executable.
25588         * tree-inline.c (copy_edges_for_bb): Be not confused
25589         about random edge flags.
25590
25591 2014-05-16  Richard Biener  <rguenther@suse.de>
25592
25593         * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
25594
25595 2014-05-15  Peter Bergner  <bergner@vnet.ibm.com>
25596
25597         PR target/61193
25598         * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
25599         (__TM_simple_begin): Use it.
25600         (__TM_begin): Likewise.
25601
25602 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25603
25604         PR ipa/61085
25605         * ipa-prop.c (update_indirect_edges_after_inlining): Check
25606         type_preserved flag when the indirect edge is polymorphic.
25607
25608 2014-05-15  Martin Jambor  <mjambor@suse.cz>
25609
25610         PR tree-optimization/61090
25611         * tree-sra.c (sra_modify_expr): Pass the current gsi to
25612         build_ref_for_model.
25613
25614 2014-05-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25615
25616         * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
25617         enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
25618
25619 2014-05-15  Jakub Jelinek  <jakub@redhat.com>
25620
25621         PR tree-optimization/61158
25622         * fold-const.c (fold_binary_loc): If X is zero-extended and
25623         shiftc >= prec, make sure zerobits is all ones instead of
25624         invoking undefined behavior.
25625
25626 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25627
25628         * regcprop.h: New file.
25629         * regcprop.c (skip_debug_insn_p): New decl.
25630         (replace_oldest_value_reg): Check skip_debug_insn_p.
25631         (copyprop_hardreg_forward_bb_without_debug_insn): New function.
25632         * shrink-wrap.c: Include regcprop.h.
25633         (prepare_shrink_wrap): Call
25634         copyprop_hardreg_forward_bb_without_debug_insn.
25635
25636 2014-05-15  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
25637
25638         * shrink-wrap.h: Update comment.
25639         * shrink-wrap.c: Update comment.
25640         (next_block_for_reg): Rename to live_edge_for_reg.
25641         (live_edge_for_reg): Allow live_edge->dest has two predecessors.
25642         (move_insn_for_shrink_wrap): Split live_edge.
25643         (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
25644
25645 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25646
25647         * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
25648         Delete.
25649         * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
25650         * config/sparc/sparc.md (fptype_ut699): New attribute.
25651         (in_branch_delay): Return false if -mfix-ut699 is specified and
25652         fptype_ut699 is set to single.
25653         (truncdfsf2): Add fptype_ut699 attribute.
25654         (fix_truncdfsi2): Likewise.
25655         (floatsisf2): Change fptype attribute.
25656         (fix_truncsfsi2): Likewise.
25657         (negtf2_notv9): Delete.
25658         (negtf2_v9): Likewise.
25659         (negtf2_hq): New instruction.
25660         (negtf2): New instruction and splitter.
25661         (negdf2_notv9): Rewrite.
25662         (abstf2_notv9): Delete.
25663         (abstf2_hq_v9): Likewise.
25664         (abstf2_v9): Likewise.
25665         (abstf2_hq): New instruction.
25666         (abstf2): New instruction and splitter.
25667         (absdf2_notv9): Rewrite.
25668
25669 2014-05-14  Cary Coutant  <ccoutant@google.com>
25670
25671         PR debug/61013
25672         * opts.c (common_handle_option): Don't special-case "-g".
25673         (set_debug_level): Default to at least level 2 with "-g".
25674
25675 2014-05-14  DJ Delorie  <dj@redhat.com>
25676
25677         * config/msp430/msp430.c (msp430_builtin): Add
25678         MSP430_BUILTIN_DELAY_CYCLES.
25679         (msp430_init_builtins): Register void __delay_cycles(long long).
25680         (msp430_builtin_decl): Add it.
25681         (cg_magic_constant): New.
25682         (msp430_expand_delay_cycles): New.
25683         (msp430_expand_builtin): Call it.
25684         (msp430_print_operand_raw): Change integer printing from "int" to
25685         HOST_WIDE_INT.
25686         * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
25687         (delay_cycles_start): New.
25688         (delay_cycles_end): New.
25689         (delay_cycles_32): New.
25690         (delay_cycles_32x): New.
25691         (delay_cycles_16): New.
25692         (delay_cycles_16x): New.
25693         (delay_cycles_2): New.
25694         (delay_cycles_1): New.
25695         * doc/extend.texi: Document __delay_cycles().
25696
25697 2014-05-14  Sandra Loosemore  <sandra@codesourcery.com>
25698
25699         * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
25700         length attribute computation.
25701
25702 2014-05-14  Richard Sandiford  <rdsandiford@googlemail.com>
25703
25704         PR debug/61188
25705         * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
25706
25707 2014-05-14  Richard Sandiford  <r.sandiford@uk.ibm.com>
25708
25709         PR target/61084
25710         * config/sparc/sparc.md: Fix types of low and high in DI constant
25711         splitter.  Use gen_int_mode in some other splitters.
25712
25713 2014-05-14  Martin Jambor  <mjambor@suse.cz>
25714
25715         PR ipa/60897
25716         * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
25717
25718 2014-05-14  James Norris  <jnorris@codesourcery.com>
25719
25720         * omp-low.c (expand_parallel_call): Remove shadow variable.
25721         (expand_omp_taskreg): Likewise.
25722
25723 2014-05-14  Ilya Tocar  <ilya.tocar@intel.com>
25724
25725         * common/config/i386/i386-common.c
25726         (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
25727         (OPTION_MASK_ISA_XSAVES_SET): Ditto.
25728         (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
25729         (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
25730         (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
25731         (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
25732         (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
25733         * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
25734         xsavecintrin.h, xsavesintrin.h.
25735         (x86_64-*-*): Ditto.
25736         * config/i386/clflushoptintrin.h: New.
25737         * config/i386/xsavecintrin.h: Ditto.
25738         * config/i386/xsavesintrin.h: Ditto.
25739         * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
25740         (bit_XSAVES): Ditto.
25741         (bit_XSAVES): Ditto.
25742         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
25743         -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
25744         -mno-clflushopt.
25745         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25746         OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
25747         OPTION_MASK_ISA_XSAVES.
25748         * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
25749         -mxsavec, -mxsaves.
25750         (PTA_CLFLUSHOPT) Define.
25751         (PTA_XSAVEC): Ditto.
25752         (PTA_XSAVES): Ditto.
25753         (ix86_option_override_internal): Handle new options.
25754         (ix86_valid_target_attribute_inner_p): Ditto.
25755         (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
25756         IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
25757         IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
25758         (bdesc_special_args): Add __builtin_ia32_xsaves,
25759         __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
25760         __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
25761         (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
25762         (ix86_expand_builtin): Handle new builtins.
25763         * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
25764         (TARGET_CLFLUSHOPT_P): Ditto.
25765         (TARGET_XSAVEC): Ditto.
25766         (TARGET_XSAVEC_P): Ditto.
25767         (TARGET_XSAVES): Ditto.
25768         (TARGET_XSAVES_P): Ditto.
25769         * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
25770         (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
25771         (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
25772         (ANY_XRSTOR): New.
25773         (ANY_XRSTOR64): Ditto.
25774         (xrstor): Ditto.
25775         (xrstor): Change into <xrstor>.
25776         (xrstor_rex64): Change into <xrstor>_rex64.
25777         (xrstor64): Change into <xrstor>64
25778         (clflushopt): New.
25779         * config/i386/i386.opt (mclflushopt): New.
25780         (mxsavec): Ditto.
25781         (mxsaves): Ditto.
25782         * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
25783         xsavecintrin.h.
25784         * doc/invoke.texi: Document new options.
25785
25786 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25787
25788         PR rtl-optimization/60866
25789         * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
25790         Default it to -1.  Pass it down to init_simplejump_data.
25791         (init_simplejump_data): New parameter old_seqno.  Pass it down
25792         to get_seqno_for_a_jump.
25793         (get_seqno_for_a_jump): New parameter old_seqno.  Use it for
25794         initializing new jump seqno as a last resort.  Add comment.
25795         (sel_redirect_edge_and_branch): Save old seqno of the conditional
25796         jump and pass it down to sel_init_new_insn.
25797         (sel_redirect_edge_and_branch_force): Likewise.
25798
25799 2014-05-14  Georg-Johann Lay  <avr@gjlay.de>
25800
25801         * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
25802         shifted values to avoid build warning.
25803
25804 2014-05-14  Eric Botcazou  <ebotcazou@adacore.com>
25805
25806         * cfgcleanup.c (try_forward_edges): Use location_t for locations.
25807         * cfgrtl.c (rtl_merge_blocks): Fix comment.
25808         (cfg_layout_merge_blocks): Likewise.
25809         * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
25810
25811 2014-05-14  Andrey Belevantsev  <abel@ispras.ru>
25812
25813         PR rtl-optimization/60901
25814         * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
25815         bb predecessor belongs to the same scheduling region.  Adjust comment.
25816
25817 2014-05-13  Peter Bergner  <bergner@vnet.ibm.com>
25818
25819         * doc/sourcebuild.texi: (dfp_hw): Document.
25820         (p8vector_hw): Likewise.
25821         (powerpc_eabi_ok): Likewise.
25822         (powerpc_elfv2): Likewise.
25823         (powerpc_htm_ok): Likewise.
25824         (ppc_recip_hw): Likewise.
25825         (vsx_hw): Likewise.
25826
25827 2014-05-13  Cary Coutant  <ccoutant@google.com>
25828
25829         * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
25830
25831 2014-05-13  David Malcolm  <dmalcolm@redhat.com>
25832
25833         * gengtype-parse.c (require3): Eliminate in favor of...
25834         (require4): New.
25835         (require_template_declaration): Update to support optional single *
25836         on a type.
25837
25838         * gengtype.c (get_ultimate_base_class): Add a non-const overload.
25839         (create_user_defined_type): Handle a single level of explicit
25840         pointerness within template arguments.
25841         (struct write_types_data): Add field "kind".
25842         (filter_type_name): Handle "*" character.
25843         (write_user_func_for_structure_ptr): Require a write_types_data
25844         rather than just a prefix string, so that we can look up the kind
25845         of the wtd and use it as an index into wrote_user_func_for_ptr,
25846         ensuring that such functions are written at most once.  Support
25847         subclasses by invoking the marking function of the ultimate base class.
25848         (write_user_func_for_structure_body): Require a write_types_data
25849         rather than just a prefix string, so that we can pass this to
25850         write_user_func_for_structure_ptr.
25851         (write_func_for_structure): Likewise.
25852         (ggc_wtd): Add initializer of new "kind" field.
25853         (pch_wtd): Likewise.
25854
25855         * gengtype.h (enum write_types_kinds): New.
25856         (struct type): Add field wrote_user_func_for_ptr to the "s"
25857         union member.
25858
25859 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25860
25861         * fold-const.c (optimize_bit_field_compare): Use wi:: operations
25862         instead of const_binop.
25863         (fold_binary_loc): Likewise.
25864
25865 2014-05-13  Richard Sandiford  <r.sandiford@uk.ibm.com>
25866
25867         * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
25868         calculation to match get_ref_base_and_extent.
25869
25870 2014-05-13  Catherine Moore  <clm@codesourcery.com>
25871             Sandra Loosemore  <sandra@codesourcery.com>
25872
25873         * configure.ac: Fix assembly for explicit JALR relocation check.
25874         * configure: Regenerate.
25875
25876 2014-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25877
25878         * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
25879         (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
25880         Remove associated type declarations and initialisations.
25881         (arm_expand_neon_builtin): Likewise.
25882         (neon_emit_pair_result_insn): Delete.
25883         * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
25884         * config/arm/neon.md (neon_vtrn<mode>): Delete.
25885         (neon_vzip<mode>): Likewise.
25886         (neon_vuzp<mode>): Likewise.
25887
25888 2014-05-13  Richard Biener  <rguenther@suse.de>
25889
25890         PR ipa/60973
25891         * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
25892         it needs revisiting whether the call still may be tail-called.
25893
25894 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25895
25896         * rtl.def (SYMBOL_REF): Remove middle "0" field.
25897         * rtl.h (block_symbol): Reduce number of fields to 2.
25898         (rtx_def): Add u2.symbol_ref_flags.
25899         (SYMBOL_REF_FLAGS): Use it.
25900         (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
25901         (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
25902         * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
25903         Lower index of SYMBOL_REF_DATA.
25904         * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
25905         Print SYMBOL_REF_FLAGS at the same time.
25906         * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
25907
25908 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25909
25910         * rtl.def (VAR_LOCATION): Remove "i" field.
25911         * rtl.h (rtx_def): Add u2.var_location_status.
25912         (PAT_VAR_LOCATION_STATUS): Use it.
25913         (gen_rtx_VAR_LOCATION): Declare.
25914         * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
25915         * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
25916         * var-tracking.c (emit_note_insn_var_location): Remove casts.
25917
25918 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25919
25920         * rtl.def (scratch): Fix outdated comment and remove "0" field.
25921         * gengtype.c (adjust_field_rtx_def): Update accordingly.
25922
25923 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25924
25925         * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
25926         (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
25927         * rtl.h (rtx_def): Add insn_uid to u2 field.
25928         (RTX_FLAG_CHECK8): Delete in favor of...
25929         (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
25930         (INSN_DELETED_P): Update accordingly.
25931         (INSN_UID): Use u2.insn_uid.
25932         (INSN_CHAIN_CODE_P): Define.
25933         (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
25934         (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
25935         (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
25936         (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
25937         (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
25938         indices accordingly.
25939         * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
25940         Update indices for insn-chain rtxes.
25941         * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
25942         (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
25943         * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
25944         * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
25945         * combine.c (try_combine): Likewise.
25946         * ira.c (setup_prohibited_mode_move_regs): Likewise.
25947
25948 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25949
25950         * rtl.def (REG): Remove middle field.
25951         * rtl.h (rtx_def): Add orignal_regno to u2.
25952         (ORIGINAL_REGNO): Use it instead of field 1.
25953         (REG_ATTRS): Lower field index accordingly.
25954         * gengtype.c (adjust_field_rtx_def): Remove handling of
25955         ORIGINAL_REGNO.  Move REG_ATTRS index down.
25956         * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
25957         code that prints the REGNO.
25958
25959 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25960
25961         * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
25962         GENERATOR_FILE.
25963
25964 2014-05-13  Richard Sandiford  <rdsandiford@googlemail.com>
25965
25966         * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
25967
25968 2014-05-13  Bin Cheng  <bin.cheng@arm.com>
25969
25970         * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
25971         (alloc_iv): Lower base expressions containing ADDR_EXPR.
25972
25973 2014-05-13  Ian Bolton  <ian.bolton@arm.com>
25974
25975         * config/aarch64/aarch64-protos.h
25976         (aarch64_hard_regno_caller_save_mode): New prototype.
25977         * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
25978         New function.
25979         * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
25980
25981 2014-05-13  Christian Bruel  <christian.bruel@st.com>
25982
25983         * target.def (mode_switching): New hook vector.
25984         (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
25985         (mode_exit, modepriority_to_mode): Likewise.
25986         * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
25987         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25988         * target.h: Include tm.h and hard-reg-set.h.
25989         * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
25990         (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
25991         * doc/tm.texi Regenerate.
25992         * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25993         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25994         * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
25995         (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
25996         * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
25997         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
25998         * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
25999         (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
26000         * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
26001         (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
26002         (ix86_emit_mode_set): Hookify.
26003         * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
26004         Delete.
26005         (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
26006         * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
26007         (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
26008         (epiphany_mode_priority_to_mode): Remove declaration.
26009         * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
26010         (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
26011         (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
26012         Likewise.
26013         (epiphany_mode_priority_to_mode): Change priority type.  Hookify.
26014         (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
26015         (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
26016
26017 2014-05-13  Jakub Jelinek  <jakub@redhat.com>
26018
26019         PR target/61060
26020         * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
26021         is const0_rtx, return immediately.  Don't test count == 0 when
26022         it is always true.
26023
26024 2014-05-13  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
26025
26026         * Makefile.in: add shrink-wrap.o.
26027         * config/i386/i386.c: include "shrink-wrap.h"
26028         * function.c: Likewise.
26029         (requires_stack_frame_p, next_block_for_reg,
26030         move_insn_for_shrink_wrap, prepare_shrink_wrap,
26031         dup_block_and_redirect): Move to shrink-wrap.c
26032         (thread_prologue_and_epilogue_insns): Extract three code segments
26033         as functions in shrink-wrap.c
26034         * function.h: Move #ifdef HAVE_simple_return ... #endif block to
26035         shrink-wrap.h
26036         * shrink-wrap.c: New file.
26037         * shrink-wrap.h: New file.
26038
26039 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26040
26041         * doc/extend.texi: Reflect current numbers of pragmas.  Remove
26042         reference to Solaris.
26043
26044 2014-05-12  Mike Stump  <mikestump@comcast.net>
26045
26046         PR other/31778
26047         * genattrtab.c (filename): Add.
26048         (convert_set_attr_alternative): Improve error message.
26049         (check_defs): Restore read_md_filename for error messages.
26050         (gen_insn): Save filename.
26051
26052 2014-05-12  Dimitris Papavasiliou  <dpapavas@gmail.com>
26053
26054         * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
26055         -fno-local-ivars and -fivar-visibility.
26056         * c-family/c.opt: Make -Wshadow also implicitly enable
26057         -Wshadow-ivar.
26058
26059 2014-05-12  David Wohlferd  <dw@LimeGreenSocks.com>
26060
26061         * doc/tm.texi: Remove reference to deleted macro.
26062         * doc/tm.texi.in: Likewise.
26063
26064 2014-05-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
26065
26066         PR target/60991
26067         * config/avr/avr.c (avr_out_store_psi): Use correct constant
26068         to restore Y.
26069
26070 2014-05-12  Georg-Johann Lay  <avr@gjlay.de>
26071
26072         PR libgcc/61152
26073         * config/arm/arm.h (License): Add GCC Runtime Library Exception.
26074         * config/arm/aout.h (License): Same.
26075         * config/arm/bpabi.h (License): Same.
26076         * config/arm/elf.h (License): Same.
26077         * config/arm/linux-elf.h (License): Same.
26078         * config/arm/linux-gas.h (License): Same.
26079         * config/arm/netbsd-elf.h (License): Same.
26080         * config/arm/uclinux-eabi.h (License): Same.
26081         * config/arm/uclinux-elf.h (License): Same.
26082         * config/arm/vxworks.h (License): Same.
26083
26084 2014-05-11  Jakub Jelinek  <jakub@redhat.com>
26085
26086         * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
26087         * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
26088         number of operands to 3.
26089         (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
26090         * tree-nested.c (convert_nonlocal_omp_clauses,
26091         convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
26092         * gimplify.c (gimplify_scan_omp_clauses): Handle
26093         OMP_CLAUSE_LINEAR_STMT.
26094         * omp-low.c (lower_rec_input_clauses): Fix typo.
26095         (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
26096         cast between Fortran boolean_type_node and C _Bool if
26097         needed.
26098
26099 2014-05-11  Richard Sandiford  <rdsandiford@googlemail.com>
26100
26101         PR tree-optimization/61136
26102         * wide-int.h (multiple_of_p): Define a version that doesn't return
26103         the quotient.
26104         * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
26105         integer_zerop/const_binop pair.
26106         (multiple_of_p): Likewise, converting both operands to widest_int
26107         precision.
26108
26109 2014-05-09  Teresa Johnson  <tejohnson@google.com>
26110
26111         * cgraphunit.c (analyze_functions): Use correct dump file.
26112
26113 2014-05-09  Florian Weimer  <fweimer@redhat.com>
26114
26115         * cfgexpand.c (stack_protect_decl_p): New function, extracted from
26116         expand_used_vars.
26117         (stack_protect_return_slot_p): New function.
26118         (expand_used_vars): Call stack_protect_decl_p and
26119         stack_protect_return_slot_p for -fstack-protector-strong.
26120
26121 2014-05-09  David Wohlferd <LimeGreenSocks@yahoo.com>
26122         Andrew Haley <aph@redhat.com>
26123         Richard Sandiford <rdsandiford@googlemail.com>
26124
26125         * doc/extend.texi: Rewrite inline asm page / re-org asm-related
26126         pages.
26127
26128 2014-05-09  Kenneth Zadeck  <zadeck@naturalbridge.com>
26129
26130         PR middle-end/61111
26131         * fold-const.c (fold_binary_loc): Changed width of mask.
26132
26133 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26134
26135         * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
26136         unsigned int initializers for regno_in, regno_out.
26137
26138 2014-05-09  Georg-Johann Lay  <avr@gjlay.de>
26139
26140         PR target/61055
26141         * config/avr/avr.md (cc): Add new attribute set_vzn.
26142         (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
26143         Set cc insn attribute to set_vzn instead of set_zn for alternatives
26144         with INC, DEC or NEG.
26145         * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
26146         (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
26147         INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
26148
26149 2014-05-09  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26150
26151         Revert:
26152         2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26153
26154         * wide-int.cc (UTItype): Define.
26155         (UDWtype): Define for appropriate W_TYPE_SIZE.
26156
26157 2014-05-09  Richard Biener  <rguenther@suse.de>
26158
26159         * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
26160         * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
26161         (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
26162         (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
26163         ssa_propagate): Adjust.
26164
26165 2014-05-08  Jeff Law  <law@redhat.com>
26166
26167         PR tree-optimization/61009
26168         * tree-ssa-threadedge.c (thread_through_normal_block): Return a
26169         tri-state rather than a boolean.  When a block is too big to
26170         thread through, inform caller via negative return value.
26171         (thread_across_edge): If a block was too big for normal threading,
26172         then it's too big for a joiner too, so remove temporary equivalences
26173         and return immediately.
26174
26175 2014-05-08  Manuel López-Ibáñez  <manu@gcc.gnu.org>
26176             Matthias Klose  <doko@ubuntu.com>
26177
26178         PR driver/61106
26179         * optc-gen.awk: Fix option handling for -Wunused-parameter.
26180
26181 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26182
26183         PR target/59952
26184         * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
26185
26186 2014-05-08  Uros Bizjak  <ubizjak@gmail.com>
26187
26188         PR target/61092
26189         * config/alpha/alpha.c: Include gimple-iterator.h.
26190         (alpha_gimple_fold_builtin): New function.  Move
26191         ALPHA_BUILTIN_UMULH folding from ...
26192         (alpha_fold_builtin): ... here.
26193         (TARGET_GIMPLE_FOLD_BUILTIN): New define.
26194
26195 2014-05-08  Wei Mi  <wmi@google.com>
26196
26197         PR target/58066
26198         * config/i386/i386.c (ix86_compute_frame_layout): Update
26199         preferred_stack_boundary for call, expanded from tls descriptor.
26200         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
26201         to depend on SP register.
26202         (*tls_local_dynamic_base_32_gnu): Ditto.
26203         (*tls_local_dynamic_32_once): Ditto.
26204         (tls_global_dynamic_64_<mode>): Set
26205         ix86_tls_descriptor_calls_expanded_in_cfun.
26206         (tls_local_dynamic_base_64_<mode>): Ditto.
26207         (tls_global_dynamic_32): Set
26208         ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
26209         to depend on SP register.
26210         (tls_local_dynamic_base_32): Ditto.
26211
26212 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26213
26214         * config/arm/arm_neon.h: Update comment.
26215         * config/arm/neon-docgen.ml: Delete.
26216         * config/arm/neon-gen.ml: Delete.
26217         * doc/arm-neon-intrinsics.texi: Update comment.
26218
26219 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26220
26221         * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
26222         and v4sf versions.
26223         (vand, vorr, veor, vorn, vbic): Remove.
26224         * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
26225         iterator.
26226         (neon_vsub_unspec): Likewise.
26227         (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
26228
26229 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26230
26231         * config/arm/arm_neon.h (vadd_s8): GNU C implementation
26232         (vadd_s16): Likewise.
26233         (vadd_s32): Likewise.
26234         (vadd_f32): Likewise.
26235         (vadd_u8): Likewise.
26236         (vadd_u16): Likewise.
26237         (vadd_u32): Likewise.
26238         (vadd_s64): Likewise.
26239         (vadd_u64): Likewise.
26240         (vaddq_s8): Likewise.
26241         (vaddq_s16): Likewise.
26242         (vaddq_s32): Likewise.
26243         (vaddq_s64): Likewise.
26244         (vaddq_f32): Likewise.
26245         (vaddq_u8): Likewise.
26246         (vaddq_u16): Likewise.
26247         (vaddq_u32): Likewise.
26248         (vaddq_u64): Likewise.
26249         (vmul_s8): Likewise.
26250         (vmul_s16): Likewise.
26251         (vmul_s32): Likewise.
26252         (vmul_f32): Likewise.
26253         (vmul_u8): Likewise.
26254         (vmul_u16): Likewise.
26255         (vmul_u32): Likewise.
26256         (vmul_p8): Likewise.
26257         (vmulq_s8): Likewise.
26258         (vmulq_s16): Likewise.
26259         (vmulq_s32): Likewise.
26260         (vmulq_f32): Likewise.
26261         (vmulq_u8): Likewise.
26262         (vmulq_u16): Likewise.
26263         (vmulq_u32): Likewise.
26264         (vsub_s8): Likewise.
26265         (vsub_s16): Likewise.
26266         (vsub_s32): Likewise.
26267         (vsub_f32): Likewise.
26268         (vsub_u8): Likewise.
26269         (vsub_u16): Likewise.
26270         (vsub_u32): Likewise.
26271         (vsub_s64): Likewise.
26272         (vsub_u64): Likewise.
26273         (vsubq_s8): Likewise.
26274         (vsubq_s16): Likewise.
26275         (vsubq_s32): Likewise.
26276         (vsubq_s64): Likewise.
26277         (vsubq_f32): Likewise.
26278         (vsubq_u8): Likewise.
26279         (vsubq_u16): Likewise.
26280         (vsubq_u32): Likewise.
26281         (vsubq_u64): Likewise.
26282         (vand_s8): Likewise.
26283         (vand_s16): Likewise.
26284         (vand_s32): Likewise.
26285         (vand_u8): Likewise.
26286         (vand_u16): Likewise.
26287         (vand_u32): Likewise.
26288         (vand_s64): Likewise.
26289         (vand_u64): Likewise.
26290         (vandq_s8): Likewise.
26291         (vandq_s16): Likewise.
26292         (vandq_s32): Likewise.
26293         (vandq_s64): Likewise.
26294         (vandq_u8): Likewise.
26295         (vandq_u16): Likewise.
26296         (vandq_u32): Likewise.
26297         (vandq_u64): Likewise.
26298         (vorr_s8): Likewise.
26299         (vorr_s16): Likewise.
26300         (vorr_s32): Likewise.
26301         (vorr_u8): Likewise.
26302         (vorr_u16): Likewise.
26303         (vorr_u32): Likewise.
26304         (vorr_s64): Likewise.
26305         (vorr_u64): Likewise.
26306         (vorrq_s8): Likewise.
26307         (vorrq_s16): Likewise.
26308         (vorrq_s32): Likewise.
26309         (vorrq_s64): Likewise.
26310         (vorrq_u8): Likewise.
26311         (vorrq_u16): Likewise.
26312         (vorrq_u32): Likewise.
26313         (vorrq_u64): Likewise.
26314         (veor_s8): Likewise.
26315         (veor_s16): Likewise.
26316         (veor_s32): Likewise.
26317         (veor_u8): Likewise.
26318         (veor_u16): Likewise.
26319         (veor_u32): Likewise.
26320         (veor_s64): Likewise.
26321         (veor_u64): Likewise.
26322         (veorq_s8): Likewise.
26323         (veorq_s16): Likewise.
26324         (veorq_s32): Likewise.
26325         (veorq_s64): Likewise.
26326         (veorq_u8): Likewise.
26327         (veorq_u16): Likewise.
26328         (veorq_u32): Likewise.
26329         (veorq_u64): Likewise.
26330         (vbic_s8): Likewise.
26331         (vbic_s16): Likewise.
26332         (vbic_s32): Likewise.
26333         (vbic_u8): Likewise.
26334         (vbic_u16): Likewise.
26335         (vbic_u32): Likewise.
26336         (vbic_s64): Likewise.
26337         (vbic_u64): Likewise.
26338         (vbicq_s8): Likewise.
26339         (vbicq_s16): Likewise.
26340         (vbicq_s32): Likewise.
26341         (vbicq_s64): Likewise.
26342         (vbicq_u8): Likewise.
26343         (vbicq_u16): Likewise.
26344         (vbicq_u32): Likewise.
26345         (vbicq_u64): Likewise.
26346         (vorn_s8): Likewise.
26347         (vorn_s16): Likewise.
26348         (vorn_s32): Likewise.
26349         (vorn_u8): Likewise.
26350         (vorn_u16): Likewise.
26351         (vorn_u32): Likewise.
26352         (vorn_s64): Likewise.
26353         (vorn_u64): Likewise.
26354         (vornq_s8): Likewise.
26355         (vornq_s16): Likewise.
26356         (vornq_s32): Likewise.
26357         (vornq_s64): Likewise.
26358         (vornq_u8): Likewise.
26359         (vornq_u16): Likewise.
26360         (vornq_u32): Likewise.
26361         (vornq_u64): Likewise.
26362
26363 2014-05-08  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26364
26365         * wide-int.cc (UTItype): Define.
26366         (UDWtype): Define for appropriate W_TYPE_SIZE.
26367
26368 2014-05-08  Marc Glisse  <marc.glisse@inria.fr>
26369
26370         PR tree-optimization/59100
26371         * tree-ssa-phiopt.c: Include tree-inline.h.
26372         (neutral_element_p, absorbing_element_p): New functions.
26373         (value_replacement): Handle conditional binary operations with a
26374         neutral or absorbing element.
26375
26376 2014-05-08  Richard Biener  <rguenther@suse.de>
26377
26378         * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
26379         folding the expression.
26380         (valueize_expr): Remove.
26381         (visit_reference_op_load): Do not valueize the result of
26382         vn_get_expr_for.
26383         (simplify_binary_expression): Likewise.
26384         (simplify_unary_expression): Likewise.
26385
26386 2014-05-08  Richard Biener  <rguenther@suse.de>
26387
26388         * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
26389         looking at TYPE_ARG_TYPES.
26390
26391 2014-05-08  Richard Biener  <rguenther@suse.de>
26392
26393         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
26394         pointer propagation special-case.
26395
26396 2014-05-08  Bin Cheng  <bin.cheng@arm.com>
26397
26398         * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
26399         core part of address expressions.
26400
26401 2014-05-08  Alan Modra  <amodra@gmail.com>
26402
26403         PR target/60737
26404         * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
26405         loads and stores when -mno-strict-align at any alignment.
26406         (expand_block_clear): Similarly.  Also correct calculation of
26407         instruction count.
26408
26409 2014-05-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
26410
26411         PR middle-end/39246
26412         * tree-complex.c (expand_complex_move): Keep line info when expanding
26413         complex move.
26414         * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
26415         of complex expression. Use new argument to display correct location
26416         for values coming from phi statement.
26417         (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
26418         (warn_uninitialized_phi): Pass location of phi argument to
26419         warn_uninit.
26420         * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
26421         COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
26422
26423 2014-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
26424
26425         * config/rs6000/predicates.md (indexed_address_mem): New.
26426         * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
26427         load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
26428         fpstore_ux, fpstore_u.
26429         (sign_extend, indexed, update): New.
26430         (cell_micro): Adjust.
26431         (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
26432         *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
26433         *movsi_internal1, *movsi_internal1_single, *movhi_internal,
26434         *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
26435         *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
26436         *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
26437         *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
26438         *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
26439         *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
26440         *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
26441         *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
26442         *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
26443         *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
26444         *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
26445         *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
26446
26447         * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
26448         * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
26449         *vsx_extract_<mode>_store): Adjust.
26450         * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
26451         is_cracked_insn, insn_must_be_first_in_group,
26452         insn_must_be_last_in_group): Adjust.
26453
26454         * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
26455         Adjust.
26456         * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
26457         ppc440-fpstore): Adjust.
26458         * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
26459         ppc476-fpstore): Adjust.
26460         * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
26461         ppc601-fpstore): Adjust.
26462         * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
26463         Adjust.
26464         * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
26465         Adjust.
26466         * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
26467         ppc7450-fpstore): Adjust.
26468         * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
26469         * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
26470         * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
26471         Adjust.
26472         * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
26473         cell-fpload, cell-fpload-update, cell-store, cell-store-update,
26474         cell-fpstore, cell-fpstore-update): Adjust.
26475         * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
26476         ppce300c3_store, ppce300c3_fpstore): Adjust.
26477         * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
26478         e500mc_fpstore): Adjust.
26479         * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
26480         e500mc64_store, e500mc64_fpstore): Adjust.
26481         * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
26482         e5500_fpstore): Adjust.
26483         * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
26484         e6500_fpstore): Adjust.
26485         * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
26486         Adjust.
26487         * config/rs6000/power4.md (power4-load, power4-load-ext,
26488         power4-load-ext-update, power4-load-ext-update-indexed,
26489         power4-load-update-indexed, power4-load-update, power4-fpload,
26490         power4-fpload-update, power4-store, power4-store-update,
26491         power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
26492         Adjust.
26493         * config/rs6000/power5.md (power5-load, power5-load-ext,
26494         power5-load-ext-update, power5-load-ext-update-indexed,
26495         power5-load-update-indexed, power5-load-update, power5-fpload,
26496         power5-fpload-update, power5-store, power5-store-update,
26497         power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
26498         Adjust.
26499         * config/rs6000/power6.md (power6-load, power6-load-ext,
26500         power6-load-update, power6-load-update-indexed,
26501         power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
26502         power6-fpload-update, power6-store, power6-store-update,
26503         power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
26504         Adjust.
26505         * config/rs6000/power7.md (power7-load, power7-load-ext,
26506         power7-load-update, power7-load-update-indexed,
26507         power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
26508         power7-fpload-update, power7-store, power7-store-update,
26509         power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
26510         Adjust.
26511         * config/rs6000/power8.md (power8-load, power8-load-update,
26512         power8-load-ext, power8-load-ext-update, power8-fpload,
26513         power8-fpload-update, power8-store, power8-store-update-indexed,
26514         power8-fpstore, power8-fpstore-update): Adjust.
26515         * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
26516         Adjust.
26517         * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
26518         titan_lsu_store, titan_lsu_fpstore): Adjust.
26519         * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
26520
26521 2014-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
26522
26523         PR target/60884
26524         * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
26525         unrolled byte insns.  Emit address increments after move insns.
26526
26527 2014-05-07  David Malcolm  <dmalcolm@redhat.com>
26528
26529         * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
26530         const_gimple, rather than a gimple.
26531         (gimple_call_builtin_p): Likewise, for the three variants.
26532
26533         * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
26534         (gimple_call_builtin_p): Likewise, for the three variants.
26535
26536 2014-05-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
26537
26538         PR tree-optimization/61095
26539         * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
26540
26541 2014-05-07  Richard Biener  <rguenther@suse.de>
26542
26543         PR tree-optimization/61034
26544         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
26545         (maybe_skip_until): Use translate to take into account
26546         lattices when trying to do disambiguations.
26547         (get_continuation_for_phi_1): Likewise.
26548         (get_continuation_for_phi): Adjust for added translate arguments.
26549         (walk_non_aliased_vuses): Likewise.
26550         * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
26551         (walk_non_aliased_vuses): Likewise.
26552         (call_may_clobber_ref_p_1): Declare.
26553         * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
26554         calls.  Stop early if we are only supposed to disambiguate.
26555         * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
26556
26557 2014-05-07  Joern Rennecke  <joern.rennecke@embecosm.com>
26558
26559         * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
26560         Emit an error when the function has arguments.
26561
26562 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26563
26564         * cfgloop.h (unswitch_loops): Remove.
26565         * doc/passes.texi: Remove references to loop-unswitch.c
26566         * timevar.def (TV_LOOP_UNSWITCH): Remove.
26567
26568 2014-05-07  Evgeny Stupachenko  <evstupac@gmail.com>
26569
26570         * tree-vect-data-refs.c (vect_grouped_load_supported): New
26571         check for loads group of length 3.
26572         (vect_permute_load_chain): New permutations for loads group of
26573         length 3.
26574         * tree-vect-stmts.c (vect_model_load_cost): Change cost
26575         of vec_perm_shuffle for the new permutations.
26576
26577 2014-05-07  Alan Lawrence  <alan.lawrence@arm.com>
26578
26579         * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
26580         vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
26581         vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
26582         vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
26583         vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
26584         vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
26585         vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
26586         vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
26587
26588 2014-05-07  Thomas Schwinge  <thomas@codesourcery.com>
26589
26590         * loop-unswitch.c: Delete.
26591
26592 2014-05-07  Richard Biener  <rguenther@suse.de>
26593
26594         * config.gcc: Always set need_64bit_hwint to yes.
26595
26596 2014-05-07  Chung-Ju Wu  <jasonwucj@gmail.com>
26597
26598         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
26599         of using optimize_size.
26600
26601 2014-05-06  Mike Stump  <mikestump@comcast.net>
26602
26603         * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
26604
26605 2014-05-06  Joseph Myers  <joseph@codesourcery.com>
26606
26607         * config/i386/sse.md (*mov<mode>_internal)
26608         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
26609         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
26610         (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
26611         (*<code><mode>3, *andnot<mode>3<mask_name>)
26612         (<mask_codefor><code><mode>3<mask_name>): Only consider
26613         TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
26614
26615 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26616
26617         Revert:
26618         2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
26619
26620         * lra-constraints.c (valid_address_p): Move earlier in file.
26621         Add a constraint argument to the address_info version.
26622         (satisfies_memory_constraint_p): New function.
26623         (satisfies_address_constraint_p): Likewise.
26624         (process_alt_operands, curr_insn_transform): Use them.
26625         (process_address): Pass the constraint to valid_address_p when
26626         checking address operands.
26627
26628 2014-05-06  Richard Sandiford  <r.sandiford@uk.ibm.com>
26629
26630         * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
26631         to their respective blocks.  Fix inadvertent use of "node".
26632
26633 2014-05-06  Richard Sandiford  <rdsandiford@googlemail.com>
26634
26635         * emit-rtl.c (init_derived_machine_modes): New functionm, split
26636         out from...
26637         (init_emit_once): ...here.
26638         * rtl.h (init_derived_machine_modes): Declare.
26639         * toplev.c (do_compile): Call it even if no_backend.
26640
26641 2014-05-06  Kenneth Zadeck  <zadeck@naturalbridge.com>
26642             Mike Stump  <mikestump@comcast.net>
26643             Richard Sandiford  <rdsandiford@googlemail.com>
26644             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26645
26646         * alias.c (ao_ref_from_mem): Use wide-int interfaces.
26647         (rtx_equal_for_memref_p): Update comment.
26648         (adjust_offset_for_component_ref): Use wide-int interfaces.
26649         * builtins.c (get_object_alignment_2): Likewise.
26650         (c_readstr): Likewise.
26651         (target_char_cast): Add comment.
26652         (determine_block_size): Use wide-int interfaces.
26653         (expand_builtin_signbit): Likewise.
26654         (fold_builtin_int_roundingfn): Likewise.
26655         (fold_builtin_bitop): Likewise.
26656         (fold_builtin_bswap): Likewise.
26657         (fold_builtin_logarithm): Use signop.
26658         (fold_builtin_pow): Likewise.
26659         (fold_builtin_memory_op): Use wide-int interfaces.
26660         (fold_builtin_object_size): Likewise.
26661         * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
26662         nb_iterations_estimate.
26663         (record_niter_bound): Use wide-int interfaces.
26664         (get_estimated_loop_iterations_int): Likewise.
26665         (get_estimated_loop_iterations): Likewise.
26666         (get_max_loop_iterations): Likewise.
26667         * cfgloop.h: Include wide-int.h.
26668         (struct nb_iter_bound): Change bound to widest_int.
26669         (struct loop): Change nb_iterations_upper_bound and
26670         nb_iterations_estimate to widest_int.
26671         (record_niter_bound): Switch to use widest_int.
26672         (get_estimated_loop_iterations): Likewise.
26673         (get_max_loop_iterations): Likewise.
26674         (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
26675         update for wide-int.
26676         * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
26677         * combine.c (try_combine): Likewise.
26678         (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
26679         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
26680         interfaces.
26681         (aarch64_float_const_representable_p): Likewise.
26682         * config/arc/arc.c: Include wide-int.h.
26683         (arc_can_use_doloop_p): Use wide-int interfaces.
26684         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
26685         (vfp3_const_double_index): Likewise.
26686         * config/avr/avr.c (avr_out_round): Likewise.
26687         (avr_fold_builtin): Likewise.
26688         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
26689         (bfin_can_use_doloop_p): Likewise.
26690         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
26691         (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
26692         * config/i386/i386.c: Include wide-int.h.
26693         (ix86_data_alignment): Use wide-int interfaces.
26694         (ix86_local_alignment): Likewise.
26695         (ix86_emit_swsqrtsf): Update real_from_integer.
26696         * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
26697         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
26698         * config/rs6000/predicates.md (any_operand): Add const_wide_int.
26699         (zero_constant): Likewise.
26700         (input_operand): Likewise.
26701         (splat_input_operand): Likewise.
26702         (non_logical_cint_operand): Change const_double to const_wide_int.
26703         * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
26704         (easy_altivec_constant): Remove comment.
26705         (paired_expand_vector_init): Use CONSTANT_P.
26706         (rs6000_legitimize_address): Handle CONST_WIDE_INT.
26707         (rs6000_emit_move): Update checks.
26708         (rs6000_aggregate_candidate): Use wide-int interfaces.
26709         (rs6000_expand_ternop_builtin): Likewise.
26710         (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
26711         (rs6000_assemble_integer): Likewise.
26712         (rs6000_hash_constant): Likewise.
26713         (output_toc): Likewise.
26714         (rs6000_rtx_costs): Likewise.
26715         (rs6000_emit_swrsqrt); Update call to real_from_integer.
26716         * config/rs6000/rs6000-c.c: Include wide-int.h.
26717         (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
26718         * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
26719         * config/rs6000/rs6000.md: Use const_scalar_int_operand.
26720         Handle CONST_WIDE_INT.
26721         * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
26722         Use tree_fits_uhwi_p.
26723         * config/sparc/sparc.c: Include wide-int.h.
26724         (sparc_fold_builtin): Use wide-int interfaces.
26725         * config/vax/vax.c: Include wide-int.h.
26726         (vax_float_literal): Use real_from_integer.
26727         * coretypes.h (struct hwivec_def): New.
26728         (hwivec): New.
26729         (const_hwivec): New.
26730         * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
26731         (equiv_constant): Handle CONST_WIDE_INT.
26732         * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
26733         (cselib_hash_rtx): Handle CONST_WIDE_INT.
26734         * dbxout.c (stabstr_U): Use wide-int interfaces.
26735         (dbxout_type): Update to use cst_fits_shwi_p.
26736         * defaults.h (LOG2_BITS_PER_UNIT): Define.
26737         (TARGET_SUPPORTS_WIDE_INT): Add default.
26738         * dfp.c: Include wide-int.h.
26739         (decimal_real_to_integer2): Use wide-int interfaces and rename to
26740         decimal_real_to_integer.
26741         * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
26742         decimal_real_to_integer.
26743         * doc/generic.texi (Constant expressions): Update for wide_int.
26744         * doc/rtl.texi (const_double): Likewise.
26745         (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
26746         (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
26747         * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
26748         (REAL_VALUE_FROM_INT): Remove.
26749         (TARGET_SUPPORTS_WIDE_INT): New.
26750         * doc/tm.texi: Regenerate.
26751         * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
26752         * double-int.h: Include wide-int.h.
26753         (struct wi::int_traits): New.
26754         * dwarf2out.c (get_full_len): New.
26755         (dw_val_equal_p): Add case dw_val_class_wide_int.
26756         (size_of_loc_descr): Likewise.
26757         (output_loc_operands): Likewise.
26758         (insert_double): Remove.
26759         (insert_wide_int): New.
26760         (add_AT_wide): New.
26761         (print_die): Add case dw_val_class_wide_int.
26762         (attr_checksum): Likewise.
26763         (attr_checksum_ordered): Likewise.
26764         (same_dw_val_p): Likewise.
26765         (size_of_die): Likewise.
26766         (value_format): Likewise.
26767         (output_die): Likewise.
26768         (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
26769         Use wide-int.
26770         (clz_loc_descriptor): Use wide-int interfaces.
26771         (mem_loc_descriptor): Likewise.  Handle CONST_WIDE_INT.
26772         (loc_descriptor): Use wide-int interfaces.  Handle CONST_WIDE_INT.
26773         (round_up_to_align): Use wide-int interfaces.
26774         (field_byte_offset): Likewise.
26775         (insert_double): Rename to insert_wide_int.  Use wide-int interfaces.
26776         (add_const_value_attribute): Handle CONST_WIDE_INT.  Update
26777         CONST_DOUBLE handling.  Use wide-int interfaces.
26778         (add_bound_info): Use tree_fits_uhwi_p.  Use wide-int interfaces.
26779         (gen_enumeration_type_die): Use add_AT_wide.
26780         (hash_loc_operands): Add case dw_val_class_wide_int.
26781         (compare_loc_operands): Likewise.
26782         * dwarf2out.h: Include wide-int.h.
26783         (wide_int_ptr): New.
26784         (enum dw_val_class): Add dw_val_class_wide_int.
26785         (struct dw_val_struct): Add val_wide.
26786         * emit-rtl.c (const_wide_int_htab): New.
26787         (const_wide_int_htab_hash): New.
26788         (const_wide_int_htab_eq): New.
26789         (lookup_const_wide_int): New.
26790         (const_double_htab_hash): Use wide-int interfaces.
26791         (const_double_htab_eq): Likewise.
26792         (rtx_to_double_int): Conditionally compile for wide-int.
26793         (immed_double_int_const): Rename to immed_wide_int_const and
26794         update for wide-int.
26795         (immed_double_const): Conditionally compile for wide-int.
26796         (init_emit_once): Use wide-int interfaces.
26797         * explow.c (plus_constant): Likewise.
26798         * expmed.c (mask_rtx): Move further up file.  Use wide-int interfaces.
26799         (lshift_value): Use wide-int interfaces.
26800         (expand_mult): Likewise.
26801         (choose_multiplier): Likewise.
26802         (expand_smod_pow2): Likewise.
26803         (make_tree): Likewise.
26804         * expr.c (convert_modes): Consolidate handling of constants.
26805         Use wide-int interfaces.
26806         (emit_group_load_1): Add note.
26807         (store_expr): Update comment.
26808         (get_inner_reference): Use wide-int interfaces.
26809         (expand_constructor): Update comment.
26810         (expand_expr_real_2): Use wide-int interfaces.
26811         (expand_expr_real_1): Likewise.
26812         (reduce_to_bit_field_precision): Likewise.
26813         (const_vector_from_tree): Likewise.
26814         * final.c: Include wide-int-print.h.
26815         (output_addr_const): Handle CONST_WIDE_INT.  Use CONST_DOUBLE_AS_INT_P.
26816         * fixed-value.c: Include wide-int.h.
26817         (fixed_from_string): Use wide-int interfaces.
26818         (fixed_to_decimal): Likewise.
26819         (fixed_convert_from_real): Likewise.
26820         (real_convert_from_fixed): Likewise.
26821         * fold-const.h (mem_ref_offset): Return an offset_int.
26822         (div_if_zero_remainder): Remove code parameter.
26823         * fold-const.c (div_if_zero_remainder): Remove code parameter.
26824         Use wide-int interfaces.
26825         (may_negate_without_overflow_p): Use wide-int interfaces.
26826         (negate_expr_p): Likewise.
26827         (fold_negate_expr): Likewise.
26828         (int_const_binop_1): Likewise.
26829         (const_binop): Likewise.
26830         (fold_convert_const_int_from_int): Likewise.
26831         (fold_convert_const_int_from_real): Likewise.
26832         (fold_convert_const_int_from_fixed): Likewise.
26833         (fold_convert_const_fixed_from_int): Likewise.
26834         (all_ones_mask_p): Take an unsigned size.  Use wide-int interfaces.
26835         (sign_bit_p): Use wide-int interfaces.
26836         (make_range_step): Likewise.
26837         (build_range_check): Likewise.  Pass an integer of the correct type
26838         instead of using integer_one_node.
26839         (range_predecessor): Pass an integer of the correct type instead
26840         of using integer_one_node.
26841         (range_successor): Likewise.
26842         (merge_ranges): Likewise.
26843         (unextend): Use wide-int interfaces.
26844         (extract_muldiv_1): Likewise.
26845         (fold_div_compare): Likewise.
26846         (fold_single_bit_test): Likewise.
26847         (fold_sign_changed_comparison): Likewise.
26848         (try_move_mult_to_index): Update calls to div_if_zero_remainder.
26849         (fold_plusminus_mult_expr): Use wide-int interfaces.
26850         (native_encode_int): Likewise.
26851         (native_interpret_int): Likewise.
26852         (fold_unary_loc): Likewise.
26853         (pointer_may_wrap_p): Likewise.
26854         (size_low_cst): Likewise.
26855         (mask_with_tz): Likewise.
26856         (fold_binary_loc): Likewise.
26857         (fold_ternary_loc): Likewise.
26858         (multiple_of_p): Likewise.
26859         (tree_call_nonnegative_warnv_p): Update calls to
26860         tree_int_cst_min_precision and real_from_integer.
26861         (fold_negate_const): Use wide-int interfaces.
26862         (fold_abs_const): Likewise.
26863         (fold_relational_const): Use tree_int_cst_lt.
26864         (round_up_loc): Use wide-int interfaces.
26865         * genemit.c (gen_exp): Add CONST_WIDE_INT case.
26866         * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
26867         * gengtype.c: Remove include of double-int.h.
26868         (do_typedef): Use wide-int interfaces.
26869         (open_base_files): Add wide-int.h.
26870         (main): Add offset_int and widest_int typedefs.
26871         * gengtype-lex.l: Handle "^".
26872         (CXX_KEYWORD): Add "static".
26873         * gengtype-parse.c (require3): New.
26874         (require_template_declaration): Handle constant template arguments
26875         and nested templates.
26876         * gengtype-state.c: Don't include "double-int.h".
26877         * genpreds.c (write_one_predicate_function): Update comment.
26878         (write_tm_constrs_h): Add check for hval and lval use in
26879         CONST_WIDE_INT.
26880         * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
26881         (add_to_sequence): Likewise.
26882         * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
26883         and const_double_operand.
26884         * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
26885         interfaces.
26886         * gimple-fold.c (get_base_constructor): Likewise.
26887         (fold_array_ctor_reference): Likewise.
26888         (fold_nonarray_ctor_reference): Likewise.
26889         (fold_const_aggregate_ref_1): Likewise.
26890         (gimple_val_nonnegative_real_p): Likewise.
26891         (gimple_fold_indirect_ref): Likewise.
26892         * gimple-pretty-print.c (dump_ssaname_info): Likewise.
26893         * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
26894         (struct slsr_cand_d): Change index to be widest_int.
26895         (struct incr_info_d): Change incr to be widest_int.
26896         (alloc_cand_and_find_basis): Use wide-int interfaces.
26897         (slsr_process_phi): Likewise.
26898         (backtrace_base_for_ref): Likewise.  Return a widest_int.
26899         (restructure_reference): Take a widest_int instead of a double_int.
26900         (slsr_process_ref): Use wide-int interfaces.
26901         (create_mul_ssa_cand): Likewise.
26902         (create_mul_imm_cand): Likewise.
26903         (create_add_ssa_cand): Likewise.
26904         (create_add_imm_cand): Take a widest_int instead of a double_int.
26905         (slsr_process_add): Use wide-int interfaces.
26906         (slsr_process_cast): Likewise.
26907         (slsr_process_copy): Likewise.
26908         (dump_candidate): Likewise.
26909         (dump_incr_vec): Likewise.
26910         (replace_ref): Likewise.
26911         (cand_increment): Likewise.  Return a widest_int.
26912         (cand_abs_increment): Likewise.
26913         (replace_mult_candidate): Take a widest_int instead of a double_int.
26914         (replace_unconditional_candidate): Use wide-int interfaces.
26915         (incr_vec_index): Take a widest_int instead of a double_int.
26916         (create_add_on_incoming_edge): Likewise.
26917         (create_phi_basis): Use wide-int interfaces.
26918         (replace_conditional_candidate): Likewise.
26919         (record_increment): Take a widest_int instead of a double_int.
26920         (record_phi_increments): Use wide-int interfaces.
26921         (phi_incr_cost): Take a widest_int instead of a double_int.
26922         (lowest_cost_path): Likewise.
26923         (total_savings): Likewise.
26924         (analyze_increments): Use wide-int interfaces.
26925         (ncd_with_phi): Take a widest_int instead of a double_int.
26926         (ncd_of_cand_and_phis): Likewise.
26927         (nearest_common_dominator_for_cands): Likewise.
26928         (insert_initializers): Use wide-int interfaces.
26929         (all_phi_incrs_profitable): Likewise.
26930         (replace_one_candidate): Likewise.
26931         (replace_profitable_candidates): Likewise.
26932         * godump.c: Include wide-int-print.h.
26933         (go_output_typedef): Use wide-int interfaces.
26934         * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
26935         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
26936         (build_loop_iteration_domains): Likewise.
26937         * hooks.h: Include wide-int.h rather than double-int.h.
26938         (hook_bool_dint_dint_uint_bool_true): Delete.
26939         (hook_bool_wint_wint_uint_bool_true): Declare.
26940         * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
26941         (hook_bool_wint_wint_uint_bool_true): New.
26942         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
26943         interfaces.
26944         (ubsan_expand_si_overflow_mul_check): Likewise.
26945         * ipa-devirt.c (get_polymorphic_call_info): Likewise.
26946         * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
26947         (get_ancestor_addr_info): Likewise.
26948         (ipa_modify_call_arguments): Likewise.
26949         * loop-doloop.c (doloop_modify): Likewise.
26950         (doloop_optimize): Likewise.
26951         * loop-iv.c (iv_number_of_iterations): Likewise.
26952         * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
26953         (unroll_loop_constant_iterations): Likewise.
26954         (decide_unroll_runtime_iterations): Likewise.
26955         (unroll_loop_runtime_iterations): Likewise.
26956         (decide_peel_simple): Likewise.
26957         (decide_unroll_stupid): Likewise.
26958         * lto-streamer-in.c (streamer_read_wi): Add.
26959         (input_cfg): Use wide-int interfaces.
26960         (lto_input_tree_1): Likewise.
26961         * lto-streamer-out.c (streamer_write_wi): Add.
26962         (hash_tree): Use wide-int interfaces.
26963         (output_cfg): Likewise.
26964         * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
26965         (GTFILES): Add wide-int.h and signop.h.
26966         (TAGS): Look for .cc files too.
26967         * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
26968         * optabs.c (expand_subword_shift): Likewise.
26969         (expand_doubleword_shift): Likewise.
26970         (expand_absneg_bit): Likewise.
26971         (expand_copysign_absneg): Likewise.
26972         (expand_copysign_bit): Likewise.
26973         * postreload.c (reload_cse_simplify_set): Likewise.
26974         * predict.c (predict_iv_comparison): Likewise.
26975         * pretty-print.h: Include wide-int-print.h.
26976         (pp_wide_int) New.
26977         * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
26978         * print-tree.c: Include wide-int-print.h.
26979         (print_node_brief): Use wide-int interfaces.
26980         (print_node): Likewise.
26981         * read-rtl.c (validate_const_wide_int): New.
26982         (read_rtx_code): Add CONST_WIDE_INT case.
26983         * real.c: Include wide-int.h.
26984         (real_to_integer2): Delete.
26985         (real_to_integer): New function, returning a wide_int.
26986         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26987         (ten_to_ptwo): Update call to real_from_integer.
26988         (real_digit): Likewise.
26989         * real.h: Include signop.h, wide-int.h and insn-modes.h.
26990         (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
26991         (REAL_VALUE_TO_INT): Delete.
26992         (real_to_integer): Declare a wide-int form.
26993         (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
26994         * recog.c (const_int_operand): Improve comment.
26995         (const_scalar_int_operand): New.
26996         (const_double_operand): Add a separate definition for CONST_WIDE_INT.
26997         * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
26998         (split_double): Likewise.
26999         * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
27000         (rtx_size): Likewise.
27001         (rtx_alloc_stat_v): New.
27002         (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
27003         (cwi_output_hex): New.
27004         (iterative_hash_rtx): Handle CONST_WIDE_INT.
27005         (cwi_check_failed_bounds): New.
27006         * rtl.def (CONST_WIDE_INT): New.
27007         * rtl.h: Include <utility> and wide-int.h.
27008         (struct hwivec_def): New.
27009         (CWI_GET_NUM_ELEM): New.
27010         (CWI_PUT_NUM_ELEM): New.
27011         (struct rtx_def): Add num_elem and hwiv.
27012         (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
27013         (CASE_CONST_UNIQUE): Likewise.
27014         (CASE_CONST_ANY): Likewise.
27015         (CONST_SCALAR_INT_P): Likewise.
27016         (CONST_WIDE_INT_P): New.
27017         (CWI_ELT): New.
27018         (HWIVEC_CHECK): New.
27019         (cwi_check_failed_bounds): New.
27020         (CWI_ELT): New.
27021         (HWIVEC_CHECK): New.
27022         (CONST_WIDE_INT_VEC) New.
27023         (CONST_WIDE_INT_NUNITS) New.
27024         (CONST_WIDE_INT_ELT) New.
27025         (rtx_mode_t): New type.
27026         (wi::int_traits <rtx_mode_t>): New.
27027         (wi::shwi): New.
27028         (wi::min_value): New.
27029         (wi::max_value): New.
27030         (rtx_alloc_v) New.
27031         (const_wide_int_alloc): New.
27032         (immed_wide_int_const): New.
27033         * sched-vis.c (print_value): Handle CONST_WIDE_INT.
27034         * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
27035         * signop.h: New file.
27036         * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
27037         (simplify_const_unary_operation): Use wide-int interfaces.
27038         (simplify_binary_operation_1): Likewise.
27039         (simplify_const_binary_operation): Likewise.
27040         (simplify_const_relational_operation): Likewise.
27041         (simplify_immed_subreg): Likewise.
27042         * stmt.c (expand_case): Likewise.
27043         * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
27044         signop rather than a bool.
27045         * stor-layout.c (layout_type): Use wide-int interfaces.
27046         (initialize_sizetypes): Update calls to
27047         set_min_and_max_values_for_integral_type.
27048         (set_min_and_max_values_for_integral_type): Take a signop rather
27049         than a bool.  Use wide-int interfaces.
27050         (fixup_signed_type): Update accordingly.  Remove
27051         HOST_BITS_PER_DOUBLE_INT limit.
27052         (fixup_unsigned_type): Likewise.
27053         * system.h (STATIC_CONSTANT_P): New.
27054         (STATIC_ASSERT): New.
27055         * target.def (can_use_doloop_p): Take widest_ints rather than
27056         double_ints.
27057         * target.h: Include wide-int.h rather than double-int.h.
27058         * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
27059         than double_ints.
27060         * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
27061         rather than INT_CST_LT_UNSIGNED.
27062         (can_use_doloop_if_innermost): Take widest_ints rather than
27063         double_ints.
27064         * tree-affine.c: Include wide-int-print.h.
27065         (double_int_ext_for_comb): Delete.
27066         (wide_int_ext_for_comb): New.
27067         (aff_combination_zero): Use wide-int interfaces.
27068         (aff_combination_const): Take a widest_int instead of a double_int.
27069         (aff_combination_elt): Use wide-int interfaces.
27070         (aff_combination_scale): Take a widest_int instead of a double_int.
27071         (aff_combination_add_elt): Likewise.
27072         (aff_combination_add_cst): Likewise.
27073         (aff_combination_add): Use wide-int interfaces.
27074         (aff_combination_convert): Likewise.
27075         (tree_to_aff_combination): Likewise.
27076         (add_elt_to_tree): Take a widest_int instead of a double_int.
27077         (aff_combination_to_tree): Use wide-int interfaces.
27078         (aff_combination_remove_elt): Likewise.
27079         (aff_combination_add_product): Take a widest_int instead of
27080         a double_int.
27081         (aff_combination_mult): Use wide-int interfaces.
27082         (aff_combination_expand): Likewise.
27083         (double_int_constant_multiple_p): Delete.
27084         (wide_int_constant_multiple_p): New.
27085         (aff_combination_constant_multiple_p): Take a widest_int pointer
27086         instead of a double_int pointer.
27087         (print_aff): Use wide-int interfaces.
27088         (get_inner_reference_aff): Take a widest_int pointer
27089         instead of a double_int pointer.
27090         (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
27091         * tree-affine.h: Include wide-int.h.
27092         (struct aff_comb_elt): Change type of coef to widest_int.
27093         (struct affine_tree_combination): Change type of offset to widest_int.
27094         (double_int_ext_for_comb): Delete.
27095         (wide_int_ext_for_comb): New.
27096         (aff_combination_const): Use widest_int instead of double_int.
27097         (aff_combination_scale): Likewise.
27098         (aff_combination_add_elt): Likewise.
27099         (aff_combination_constant_multiple_p): Likewise.
27100         (get_inner_reference_aff): Likewise.
27101         (aff_comb_cannot_overlap_p): Likewise.
27102         (aff_combination_zero_p): Use wide-int interfaces.
27103         * tree.c: Include tree.h.
27104         (init_ttree): Use make_int_cst.
27105         (tree_code_size): Removed code for INTEGER_CST case.
27106         (tree_size): Add INTEGER_CST case.
27107         (make_node_stat): Update comment.
27108         (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
27109         (build_int_cst_type): Use wide-int interfaces.
27110         (double_int_to_tree): Likewise.
27111         (double_int_fits_to_tree_p): Delete.
27112         (force_fit_type_double): Delete.
27113         (force_fit_type): New.
27114         (int_cst_hash_hash): Use wide-int interfaces.
27115         (int_cst_hash_eq): Likewise.
27116         (build_int_cst_wide): Delete.
27117         (wide_int_to_tree): New.
27118         (cache_integer_cst): Use wide-int interfaces.
27119         (build_low_bits_mask): Likewise.
27120         (cst_and_fits_in_hwi): Likewise.
27121         (real_value_from_int_cst): Likewise.
27122         (make_int_cst_stat): New.
27123         (integer_zerop): Use wide_int interfaces.
27124         (integer_onep): Likewise.
27125         (integer_all_onesp): Likewise.
27126         (integer_pow2p): Likewise.
27127         (integer_nonzerop): Likewise.
27128         (tree_log2): Likewise.
27129         (tree_floor_log2): Likewise.
27130         (tree_ctz): Likewise.
27131         (int_size_in_bytes): Likewise.
27132         (mem_ref_offset): Return an offset_int rather than a double_int.
27133         (build_type_attribute_qual_variant): Use wide_int interfaces.
27134         (type_hash_eq): Likewise
27135         (tree_int_cst_equal): Likewise.
27136         (tree_int_cst_lt): Delete.
27137         (tree_int_cst_compare): Likewise.
27138         (tree_fits_shwi_p): Use wide_int interfaces.
27139         (tree_fits_uhwi_p): Likewise.
27140         (tree_int_cst_sign_bit): Likewise.
27141         (tree_int_cst_sgn): Likewise.
27142         (tree_int_cst_min_precision): Take a signop rather than a bool.
27143         (simple_cst_equal): Use wide_int interfaces.
27144         (compare_tree_int): Likewise.
27145         (iterative_hash_expr): Likewise.
27146         (int_fits_type_p): Likewise.  Use tree_int_cst_lt rather than
27147         INT_CST_LT.
27148         (get_type_static_bounds): Use wide_int interfaces.
27149         (tree_int_cst_elt_check_failed): New.
27150         (build_common_tree_nodes): Reordered to set prec before filling in
27151         value.
27152         (int_cst_value): Check cst_and_fits_in_hwi.
27153         (widest_int_cst_value): Use wide_int interfaces.
27154         (upper_bound_in_type): Likewise.
27155         (lower_bound_in_type): Likewise.
27156         (num_ending_zeros): Likewise.
27157         (drop_tree_overflow): Likewise.
27158         * tree-call-cdce.c (check_pow): Update call to real_from_integer.
27159         (gen_conditions_for_pow_cst_base): Likewise.
27160         * tree-cfg.c: Include wide-int.h and wide-int-print.h.
27161         (group_case_labels_stmt): Use wide-int interfaces.
27162         (verify_gimple_assign_binary): Likewise.
27163         (print_loop): Likewise.
27164         * tree-chrec.c (tree_fold_binomial): Likewise.
27165         * tree-core.h (struct tree_base): Add int_length.
27166         (struct tree_int_cst): Change rep of value.
27167         * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
27168         (dr_may_alias_p): Likewise.
27169         (max_stmt_executions_tree): Likewise.
27170         * tree.def (INTEGER_CST): Update comment.
27171         * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
27172         * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
27173         * tree-dump.c: Include wide-int.h and wide-int-print.h.
27174         (dequeue_and_dump): Use wide-int interfaces.
27175         * tree.h: Include wide-int.h.
27176         (NULL_TREE): Moved to earlier loc in file.
27177         (TREE_INT_CST_ELT_CHECK): New.
27178         (tree_int_cst_elt_check_failed): New.
27179         (TYPE_SIGN): New.
27180         (TREE_INT_CST): Delete.
27181         (TREE_INT_CST_LOW): Use wide-int interfaces.
27182         (TREE_INT_CST_HIGH): Delete.
27183         (TREE_INT_CST_NUNITS): New.
27184         (TREE_INT_CST_EXT_NUNITS): Likewise.
27185         (TREE_INT_CST_OFFSET_NUNITS): Likewise.
27186         (TREE_INT_CST_ELT): Likewise.
27187         (INT_CST_LT): Delete.
27188         (tree_int_cst_elt_check): New (two forms).
27189         (type_code_size): Update comment.
27190         (make_int_cst_stat, make_int_cst): New.
27191         (tree_to_double_int): Delete.
27192         (double_int_fits_to_tree_p): Delete.
27193         (force_fit_type_double): Delete.
27194         (build_int_cstu): Replace with out-of-line function.
27195         (build_int_cst_wide): Delete.
27196         (tree_int_cst_lt): Define inline.
27197         (tree_int_cst_le): New.
27198         (tree_int_cst_compare): Define inline.
27199         (tree_int_cst_min_precision): Take a signop rather than a bool.
27200         (wi::int_traits <const_tree>): New.
27201         (wi::int_traits <tree>): New.
27202         (wi::extended_tree): New.
27203         (wi::int_traits <wi::extended_tree>): New.
27204         (wi::to_widest): New.
27205         (wi::to_offset): New.
27206         (wi::fits_to_tree_p): New.
27207         (wi::min_value): New.
27208         (wi::max_value): New.
27209         * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
27210         (copy_tree_body_r): Likewise.
27211         * tree-object-size.c (compute_object_offset): Likewise.
27212         (addr_object_size): Likewise.
27213         * tree-predcom.c: Include wide-int-print.h.
27214         (struct dref_d): Change type of offset to widest_int.
27215         (dump_dref): Call wide-int printer.
27216         (aff_combination_dr_offset): Use wide-int interfaces.
27217         (determine_offset): Take a widest_int pointer rather than a
27218         double_int pointer.
27219         (split_data_refs_to_components): Use wide-int interfaces.
27220         (suitable_component_p): Likewise.
27221         (order_drefs): Likewise.
27222         (add_ref_to_chain): Likewise.
27223         (valid_initializer_p): Likewise.
27224         (determine_roots_comp): Likewise.
27225         * tree-pretty-print.c: Include wide-int-print.h.
27226         (dump_generic_node): Use wide-int interfaces.
27227         * tree-sra.c (sra_ipa_modify_expr): Likewise.
27228         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
27229         (move_fixed_address_to_symbol): Likewise.
27230         (move_hint_to_base): Likewise.
27231         (move_pointer_to_base): Likewise.
27232         (move_variant_to_index): Likewise.
27233         (most_expensive_mult_to_index): Likewise.
27234         (addr_to_parts): Likewise.
27235         (copy_ref_info): Likewise.
27236         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
27237         (indirect_refs_may_alias_p): Likewise.
27238         (stmt_kills_ref_p_1): Likewise.
27239         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
27240         * tree-ssa-ccp.c: Update comment at top of file.  Include
27241         wide-int-print.h.
27242         (struct prop_value_d): Change type of mask to widest_int.
27243         (extend_mask): New function.
27244         (dump_lattice_value): Use wide-int interfaces.
27245         (get_default_value): Likewise.
27246         (set_constant_value): Likewise.
27247         (set_value_varying): Likewise.
27248         (valid_lattice_transition): Likewise.
27249         (set_lattice_value): Likewise.
27250         (value_to_double_int): Delete.
27251         (value_to_wide_int): New.
27252         (get_value_from_alignment): Use wide-int interfaces.
27253         (get_value_for_expr): Likewise.
27254         (do_dbg_cnt): Likewise.
27255         (ccp_finalize): Likewise.
27256         (ccp_lattice_meet): Likewise.
27257         (bit_value_unop_1): Use widest_ints rather than double_ints.
27258         (bit_value_binop_1): Likewise.
27259         (bit_value_unop): Use wide-int interfaces.
27260         (bit_value_binop): Likewise.
27261         (bit_value_assume_aligned): Likewise.
27262         (evaluate_stmt): Likewise.
27263         (ccp_fold_stmt): Likewise.
27264         (visit_cond_stmt): Likewise.
27265         (ccp_visit_stmt): Likewise.
27266         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
27267         (constant_pointer_difference): Likewise.
27268         (associate_pointerplus): Likewise.
27269         (combine_conversions): Likewise.
27270         * tree-ssa-loop.h: Include wide-int.h.
27271         (struct tree_niter_desc): Change type of max to widest_int.
27272         * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
27273         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
27274         (remove_redundant_iv_tests): Likewise.
27275         (canonicalize_loop_induction_variables): Likewise.
27276         * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
27277         (constant_multiple_of): Take a widest_int pointer instead of
27278         a double_int pointer.
27279         (get_computation_aff): Use wide-int interfaces.
27280         (ptr_difference_cost): Likewise.
27281         (difference_cost): Likewise.
27282         (get_loop_invariant_expr_id): Likewise.
27283         (get_computation_cost_at): Likewise.
27284         (iv_elimination_compare_lt): Likewise.
27285         (may_eliminate_iv): Likewise.
27286         * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
27287         instead of double_int.
27288         (max_loop_iterations): Likewise.
27289         (max_stmt_executions): Likewise.
27290         (estimated_stmt_executions): Likewise.
27291         * tree-ssa-loop-niter.c: Include wide-int-print.h.
27292         (split_to_var_and_offset): Use wide-int interfaces.
27293         (determine_value_range): Likewise.
27294         (bound_difference_of_offsetted_base): Likewise.
27295         (bounds_add): Take a widest_int instead of a double_int.
27296         (number_of_iterations_ne_max): Use wide-int interfaces.
27297         (number_of_iterations_ne): Likewise.
27298         (number_of_iterations_lt_to_ne): Likewise.
27299         (assert_loop_rolls_lt): Likewise.
27300         (number_of_iterations_lt): Likewise.
27301         (number_of_iterations_le): Likewise.
27302         (number_of_iterations_cond): Likewise.
27303         (number_of_iterations_exit): Likewise.
27304         (finite_loop_p): Likewise.
27305         (derive_constant_upper_bound_assign): Likewise.
27306         (derive_constant_upper_bound): Return a widest_int.
27307         (derive_constant_upper_bound_ops): Likewise.
27308         (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
27309         (record_estimate): Take a widest_int rather than a double_int.
27310         (record_nonwrapping_iv): Use wide-int interfaces.
27311         (double_int_cmp): Delete.
27312         (wide_int_cmp): New.
27313         (bound_index): Take a widest_int rather than a double_int.
27314         (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
27315         (maybe_lower_iteration_bound): Likewise.
27316         (estimate_numbers_of_iterations_loop): Likewise.
27317         (estimated_loop_iterations): Take a widest_int pointer than than
27318         a double_int pointer.
27319         (estimated_loop_iterations_int): Use wide-int interfaces.
27320         (max_loop_iterations): Take a widest_int pointer than than
27321         a double_int pointer.
27322         (max_loop_iterations_int): Use wide-int interfaces.
27323         (max_stmt_executions): Take a widest_int pointer than than
27324         a double_int pointer.
27325         (estimated_stmt_executions): Likewise.
27326         (n_of_executions_at_most): Use wide-int interfaces.
27327         (scev_probably_wraps_p): Likewise.
27328         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
27329         to real_to_integer.
27330         * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
27331         interfaces.
27332         * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
27333         double_ints.  Adjust for trailing_wide_ints <3> representation.
27334         (set_nonzero_bits): Likewise.
27335         (get_range_info): Return wide_ints rather than double_ints.
27336         Adjust for trailing_wide_ints <3> representation.
27337         (get_nonzero_bits): Likewise.
27338         (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
27339         representation.
27340         * tree-ssanames.h (struct range_info_def): Replace min, max and
27341         nonzero_bits with a trailing_wide_ints <3>.
27342         (set_range_info): Use wide_int_refs rather than double_ints.
27343         (set_nonzero_bits): Likewise.
27344         (get_range_info): Return wide_ints rather than double_ints.
27345         (get_nonzero_bits): Likewise.
27346         * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
27347         * tree-ssa-pre.c (phi_translate_1): Likewise.
27348         * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
27349         (acceptable_pow_call): Likewise.
27350         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
27351         interfaces.
27352         (vn_reference_fold_indirect): Likewise.
27353         (vn_reference_maybe_forwprop_address): Likewise.
27354         (valueize_refs_1): Likewise.
27355         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
27356         * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
27357         tree_int_cst_lt and tree_int_cst_le.
27358         * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
27359         interfaces.
27360         (streamer_alloc_tree): Likewise.
27361         * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
27362         (streamer_write_tree_header): Likewise.
27363         (streamer_write_integer_cst): Likewise.
27364         * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
27365         (build_constructors): Likewise.
27366         (array_value_type): Likewise.
27367         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
27368         (vect_check_gather): Likewise.
27369         * tree-vect-generic.c (build_replicated_const): Likewise.
27370         (expand_vector_divmod): Likewise.
27371         * tree-vect-loop.c (vect_transform_loop): Likewise.
27372         * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
27373         (vect_do_peeling_for_alignment): Likewise.
27374         * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
27375         * tree-vrp.c: Include wide-int.h.
27376         (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
27377         (extract_range_from_assert): Use wide-int interfaces.
27378         (vrp_int_const_binop): Likewise.
27379         (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
27380         double_int pointers.
27381         (ranges_from_anti_range): Use wide-int interfaces.
27382         (quad_int_cmp): Delete.
27383         (quad_int_pair_sort): Likewise.
27384         (extract_range_from_binary_expr_1): Use wide-int interfaces.
27385         (extract_range_from_unary_expr_1): Likewise.
27386         (adjust_range_with_scev): Likewise.
27387         (masked_increment): Take and return wide_ints rather than double_ints.
27388         (register_edge_assert_for_2): Use wide-int interfaces.
27389         (check_array_ref): Likewise.
27390         (search_for_addr_array): Likewise.
27391         (maybe_set_nonzero_bits): Likewise.
27392         (union_ranges): Pass an integer of the correct type instead of
27393         using integer_one_node.
27394         (intersect_ranges): Likewise.
27395         (simplify_truth_ops_using_ranges): Likewise.
27396         (simplify_bit_ops_using_ranges): Use wide-int interfaces.
27397         (range_fits_type_p): Likewise.
27398         (simplify_cond_using_ranges): Likewise.  Take a signop rather than
27399         a bool.
27400         (simplify_conversion_using_ranges): Use wide-int interfaces.
27401         (simplify_float_conversion_using_ranges): Likewise.
27402         (vrp_finalize): Likewise.
27403         * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
27404         (gimple_stringops_transform): Likewise.
27405         * varasm.c (decode_addr_const): Likewise.
27406         (const_hash_1): Likewise.
27407         (const_rtx_hash_1): Likewise
27408         (output_constant): Likewise.
27409         (array_size_for_constructor): Likewise.
27410         (output_constructor_regular_field): Likewise.
27411         (output_constructor_bitfield): Likewise.
27412         * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
27413         * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
27414         GENERATOR_FILEs.
27415         * gencheck.c: Define BITS_PER_UNIT.
27416         * wide-int.cc: New.
27417         * wide-int.h: New.
27418         * wide-int-print.cc: New.
27419         * wide-int-print.h: New.
27420
27421 2014-05-06  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27422
27423         * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
27424
27425 2014-05-06  Richard Biener  <rguenther@suse.de>
27426
27427         * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
27428         TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
27429         (TODO_verify_all): Adjust.
27430         * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
27431         TODO_verify_stmts and TODO_verify_rtl_sharing.
27432         * bb-reorder.c: Likewise.
27433         * cfgexpand.c: Likewise.
27434         * cprop.c: Likewise.
27435         * cse.c: Likewise.
27436         * function.c: Likewise.
27437         * fwprop.c: Likewise.
27438         * gcse.c: Likewise.
27439         * gimple-ssa-isolate-paths.c: Likewise.
27440         * gimple-ssa-strength-reduction.c: Likewise.
27441         * ipa-split.c: Likewise.
27442         * loop-init.c: Likewise.
27443         * loop-unroll.c: Likewise.
27444         * lower-subreg.c: Likewise.
27445         * modulo-sched.c: Likewise.
27446         * postreload-gcse.c: Likewise.
27447         * predict.c: Likewise.
27448         * recog.c: Likewise.
27449         * sched-rgn.c: Likewise.
27450         * store-motion.c: Likewise.
27451         * tracer.c: Likewise.
27452         * trans-mem.c: Likewise.
27453         * tree-call-cdce.c: Likewise.
27454         * tree-cfg.c: Likewise.
27455         * tree-cfgcleanup.c: Likewise.
27456         * tree-complex.c: Likewise.
27457         * tree-eh.c: Likewise.
27458         * tree-emutls.c: Likewise.
27459         * tree-if-conv.c: Likewise.
27460         * tree-into-ssa.c: Likewise.
27461         * tree-loop-distribution.c: Likewise.
27462         * tree-object-size.c: Likewise.
27463         * tree-parloops.c: Likewise.
27464         * tree-pass.h: Likewise.
27465         * tree-sra.c: Likewise.
27466         * tree-ssa-ccp.c: Likewise.
27467         * tree-ssa-copy.c: Likewise.
27468         * tree-ssa-copyrename.c: Likewise.
27469         * tree-ssa-dce.c: Likewise.
27470         * tree-ssa-dom.c: Likewise.
27471         * tree-ssa-dse.c: Likewise.
27472         * tree-ssa-forwprop.c: Likewise.
27473         * tree-ssa-ifcombine.c: Likewise.
27474         * tree-ssa-loop-ch.c: Likewise.
27475         * tree-ssa-loop-ivcanon.c: Likewise.
27476         * tree-ssa-loop.c: Likewise.
27477         * tree-ssa-math-opts.c: Likewise.
27478         * tree-ssa-phiopt.c: Likewise.
27479         * tree-ssa-phiprop.c: Likewise.
27480         * tree-ssa-pre.c: Likewise.
27481         * tree-ssa-reassoc.c: Likewise.
27482         * tree-ssa-sink.c: Likewise.
27483         * tree-ssa-strlen.c: Likewise.
27484         * tree-ssa-tail-merge.c: Likewise.
27485         * tree-ssa-uncprop.c: Likewise.
27486         * tree-switch-conversion.c: Likewise.
27487         * tree-tailcall.c: Likewise.
27488         * tree-vect-generic.c: Likewise.
27489         * tree-vectorizer.c: Likewise.
27490         * tree-vrp.c: Likewise.
27491         * tsan.c: Likewise.
27492         * var-tracking.c: Likewise.
27493         * bt-load.c: Likewise.
27494         * cfgcleanup.c: Likewise.
27495         * combine-stack-adj.c: Likewise.
27496         * combine.c: Likewise.
27497         * compare-elim.c: Likewise.
27498         * config/epiphany/resolve-sw-modes.c: Likewise.
27499         * config/i386/i386.c: Likewise.
27500         * config/mips/mips.c: Likewise.
27501         * config/s390/s390.c: Likewise.
27502         * config/sh/sh_treg_combine.cc: Likewise.
27503         * config/sparc/sparc.c: Likewise.
27504         * dce.c: Likewise.
27505         * dse.c: Likewise.
27506         * final.c: Likewise.
27507         * ifcvt.c: Likewise.
27508         * mode-switching.c: Likewise.
27509         * passes.c: Likewise.
27510         * postreload.c: Likewise.
27511         * ree.c: Likewise.
27512         * reg-stack.c: Likewise.
27513         * regcprop.c: Likewise.
27514         * regrename.c: Likewise.
27515         * web.c: Likewise.
27516
27517 2014-05-06  Richard Biener  <rguenther@suse.de>
27518
27519         PR middle-end/61070
27520         * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
27521         * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
27522
27523 2014-05-05  Jan Hubicka  <hubicka@ucw.cz>
27524
27525         PR ipa/60965
27526         * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
27527
27528 2014-05-05  Radovan Obradovic  <robradovic@mips.com>
27529             Tom de Vries  <tom@codesourcery.com>
27530
27531         * target.def (call_fusage_contains_non_callee_clobbers): New
27532         DEFHOOKPOD.
27533         * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
27534         Hooks to @menu.
27535         (@node Miscellaneous Register Hooks): New node.
27536         (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
27537         * doc/tm.texi: Regenerate.
27538
27539 2014-05-05  Marek Polacek  <polacek@redhat.com>
27540
27541         PR driver/61065
27542         * opts.c (common_handle_option): Call error_at instead of warning_at.
27543
27544 2014-05-05  Richard Biener  <rguenther@suse.de>
27545
27546         * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
27547         from last_verified if update_ssa ran.  Move TODO_verify_rtl_sharing
27548         under the TODO_verify_il umbrella.
27549
27550 2014-05-05  Richard Biener  <rguenther@suse.de>
27551
27552         * passes.c (execute_function_todo): Move TODO_verify_flow under
27553         the TODO_verify_ul umbrella.
27554
27555 2014-05-05  Richard Biener  <rguenther@suse.de>
27556
27557         PR middle-end/61010
27558         * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
27559         X & CST away from a CST that is the mask of a mode.
27560
27561 2014-05-05  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27562
27563         * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
27564         int argument to enum machine_mode.
27565         (picochip_class_max_nregs): Ditto.
27566         * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
27567         (picochip_class_max_nregs): Ditto.
27568
27569 2014-05-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27570
27571         * target.def: Add new target hook.
27572         * doc/tm.texi: Regenerate.
27573         * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
27574         * targhooks.c (default_keep_leaf_when_profiled): New function.
27575
27576         * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
27577         (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
27578
27579 2014-05-05  Bin Cheng  <bin.cheng@arm.com>
27580
27581         PR tree-optimization/60363
27582         * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
27583         (copy_phi_args): New parameters.  Call get_value_locus_in_path.
27584         (update_destination_phis): New parameter.
27585         (create_edge_and_update_destination_phis): Ditto.
27586         (ssa_fix_duplicate_block_edges): Pass new arguments.
27587         (thread_single_edge): Ditto.
27588
27589 2014-05-04  Peter Bergner  <bergner@vnet.ibm.com>
27590
27591         * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
27592         (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
27593         (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
27594         * config/rs6000/rs6000-builtin.def (BU_MISC_1):
27595         Use RS6000_BTM_HARD_FLOAT.
27596         (BU_MISC_2): Likewise.
27597         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
27598         RS6000_BTM_HARD_FLOAT.
27599         (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
27600         is explicitly used.
27601         (rs6000_invalid_builtin): Add hard floating builtin support.
27602         (rs6000_expand_builtin): Relax the gcc_assert to allow the new
27603         hard float builtins.
27604         (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
27605
27606 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27607
27608         * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
27609         Add missing function* argument.
27610
27611 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27612
27613         * lra-constraints.c (valid_address_p): Move earlier in file.
27614         Add a constraint argument to the address_info version.
27615         (satisfies_memory_constraint_p): New function.
27616         (satisfies_address_constraint_p): Likewise.
27617         (process_alt_operands, curr_insn_transform): Use them.
27618         (process_address): Pass the constraint to valid_address_p when
27619         checking address operands.
27620
27621 2014-05-03  Richard Sandiford  <rdsandiford@googlemail.com>
27622
27623         * config/mips/mips.c (mips_isa_rev): New variable.
27624         (mips_set_architecture): Set it.
27625         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
27626         from mips_isa_rev.
27627         (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
27628         (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
27629         (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
27630         (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
27631         (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
27632         conditions in terms of mips_isa_rev.
27633         (mips_isa_rev): Declare.
27634
27635 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27636
27637         * config/sh/sh-mem.cc: Use tabs instead of spaces.
27638         (prob_unlikely, prob_likely): Make variables const.
27639
27640 2014-05-03  Denis Chertykov  <chertykov@gmail.com>
27641
27642         * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
27643
27644 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27645
27646         * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
27647
27648 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27649
27650         * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
27651         (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
27652         * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
27653         functions.
27654         (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
27655         sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
27656         sh_pass_in_reg_p.
27657         Replace usage of ROUND_REG with sh_round_reg.
27658         Use CEIL instead of ROUND_ADVANCE.
27659
27660 2014-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
27661
27662         PR target/61026
27663         * config/sh/sh.c: Include stdlib headers before everything else.
27664
27665 2014-05-02  Jakub Jelinek  <jakub@redhat.com>
27666
27667         * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
27668         GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
27669         (gimplify_adjust_omp_clauses): Simd region is never
27670         directly nested in combined parallel.  Instead, for linear
27671         with copyin/copyout, if in combined for simd loop, make decl
27672         firstprivate/lastprivate on OMP_FOR.
27673         * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
27674         expand_omp_for_static_chunk): When setting endvar, also set
27675         fd->loop.v to the same value.
27676
27677 2014-05-02  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
27678
27679         * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
27680
27681 2014-05-02  Alan Lawrence  <alan.lawrence@arm.com>
27682
27683         * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
27684         expression.
27685
27686 2014-05-02  Marek Polacek  <polacek@redhat.com>
27687
27688         * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
27689
27690 2014-05-02  Kito Cheng  <kito@0xlab.org>
27691
27692         * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
27693         to a C expression marco.
27694         * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
27695         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
27696         * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
27697         * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
27698         HONOR_REG_ALLOC_ORDER.
27699         * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
27700
27701 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27702
27703         * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
27704
27705 2014-05-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
27706
27707         * config/arc/arc.c (arc_select_cc_mode): Fix typo.
27708
27709 2014-05-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
27710
27711         * tree-if-conv.c (is_cond_scalar_reduction): New function.
27712         (convert_scalar_cond_reduction): Likewise.
27713         (predicate_scalar_phi): Add recognition and transformation
27714         of simple conditioanl reduction to be vectorizable.
27715
27716 2014-05-01  Marek Polacek  <polacek@redhat.com>
27717
27718         PR c/43245
27719         * doc/invoke.texi: Document -Wdiscarded-qualifiers.
27720
27721 2014-04-30  Alan Lawrence  <alan.lawrence@arm.com>
27722
27723         * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
27724         vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
27725         vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
27726         vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
27727         vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
27728         vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
27729         vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
27730         vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
27731
27732 2014-04-30  Joern Rennecke  <joern.rennecke@embecosm.com>
27733
27734         * config/arc/arc.opt (mlra): Move comment above option name
27735         to avoid mis-parsing as language options.
27736
27737 2014-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
27738
27739         * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
27740         * config/sol2.h: ... here.
27741         * config/sol2-10.h: Remove.
27742
27743         * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
27744         (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
27745         (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
27746         (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
27747         (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
27748         * config/sol2.h: ... here.
27749         (SECTION_NAME_FORMAT): Don't redefine.
27750         (STARTFILE_ARCH32_SPEC): Rename to ...
27751         (STARTFILE_ARCH_SPEC): ... this.
27752         (ASM_OUTPUT_ALIGNED_COMMON): Move ...
27753         * config/sparc/sol2.h: ... here.
27754         (SECTION_NAME_FORMAT): Don't undef.
27755         * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
27756         (SUBTARGET_EXTRA_SPECS): Remove.
27757         * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
27758
27759         * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
27760         (MD_STARTFILE_PREFIX): Remove.
27761         (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
27762         (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
27763         (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
27764         (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
27765         (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
27766         (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
27767         * config/i386/sol2.h: ... here.
27768         (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
27769         * config/i386/sol2-bi.h: Remove.
27770         * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
27771         (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
27772
27773         * config/i386/t-sol2-64: Rename to ...
27774         * config/i386/t-sol2: ... this.
27775         * config/sparc/t-sol2-64: Rename to ...
27776         * config/sparc/t-sol2: ... this.
27777
27778         * config.gcc (*-*-solaris2*): Split sol2_tm_file into
27779         sol2_tm_file_head, sol2_tm_file_tail.
27780         Include ${cpu_type}/sol2.h before sol2.h.
27781         Remove sol2-10.h.
27782         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
27783         i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
27784         Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
27785         Reflect i386/t-sol2-64 renaming.
27786         (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
27787         Reflect sparc/t-sol2-64 renaming.
27788
27789 2014-04-30  Richard Biener  <rguenther@suse.de>
27790
27791         * passes.c (execute_function_todo): Move TODO_verify_stmts
27792         and TODO_verify_ssa under the TODO_verify_il umbrella.
27793         * tree-ssa.h (verify_ssa): Adjust prototype.
27794         * tree-ssa.c (verify_ssa): Add parameter to tell whether
27795         we should verify SSA operands.
27796         * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
27797         * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
27798         whether we should verify whether not throwing stmts have EH info.
27799         * graphite-scop-detection.c (create_sese_edges): Adjust.
27800         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
27801         * tree-eh.c (lower_try_finally_switch): Do not add the
27802         default case label twice.
27803
27804 2014-04-30  Marek Polacek  <polacek@redhat.com>
27805
27806         * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
27807         * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
27808         * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
27809         * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
27810
27811 2014-04-29  Alan Lawrence  <alan.lawrence@arm.com>
27812
27813         * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
27814         vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
27815         vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
27816         vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
27817         vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
27818         vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
27819         vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
27820         vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
27821
27822 2014-04-29  David Malcolm  <dmalcolm@redhat.com>
27823
27824         * tree-cfg.c (dump_function_to_file): Dump the return type of
27825         functions, in a line to itself before the function body, mimicking
27826         the layout of a C function.
27827
27828 2014-04-29  Jakub Jelinek  <jakub@redhat.com>
27829
27830         PR tree-optimization/60971
27831         * tree-tailcall.c (process_assignment): Reject conversions which
27832         reduce precision.
27833
27834 2014-04-29  James Greenhalgh  <james.greenhalgh@arm.com>
27835
27836         * calls.c (initialize_argument_information): Always treat
27837         PUSH_ARGS_REVERSED as 1, simplify code accordingly.
27838         (expand_call): Likewise.
27839         (emit_library_call_calue_1): Likewise.
27840         * expr.c (PUSH_ARGS_REVERSED): Do not define.
27841         (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
27842         code accordingly.
27843
27844 2014-04-29  Nick Clifton  <nickc@redhat.com>
27845
27846         * config/msp430/msp430.md (umulsidi): Fix typo.
27847         (mulhisi3): Enable even inside interrupt handlers.
27848         * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
27849         bigger return address pushed in large mode.
27850
27851 2014-04-29  Nick Clifton  <nickc@redhat.com>
27852
27853         * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
27854         (arc_init_reg_tables): Use a machine_mode enum to iterate over
27855         available modes.
27856         * config/m32r/m32r.c (init_reg_tables): Likewise.
27857         * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
27858         enum to hold the modes.
27859
27860 2014-04-29  Richard Biener  <rguenther@suse.de>
27861
27862         * dominance.c (free_dominance_info): Add overload with
27863         function parameter.
27864         (dom_info_state): Likewise.
27865         (dom_info_available_p): Likewise.
27866         * basic-block.h (free_dominance_info, dom_info_state,
27867         dom_info_available_p): Declare overloads.
27868         * passes.c (execute_function_todo): Verify that verifiers
27869         don't change dominator info state.  Drop dominator info
27870         for IPA pass invocations.
27871         * cgraph.c (release_function_body): Restore asserts that
27872         dominator information is released.
27873
27874 2014-04-29  Patrick Palka  <patrick@parcs.ath.cx>
27875
27876         * doc/invoke.texi: Fix typo.
27877         * tree-vrp.c: Fix typos.
27878         * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
27879
27880 2014-04-29  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
27881
27882         * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
27883
27884 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27885
27886         * config/aarch64/aarch64-builtins.c
27887         (aarch64_types_storestruct_lane_qualifiers): New.
27888         (TYPES_STORESTRUCT_LANE): Likewise.
27889         * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
27890         (st3_lane): Likewise.
27891         (st4_lane): Likewise.
27892         * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
27893         (vec_store_lanesci_lane<mode>): Likewise.
27894         (vec_store_lanesxi_lane<mode>): Likewise.
27895         (aarch64_st2_lane<VQ:mode>): Likewise.
27896         (aarch64_st3_lane<VQ:mode>): Likewise.
27897         (aarch64_st4_lane<VQ:mode>): Likewise.
27898         * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
27899         * config/aarch64/arm_neon.h
27900         (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
27901         use new macro arguments.
27902         (__ST3_LANE_FUNC): Likewise.
27903         (__ST4_LANE_FUNC): Likewise.
27904         * config/aarch64/iterators.md (V_TWO_ELEM): New.
27905         (V_THREE_ELEM): Likewise.
27906         (V_FOUR_ELEM): Likewise.
27907
27908 2014-04-28  David Malcolm  <dmalcolm@redhat.com>
27909
27910         * doc/gimple.texi: Replace the description of the now-defunct
27911         union gimple_statement_d with a diagram showing the
27912         gimple_statement_base class hierarchy and its relationships to
27913         the GSS_ and GIMPLE_ enums.
27914
27915 2014-04-28  James Greenhalgh  <james.greenhalgh@arm.com>
27916
27917         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
27918         * config/aarch64/aarch64.c
27919         (aarch64_cannot_change_mode_class): Weaken conditions.
27920         (aarch64_modes_tieable_p): New.
27921         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
27922
27923 2014-04-28  Pat Haugen  <pthaugen@us.ibm.com>
27924
27925         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
27926         (loadsync_<mode>): Change mode.
27927         (load_quadpti, store_quadpti): New.
27928         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
27929         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
27930
27931 2014-04-28  Martin Jambor  <mjambor@suse.cz>
27932
27933         * tree-sra.c (sra_modify_expr): Generate new memory accesses with
27934         same alias type as the original statement.
27935         (subreplacement_assignment_data): New type.
27936         (handle_unscalarized_data_in_subtree): New type of parameter,
27937         generate new memory accesses with same alias type as the original
27938         statement.
27939         (load_assign_lhs_subreplacements): Likewise.
27940         (sra_modify_constructor_assign): Generate new memory accesses with
27941         same alias type as the original statement.
27942
27943 2014-04-28  Richard Biener  <rguenther@suse.de>
27944
27945         * tree-pass.h (TODO_verify_il): Define.
27946         (TODO_verify_all): Complete properly.
27947         * passes.c (execute_function_todo): Move existing loop-closed
27948         SSA verification under TODO_verify_il.
27949         (execute_one_pass): Trigger TODO_verify_il at todo-after time.
27950         * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
27951         Fix tree sharing issue.
27952
27953 2014-04-28  Richard Biener  <rguenther@suse.de>
27954
27955         PR middle-end/60092
27956         * builtins.def (DEF_C11_BUILTIN): Add.
27957         (BUILT_IN_ALIGNED_ALLOC): Likewise.
27958         * coretypes.h (enum function_class): Add function_c11_misc.
27959         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
27960         BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
27961         (call_may_clobber_ref_p_1): Likewise.
27962         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
27963         (mark_all_reaching_defs_necessary_1): Likewise.
27964         (propagate_necessity): Likewise.
27965         (eliminate_unnecessary_stmts): Likewise.
27966         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
27967
27968 2014-04-28  Richard Biener  <rguenther@suse.de>
27969
27970         * tree-vrp.c (vrp_var_may_overflow): Remove.
27971         (vrp_visit_phi_node): Rather than bumping to +-INF possibly
27972         with overflow immediately bump to one before that value and
27973         let iteration figure out overflow status.
27974
27975 2014-04-28  Richard Biener  <rguenther@suse.de>
27976
27977         * configure.ac: Do valgrind header checks unconditionally.
27978         Add --enable-valgrind-annotations.
27979         * system.h: Guard valgrind header inclusion with
27980         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
27981         * alloc-pool.c (pool_alloc, pool_free): Use
27982         ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
27983         to guard possibly dead code.
27984         * config.in: Regenerated.
27985         * configure: Likewise.
27986
27987 2014-04-28  Jeff Law  <law@redhat.com>
27988
27989         PR tree-optimization/60902
27990         * tree-ssa-threadedge.c
27991         (record_temporary_equivalences_from_stmts_at_dest): Only iterate
27992         over real defs when invalidating outputs from statements that do not
27993         produce useful outputs for threading.
27994
27995 2014-04-28  Richard Biener  <rguenther@suse.de>
27996
27997         PR tree-optimization/60979
27998         * graphite-scop-detection.c (scopdet_basic_block_info): Reject
27999         SCOPs that end in a block with a successor with abnormal
28000         predecessors.
28001
28002 2014-04-28  Richard Biener  <rguenther@suse.de>
28003
28004         * tree-pass.h (execute_pass_list): Adjust prototype.
28005         * passes.c (pass_manager::execute_early_local_passes): Adjust.
28006         (do_per_function): Change callback signature, push all actual
28007         work to the callbals.
28008         (do_per_function_toporder): Likewise.
28009         (execute_function_dump): Adjust.
28010         (execute_function_todo): Likewise.
28011         (clear_last_verified): Likewise.
28012         (verify_curr_properties): Likewise.
28013         (update_properties_after_pass): Likewise.
28014         (execute_pass_list_1): Split out from ...
28015         (execute_pass_list): ... here.  Adjust.
28016         (execute_ipa_pass_list): Likewise.
28017         * cgraphunit.c (cgraph_add_new_function): Adjust.
28018         (analyze_function): Likewise.
28019         (expand_function): Likewise.
28020         * cgraph.c (release_function_body): Free dominance info
28021         here instead of asserting it was magically freed elsewhere.
28022
28023 2014-04-28  Eric Botcazou  <ebotcazou@adacore.com>
28024
28025         * configure.ac: Tweak GAS check for LEON instructions on SPARC.
28026         * configure: Regenerate.
28027         * config/sparc/sparc.opt (muser-mode): New option.
28028         * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
28029         for LEON3.
28030         (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
28031         * doc/invoke.texi (SPARC options): Document -muser-mode.
28032
28033 2014-04-27  Richard Sandiford  <rdsandiford@googlemail.com>
28034
28035         * cselib.c (find_slot_memmode): Delete.
28036         (cselib_hasher): Change compare_type to a struct.
28037         (cselib_hasher::equal): Update accordingly.  Don't expect wrapped
28038         constants.
28039         (preserve_constants_and_equivs): Adjust for new compare_type.
28040         (cselib_find_slot): Likewise.  Take the mode of the rtx as argument.
28041         (wrap_constant): Delete.
28042         (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
28043
28044 2014-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
28045
28046         * doc/install.texi (Building with profile feedback): Remove
28047         outdated sentence.
28048
28049 2014-04-26  Tom de Vries  <tom@codesourcery.com>
28050
28051         * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
28052         array accesses.
28053
28054 2014-04-25  Cary Coutant  <ccoutant@google.com>
28055
28056         PR debug/60929
28057         * dwarf2out.c (should_move_die_to_comdat): A type definition
28058         can contain a subprogram definition, but don't move it to a
28059         comdat unit.
28060         (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
28061         (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
28062         from original DIE.
28063         (clone_tree_hash): Rename to...
28064         (clone_tree_partial): ...this; change callers.  Copy
28065         DW_TAG_subprogram DIEs as declarations.
28066         (copy_decls_walk): Don't copy children of a declaration into a
28067         type unit.
28068
28069 2014-04-25  H.J. Lu  <hongjiu.lu@intel.com>
28070
28071         PR target/60969
28072         * config/i386/i386.md (*movsf_internal): Set MODE to SI for
28073         alternative 12.
28074
28075 2014-04-25  Jiong Wang  <jiong.wang@arm.com>
28076
28077         * config/arm/predicates.md (call_insn_operand): Add long_call check.
28078         * config/arm/arm.md (sibcall, sibcall_value): Force the address to
28079         reg for long_call.
28080         * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
28081         restriction.
28082
28083 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28084
28085         * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
28086
28087 2014-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
28088
28089         PR tree-optimization/60930
28090         * gimple-ssa-strength-reduction.c (create_mul_imm_cand):  Reject
28091         creating a multiply candidate by folding two constant
28092         multiplicands when the result overflows.
28093
28094 2014-04-25  Jakub Jelinek  <jakub@redhat.com>
28095
28096         PR tree-optimization/60960
28097         * tree-vect-generic.c (expand_vector_operation): Only call
28098         expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
28099
28100 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28101
28102         * expr.c (clobber_reg_mode): New function.
28103         * expr.h (clobber_reg): New function.
28104
28105 2014-04-25  Tom de Vries  <tom@codesourcery.com>
28106
28107         * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
28108         clobbers.
28109
28110 2014-04-25  Radovan Obradovic  <robradovic@mips.com>
28111             Tom de Vries  <tom@codesourcery.com>
28112
28113         * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
28114         handle.
28115         * rtl.h (find_all_hard_reg_sets): Add bool parameter.
28116         * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
28117         new argument to find_all_hard_reg_sets call.
28118
28119 2014-04-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28120
28121         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
28122         Use HOST_WIDE_INT_C for mask literal.
28123         (aarch_rev16_shleft_mask_imm_p): Likewise.
28124
28125 2014-04-25  Eric Botcazou  <ebotcazou@adacore.com>
28126
28127         PR target/60941
28128         * config/sparc/sparc.md (ashlsi3_extend): Delete.
28129
28130 2014-04-25  Marc Glisse  <marc.glisse@inria.fr>
28131
28132         PR preprocessor/56540
28133         * config/i386/i386-c.c (ix86_target_macros): Define
28134         __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
28135
28136 2014-04-25  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28137
28138         * configure.ac (tga_func): Remove.
28139         (LIB_TLS_SPEC): Remove.
28140         * configure: Regenerate.
28141         * config.in: Regenerate.
28142         * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
28143
28144 2014-04-25  Richard Biener  <rguenther@suse.de>
28145
28146         PR ipa/60912
28147         * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
28148         call stmt use/clobber sets during stmt walk instead of
28149         walking the possibly incomplete set of caller edges.
28150
28151 2014-04-25  Richard Biener  <rguenther@suse.de>
28152
28153         PR ipa/60911
28154         * passes.c (apply_ipa_transforms): Inline into only caller ...
28155         (execute_one_pass): ... here.  Properly bring in function
28156         bodies for nodes we want to apply IPA transforms to.
28157
28158 2014-04-24  Cong Hou  <congh@google.com>
28159
28160         PR tree-optimization/60896
28161         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
28162         all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
28163         (vect_mark_pattern_stmts): Set the def type of all statements in
28164         PATTERN_DEF_SEQ as vect_internal_def.
28165
28166 2014-04-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
28167
28168         * doc/extend.texi (PowerPC Built-in Functions): Document new
28169         powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
28170         (PowerPC AltiVec/VSX Built-in Functions): Likewise.
28171
28172         * config/rs6000/predicates.md (const_0_to_3_operand): New
28173         predicate to match 0..3 integer constants.
28174
28175         * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
28176         to support adding miscellaneous builtin functions.
28177         (BU_DFP_MISC_2): Likewise.
28178         (BU_P7_MISC_1): Likewise.
28179         (BU_P7_MISC_2): Likewise.
28180         (BU_P8V_MISC_3): Likewise.
28181         (BU_MISC_1): Likewise.
28182         (BU_MISC_2): Likewise.
28183         (DIVWE): Add extended divide builtin functions.
28184         (DIVWEO): Likewise.
28185         (DIVWEU): Likewise.
28186         (DIVWEUO): Likewise.
28187         (DIVDE): Likewise.
28188         (DIVDEO): Likewise.
28189         (DIVDEU): Likewise.
28190         (DIVDEUO): Likewise.
28191         (DXEX): Add decimal floating-point builtin functions.
28192         (DXEXQ): Likewise.
28193         (DDEDPD): Likewise.
28194         (DDEDPDQ): Likewise.
28195         (DENBCD): Likewise.
28196         (DENBCDQ): Likewise.
28197         (DIEX): Likewise.
28198         (DIEXQ): Likewise.
28199         (DSCLI): Likewise.
28200         (DSCLIQ): Likewise.
28201         (DSCRI): Likewise.
28202         (DSCRIQ): Likewise.
28203         (CDTBCD): Add new BCD builtin functions.
28204         (CBCDTD): Likewise.
28205         (ADDG6S): Likewise.
28206         (BCDADD): Likewise.
28207         (BCDADD_LT): Likewise.
28208         (BCDADD_EQ): Likewise.
28209         (BCDADD_GT): Likewise.
28210         (BCDADD_OV): Likewise.
28211         (BCDSUB): Likewise.
28212         (BCDSUB_LT): Likewise.
28213         (BCDSUB_EQ): Likewise.
28214         (BCDSUB_GT): Likewise.
28215         (BCDSUB_OV): Likewise.
28216         (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
28217         (UNPACK_TD): Likewise.
28218         (PACK_TF): Likewise.
28219         (UNPACK_TF): Likewise.
28220         (UNPACK_TF_0): Likewise.
28221         (UNPACK_TF_1): Likewise.
28222         (PACK_V1TI): Likewise.
28223         (UNPACK_V1TI): Likewise.
28224
28225         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
28226         support for decimal floating point builtin functions.
28227         (rs6000_expand_ternop_builtin): Add checks for the new builtin
28228         functions that take constant arguments.
28229         (rs6000_invalid_builtin): Add decimal floating point builtin support.
28230         (rs6000_init_builtins): Setup long double, _Decimal64, and
28231         _Decimal128 types for new builtin functions.
28232         (builtin_function_type): Set the unsigned flags appropriately for
28233         the new builtin functions.
28234         (rs6000_opt_masks): Add support for decimal floating point builtin
28235         functions.
28236
28237         * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
28238         floating point builtin functions.
28239         (RS6000_BTM_COMMON): Likewise.
28240         (RS6000_BTI_long_double): Likewise.
28241         (RS6000_BTI_dfloat64): Likewise.
28242         (RS6000_BTI_dfloat128): Likewise.
28243         (long_double_type_internal_node): Likewise.
28244         (dfloat64_type_internal_node): Likewise.
28245         (dfloat128_type_internal_node): Likewise.
28246
28247         * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
28248         2.07 bcd arithmetic instructions.
28249         (UNSPEC_BCDSUB): Likewise.
28250         (UNSPEC_BCD_OVERFLOW): Likewise.
28251         (UNSPEC_BCD_ADD_SUB): Likewise.
28252         (bcd_add_sub): Likewise.
28253         (BCD_TEST): Likewise.
28254         (bcd<bcd_add_sub>): Likewise.
28255         (bcd<bcd_add_sub>_test): Likewise.
28256         (bcd<bcd_add_sub>_test2): Likewise.
28257         (bcd<bcd_add_sub>_<code>): Likewise.
28258         (peephole2 for combined bcd ops): Likewise.
28259
28260         * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
28261         decimal floating point builtin functions.
28262         (UNSPEC_DENBCD): Likewise.
28263         (UNSPEC_DXEX): Likewise.
28264         (UNSPEC_DIEX): Likewise.
28265         (UNSPEC_DSCLI): Likewise.
28266         (UNSPEC_DSCRI): Likewise.
28267         (D64_D128): Likewise.
28268         (dfp_suffix): Likewise.
28269         (dfp_ddedpd_<mode>): Likewise.
28270         (dfp_denbcd_<mode>): Likewise.
28271         (dfp_dxex_<mode>): Likewise.
28272         (dfp_diex_<mode>): Likewise.
28273         (dfp_dscli_<mode>): Likewise.
28274         (dfp_dscri_<mode>): Likewise.
28275
28276         * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
28277         builtin functions.
28278         (UNSPEC_CDTBCD): Likewise.
28279         (UNSPEC_CBCDTD): Likewise.
28280         (UNSPEC_DIVE): Add support for new extended divide builtin functions.
28281         (UNSPEC_DIVEO): Likewise.
28282         (UNSPEC_DIVEU): Likewise.
28283         (UNSPEC_DIVEUO): Likewise.
28284         (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
28285         pack/unpack 128-bit types.
28286         (UNSPEC_PACK_128BIT): Likewise.
28287         (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
28288         (udiv<mode>3): Use idiv_ldiv mode attribute.
28289         (div<mode>3): Likewise.
28290         (addg6s): Add new BCD builtin functions.
28291         (cdtbcd): Likewise.
28292         (cbcdtd): Likewise.
28293         (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
28294         (div_extend): Likewise.
28295         (div<div_extend>_<mode>"): Likewise.
28296         (FP128_64): Add support for new builtin functions to pack/unpack
28297         128-bit types.
28298         (unpack<mode>): Likewise.
28299         (unpacktf_0): Likewise.
28300         (unpacktf_1): Likewise.
28301         (unpack<mode>_dm): Likewise.
28302         (unpack<mode>_nodm): Likewise.
28303         (pack<mode>): Likewise.
28304         (unpackv1ti): Likewise.
28305         (packv1ti): Likewise.
28306
28307 2014-04-24  Vishnu K S  <Vishnu.k_s@atmel.com>
28308
28309         * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
28310         is disabled.
28311
28312 2014-04-24  Jakub Jelinek  <jakub@redhat.com>
28313
28314         * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
28315         * gimplify.c (omp_is_private): Change last argument's type to int.
28316         Only diagnose lastprivate if the simd argument is 1, only diagnose
28317         linear if the simd argument is 2.
28318         (gimplify_omp_for): Adjust omp_is_private callers.  When adding
28319         lastprivate or private, add the clause to OMP_FOR_CLAUSES.  Pass
28320         GOVD_EXPLICIT to omp_add_variable.  For simd with collapse == 1
28321         create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
28322         If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
28323         increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28324         * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
28325         OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
28326         * tree-nested.c (convert_nonlocal_omp_clauses,
28327         convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
28328
28329 2014-04-24  Segher Boessenkool  <segher@kernel.crashing.org>
28330
28331         PR target/60822
28332         * config/m68k/m68k.md (extendplussidi): Don't allow memory for
28333         operand 1.
28334
28335 2014-04-24  Dimitris Papavasiliou  <dpapavas@gmail.com>
28336
28337         * flag-types.h (enum ivar_visibility): Add.
28338
28339 2014-04-24  Trevor Saunders  <tsaunders@mozilla.com>
28340
28341         * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
28342         function * argument.
28343
28344 2014-04-24  Alan Lawrence  <alan.lawrence@arm.com>
28345
28346         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
28347
28348 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28349             Tom de Vries  <tom@codesourcery.com>
28350
28351         * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
28352         * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
28353         reg-note.
28354         * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
28355         * emit-rtl.c (try_split): Same.
28356
28357 2014-04-24  Radovan Obradovic  <robradovic@mips.com>
28358             Tom de Vries  <tom@codesourcery.com>
28359
28360         * common.opt (fuse-caller-save): New option.
28361
28362 2014-04-24  Tejas Belagod  <tejas.belagod@arm.com>
28363
28364         * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
28365         elements for big-endian.
28366
28367 2014-04-24  Richard Biener  <rguenther@suse.de>
28368
28369         * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
28370         during TER and instead use the sepops interface for expanding
28371         non-GIMPLE_SINGLE_RHS.
28372
28373 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28374
28375         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
28376         if not HAVE_AS_IX86_DIFF_SECT_DELTA.
28377
28378 2014-04-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
28379
28380         * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
28381         assembler 64-bit option.
28382         * configure: Regenerate.
28383
28384 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28385
28386         * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
28387         TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
28388         (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
28389         (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
28390         (TARGET_CRYPTO): Take TARGET_SIMD into account.
28391
28392 2014-04-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28393
28394         * config/aarch64/aarch64-builtins.c
28395         (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
28396         BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
28397         * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
28398         * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
28399         builtins.
28400         * config/aarch64/iterator.md (VDQHSD): New mode iterator.
28401         (Vrevsuff): New mode attribute.
28402
28403 2014-04-24  Terry Guo  <terry.guo@arm.com>
28404
28405         * config/arm/arm.h (machine_function): Define variable
28406         after_arm_reorg here.
28407         * config/arm/arm.c (after_arm_reorg): Remove the definition.
28408         (arm_split_constant): Update the way to access variable
28409         after_arm_reorg.
28410         (arm_reorg): Ditto.
28411         (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
28412
28413 2014-04-23  Tom de Vries  <tom@codesourcery.com>
28414
28415         * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
28416
28417 2014-04-23  David Malcolm  <dmalcolm@redhat.com>
28418
28419         * is-a.h: Update comments to reflect the following changes to the
28420         "pointerness" of the API, making the template parameter match the
28421         return type, allowing use of is-a.h with typedefs of pointers.
28422         (is_a_helper::cast): Return a T rather then a pointer to a T, so
28423         that the return type matches the parameter to the is_a_helper.
28424         (as_a): Likewise.
28425         (dyn_cast): Likewise.
28426
28427         * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
28428         pointer from the is-a.h API.
28429
28430         * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
28431         (is_a_helper <cgraph_node *>::test): ...this, matching change to
28432         is-a.h API.
28433         (is_a_helper <varpool_node>::test): Likewise, convert to...
28434         (is_a_helper <varpool_node *>::test): ...this.
28435
28436         (varpool_first_variable): Update for removal of implicit pointer
28437         from the is-a.h API.
28438         (varpool_next_variable): Likewise.
28439         (varpool_first_static_initializer): Likewise.
28440         (varpool_next_static_initializer): Likewise.
28441         (varpool_first_defined_variable): Likewise.
28442         (varpool_next_defined_variable): Likewise.
28443         (cgraph_first_defined_function): Likewise.
28444         (cgraph_next_defined_function): Likewise.
28445         (cgraph_first_function): Likewise.
28446         (cgraph_next_function): Likewise.
28447         (cgraph_first_function_with_gimple_body): Likewise.
28448         (cgraph_next_function_with_gimple_body): Likewise.
28449         (cgraph_alias_target): Likewise.
28450         (varpool_alias_target): Likewise.
28451         (cgraph_function_or_thunk_node): Likewise.
28452         (varpool_variable_node): Likewise.
28453         (symtab_real_symbol_p): Likewise.
28454         * cgraphunit.c (referred_to_p): Likewise.
28455         (analyze_functions): Likewise.
28456         (handle_alias_pairs): Likewise.
28457         * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
28458         * gimple-ssa.h (gimple_vuse_op): Likewise.
28459         (gimple_vdef_op): Likewise.
28460         * gimple-streamer-in.c (input_gimple_stmt): Likewise.
28461         * gimple.c (gimple_build_asm_1): Likewise.
28462         (gimple_build_try): Likewise.
28463         (gimple_build_resx): Likewise.
28464         (gimple_build_eh_dispatch): Likewise.
28465         (gimple_build_omp_for): Likewise.
28466         (gimple_omp_for_set_clauses): Likewise.
28467
28468         * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
28469         (is_a_helper <gimple_statement_asm *>::test): ...this.
28470         (is_a_helper <gimple_statement_bind>::test): Convert to...
28471         (is_a_helper <gimple_statement_bind *>::test): ...this.
28472         (is_a_helper <gimple_statement_call>::test): Convert to...
28473         (is_a_helper <gimple_statement_call *>::test): ...this.
28474         (is_a_helper <gimple_statement_catch>::test): Convert to...
28475         (is_a_helper <gimple_statement_catch *>::test): ...this.
28476         (is_a_helper <gimple_statement_resx>::test): Convert to...
28477         (is_a_helper <gimple_statement_resx *>::test): ...this.
28478         (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
28479         (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
28480         (is_a_helper <gimple_statement_eh_else>::test): Convert to...
28481         (is_a_helper <gimple_statement_eh_else *>::test): ...this.
28482         (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
28483         (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
28484         (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
28485         (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
28486         (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
28487         (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
28488         (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
28489         (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
28490         (is_a_helper <gimple_statement_omp_return>::test): Convert to...
28491         (is_a_helper <gimple_statement_omp_return *>::test): ...this.
28492         (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
28493         (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
28494         (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
28495         (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
28496         (is_a_helper <gimple_statement_omp_for>::test): Convert to...
28497         (is_a_helper <gimple_statement_omp_for *>::test): ...this.
28498         (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
28499         (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
28500         (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
28501         (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
28502         (is_a_helper <gimple_statement_omp_target>::test): Convert to...
28503         (is_a_helper <gimple_statement_omp_target *>::test): ...this.
28504         (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
28505         (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
28506         (is_a_helper <gimple_statement_omp_single>::test): Convert to...
28507         (is_a_helper <gimple_statement_omp_single *>::test): ...this.
28508         (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
28509         (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
28510         (is_a_helper <gimple_statement_omp_task>::test): Convert to...
28511         (is_a_helper <gimple_statement_omp_task *>::test): ...this.
28512         (is_a_helper <gimple_statement_phi>::test): Convert to...
28513         (is_a_helper <gimple_statement_phi *>::test): ...this.
28514         (is_a_helper <gimple_statement_transaction>::test): Convert to...
28515         (is_a_helper <gimple_statement_transaction *>::test): ...this.
28516         (is_a_helper <gimple_statement_try>::test): Convert to...
28517         (is_a_helper <gimple_statement_try *>::test): ...this.
28518         (is_a_helper <gimple_statement_wce>::test): Convert to...
28519         (is_a_helper <gimple_statement_wce *>::test): ...this.
28520         (is_a_helper <const gimple_statement_asm>::test): Convert to...
28521         (is_a_helper <const gimple_statement_asm *>::test): ...this.
28522         (is_a_helper <const gimple_statement_bind>::test): Convert to...
28523         (is_a_helper <const gimple_statement_bind *>::test): ...this.
28524         (is_a_helper <const gimple_statement_call>::test): Convert to...
28525         (is_a_helper <const gimple_statement_call *>::test): ...this.
28526         (is_a_helper <const gimple_statement_catch>::test): Convert to...
28527         (is_a_helper <const gimple_statement_catch *>::test): ...this.
28528         (is_a_helper <const gimple_statement_resx>::test): Convert to...
28529         (is_a_helper <const gimple_statement_resx *>::test): ...this.
28530         (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
28531         (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
28532         (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
28533         (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
28534         (is_a_helper <const gimple_statement_omp_atomic_load>::test):
28535         Convert to...
28536         (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
28537         ...this.
28538         (is_a_helper <const gimple_statement_omp_atomic_store>::test):
28539         Convert to...
28540         (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
28541         ...this.
28542         (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
28543         (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
28544         (is_a_helper <const gimple_statement_omp_continue>::test): Convert
28545         to...
28546         (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
28547         (is_a_helper <const gimple_statement_omp_critical>::test): Convert
28548         to...
28549         (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
28550         (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
28551         (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
28552         (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
28553         (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
28554         (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
28555         to...
28556         (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
28557         (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
28558         (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
28559         (is_a_helper <const gimple_statement_omp_sections>::test): Convert
28560         to...
28561         (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
28562         (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
28563         (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
28564         (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
28565         (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
28566         (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
28567         (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
28568         (is_a_helper <const gimple_statement_phi>::test): Convert to...
28569         (is_a_helper <const gimple_statement_phi *>::test): ...this.
28570         (is_a_helper <const gimple_statement_transaction>::test): Convert to...
28571         (is_a_helper <const gimple_statement_transaction *>::test): ...this.
28572         (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
28573         (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
28574         (is_a_helper <gimple_statement_with_ops>::test): Convert to...
28575         (is_a_helper <gimple_statement_with_ops *>::test): ...this.
28576         (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
28577         to...
28578         (is_a_helper <const gimple_statement_with_memory_ops *>::test):
28579         ...this.
28580         (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
28581         (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
28582
28583         (gimple_use_ops): Update for removal of implicit pointer from the
28584         is-a.h API.
28585         (gimple_set_use_ops): Likewise.
28586         (gimple_vuse): Likewise.
28587         (gimple_vdef): Likewise.
28588         (gimple_vuse_ptr): Likewise.
28589         (gimple_vdef_ptr): Likewise.
28590         (gimple_set_vuse): Likewise.
28591         (gimple_set_vdef): Likewise.
28592         (gimple_omp_return_set_lhs): Likewise.
28593         (gimple_omp_return_lhs): Likewise.
28594         (gimple_omp_return_lhs_ptr): Likewise.
28595         (gimple_call_fntype): Likewise.
28596         (gimple_call_set_fntype): Likewise.
28597         (gimple_call_set_internal_fn): Likewise.
28598         (gimple_call_use_set): Likewise.
28599         (gimple_call_clobber_set): Likewise.
28600         (gimple_bind_vars): Likewise.
28601         (gimple_bind_set_vars): Likewise.
28602         (gimple_bind_body_ptr): Likewise.
28603         (gimple_bind_set_body): Likewise.
28604         (gimple_bind_add_stmt): Likewise.
28605         (gimple_bind_block): Likewise.
28606         (gimple_bind_set_block): Likewise.
28607         (gimple_asm_ninputs): Likewise.
28608         (gimple_asm_noutputs): Likewise.
28609         (gimple_asm_nclobbers): Likewise.
28610         (gimple_asm_nlabels): Likewise.
28611         (gimple_asm_input_op): Likewise.
28612         (gimple_asm_input_op_ptr): Likewise.
28613         (gimple_asm_output_op): Likewise.
28614         (gimple_asm_output_op_ptr): Likewise.
28615         (gimple_asm_set_output_op): Likewise.
28616         (gimple_asm_clobber_op): Likewise.
28617         (gimple_asm_set_clobber_op): Likewise.
28618         (gimple_asm_label_op): Likewise.
28619         (gimple_asm_set_label_op): Likewise.
28620         (gimple_asm_string): Likewise.
28621         (gimple_catch_types): Likewise.
28622         (gimple_catch_types_ptr): Likewise.
28623         (gimple_catch_handler_ptr): Likewise.
28624         (gimple_catch_set_types): Likewise.
28625         (gimple_catch_set_handler): Likewise.
28626         (gimple_eh_filter_types): Likewise.
28627         (gimple_eh_filter_types_ptr): Likewise.
28628         (gimple_eh_filter_failure_ptr): Likewise.
28629         (gimple_eh_filter_set_types): Likewise.
28630         (gimple_eh_filter_set_failure): Likewise.
28631         (gimple_eh_must_not_throw_fndecl): Likewise.
28632         (gimple_eh_must_not_throw_set_fndecl): Likewise.
28633         (gimple_eh_else_n_body_ptr): Likewise.
28634         (gimple_eh_else_e_body_ptr): Likewise.
28635         (gimple_eh_else_set_n_body): Likewise.
28636         (gimple_eh_else_set_e_body): Likewise.
28637         (gimple_try_eval_ptr): Likewise.
28638         (gimple_try_cleanup_ptr): Likewise.
28639         (gimple_try_set_eval): Likewise.
28640         (gimple_try_set_cleanup): Likewise.
28641         (gimple_wce_cleanup_ptr): Likewise.
28642         (gimple_wce_set_cleanup): Likewise.
28643         (gimple_phi_capacity): Likewise.
28644         (gimple_phi_num_args): Likewise.
28645         (gimple_phi_result): Likewise.
28646         (gimple_phi_result_ptr): Likewise.
28647         (gimple_phi_set_result): Likewise.
28648         (gimple_phi_arg): Likewise.
28649         (gimple_phi_set_arg): Likewise.
28650         (gimple_resx_region): Likewise.
28651         (gimple_resx_set_region): Likewise.
28652         (gimple_eh_dispatch_region): Likewise.
28653         (gimple_eh_dispatch_set_region): Likewise.
28654         (gimple_omp_critical_name): Likewise.
28655         (gimple_omp_critical_name_ptr): Likewise.
28656         (gimple_omp_critical_set_name): Likewise.
28657         (gimple_omp_for_clauses): Likewise.
28658         (gimple_omp_for_clauses_ptr): Likewise.
28659         (gimple_omp_for_set_clauses): Likewise.
28660         (gimple_omp_for_collapse): Likewise.
28661         (gimple_omp_for_index): Likewise.
28662         (gimple_omp_for_index_ptr): Likewise.
28663         (gimple_omp_for_set_index): Likewise.
28664         (gimple_omp_for_initial): Likewise.
28665         (gimple_omp_for_initial_ptr): Likewise.
28666         (gimple_omp_for_set_initial): Likewise.
28667         (gimple_omp_for_final): Likewise.
28668         (gimple_omp_for_final_ptr): Likewise.
28669         (gimple_omp_for_set_final): Likewise.
28670         (gimple_omp_for_incr): Likewise.
28671         (gimple_omp_for_incr_ptr): Likewise.
28672         (gimple_omp_for_set_incr): Likewise.
28673         (gimple_omp_for_pre_body_ptr): Likewise.
28674         (gimple_omp_for_set_pre_body): Likewise.
28675         (gimple_omp_parallel_clauses): Likewise.
28676         (gimple_omp_parallel_clauses_ptr): Likewise.
28677         (gimple_omp_parallel_set_clauses): Likewise.
28678         (gimple_omp_parallel_child_fn): Likewise.
28679         (gimple_omp_parallel_child_fn_ptr): Likewise.
28680         (gimple_omp_parallel_set_child_fn): Likewise.
28681         (gimple_omp_parallel_data_arg): Likewise.
28682         (gimple_omp_parallel_data_arg_ptr): Likewise.
28683         (gimple_omp_parallel_set_data_arg): Likewise.
28684         (gimple_omp_task_clauses): Likewise.
28685         (gimple_omp_task_clauses_ptr): Likewise.
28686         (gimple_omp_task_set_clauses): Likewise.
28687         (gimple_omp_task_child_fn): Likewise.
28688         (gimple_omp_task_child_fn_ptr): Likewise.
28689         (gimple_omp_task_set_child_fn): Likewise.
28690         (gimple_omp_task_data_arg): Likewise.
28691         (gimple_omp_task_data_arg_ptr): Likewise.
28692         (gimple_omp_task_set_data_arg): Likewise.
28693         (gimple_omp_taskreg_clauses): Likewise.
28694         (gimple_omp_taskreg_clauses_ptr): Likewise.
28695         (gimple_omp_taskreg_set_clauses): Likewise.
28696         (gimple_omp_taskreg_child_fn): Likewise.
28697         (gimple_omp_taskreg_child_fn_ptr): Likewise.
28698         (gimple_omp_taskreg_set_child_fn): Likewise.
28699         (gimple_omp_taskreg_data_arg): Likewise.
28700         (gimple_omp_taskreg_data_arg_ptr): Likewise.
28701         (gimple_omp_taskreg_set_data_arg): Likewise.
28702         (gimple_omp_task_copy_fn): Likewise.
28703         (gimple_omp_task_copy_fn_ptr): Likewise.
28704         (gimple_omp_task_set_copy_fn): Likewise.
28705         (gimple_omp_task_arg_size): Likewise.
28706         (gimple_omp_task_arg_size_ptr): Likewise.
28707         (gimple_omp_task_set_arg_size): Likewise.
28708         (gimple_omp_task_arg_align): Likewise.
28709         (gimple_omp_task_arg_align_ptr): Likewise.
28710         (gimple_omp_task_set_arg_align): Likewise.
28711         (gimple_omp_single_clauses): Likewise.
28712         (gimple_omp_single_clauses_ptr): Likewise.
28713         (gimple_omp_single_set_clauses): Likewise.
28714         (gimple_omp_target_clauses): Likewise.
28715         (gimple_omp_target_clauses_ptr): Likewise.
28716         (gimple_omp_target_set_clauses): Likewise.
28717         (gimple_omp_target_child_fn): Likewise.
28718         (gimple_omp_target_child_fn_ptr): Likewise.
28719         (gimple_omp_target_set_child_fn): Likewise.
28720         (gimple_omp_target_data_arg): Likewise.
28721         (gimple_omp_target_data_arg_ptr): Likewise.
28722         (gimple_omp_target_set_data_arg): Likewise.
28723         (gimple_omp_teams_clauses): Likewise.
28724         (gimple_omp_teams_clauses_ptr): Likewise.
28725         (gimple_omp_teams_set_clauses): Likewise.
28726         (gimple_omp_sections_clauses): Likewise.
28727         (gimple_omp_sections_clauses_ptr): Likewise.
28728         (gimple_omp_sections_set_clauses): Likewise.
28729         (gimple_omp_sections_control): Likewise.
28730         (gimple_omp_sections_control_ptr): Likewise.
28731         (gimple_omp_sections_set_control): Likewise.
28732         (gimple_omp_for_set_cond): Likewise.
28733         (gimple_omp_for_cond): Likewise.
28734         (gimple_omp_atomic_store_set_val): Likewise.
28735         (gimple_omp_atomic_store_val): Likewise.
28736         (gimple_omp_atomic_store_val_ptr): Likewise.
28737         (gimple_omp_atomic_load_set_lhs): Likewise.
28738         (gimple_omp_atomic_load_lhs): Likewise.
28739         (gimple_omp_atomic_load_lhs_ptr): Likewise.
28740         (gimple_omp_atomic_load_set_rhs): Likewise.
28741         (gimple_omp_atomic_load_rhs): Likewise.
28742         (gimple_omp_atomic_load_rhs_ptr): Likewise.
28743         (gimple_omp_continue_control_def): Likewise.
28744         (gimple_omp_continue_control_def_ptr): Likewise.
28745         (gimple_omp_continue_set_control_def): Likewise.
28746         (gimple_omp_continue_control_use): Likewise.
28747         (gimple_omp_continue_control_use_ptr): Likewise.
28748         (gimple_omp_continue_set_control_use): Likewise.
28749         (gimple_transaction_body_ptr): Likewise.
28750         (gimple_transaction_label): Likewise.
28751         (gimple_transaction_label_ptr): Likewise.
28752         (gimple_transaction_set_body): Likewise.
28753         (gimple_transaction_set_label): Likewise.
28754
28755         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
28756         * ipa-inline-analysis.c (inline_write_summary): Likewise.
28757         * ipa-ref.c (ipa_record_reference): Likewise.
28758         * ipa-reference.c (analyze_function): Likewise.
28759         (ipa_reference_write_optimization_summary): Likewise.
28760         * ipa.c (symtab_remove_unreachable_nodes): Likewise.
28761         (address_taken_from_non_vtable_p): Likewise.
28762         (comdat_can_be_unshared_p_1): Likewise.
28763         * lto-cgraph.c (lto_output_ref): Likewise.
28764         (add_references): Likewise.
28765         (compute_ltrans_boundary): Likewise.
28766         (output_symtab): Likewise.
28767         (input_ref): Likewise.
28768         (input_cgraph_1): Likewise.
28769         (output_cgraph_opt_summary): Likewise.
28770         * lto-streamer-out.c (lto_output): Likewise.
28771         (output_symbol_p): Likewise.
28772         * lto-streamer.h (lsei_next_function_in_partition): Likewise.
28773         (lsei_start_function_in_partition): Likewise.
28774         (lsei_next_variable_in_partition): Likewise.
28775         (lsei_start_variable_in_partition): Likewise.
28776         * symtab.c (insert_to_assembler_name_hash): Likewise.
28777         (unlink_from_assembler_name_hash): Likewise.
28778         (symtab_unregister_node): Likewise.
28779         (symtab_remove_node): Likewise.
28780         (dump_symtab_node): Likewise.
28781         (verify_symtab_base): Likewise.
28782         (verify_symtab_node): Likewise.
28783         (symtab_make_decl_local): Likewise.
28784         (symtab_alias_ultimate_target): Likewise.
28785         (symtab_resolve_alias): Likewise.
28786         (symtab_get_symbol_partitioning_class): Likewise.
28787         * tree-phinodes.c (allocate_phi_node): Likewise.
28788         (reserve_phi_args_for_new_edge): Likewise.
28789         (remove_phi_args): Likewise.
28790         * varpool.c (varpool_node_for_asm): Likewise.
28791         (varpool_remove_unreferenced_decls): Likewise.
28792
28793 2014-04-23  Jeff Law  <law@redhat.com>
28794
28795         PR tree-optimization/60902
28796         * tree-ssa-threadedge.c
28797         (record_temporary_equivalences_from_stmts_at_dest): Make sure to
28798         invalidate outputs from statements that do not produce useful
28799         outputs for threading.
28800
28801 2014-04-23  Venkataramanan Kumar  <venkataramanan.kumar@linaro.org>
28802
28803         * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
28804         (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
28805         machine descriptions for Stack Smashing Protector.
28806
28807 2014-04-23  Richard Earnshaw  <rearnsha@arm.com>
28808
28809         * aarch64.md (<optab>_rol<mode>3): New pattern.
28810         (<optab>_rolsi3_uxtw): Likewise.
28811         * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
28812
28813 2014-04-23  James Greenhalgh  <james.greenhalgh@arm.com>
28814
28815         * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
28816         (arm_cortex_a12_tune): Likewise.
28817
28818 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28819
28820         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
28821
28822 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28823
28824         * config/arm/arm.md (arm_rev16si2): New pattern.
28825         (arm_rev16si2_alt): Likewise.
28826         * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
28827
28828 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28829
28830         * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
28831         (rev16<mode>2_alt): Likewise.
28832         * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
28833         * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
28834         (aarch_rev16_shleft_mask_imm_p): Likewise.
28835         (aarch_rev16_p_1): Likewise.
28836         (aarch_rev16_p): Likewise.
28837         * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
28838         (aarch_rev16_shright_mask_imm_p): Likewise.
28839         (aarch_rev16_shleft_mask_imm_p): Likewise.
28840
28841 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28842
28843         * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
28844         * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
28845         rev cost.
28846         (cortex_a53_extra_costs): Likewise.
28847         (cortex_a57_extra_costs): Likewise.
28848         * config/arm/arm.c (cortexa9_extra_costs): Likewise.
28849         (cortexa7_extra_costs): Likewise.
28850         (cortexa8_extra_costs): Likewise.
28851         (cortexa12_extra_costs): Likewise.
28852         (cortexa15_extra_costs): Likewise.
28853         (v7m_extra_costs): Likewise.
28854         (arm_new_rtx_costs): Handle BSWAP.
28855
28856 2013-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28857
28858         * config/arm/arm.c (cortexa8_extra_costs): New table.
28859         (arm_cortex_a8_tune): New tuning struct.
28860         * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
28861
28862 2014-04-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28863
28864         * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
28865
28866 2014-04-23  Richard Biener  <rguenther@suse.de>
28867
28868         * Makefile.in (OBJS): Remove loop-unswitch.o.
28869         * tree-pass.h (make_pass_rtl_unswitch): Remove.
28870         * passes.def (pass_rtl_unswitch): Likewise.
28871         * loop-init.c (gate_rtl_unswitch): Likewise.
28872         (rtl_unswitch): Likewise.
28873         (pass_data_rtl_unswitch): Likewise.
28874         (pass_rtl_unswitch): Likewise.
28875         (make_pass_rtl_unswitch): Likewise.
28876         * rtl.h (reversed_condition): Likewise.
28877         (compare_and_jump_seq): Likewise.
28878         * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
28879         and make static.
28880         * loop-unroll.c (compare_and_jump_seq): Likewise.
28881
28882 2014-04-23  Richard Biener  <rguenther@suse.de>
28883
28884         PR tree-optimization/60903
28885         * tree-ssa-loop-im.c (analyze_memory_references): Remove
28886         commented code block.
28887         (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
28888         loop flags to newly created BBs and edges.
28889
28890 2014-04-23  Nick Clifton  <nickc@redhat.com>
28891
28892         * config/msp430/msp430.c (msp430_handle_option): Move function
28893         to msp430-common.c
28894         (msp430_option_override): Simplify mcu and mcpu option handling.
28895         (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult.  Add
28896         support for -mhwmult command line option.
28897         (has_32bit_hwmult): Rename to use_32bit_hwmult.  Add support for
28898         -mhwmult command line option.
28899         (msp430_hwmult_enabled): Delete.
28900         (msp43o_output_labelref): Add support for -mhwmult command line option.
28901         * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
28902         (umulsidi3): Likewise.
28903         * config/msp430/msp430.opt (mmcu): Add Report attribute.
28904         (mcpu, mlarge, msmall): Likewise.
28905         (mhwmult): New option.
28906         * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
28907         prototype.
28908         (msp430_is_f5_mcu): Remove prototype.
28909         (msp430_use_f5_series_hwmult): Add prototype.
28910         * config/msp430/msp430-opts.h: New file.
28911         * common/config/msp430: New directory.
28912         * common/config/msp430/msp430-common.c: New file.
28913         * config.gcc (msp430): Remove target_has_targetm_common.
28914         * doc/invoke.texi: Document -mhwmult command line option.
28915
28916 2014-04-23  Nick Clifton  <nickc@redhat.com>
28917
28918         * config/i386/cygwin.h (ENDFILE_SPEC): Include
28919         default-manifest.o if it can be found in the search path.
28920         * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
28921
28922 2014-04-23  Terry Guo  <terry.guo@arm.com>
28923
28924         * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
28925
28926 2014-04-23  Richard Biener  <rguenther@suse.de>
28927
28928         PR middle-end/60895
28929         * tree-inline.c (declare_return_variable): Use mark_addressable.
28930
28931 2014-04-23  Richard Biener  <rguenther@suse.de>
28932
28933         PR middle-end/60891
28934         * loop-init.c (loop_optimizer_init): Make sure to apply
28935         LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
28936
28937 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
28938
28939         PR sanitizer/60275
28940         * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
28941         New options.
28942         * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
28943         if flag_sanitize_undefined_trap_on_error.
28944         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
28945         BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
28946         BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
28947         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
28948         BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
28949         BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
28950         BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
28951         BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
28952         BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
28953         * ubsan.c (ubsan_instrument_unreachable): Return
28954         __builtin_trap () if flag_sanitize_undefined_trap_on_error.
28955         (ubsan_expand_null_ifn): Emit __builtin_trap ()
28956         if flag_sanitize_undefined_trap_on_error and
28957         __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
28958         (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
28959         instrument_bool_enum_load): Emit __builtin_trap () if
28960         flag_sanitize_undefined_trap_on_error and
28961         __builtin_handle_*_abort () if !flag_sanitize_recover.
28962         * doc/invoke.texi (-fsanitize-recover,
28963         -fsanitize-undefined-trap-on-error): Document.
28964
28965 2014-04-22  Christian Bruel  <christian.bruel@st.com>
28966
28967         * config/sh/sh.md (mov<mode>): Replace movQIHI.
28968         Force immediates to SImode.
28969
28970 2014-04-22  Sandra Loosemore  <sandra@codesourcery.com>
28971
28972         * config/nios2/nios2.md (UNSPEC_ROUND): New.
28973         (lroundsfsi2): New.
28974         * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
28975         * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
28976         * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
28977         (nios2_fpu_insn): Add entry for round.
28978         (N2FPU_NO_ERRNO_P): Define.
28979         (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
28980         flag_errno_math.
28981         * doc/invoke.texi (Nios II Options): Document -mcustom-round.
28982
28983 2014-04-22  Richard Henderson  <rth@redhat.com>
28984
28985         * config/aarch64/aarch64 (addti3, subti3): New expanders.
28986         (add<GPI>3_compare0): Remove leading * from name.
28987         (add<GPI>3_carryin): Likewise.
28988         (sub<GPI>3_compare0): Likewise.
28989         (sub<GPI>3_carryin): Likewise.
28990         (<su_optab>mulditi3): New expander.
28991         (multi3): New expander.
28992         (madd<GPI>): Remove leading * from name.
28993
28994 2014-04-22  Martin Jambor  <mjambor@suse.cz>
28995
28996         * cgraphclones.c (cgraph_function_versioning): Copy
28997         ipa_transforms_to_apply instead of asserting it is empty.
28998
28999 2014-04-22  H.J. Lu  <hongjiu.lu@intel.com>
29000
29001         PR target/60868
29002         * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
29003         on count_exp to get mode.
29004
29005 2014-04-22  Andrew Pinski  <apinski@cavium.com>
29006
29007         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
29008         Handle TLS for ILP32.
29009         * config/aarch64/aarch64.md (tlsie_small): Rename to ...
29010         (tlsie_small_<mode>): this and handle PTR.
29011         (tlsie_small_sidi): New pattern.
29012         (tlsle_small): Change to an expand to handle ILP32.
29013         (tlsle_small_<mode>): New pattern.
29014         (tlsdesc_small): Rename to ...
29015         (tlsdesc_small_<mode>): this and handle PTR.
29016
29017 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29018
29019         * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
29020
29021 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29022
29023         * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29024         (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
29025         (aarch64_types_signed_poly_qualifiers): Likewise.
29026         (aarch64_types_unsigned_signed_qualifiers): Likewise.
29027         (aarch64_types_poly_signed_qualifiers): Likewise.
29028         (TYPES_REINTERP_SS): Type macro added.
29029         (TYPES_REINTERP_SU): Likewise.
29030         (TYPES_REINTERP_SP): Likewise.
29031         (TYPES_REINTERP_US): Likewise.
29032         (TYPES_REINTERP_PS): Likewise.
29033         (aarch64_fold_builtin): New expression folding added.
29034         * config/aarch64/aarch64-simd-builtins.def (REINTERP):
29035         Declarations removed.
29036         (REINTERP_SS): Declarations added.
29037         (REINTERP_US): Likewise.
29038         (REINTERP_PS): Likewise.
29039         (REINTERP_SU): Likewise.
29040         (REINTERP_SP): Likewise.
29041         * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
29042         (vreinterpretq_p8_f64): Likewise.
29043         (vreinterpret_p16_f64): Likewise.
29044         (vreinterpretq_p16_f64): Likewise.
29045         (vreinterpret_f32_f64): Likewise.
29046         (vreinterpretq_f32_f64): Likewise.
29047         (vreinterpret_f64_f32): Likewise.
29048         (vreinterpret_f64_p8): Likewise.
29049         (vreinterpret_f64_p16): Likewise.
29050         (vreinterpret_f64_s8): Likewise.
29051         (vreinterpret_f64_s16): Likewise.
29052         (vreinterpret_f64_s32): Likewise.
29053         (vreinterpret_f64_s64): Likewise.
29054         (vreinterpret_f64_u8): Likewise.
29055         (vreinterpret_f64_u16): Likewise.
29056         (vreinterpret_f64_u32): Likewise.
29057         (vreinterpret_f64_u64): Likewise.
29058         (vreinterpretq_f64_f32): Likewise.
29059         (vreinterpretq_f64_p8): Likewise.
29060         (vreinterpretq_f64_p16): Likewise.
29061         (vreinterpretq_f64_s8): Likewise.
29062         (vreinterpretq_f64_s16): Likewise.
29063         (vreinterpretq_f64_s32): Likewise.
29064         (vreinterpretq_f64_s64): Likewise.
29065         (vreinterpretq_f64_u8): Likewise.
29066         (vreinterpretq_f64_u16): Likewise.
29067         (vreinterpretq_f64_u32): Likewise.
29068         (vreinterpretq_f64_u64): Likewise.
29069         (vreinterpret_s64_f64): Likewise.
29070         (vreinterpretq_s64_f64): Likewise.
29071         (vreinterpret_u64_f64): Likewise.
29072         (vreinterpretq_u64_f64): Likewise.
29073         (vreinterpret_s8_f64): Likewise.
29074         (vreinterpretq_s8_f64): Likewise.
29075         (vreinterpret_s16_f64): Likewise.
29076         (vreinterpretq_s16_f64): Likewise.
29077         (vreinterpret_s32_f64): Likewise.
29078         (vreinterpretq_s32_f64): Likewise.
29079         (vreinterpret_u8_f64): Likewise.
29080         (vreinterpretq_u8_f64): Likewise.
29081         (vreinterpret_u16_f64): Likewise.
29082         (vreinterpretq_u16_f64): Likewise.
29083         (vreinterpret_u32_f64): Likewise.
29084         (vreinterpretq_u32_f64): Likewise.
29085
29086 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29087
29088         * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
29089         * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
29090         (vreinterpret_p8_s8): Likewise.
29091         * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
29092         (vreinterpret_p8_s16): Likewise.
29093         (vreinterpret_p8_s32): Likewise.
29094         (vreinterpret_p8_s64): Likewise.
29095         (vreinterpret_p8_f32): Likewise.
29096         (vreinterpret_p8_u8): Likewise.
29097         (vreinterpret_p8_u16): Likewise.
29098         (vreinterpret_p8_u32): Likewise.
29099         (vreinterpret_p8_u64): Likewise.
29100         (vreinterpret_p8_p16): Likewise.
29101         (vreinterpretq_p8_s8): Likewise.
29102         (vreinterpretq_p8_s16): Likewise.
29103         (vreinterpretq_p8_s32): Likewise.
29104         (vreinterpretq_p8_s64): Likewise.
29105         (vreinterpretq_p8_f32): Likewise.
29106         (vreinterpretq_p8_u8): Likewise.
29107         (vreinterpretq_p8_u16): Likewise.
29108         (vreinterpretq_p8_u32): Likewise.
29109         (vreinterpretq_p8_u64): Likewise.
29110         (vreinterpretq_p8_p16): Likewise.
29111         (vreinterpret_p16_s8): Likewise.
29112         (vreinterpret_p16_s16): Likewise.
29113         (vreinterpret_p16_s32): Likewise.
29114         (vreinterpret_p16_s64): Likewise.
29115         (vreinterpret_p16_f32): Likewise.
29116         (vreinterpret_p16_u8): Likewise.
29117         (vreinterpret_p16_u16): Likewise.
29118         (vreinterpret_p16_u32): Likewise.
29119         (vreinterpret_p16_u64): Likewise.
29120         (vreinterpret_p16_p8): Likewise.
29121         (vreinterpretq_p16_s8): Likewise.
29122         (vreinterpretq_p16_s16): Likewise.
29123         (vreinterpretq_p16_s32): Likewise.
29124         (vreinterpretq_p16_s64): Likewise.
29125         (vreinterpretq_p16_f32): Likewise.
29126         (vreinterpretq_p16_u8): Likewise.
29127         (vreinterpretq_p16_u16): Likewise.
29128         (vreinterpretq_p16_u32): Likewise.
29129         (vreinterpretq_p16_u64): Likewise.
29130         (vreinterpretq_p16_p8): Likewise.
29131         (vreinterpret_f32_s8): Likewise.
29132         (vreinterpret_f32_s16): Likewise.
29133         (vreinterpret_f32_s32): Likewise.
29134         (vreinterpret_f32_s64): Likewise.
29135         (vreinterpret_f32_u8): Likewise.
29136         (vreinterpret_f32_u16): Likewise.
29137         (vreinterpret_f32_u32): Likewise.
29138         (vreinterpret_f32_u64): Likewise.
29139         (vreinterpret_f32_p8): Likewise.
29140         (vreinterpret_f32_p16): Likewise.
29141         (vreinterpretq_f32_s8): Likewise.
29142         (vreinterpretq_f32_s16): Likewise.
29143         (vreinterpretq_f32_s32): Likewise.
29144         (vreinterpretq_f32_s64): Likewise.
29145         (vreinterpretq_f32_u8): Likewise.
29146         (vreinterpretq_f32_u16): Likewise.
29147         (vreinterpretq_f32_u32): Likewise.
29148         (vreinterpretq_f32_u64): Likewise.
29149         (vreinterpretq_f32_p8): Likewise.
29150         (vreinterpretq_f32_p16): Likewise.
29151         (vreinterpret_s64_s8): Likewise.
29152         (vreinterpret_s64_s16): Likewise.
29153         (vreinterpret_s64_s32): Likewise.
29154         (vreinterpret_s64_f32): Likewise.
29155         (vreinterpret_s64_u8): Likewise.
29156         (vreinterpret_s64_u16): Likewise.
29157         (vreinterpret_s64_u32): Likewise.
29158         (vreinterpret_s64_u64): Likewise.
29159         (vreinterpret_s64_p8): Likewise.
29160         (vreinterpret_s64_p16): Likewise.
29161         (vreinterpretq_s64_s8): Likewise.
29162         (vreinterpretq_s64_s16): Likewise.
29163         (vreinterpretq_s64_s32): Likewise.
29164         (vreinterpretq_s64_f32): Likewise.
29165         (vreinterpretq_s64_u8): Likewise.
29166         (vreinterpretq_s64_u16): Likewise.
29167         (vreinterpretq_s64_u32): Likewise.
29168         (vreinterpretq_s64_u64): Likewise.
29169         (vreinterpretq_s64_p8): Likewise.
29170         (vreinterpretq_s64_p16): Likewise.
29171         (vreinterpret_u64_s8): Likewise.
29172         (vreinterpret_u64_s16): Likewise.
29173         (vreinterpret_u64_s32): Likewise.
29174         (vreinterpret_u64_s64): Likewise.
29175         (vreinterpret_u64_f32): Likewise.
29176         (vreinterpret_u64_u8): Likewise.
29177         (vreinterpret_u64_u16): Likewise.
29178         (vreinterpret_u64_u32): Likewise.
29179         (vreinterpret_u64_p8): Likewise.
29180         (vreinterpret_u64_p16): Likewise.
29181         (vreinterpretq_u64_s8): Likewise.
29182         (vreinterpretq_u64_s16): Likewise.
29183         (vreinterpretq_u64_s32): Likewise.
29184         (vreinterpretq_u64_s64): Likewise.
29185         (vreinterpretq_u64_f32): Likewise.
29186         (vreinterpretq_u64_u8): Likewise.
29187         (vreinterpretq_u64_u16): Likewise.
29188         (vreinterpretq_u64_u32): Likewise.
29189         (vreinterpretq_u64_p8): Likewise.
29190         (vreinterpretq_u64_p16): Likewise.
29191         (vreinterpret_s8_s16): Likewise.
29192         (vreinterpret_s8_s32): Likewise.
29193         (vreinterpret_s8_s64): Likewise.
29194         (vreinterpret_s8_f32): Likewise.
29195         (vreinterpret_s8_u8): Likewise.
29196         (vreinterpret_s8_u16): Likewise.
29197         (vreinterpret_s8_u32): Likewise.
29198         (vreinterpret_s8_u64): Likewise.
29199         (vreinterpret_s8_p8): Likewise.
29200         (vreinterpret_s8_p16): Likewise.
29201         (vreinterpretq_s8_s16): Likewise.
29202         (vreinterpretq_s8_s32): Likewise.
29203         (vreinterpretq_s8_s64): Likewise.
29204         (vreinterpretq_s8_f32): Likewise.
29205         (vreinterpretq_s8_u8): Likewise.
29206         (vreinterpretq_s8_u16): Likewise.
29207         (vreinterpretq_s8_u32): Likewise.
29208         (vreinterpretq_s8_u64): Likewise.
29209         (vreinterpretq_s8_p8): Likewise.
29210         (vreinterpretq_s8_p16): Likewise.
29211         (vreinterpret_s16_s8): Likewise.
29212         (vreinterpret_s16_s32): Likewise.
29213         (vreinterpret_s16_s64): Likewise.
29214         (vreinterpret_s16_f32): Likewise.
29215         (vreinterpret_s16_u8): Likewise.
29216         (vreinterpret_s16_u16): Likewise.
29217         (vreinterpret_s16_u32): Likewise.
29218         (vreinterpret_s16_u64): Likewise.
29219         (vreinterpret_s16_p8): Likewise.
29220         (vreinterpret_s16_p16): Likewise.
29221         (vreinterpretq_s16_s8): Likewise.
29222         (vreinterpretq_s16_s32): Likewise.
29223         (vreinterpretq_s16_s64): Likewise.
29224         (vreinterpretq_s16_f32): Likewise.
29225         (vreinterpretq_s16_u8): Likewise.
29226         (vreinterpretq_s16_u16): Likewise.
29227         (vreinterpretq_s16_u32): Likewise.
29228         (vreinterpretq_s16_u64): Likewise.
29229         (vreinterpretq_s16_p8): Likewise.
29230         (vreinterpretq_s16_p16): Likewise.
29231         (vreinterpret_s32_s8): Likewise.
29232         (vreinterpret_s32_s16): Likewise.
29233         (vreinterpret_s32_s64): Likewise.
29234         (vreinterpret_s32_f32): Likewise.
29235         (vreinterpret_s32_u8): Likewise.
29236         (vreinterpret_s32_u16): Likewise.
29237         (vreinterpret_s32_u32): Likewise.
29238         (vreinterpret_s32_u64): Likewise.
29239         (vreinterpret_s32_p8): Likewise.
29240         (vreinterpret_s32_p16): Likewise.
29241         (vreinterpretq_s32_s8): Likewise.
29242         (vreinterpretq_s32_s16): Likewise.
29243         (vreinterpretq_s32_s64): Likewise.
29244         (vreinterpretq_s32_f32): Likewise.
29245         (vreinterpretq_s32_u8): Likewise.
29246         (vreinterpretq_s32_u16): Likewise.
29247         (vreinterpretq_s32_u32): Likewise.
29248         (vreinterpretq_s32_u64): Likewise.
29249         (vreinterpretq_s32_p8): Likewise.
29250         (vreinterpretq_s32_p16): Likewise.
29251         (vreinterpret_u8_s8): Likewise.
29252         (vreinterpret_u8_s16): Likewise.
29253         (vreinterpret_u8_s32): Likewise.
29254         (vreinterpret_u8_s64): Likewise.
29255         (vreinterpret_u8_f32): Likewise.
29256         (vreinterpret_u8_u16): Likewise.
29257         (vreinterpret_u8_u32): Likewise.
29258         (vreinterpret_u8_u64): Likewise.
29259         (vreinterpret_u8_p8): Likewise.
29260         (vreinterpret_u8_p16): Likewise.
29261         (vreinterpretq_u8_s8): Likewise.
29262         (vreinterpretq_u8_s16): Likewise.
29263         (vreinterpretq_u8_s32): Likewise.
29264         (vreinterpretq_u8_s64): Likewise.
29265         (vreinterpretq_u8_f32): Likewise.
29266         (vreinterpretq_u8_u16): Likewise.
29267         (vreinterpretq_u8_u32): Likewise.
29268         (vreinterpretq_u8_u64): Likewise.
29269         (vreinterpretq_u8_p8): Likewise.
29270         (vreinterpretq_u8_p16): Likewise.
29271         (vreinterpret_u16_s8): Likewise.
29272         (vreinterpret_u16_s16): Likewise.
29273         (vreinterpret_u16_s32): Likewise.
29274         (vreinterpret_u16_s64): Likewise.
29275         (vreinterpret_u16_f32): Likewise.
29276         (vreinterpret_u16_u8): Likewise.
29277         (vreinterpret_u16_u32): Likewise.
29278         (vreinterpret_u16_u64): Likewise.
29279         (vreinterpret_u16_p8): Likewise.
29280         (vreinterpret_u16_p16): Likewise.
29281         (vreinterpretq_u16_s8): Likewise.
29282         (vreinterpretq_u16_s16): Likewise.
29283         (vreinterpretq_u16_s32): Likewise.
29284         (vreinterpretq_u16_s64): Likewise.
29285         (vreinterpretq_u16_f32): Likewise.
29286         (vreinterpretq_u16_u8): Likewise.
29287         (vreinterpretq_u16_u32): Likewise.
29288         (vreinterpretq_u16_u64): Likewise.
29289         (vreinterpretq_u16_p8): Likewise.
29290         (vreinterpretq_u16_p16): Likewise.
29291         (vreinterpret_u32_s8): Likewise.
29292         (vreinterpret_u32_s16): Likewise.
29293         (vreinterpret_u32_s32): Likewise.
29294         (vreinterpret_u32_s64): Likewise.
29295         (vreinterpret_u32_f32): Likewise.
29296         (vreinterpret_u32_u8): Likewise.
29297         (vreinterpret_u32_u16): Likewise.
29298         (vreinterpret_u32_u64): Likewise.
29299         (vreinterpret_u32_p8): Likewise.
29300         (vreinterpret_u32_p16): Likewise.
29301         (vreinterpretq_u32_s8): Likewise.
29302         (vreinterpretq_u32_s16): Likewise.
29303         (vreinterpretq_u32_s32): Likewise.
29304         (vreinterpretq_u32_s64): Likewise.
29305         (vreinterpretq_u32_f32): Likewise.
29306         (vreinterpretq_u32_u8): Likewise.
29307         (vreinterpretq_u32_u16): Likewise.
29308         (vreinterpretq_u32_u64): Likewise.
29309         (vreinterpretq_u32_p8): Likewise.
29310         (vreinterpretq_u32_p16): Likewise.
29311
29312 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29313
29314         * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
29315         Pattern extended.
29316         * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
29317         (sqabs): Likewise.
29318         * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
29319         (vqnegd_s64): Likewise.
29320         (vqabs_s64): Likewise.
29321         (vqabsd_s64): Likewise.
29322
29323 2014-04-22  Richard Henderson  <rth@redhat.com>
29324
29325         * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
29326         computation to the top of the loop.
29327
29328 2014-04-22  Renlin  <renlin.li@arm.com>
29329             Jiong Wang  <jiong.wang@arm.com>
29330
29331         * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
29332         * config/aarch64/aarch64.c (aarch64_layout_frame)
29333         (aarch64_initial_elimination_offset): Likewise.
29334
29335 2014-04-22  Marcus Shawcroft  <marcus.shawcroft@arm.com>
29336
29337         * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
29338         Fix indentation.
29339
29340 2014-04-22  Richard Sandiford  <rdsandiford@googlemail.com>
29341
29342         * machmode.h (bitwise_mode_for_mode): Declare.
29343         * stor-layout.h (bitwise_type_for_mode): Likewise.
29344         * stor-layout.c (bitwise_mode_for_mode): New function.
29345         (bitwise_type_for_mode): Likewise.
29346         * builtins.c (fold_builtin_memory_op): Use it instead of
29347         int_mode_for_mode and build_nonstandard_integer_type.
29348
29349 2014-04-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29350
29351         * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
29352         (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
29353         (*-*-solaris2*): Simplify.
29354         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
29355         (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
29356         *-*-solaris2.9* handling.
29357
29358         * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
29359         as bug.
29360         (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
29361         (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
29362         handling, simplify.
29363         (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
29364         * configure: Regenerate.
29365
29366         * config/i386/sol2-9.h: Remove.
29367
29368         * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
29369         (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
29370         Remove Solaris 9 references.
29371
29372 2014-04-22  Vidya Praveen  <vidyapraveen@arm.com>
29373
29374         * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
29375         (floatuns<GPI:mode><GPF:mode>2): Remove.
29376         (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
29377         and floatuns conversions.
29378         (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
29379         and floatuns conversions.
29380         * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
29381         (w1,w2): New mode attributes for inequal width conversions.
29382
29383 2014-04-22  Renlin Li  <Renlin.Li@arm.com>
29384
29385         * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
29386         the output asm format.
29387
29388 2014-04-22  James Greenhalgh  <james.greenhalgh@arm.com>
29389
29390         * config/aarch64/aarch64-simd.md
29391         (aarch64_cm<optab>di): Always split.
29392         (*aarch64_cm<optab>di): New.
29393         (aarch64_cmtstdi): Always split.
29394         (*aarch64_cmtstdi): New.
29395
29396 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29397
29398         PR tree-optimization/60823
29399         * omp-low.c (ipa_simd_modify_function_body): Go through
29400         all SSA_NAMEs and for those refering to vector arguments
29401         which are going to be replaced adjust SSA_NAME_VAR and,
29402         if it is a default definition, change it into a non-default
29403         definition assigned at the beginning of function from new_decl.
29404         (ipa_simd_modify_stmt_ops): Rewritten.
29405         * tree-dfa.c (set_ssa_default_def): When removing default def,
29406         check for NULL loc instead of NULL *loc.
29407
29408 2014-04-22  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
29409
29410         * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
29411         restrictions on core registers for DImode values in Thumb2.
29412
29413 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29414
29415         * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
29416         * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
29417
29418 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29419
29420         * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
29421         (*iordi_notzesidi_di): Likewise.
29422         (*iordi_notsesidi_di): Likewise.
29423
29424 2014-04-22  Ian Bolton  <ian.bolton@arm.com>
29425
29426         * config/arm/arm-protos.h (tune_params): New struct members.
29427         * config/arm/arm.c: Initialise tune_params per processor.
29428         (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
29429         for speed, based on new tune_params.
29430
29431 2014-04-22  Alex Velenko  <Alex.Velenko@arm.com>
29432
29433         * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
29434         * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
29435         * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
29436         * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
29437         * config/aarch64/arm_neon.h (vrnd_f64): Added.
29438         (vrnda_f64): Likewise.
29439         (vrndi_f64): Likewise.
29440         (vrndm_f64): Likewise.
29441         (vrndn_f64): Likewise.
29442         (vrndp_f64): Likewise.
29443         (vrndx_f64): Likewise.
29444
29445 2014-04-22  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
29446
29447         * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
29448         GET_MODE_SIZE argument is enum machine_mode.
29449
29450 2014-04-22  Jakub Jelinek  <jakub@redhat.com>
29451
29452         PR target/60910
29453         * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
29454         value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
29455
29456 2014-04-22  Lin Zuojian  <manjian2006@gmail.com>
29457
29458         PR middle-end/60281
29459         * asan.c (asan_emit_stack_protection): Force the base to align to
29460         appropriate bits if STRICT_ALIGNMENT.  Set shadow_mem align to
29461         appropriate bits if STRICT_ALIGNMENT.
29462         * cfgexpand.c (expand_stack_vars): Set base_align appropriately
29463         when asan is on.
29464         (expand_used_vars): Leave a space in the stack frame for alignment
29465         if STRICT_ALIGNMENT.
29466
29467 2014-04-21  David Malcolm  <dmalcolm@redhat.com>
29468
29469         * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
29470         than a gimple.
29471         (gimple_store_p): Likewise.
29472         (gimple_assign_load_p): Likewise.
29473         (gimple_assign_cast_p): Likewise.
29474         (gimple_clobber_p): Likewise.
29475
29476         * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
29477         rather than a gimple.
29478         (gimple_assign_cast_p): Likewise.
29479
29480 2014-04-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
29481
29482         PR target/60735
29483         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
29484         If mode is DDmode and TARGET_E500_DOUBLE allow move.
29485
29486         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
29487         more debug information for E500 if -mdebug=reg.
29488
29489 2014-04-21  Uros Bizjak  <ubizjak@gmail.com>
29490
29491         PR target/60909
29492         * config/i386/i386.c (ix86_expand_builtin)
29493         <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
29494         register for target RTX.
29495         <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
29496
29497 2014-04-18  Cong Hou  <congh@google.com>
29498
29499         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
29500         the widen-mult pattern by handling two operands with different sizes,
29501         and operands whose size is smaller than half of the result type.
29502
29503 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29504
29505         * ipa-inline.h (INLINE_HINT_known_hot): New hint.
29506         * ipa-inline-analysis.c (dump_inline_hints): Dump it.
29507         (do_estimate_edge_time): Compute it.
29508         * ipa-inline.c (want_inline_small_function_p): Bypass
29509         INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
29510
29511 2014-04-18  Jan Hubicka  <hubicka@ucw.cz>
29512
29513         * ipa-inline.c (spec_rem): New static variable.
29514         (dump_overall_stats): New function.
29515         (dump_inline_stats): New function.
29516
29517 2014-04-18  Richard Henderson  <rth@redhat.com>
29518
29519         * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
29520         to GET_MODE_SIZE, not a reg_class_t.
29521
29522 2014-04-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29523
29524         * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
29525         (vsx_xxmrglw_<mode>): Likewise.
29526
29527 2014-04-17  Michael Meissner  <meissner@linux.vnet.ibm.com>
29528
29529         PR target/60876
29530         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
29531         GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
29532         (rs6000_init_hard_regno_mode_ok): Likewise.
29533
29534 2014-04-17  Jan Hubicka  <hubicka@ucw.cz>
29535
29536         * ipa-inline.c (inline_small_functions): Account only non-cold
29537         functions.
29538         * doc/invoke.texi (inline-unit-growth): Update documentation.
29539
29540 2014-04-17  Pat Haugen  <pthaugen@us.ibm.com>
29541
29542         * config/rs6000/rs6000.md (addti3, subti3): New.
29543
29544 2014-04-17  H.J. Lu  <hongjiu.lu@intel.com>
29545
29546         PR target/60863
29547         * config/i386/i386.c (ix86_expand_clear): Remove outdated
29548         comment.  Check optimize_insn_for_size_p instead of
29549         optimize_insn_for_speed_p.
29550
29551 2014-04-17  Martin Jambor  <mjambor@suse.cz>
29552
29553         * gimple-iterator.c (gsi_start_edge): New function.
29554         * gimple-iterator.h (gsi_start_edge): Declare.
29555         * tree-sra.c (single_non_eh_succ): New function.
29556         (disqualify_ops_if_throwing_stmt): Renamed to
29557         disqualify_if_bad_bb_terminating_stmt.  Allow throwing statements
29558         having one non-EH successor BB.
29559         (sra_modify_expr): If stmt ends bb, use single non-EH successor to
29560         generate loads into replacements.
29561         (sra_modify_assign): Likewise and and also use the simple path for
29562         such statements.
29563         (sra_modify_function_body): Commit statements on edges.
29564
29565 2014-04-17  Richard Biener  <rguenther@suse.de>
29566
29567         PR middle-end/60849
29568         * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
29569         comparison results and add clarifying comment.
29570
29571 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29572
29573         * genmodes.c (struct mode_data): Add need_bytesize_adj field.
29574         (blank_mode): Initialize it.
29575         (emit_mode_size_inline, emit_mode_nunits_inline,
29576         emit_mode_inner_inline): New functions.
29577         (emit_insn_modes_h): Call them and surround their output with
29578         #if GCC_VERSION >= 4001 ... #endif.
29579         * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
29580         For GCC_VERSION >= 4001 use mode_*_inline routines instead of
29581         mode_* arrays if the argument is __builtin_constant_p.
29582         * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
29583         is enum machine_mode.
29584
29585 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29586
29587         * passes.c (opt_pass::execute): Adjust.
29588         (pass_manager::execute_pass_mode_switching): Likewise.
29589         (early_local_passes::execute): Likewise.
29590         (execute_one_pass): Pass cfun to the pass's execute method.
29591         * tree-pass.h (opt_pass::execute): Add function * argument.
29592         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29593         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29594         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29595         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29596         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29597         config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
29598         except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
29599         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29600         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29601         ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
29602         ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
29603         lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
29604         postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
29605         reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
29606         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29607         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29608         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29609         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
29610         tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
29611         tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29612         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29613         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29614         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29615         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29616         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29617         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29618         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29619         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29620         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29621         Adjust.
29622
29623 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29624
29625         * passes.c (opt_pass::gate): Take function * argument.
29626         (gate_all_early_local_passes): Merge into
29627         (early_local_passes::gate): this.
29628         (gate_all_early_optimizations): Merge into
29629         (all_early_optimizations::gate): this.
29630         (gate_all_optimizations): Mege into
29631         (all_optimizations::gate): this.
29632         (gate_all_optimizations_g): Merge into
29633         (all_optimizations_g::gate): this.
29634         (gate_rest_of_compilation): Mege into
29635         (rest_of_compilation::gate): this.
29636         (gate_postreload): Merge into
29637         (postreload::gate): this.
29638         (dump_one_pass): Pass cfun to the pass's gate method.
29639         (execute_ipa_summary_passes): Likewise.
29640         (execute_one_pass): Likewise.
29641         (ipa_write_summaries_2): Likewise.
29642         (ipa_write_optimization_summaries_1): Likewise.
29643         (ipa_read_summaries_1): Likewise.
29644         (ipa_read_optimization_summaries_1): Likewise.
29645         (execute_ipa_stmt_fixups): Likewise.
29646         * tree-pass.h (opt_pass::gate): Add function * argument.
29647         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
29648         combine-stack-adj.c, combine.c, compare-elim.c,
29649         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29650         config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
29651         config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
29652         dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c,  fwprop.c, gcse.c,
29653         gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
29654         graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
29655         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29656         loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
29657         omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
29658         reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
29659         store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
29660         tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
29661         tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
29662         tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29663         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29664         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29665         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29666         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29667         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29668         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29669         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29670         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29671         tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
29672         tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
29673         var-tracking.c, vtable-verify.c, web.c: Adjust.
29674
29675 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29676
29677         * configure.ac: Check for -Woverloaded-virtual and enable it if found.
29678         * configure: Regenerate.
29679
29680 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29681
29682         * passes.c (dump_one_pass): don't check pass->has_gate.
29683         (execute_ipa_summary_passes): Likewise.
29684         (execute_one_pass): Likewise.
29685         (ipa_write_summaries_2): Likewise.
29686         (ipa_write_optimization_summaries_1): Likewise.
29687         (ipa_read_optimization_summaries_1): Likewise.
29688         (execute_ipa_stmt_fixups): Likewise.
29689         * tree-pass.h (pass_data::has_gate): Remove.
29690         * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
29691         cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
29692         compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
29693         config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
29694         config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
29695         config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
29696         config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
29697         dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
29698         gimple-low.c, gimple-ssa-isolate-paths.c,
29699         gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
29700         ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
29701         ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
29702         ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
29703         modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
29704         recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
29705         reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
29706         trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
29707         tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
29708         tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
29709         tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
29710         tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
29711         tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
29712         tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
29713         tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
29714         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
29715         tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
29716         tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
29717         tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
29718         tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
29719         tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
29720         tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
29721         Adjust.
29722
29723 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29724
29725         * pass_manager.h (pass_manager::register_dump_files_1): Remove
29726         declaration.
29727         * passes.c (pass_manager::register_dump_files_1): Merge into
29728         (pass_manager::register_dump_files): this, and remove its handling of
29729         properties since the pass always has the properties anyway.
29730         (pass_manager::pass_manager): Adjust.
29731
29732 2014-04-17  Trevor Saunders  <tsaunders@mozilla.com>
29733
29734         * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
29735         * passes.c (pass_manager::register_dump_files_1): Remove dead code
29736         dealing with properties.
29737         (pass_manager::register_dump_files): Adjust.
29738
29739 2014-03-20  Mark Wielaard  <mjw@redhat.com>
29740
29741         * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
29742         then represent the bound as normal constant value.
29743
29744 2014-04-17  Jakub Jelinek  <jakub@redhat.com>
29745
29746         PR target/60847
29747         Forward port from 4.8 branch
29748         2013-07-19  Kirill Yukhin  <kirill.yukhin@intel.com>
29749
29750         * config/i386/bmiintrin.h (_blsi_u32): New.
29751         (_blsi_u64): Ditto.
29752         (_blsr_u32): Ditto.
29753         (_blsr_u64): Ditto.
29754         (_blsmsk_u32): Ditto.
29755         (_blsmsk_u64): Ditto.
29756         (_tzcnt_u32): Ditto.
29757         (_tzcnt_u64): Ditto.
29758
29759 2014-04-17  Kito Cheng  <kito@0xlab.org>
29760
29761         * gcc.c (used_arg): Prevent out of bound access for multilib_options.
29762
29763 2014-04-17  Richard Biener  <rguenther@suse.de>
29764
29765         PR middle-end/60849
29766         * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
29767         boolean results for comparisons.
29768
29769 2014-04-17  Richard Biener  <rguenther@suse.de>
29770
29771         PR tree-optimization/60836
29772         * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
29773         initial PHI args to be gimple values.
29774
29775 2014-04-17  Richard Biener  <rguenther@suse.de>
29776
29777         PR tree-optimization/60841
29778         * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
29779         * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
29780         of stmts to SLP build.
29781         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
29782         (vect_analyze_slp): Likewise.
29783         (vect_analyze_slp_instance): Likewise.
29784         (vect_build_slp_tree): Limit overall SLP tree growth.
29785         * tree-vectorizer.h (vect_analyze_data_refs,
29786         vect_analyze_slp): Adjust prototypes.
29787
29788 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29789
29790         * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
29791         Silvermont.
29792
29793 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29794
29795         * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
29796         * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
29797         * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
29798         for TARGET_SLOW_PSHUFB
29799
29800 2014-04-17  Evgeny Stupachenko  <evstupac@gmail.com>
29801
29802         * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
29803         * config/i386/i386.c (intel_cost): Ditto.
29804
29805 2014-04-17  Joey Ye  <joey.ye@arm.com>
29806
29807         * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
29808
29809 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29810
29811         * opts.c (common_handle_option): Disable -fipa-reference coorectly
29812         with -fuse-profile.
29813
29814 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29815
29816         * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
29817         (type_all_derivations_known_p): New predicate.
29818         (type_all_ctors_visible_p): New predicate.
29819         (type_possibly_instantiated_p): New predicate.
29820         (get_odr_type): Compute all_derivations_known.
29821         (dump_odr_type): Dump the flag.
29822         (maybe_record_type): Cleanup.
29823         (record_target_from_binfo): Add bases_to_consider array;
29824         record bases for types w/o instances and skip CXX destructor.
29825         (possible_polymorphic_call_targets_1): Add bases_to_consider
29826         and consider_construction parameters; check if type may have instance.
29827         (get_polymorphic_call_info): Set maybe_in_construction to true
29828         when we know nothing.
29829         (record_targets_from_bases): Skip CXX destructors; they are
29830         never called for types in construction.
29831         (possible_polymorphic_call_targets): Do not record target when
29832         type may not have instance.
29833
29834 2014-04-16  Jan Hubicka  <hubicka@ucw.cz>
29835
29836         PR ipa/60854
29837         * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
29838         external aliases alive, too.
29839
29840 2014-04-16  Andrew  Pinski  <apinski@cavium.com>
29841
29842         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
29843         definition.
29844
29845 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29846
29847         * final.c (compute_alignments): Do not apply loop alignment to a block
29848         falling through to the exit.
29849
29850 2014-04-16  Catherine Moore  <clm@codesourcery.com>
29851
29852         * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
29853         Adjust constraints for microMIPS store patterns.
29854
29855 2014-04-16  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
29856
29857         * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
29858
29859 2014-04-16  Eric Botcazou  <ebotcazou@adacore.com>
29860
29861         * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
29862         (append_use): Run at -O0.
29863         (append_vdef): Likewise.
29864         * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
29865         * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
29866
29867 2014-04-16  Jakub Jelinek  <jakub@redhat.com>
29868
29869         PR tree-optimization/60844
29870         * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
29871         (propagate_op_to_single_use, remove_visited_stmt_chain,
29872         linearize_expr, repropagate_negates, reassociate_bb): Use it
29873         instead of gsi_remove.
29874
29875 2014-04-16  Martin Jambor  <mjambor@suse.cz>
29876
29877         * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
29878         ipa_transforms_to_apply.
29879         (cgraph_function_versioning): Assert that old_node has empty
29880         ipa_transforms_to_apply.
29881         * trans-mem.c (ipa_tm_create_version): Likewise.
29882         * tree-inline.c (tree_function_versioning): Do not duplicate
29883         ipa_transforms_to_apply.
29884
29885 2014-04-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
29886
29887         PR target/60817
29888         * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
29889         x86_64-*-* cases.
29890         Pass necessary as flags on 64-bit Solaris/x86.
29891         Use lowercase relocs for x86_64-*-*.
29892         * configure: Regenerate.
29893
29894 2014-04-15  Jan Hubicka  <jh@suse.cz>
29895
29896         * ipa-devirt.c (referenced_from_vtable_p): New predicate.
29897         (maybe_record_node, likely_target_p): Use it.
29898
29899 2014-04-15  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29900
29901         PR target/60839
29902         Revert following patch
29903
29904         2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
29905
29906         PR target/60735
29907         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
29908         software floating point or no floating point registers, do not
29909         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
29910         in GPRs that occurs after we tested for GPRs that would never be
29911         true.
29912
29913         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
29914         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
29915         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
29916         specifically allow DDmode, since that does not use the SPE SIMD
29917         instructions.
29918
29919 2014-03-21  Mark Wielaard  <mjw@redhat.com>
29920
29921         * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
29922         as unsigned or int depending on type and value used.
29923
29924 2014-04-15  Richard Biener  <rguenther@suse.de>
29925
29926         PR rtl-optimization/56965
29927         * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
29928         * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
29929         ... here.
29930         * alias.c (true_dependence_1): Do not call
29931         nonoverlapping_component_refs_p.
29932         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
29933         nonoverlapping_component_refs_p.
29934         (indirect_refs_may_alias_p): Likewise.
29935
29936 2014-04-15  Teresa Johnson  <tejohnson@google.com>
29937
29938         * cfg.c (dump_bb_info): Fix flags check.
29939         * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
29940
29941 2014-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29942
29943         PR rtl-optimization/60663
29944         * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
29945         avoid 0 cost.
29946
29947 2014-04-15  Richard Biener  <rguenther@suse.de>
29948
29949         * lto-streamer.h (LTO_major_version): Bump to 4.
29950
29951 2014-04-15  Richard Biener  <rguenther@suse.de>
29952
29953         * common.opt (lto_partition_model): New enum.
29954         (flto-partition=): Merge separate options with a single with argument,
29955         add -flto-partition=one support.
29956         * flag-types.h (enum lto_partition_model): Declare.
29957         * opts.c (finish_options): Remove duplicate -flto-partition=
29958         option check.
29959         * lto-wrapper.c (run_gcc): Adjust.
29960
29961 2014-04-15  Richard Biener  <rguenther@suse.de>
29962
29963         * alias.c (ncr_compar): New function.
29964         (nonoverlapping_component_refs_p): Re-implement in O (n log n).
29965
29966 2014-04-15  Richard Biener  <rguenther@suse.de>
29967
29968         * alias.c (record_component_aliases): Do not walk BINFOs.
29969
29970 2014-04-15  Richard Biener  <rguenther@suse.de>
29971
29972         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
29973         Add struct function argument and adjust.
29974         (find_func_aliases_for_call): Likewise.
29975         (find_func_aliases): Likewise.
29976         (find_func_clobbers): Likewise.
29977         (intra_create_variable_infos): Likewise.
29978         (compute_points_to_sets): Likewise.
29979         (ipa_pta_execute): Adjust.  Do not push/pop cfun.
29980
29981 2014-04-15  Richard Biener  <rguenther@suse.de>
29982
29983         * tree.c (iterative_hash_expr): Use enum tree_code_class
29984         to store TREE_CODE_CLASS.
29985         (tree_block): Likewise.
29986         (tree_set_block): Likewise.
29987         * tree.h (fold_build_pointer_plus_loc): Use
29988         convert_to_ptrofftype_loc.
29989
29990 2014-04-15  Jakub Jelinek  <jakub@redhat.com>
29991
29992         PR plugins/59335
29993         * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
29994         added in 4.9.
29995
29996 2014-04-15  Eric Botcazou  <ebotcazou@adacore.com>
29997
29998         * cfgloop.h (struct loop): Move force_vectorize down.
29999         * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
30000         (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
30001         * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
30002         * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
30003         * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
30004         * tree-core.h (enum annot_expr_kind): Add new kind values.
30005         * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
30006         * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
30007         kinds.
30008         * tree.def (ANNOTATE_EXPR): Tweak comment.
30009
30010 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30011
30012         * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
30013         cxa_pure_virtual).
30014
30015 2014-04-14  Paolo Carlini  <paolo.carlini@oracle.com>
30016
30017         * tree.h (TYPE_IDENTIFIER): Declare.
30018         * tree.c (subrange_type_for_debug_p): Use it.
30019         * godump.c (go_format_type): Likewise.
30020         * dwarf2out.c (is_cxx_auto, modified_type_die,
30021         gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
30022         * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
30023
30024 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30025
30026         PR lto/60820
30027         * varpool.c (varpool_remove_node): Do not alter decls when streaming.
30028
30029 2014-04-14  Uros Bizjak  <ubizjak@gmail.com>
30030
30031         * config/i386/i386.c (examine_argument): Return bool.  Return true if
30032         parameter should be passed in memory.
30033         <case X86_64_COMPLEX_X87_CLASS>: Adjust.
30034         (construct_container): Update calls to examine_argument.
30035         (function_arg_advance_64): Ditto.
30036         (return_in_memory_32): Merge with ix86_return_in_memory.
30037         (return_in_memory_64): Ditto.
30038         (return_in_memory_ms_64): Ditto.
30039
30040 2014-04-14  Jan Hubicka  <hubicka@ucw.cz>
30041
30042         * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
30043         * coverage.c (coverage_compute_profile_id): Handle externally visible
30044         symbols.
30045
30046 2014-04-14  Martin Jambor  <mjambor@suse.cz>
30047
30048         * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
30049         DECL_DISREGARD_INLINE_LIMITS functions.
30050
30051 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30052
30053         PR target/60827
30054         * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
30055
30056 2014-04-14  H.J. Lu  <hongjiu.lu@intel.com>
30057
30058         PR target/60827
30059         * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
30060         optimize_insn_for_speed_p instead of
30061         optimize_function_for_speed_p.
30062
30063 2014-04-14  Yufeng Zhang  <yufeng.zhang@arm.com>
30064
30065         * doc/invoke.texi (free): Document AArch64.
30066
30067 2014-04-14  Richard Biener  <rguenther@suse.de>
30068
30069         PR tree-optimization/60042
30070         * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
30071         (insert_into_preds_of_block): Do not prevent PHI insertion
30072         for REFERENCE exprs here ...
30073         (eliminate_dom_walker::before_dom_children): ... but prevent
30074         their use here under similar conditions when applied to the
30075         IL after PRE optimizations.
30076
30077 2014-04-14  Richard Biener  <rguenther@suse.de>
30078
30079         * passes.def: Move early points-to after early SRA.
30080
30081 2014-04-14  Richard Biener  <rguenther@suse.de>
30082
30083         * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
30084         check for which sign-changes we allow when forwarding
30085         a converted value into a switch.
30086
30087 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30088
30089         * stor-layout.c (place_field): Finalize non-constant offset for the
30090         field, if any.
30091
30092 2014-04-14  Richard Biener  <rguenther@suse.de>
30093
30094         * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
30095         as argument.
30096         (expand_switch_using_bit_tests_p): Likewise.
30097         (process_switch): Compute and pass on speed_p based on the
30098         switch stmt.
30099         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
30100         optimize_bb_for_speed_p.
30101
30102 2014-04-14  Eric Botcazou  <ebotcazou@adacore.com>
30103
30104         * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
30105         * function.h (struct function): Rename has_force_vect_loops into
30106         has_force_vectorize_loops.
30107         * lto-streamer-in.c (input_cfg): Adjust for renaming.
30108         (input_struct_function_base): Likewise.
30109         * lto-streamer-out.c (output_cfg): Likewise.
30110         (output_struct_function_base): Likewise.
30111         * omp-low.c (expand_omp_simd): Likewise.
30112         * tree-cfg.c (move_sese_region_to_fn): Likewise.
30113         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
30114         (version_loop_for_if_conversion): Likewise.
30115         (tree_if_conversion): Likewise.
30116         (main_tree_if_conversion): Likewise.
30117         (gate_tree_if_conversion): Likewise.
30118         * tree-inline.c (copy_loops): Likewise.
30119         * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
30120         * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
30121         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
30122         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
30123         * tree-vectorizer.c (vectorize_loops): Likewise.
30124         * tree-vectorizer.h (unlimited_cost_model): Likewise.
30125
30126 2014-04-14  Richard Biener  <rguenther@suse.de>
30127
30128         PR lto/60720
30129         * lto-streamer-out.c (wrap_refs): New function.
30130         (lto_output): Wrap symbol references in global initializes in
30131         type-preserving MEM_REFs.
30132
30133 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30134
30135         * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
30136
30137 2014-04-14  Christian Bruel  <christian.bruel@st.com>
30138
30139         * config/sh/sh.md (setmemqi): New expand pattern.
30140         * config/sh/sh.h (CLEAR_RATIO): Define.
30141         * config/sh/sh-mem.cc (sh_expand_setmem): Define.
30142         * config/sh/sh-protos.h (sh_expand_setmem): Declare.
30143
30144 2014-04-14  Richard Biener  <rguenther@suse.de>
30145
30146         PR middle-end/55022
30147         * fold-const.c (negate_expr_p): Don't negate directional rounding
30148         division.
30149         (fold_negate_expr): Likewise.
30150
30151 2014-04-14  Richard Biener  <rguenther@suse.de>
30152
30153         PR tree-optimization/59817
30154         PR tree-optimization/60453
30155         * graphite-scop-detection.c (graphite_can_represent_scev): Complete
30156         recursion to catch all CHRECs in the scalar evolution and restrict
30157         the predicate for the remains appropriately.
30158
30159 2014-04-12  Catherine Moore  <clm@codesourcery.com>
30160
30161         * config/mips/constraints.md: Add new register constraint "kb".
30162         * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
30163         (*movhi_internal): Likewise.
30164         (*movqi_internal): Likewise.
30165         * config/mips/mips.h (M16_STORE_REGS): New register class.
30166         (REG_CLASS_NAMES): Add M16_STORE_REGS.
30167         (REG_CLASS_CONTENTS): Likewise.
30168         * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
30169
30170 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30171
30172         PR c/60194
30173         * doc/invoke.texi (-Wformat-signedness): Document it.
30174         (Wformat=2): Mention that this enables -Wformat-signedness.
30175
30176 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30177
30178         * common/config/epiphany/epiphany-common.c
30179         (epiphany_option_optimization_table): Enable section anchors by
30180         default at -O1 or higher.
30181         * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
30182         (TARGET_MIN_ANCHOR_OFFSET): Likewise.
30183         (epiphany_rtx_costs) <SET>: For binary operators, the set as such
30184         carries no extra cost.
30185         (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
30186         * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
30187         * config/epiphany/predicates.md (memclob_operand): New predicate.
30188         * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
30189         Use memclob_operand predicate and X constraint for operand 3.
30190
30191 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30192
30193         * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
30194         with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
30195         its operands.
30196
30197 2014-04-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30198
30199         PR rtl-optimization/60651
30200         * mode-switching.c (optimize_mode_switching): Make sure to emit
30201         sets of a lower numbered entity before sets of a higher numbered
30202         entity to a mode of the same or lower priority.
30203         When creating a seginfo for a basic block that starts with a code
30204         label, move the insertion point past the code label.
30205         (new_seginfo): Document and enforce requirement that
30206         NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
30207         * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
30208         * doc/tm.texi: Regenerate.
30209
30210 2014-01-11  Joern Rennecke  <joern.rennecke@embecosm.com>
30211
30212         PR target/60811
30213         * config/arc/arc.c (arc_save_restore): Fix assert typo.
30214
30215 2013-04-11  Jakub Jelinek  <jakub@redhat.com>
30216
30217         * BASE-VER: Set to 4.10.0.
30218
30219 2014-04-11  Tobias Burnus  <burnus@net-b.de>
30220
30221         PR other/59055
30222         * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
30223         * doc/gcc.texi (Service): Update description in the @menu
30224         * doc/invoke.texi (Option Summary): Remove misplaced and
30225         duplicated @menu.
30226
30227 2014-04-11  Steve Ellcey  <sellcey@mips.com>
30228             Jakub Jelinek  <jakub@redhat.com>
30229
30230         PR middle-end/60556
30231         * expr.c (convert_move): Use emit_store_flag_force instead of
30232         emit_store_flag.  Pass lowpart_mode instead of VOIDmode as 5th
30233         argument to it.
30234
30235 2014-04-11  Richard Biener  <rguenther@suse.de>
30236
30237         PR middle-end/60797
30238         * varasm.c (assemble_alias): Avoid endless error reporting
30239         recursion by setting TREE_ASM_WRITTEN.
30240
30241 2014-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30242
30243         * config/s390/s390.md: Add a splitter for NOT rtx.
30244
30245 2014-04-11  Jakub Jelinek  <jakub@redhat.com>
30246
30247         PR rtl-optimization/60663
30248         * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
30249
30250 2014-04-10  Jan Hubicka  <hubicka@ucw.cz>
30251             Jakub Jelinek  <jakub@redhat.com>
30252
30253         PR lto/60567
30254         * ipa.c (function_and_variable_visibility): Copy forced_by_abi
30255         flag from decl_node to node.
30256
30257 2014-04-10  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30258
30259         PR debug/60655
30260         * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
30261         (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
30262         ameliorating the cases where it can be.
30263
30264 2014-04-09  David Edelsohn  <dje.gcc@gmail.com>
30265
30266         Revert
30267         2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30268
30269         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30270         (loadsync_<mode>): Change mode.
30271         (load_quadpti, store_quadpti): New.
30272         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30273         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30274         * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
30275
30276 2014-04-09  Cong Hou  <congh@google.com>
30277
30278         PR testsuite/60773
30279         * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
30280         documentation.
30281
30282 2014-04-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30283
30284         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
30285         instead of vnor to exploit possible fusion opportunity in the
30286         future.
30287         (altivec_expand_vec_perm_const_le): Likewise.
30288
30289 2014-04-08  Pat Haugen  <pthaugen@us.ibm.com>
30290
30291         * config/rs6000/sync.md (AINT mode_iterator): Move definition.
30292         (loadsync_<mode>): Change mode.
30293         (load_quadpti, store_quadpti): New.
30294         (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
30295         * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
30296
30297 2014-04-08  Richard Sandiford  <rdsandiford@googlemail.com>
30298
30299         PR target/60763
30300         * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
30301         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
30302         Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
30303
30304 2014-04-08  Richard Biener  <rguenther@suse.de>
30305
30306         PR middle-end/60706
30307         * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
30308         a 64bit widest int print double-int similar to on HWI64 hosts.
30309
30310 2014-04-08  Richard Biener  <rguenther@suse.de>
30311
30312         PR tree-optimization/60785
30313         * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
30314         default defs properly.
30315
30316 2014-04-08  Nathan Sidwell  <nathan@codesourcery.com>
30317
30318         * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
30319         (Weffc++): Likewise.
30320
30321 2014-04-07  Jan Hubicka  <hubcika@ucw.cz>
30322
30323         * ipa-devirt.c (maybe_record_node): When node is not recorded,
30324         set completep to false rather than true.
30325
30326 2014-04-07  Douglas B Rupp  <rupp@adacore.com>
30327
30328         PR target/60504
30329         * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
30330         ARM_TARGET2_DWARF_FORMAT.
30331
30332 2014-04-07  Charles Baylis  <charles.baylis@linaro.org>
30333
30334         PR target/60609
30335         * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
30336         (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
30337         ADDR_DIFF_VEC.
30338
30339 2014-04-07  Richard Biener  <rguenther@suse.de>
30340
30341         PR tree-optimization/60766
30342         * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
30343         (may_eliminate_iv): Convert cand_value_at result to desired type.
30344
30345 2014-04-07  Jason Merrill  <jason@redhat.com>
30346
30347         PR c++/60731
30348         * common.opt (-fno-gnu-unique): Add.
30349         * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
30350
30351 2014-04-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30352
30353         * haifa-sched.c: Fix outdated function reference and minor
30354         grammar errors in introductory comment.
30355
30356 2014-04-07  Richard Biener  <rguenther@suse.de>
30357
30358         PR middle-end/60750
30359         * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
30360         for noreturn calls.
30361         * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
30362
30363 2014-04-06  John David Anglin  <danglin@gcc.gnu.org>
30364
30365         PR debug/55794
30366         * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
30367         size accounting for thunks.
30368         (pa_asm_output_mi_thunk): Use final_start_function() and
30369         final_end_function() to output function start and end directives.
30370
30371 2014-04-05  Pitchumani Sivanupandi  <Pitchumani.S@atmel.com>
30372
30373         * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
30374         device specific ISA/ feature information. Remove short_sp and
30375         errata_skip ds.  Add avr_device_specific_features enum to have device
30376         specific info.
30377         * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
30378         errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
30379         * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
30380         updated device specific info.
30381         * config/avr/avr-mcus.def: Merge device specific details to
30382         dev_attribute field.
30383         * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
30384         errata_skip.
30385         * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
30386         * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
30387         assembler if RMW isa supported by current device.
30388         * config/avr/genmultilib.awk: Update as device info structure changed.
30389         * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
30390
30391 2014-04-04  Cong Hou  <congh@google.com>
30392
30393         PR tree-optimization/60656
30394         * tree-vect-stmts.c (supportable_widening_operation):
30395         Fix a bug that elements in a vector with vect_used_by_reduction
30396         property are incorrectly reordered when the operation on it is not
30397         consistant with the one in reduction operation.
30398
30399 2014-04-04  John David Anglin  <danglin@gcc.gnu.org>
30400
30401         PR rtl-optimization/60155
30402         * gcse.c (record_set_data): New function.
30403         (single_set_gcse): New function.
30404         (gcse_emit_move_after): Use single_set_gcse instead of single_set.
30405         (hoist_code): Likewise.
30406         (get_pressure_class_and_nregs): Likewise.
30407
30408 2014-04-04  Eric Botcazou  <ebotcazou@adacore.com>
30409
30410         * explow.c (probe_stack_range): Emit a final optimization blockage.
30411
30412 2014-04-04  Anthony Green  <green@moxielogic.com>
30413
30414         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
30415         typos.
30416
30417 2014-04-04  Jan Hubicka  <hubicka@ucw.cz>
30418
30419         PR ipa/59626
30420         * lto-cgraph.c (input_overwrite_node): Check that partitioning
30421         flags are set only during streaming.
30422         * ipa.c (process_references, walk_polymorphic_call_targets,
30423         symtab_remove_unreachable_nodes): Drop bodies of always inline
30424         after early inlining.
30425         (symtab_remove_unreachable_nodes): Remove always_inline attribute.
30426
30427 2014-04-04  Jakub Jelinek  <jakub@redhat.com>
30428         Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30429
30430         PR debug/60655
30431         * dwarf2out.c (const_ok_for_output_1): Reject expressions
30432         containing a NOT.
30433
30434 2014-04-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30435
30436         PR bootstrap/60743
30437         * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
30438         duration.
30439         (cortex_a53_fdivd): Likewise.
30440
30441 2014-04-04  Martin Jambor  <mjambor@suse.cz>
30442
30443         PR ipa/60640
30444         * cgraph.h (cgraph_clone_node): New parameter added to declaration.
30445         Adjust all callers.
30446         * cgraph.c (clone_of_p): Also return true if thunks match.
30447         (verify_edge_corresponds_to_fndecl): Removed extraneous call to
30448         cgraph_function_or_thunk_node and an obsolete comment.
30449         * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
30450         file.
30451         (build_function_decl_skip_args): Likewise.
30452         (set_new_clone_decl_and_node_flags): New function.
30453         (duplicate_thunk_for_node): Likewise.
30454         (redirect_edge_duplicating_thunks): Likewise.
30455         (cgraph_clone_node): New parameter args_to_skip, pass it to
30456         redirect_edge_duplicating_thunks which is called instead of
30457         cgraph_redirect_edge_callee.
30458         (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
30459         moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
30460
30461 2014-04-04  Jeff Law  <law@redhat.com>
30462
30463         PR target/60657
30464         * config/arm/predicates.md (const_int_I_operand): New predicate.
30465         (const_int_M_operand): Similarly.
30466         * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
30467         const_int_operand.
30468         (insv_t2, extv_reg, extzv_t2): Likewise.
30469         (load_multiple_with_writeback): Similarly for const_int_I_operand.
30470         (pop_multiple_with_writeback_and_return): Likewise.
30471         (vfp_pop_multiple_with_writeback): Likewise
30472
30473 2014-04-04  Richard Biener  <rguenther@suse.de>
30474
30475         PR ipa/60746
30476         * tree-ssanames.c (make_ssa_name_fn): Fix assert.
30477         * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
30478         non-GIMPLE_LABELs.
30479         * gimplify.h (gimple_add_tmp_var_fn): Declare.
30480         * gimplify.c (gimple_add_tmp_var_fn): New function.
30481         * gimple-expr.h (create_tmp_reg_fn): Declare.
30482         * gimple-expr.c (create_tmp_reg_fn): New function.
30483         * gimple-low.c (record_vars_into): Don't change cfun.
30484         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
30485         code generation without cfun.
30486
30487 2014-04-04  Thomas Schwinge  <thomas@codesourcery.com>
30488
30489         PR bootstrap/60719
30490         * Makefile.in (install-driver): Fix shell scripting.
30491
30492 2014-04-03  Cong Hou  <congh@google.com>
30493
30494         PR tree-optimization/60505
30495         * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
30496         threshold of number of iterations below which no vectorization
30497         will be done.
30498         * tree-vect-loop.c (new_loop_vec_info):
30499         Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
30500         * tree-vect-loop.c (vect_analyze_loop_operations):
30501         Set LOOP_VINFO_COST_MODEL_THRESHOLD.
30502         * tree-vect-loop.c (vect_transform_loop):
30503         Use LOOP_VINFO_COST_MODEL_THRESHOLD.
30504         * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
30505         of iterations of the loop and see if we should build the epilogue.
30506
30507 2014-04-03  Richard Biener  <rguenther@suse.de>
30508
30509         * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
30510         (streamer_tree_cache_create): Adjust.
30511         * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
30512         to allow optional nodes array.
30513         (streamer_tree_cache_insert_1): Use next_idx to assign idx.
30514         (streamer_tree_cache_append): Likewise.
30515         (streamer_tree_cache_create): Create nodes array optionally
30516         as specified by parameter.
30517         * lto-streamer-out.c (create_output_block): Avoid maintaining
30518         the node array in the writer cache.
30519         (DFS_write_tree): Remove assertion.
30520         (produce_asm_for_decls): Free the out decl state hash table early.
30521         * lto-streamer-in.c (lto_data_in_create): Adjust for
30522         streamer_tree_cache_create prototype change.
30523
30524 2014-04-03  Richard Biener  <rguenther@suse.de>
30525
30526         * tree-streamer-out.c (streamer_write_chain): Do not temporarily
30527         set TREE_CHAIN to NULL_TREE.
30528
30529 2014-04-03  Richard Biener  <rguenther@suse.de>
30530
30531         PR tree-optimization/60740
30532         * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
30533         over all GIMPLE_COND operands.
30534
30535 2014-04-03  Nathan Sidwell  <nathan@codesourcery.com>
30536
30537         * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
30538         (Weffc++): Remove Scott's numbering, merge lists and reference
30539         Wnon-virtual-dtor.
30540
30541 2014-04-03  Nick Clifton  <nickc@redhat.com>
30542
30543         * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
30544         properly.
30545
30546 2014-04-03  Martin Jambor  <mjambor@suse.cz>
30547
30548         * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
30549         mention gcc_unreachable before failing.
30550         * ipa.c (symtab_remove_unreachable_nodes): Also print order of
30551         removed symbols.
30552
30553 2014-04-02  Jan Hubicka  <hubicka@ucw.cz>
30554
30555         PR ipa/60659
30556         * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
30557         inconsistent code and instead mark the context inconsistent.
30558         (possible_polymorphic_call_targets): For inconsistent contexts
30559         return empty complete list.
30560
30561 2014-04-02  Anthony Green  <green@moxielogic.com>
30562
30563         * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
30564         (extendqisi2, extendhisi2): Define.
30565         * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
30566         (WCHAR_TYPE): Change to unsigned int.
30567
30568 2014-04-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30569
30570         PR tree-optimization/60733
30571         * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
30572         insertion point for PHI candidates to be the end of the feeding
30573         block for the PHI argument.
30574
30575 2014-04-02  Vladimir Makarov  <vmakarov@redhat.com>
30576
30577         PR rtl-optimization/60650
30578         * lra-constraints.c (process_alt_operands): Decrease reject for
30579         earlyclobber matching.
30580
30581 2014-04-02  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30582
30583         * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
30584
30585 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30586
30587         * config/spu/spu.c (pad_bb): Do not crash when the last
30588         insn is CODE_FOR_blockage.
30589
30590 2014-04-02  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30591
30592         * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
30593         lies outside the target mode.
30594
30595 2014-04-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
30596
30597         PR target/60735
30598         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
30599         software floating point or no floating point registers, do not
30600         allow any type in the FPRs.  Eliminate a test for SPE SIMD types
30601         in GPRs that occurs after we tested for GPRs that would never be
30602         true.
30603
30604         * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
30605         Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
30606         since the FMOVE64 type is DFmode/DDmode.  If TARGET_E500_DOUBLE,
30607         specifically allow DDmode, since that does not use the SPE SIMD
30608         instructions.
30609
30610 2014-04-02  Richard Biener  <rguenther@suse.de>
30611
30612         PR middle-end/60729
30613         * optabs.c (expand_abs_nojump): Honor flag_trapv only for
30614         MODE_INTs.  Properly use negv_optab.
30615         (expand_abs): Likewise.
30616
30617 2014-04-02  Richard Biener  <rguenther@suse.de>
30618
30619         PR bootstrap/60719
30620         * Makefile.in (install-driver): Guard extra installs with special
30621         names properly.
30622
30623 2014-04-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
30624
30625         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30626         Document vec_vgbbd.
30627
30628 2014-04-01  Richard Henderson  <rth@redhat.com>
30629
30630         PR target/60704
30631         * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
30632         alternative enabled before register allocation.
30633
30634 2014-04-01  Chung-Lin Tang  <cltang@codesourcery.com>
30635
30636         * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
30637         * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
30638         typo.
30639         (nios2_large_got_address): Remove unneeded 'sym' parameter.
30640         (nios2_got_address): Update nios2_large_got_address call site.
30641         (nios2_delegitimize_address): New function.
30642         (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
30643         * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
30644         (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
30645
30646 2014-04-01  Martin Husemann  <martin@duskware.de>
30647
30648         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
30649         for -mabi=32.
30650
30651 2014-04-01  Richard Sandiford  <rdsandiford@googlemail.com>
30652
30653         PR rtl-optimization/60604
30654         * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
30655         check from register_operand.
30656         (register_operand): Redefine in terms of general_operand.
30657         (nonmemory_operand): Use register_operand for the non-constant cases.
30658
30659 2014-04-01  Richard Biener  <rguenther@suse.de>
30660
30661         * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
30662
30663 2014-04-01  Sebastian Huber  <sebastian.huber@embedded-brains.de>
30664
30665         * doc/invoke.texi (mapp-regs): Clarify.
30666
30667 2014-03-31  Ulrich Drepper  <drepper@gmail.com>
30668
30669         * config/i386/avx512fintrin.h (__v32hi): Define type.
30670         (__v64qi): Likewise.
30671         (_mm512_set1_epi8): Define.
30672         (_mm512_set1_epi16): Define.
30673         (_mm512_set4_epi32): Define.
30674         (_mm512_set4_epi64): Define.
30675         (_mm512_set4_pd): Define.
30676         (_mm512_set4_ps): Define.
30677         (_mm512_setr4_epi64): Define.
30678         (_mm512_setr4_epi32): Define.
30679         (_mm512_setr4_pd): Define.
30680         (_mm512_setr4_ps): Define.
30681         (_mm512_setzero_epi32): Define.
30682
30683 2014-03-31  Martin Jambor  <mjambor@suse.cz>
30684
30685         PR middle-end/60647
30686         * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
30687         callsite_arguments_match_p.  Updated all callers.  Also check types of
30688         corresponding formal parameters and actual arguments.
30689         (not_all_callers_have_enough_arguments_p) Renamed to
30690         some_callers_have_mismatched_arguments_p.
30691
30692 2014-03-31  Yuri Rumyantsev  <ysrumyan@gmail.com>
30693
30694         * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
30695
30696 2014-03-31  Kugan Vivekanandarajah  <kuganv@linaro.org>
30697
30698         PR target/60034
30699         * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
30700         section anchor.
30701
30702 2014-03-30  Uros Bizjak  <ubizjak@gmail.com>
30703
30704         * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
30705         (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
30706         Split out
30707         <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
30708         Use FMAMODE_NOVF512 mode iterator.
30709         (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
30710         (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
30711         (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
30712         (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
30713         Split out
30714         <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
30715         Use VF_128_256 mode iterator.
30716         (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
30717         Ditto.
30718
30719 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30720
30721         * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
30722         static chain if needed.
30723
30724 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30725
30726         PR target/60697
30727         * lra-constraints.c (index_part_to_reg): New.
30728         (process_address): Use it.
30729
30730 2014-03-27  Jeff Law  <law@redhat.com>
30731             Jakub Jelinek  <jakub@redhat.com>
30732
30733         PR target/60648
30734         * expr.c (do_tablejump): Use simplify_gen_binary rather than
30735         gen_rtx_{PLUS,MULT} to build up the address expression.
30736
30737         * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
30738         creating non-canonical RTL.
30739
30740 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30741
30742         PR ipa/60243
30743         * ipa-inline.c (want_inline_small_function_p): Short circuit large
30744         functions; reorganize to make cheap checks first.
30745         (inline_small_functions): Do not estimate growth when dumping;
30746         it is expensive.
30747         * ipa-inline.h (inline_summary): Add min_size.
30748         (growth_likely_positive): New function.
30749         * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
30750         (set_cond_stmt_execution_predicate): Cleanup.
30751         (estimate_edge_size_and_time): Compute min_size.
30752         (estimate_calls_size_and_time): Likewise.
30753         (estimate_node_size_and_time): Likewise.
30754         (inline_update_overall_summary): Update min_size.
30755         (do_estimate_edge_time): Likewise.
30756         (do_estimate_edge_size): Update.
30757         (do_estimate_edge_hints): Update.
30758         (growth_likely_positive): New function.
30759
30760 2014-03-28  Jakub Jelinek  <jakub@redhat.com>
30761
30762         PR target/60693
30763         * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
30764         also if addr has VOIDmode.
30765
30766 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30767
30768         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
30769         * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
30770         Declare extern.
30771         * config/arm/cortex-a53.md: Add reservations and bypass for crypto
30772         instructions as well as AdvancedSIMD loads.
30773
30774 2014-03-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30775
30776         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
30777         Use crypto_aese type.
30778         (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
30779         * config/arm/arm.md (is_neon_type): Replace crypto_aes with
30780         crypto_aese, crypto_aesmc.  Move to types.md.
30781         * config/arm/types.md (crypto_aes): Split into crypto_aese,
30782         crypto_aesmc.
30783         * config/arm/iterators.md (crypto_type): Likewise.
30784
30785 2014-03-28  Jan Hubicka  <hubicka@ucw.cz>
30786
30787         * cgraph.c: Include expr.h and tree-dfa.h.
30788         (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
30789         remove LHS.
30790
30791 2014-03-28  Vladimir Makarov  <vmakarov@redhat.com>
30792
30793         PR target/60675
30794         * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
30795         regs from checking multi-reg pseudos.
30796
30797 2014-03-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
30798
30799         * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
30800
30801 2014-03-28  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
30802
30803         * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
30804         if it would clobber the stack pointer, even temporarily.
30805
30806 2014-03-28  Eric Botcazou  <ebotcazou@adacore.com>
30807
30808         * mode-switching.c: Make small adjustments to the top comment.
30809
30810 2014-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
30811
30812         * config/rs6000/constraints.md (wD constraint): New constraint to
30813         match the constant integer to get the top DImode/DFmode out of a
30814         vector in a VSX register.
30815
30816         * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
30817         match the constant integer to get the top DImode/DFmode out of a
30818         vector in a VSX register.
30819
30820         * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
30821         for ISA 2.07.
30822
30823         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30824         vbpermq builtins.
30825
30826         * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
30827         -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
30828
30829         * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
30830         Optimize vec_extract of 64-bit values, where the value being
30831         extracted is in the top word, where we can use scalar
30832         instructions.  Add direct move and store support.  Combine the big
30833         endian/little endian vector select load support into a single insn.
30834         (vsx_extract_<mode>_internal1): Likewise.
30835         (vsx_extract_<mode>_internal2): Likewise.
30836         (vsx_extract_<mode>_load): Likewise.
30837         (vsx_extract_<mode>_store): Likewise.
30838         (vsx_extract_<mode>_zero): Delete, big and little endian insns are
30839         combined into vsx_extract_<mode>_load.
30840         (vsx_extract_<mode>_one_le): Likewise.
30841
30842         * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
30843         define the top 64-bit vector element.
30844
30845         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
30846         constraint.
30847
30848         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30849         Document vec_vbpermq builtin.
30850
30851         PR target/60672
30852         * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
30853         enable use of xxsldwi and xxpermdi builtin functions.
30854         (vec_xxpermdi): Likewise.
30855
30856         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
30857         Document use of vec_xxsldwi and vec_xxpermdi builtins.
30858
30859 2014-03-27  Vladimir Makarov  <vmakarov@redhat.com>
30860
30861         PR rtl-optimization/60650
30862         * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
30863         first_p.  Use it.
30864         (find_spills_for): New.
30865         (assign_by_spills): Pass the new parameter to find_hard_regno_for.
30866         Spill all pseudos on the second iteration.
30867
30868 2014-03-27  Marek Polacek  <polacek@redhat.com>
30869
30870         PR c/50347
30871         * doc/extend.texi (ffs Builtins): Change unsigned types to signed
30872         types.
30873
30874 2014-03-27  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30875
30876         * config/s390/s390.c (s390_can_use_return_insn): Check for
30877         call-saved FPRs on 31 bit.
30878
30879 2014-03-27  Jakub Jelinek  <jakub@redhat.com>
30880
30881         PR middle-end/60682
30882         * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
30883         if they need regimplification, just drop them instead of
30884         calling gimple_regimplify_operands on them.
30885
30886 2014-03-27  Marcus Shawcroft  <marcus.shawcroft@arm.com>
30887
30888         PR target/60580
30889         * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
30890         (aarch64_frame_pointer_required): Adjust logic.
30891         (aarch64_can_eliminate): Adjust logic.
30892         (aarch64_override_options_after_change): Adjust logic.
30893
30894 2014-03-27  Dehao Chen  <dehao@google.com>
30895
30896         * ipa-inline.c (early_inliner): Update node's inline info.
30897
30898 2014-03-26  Dehao Chen  <dehao@google.com>
30899
30900         * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
30901         compiler inserted conditional jumps for NAN float check.
30902
30903 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30904
30905         * ubsan.h (ubsan_create_data): Change second argument's type
30906         to const location_t *.
30907         * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
30908         _("<unknown>").
30909         (ubsan_create_data): Change second argument to const location_t *PLOC.
30910         Create Loc field whenever PLOC is non-NULL.
30911         (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
30912         ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
30913         callers.
30914
30915         PR other/59545
30916         * real.c (real_to_integer2): Change type of low to UHWI.
30917
30918 2014-03-26  Tobias Burnus  <burnus@net-b.de>
30919
30920         * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
30921         (CILK_SELF_SPECS): New define.
30922         (driver_self_specs): Use it.
30923
30924 2014-03-26  Richard Biener  <rguenther@suse.de>
30925
30926         * tree-pretty-print.c (percent_K_format): Implement special
30927         case for LTO and its stripped down BLOCK tree.
30928
30929 2014-03-26  Jakub Jelinek  <jakub@redhat.com>
30930
30931         PR sanitizer/60636
30932         * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
30933
30934         * tree-vrp.c (simplify_internal_call_using_ranges): If only
30935         one range is range_int_cst_p, but not both, at least optimize
30936         addition/subtraction of 0 and multiplication by 0 or 1.
30937         * gimple-fold.c (gimple_fold_call): Fold
30938         IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
30939         (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
30940         INTEGER_CSTs, try to fold at least x * 0 and y - y.
30941
30942 2014-03-26  Eric Botcazou  <ebotcazou@adacore.com>
30943
30944         PR rtl-optimization/60452
30945         * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
30946         <case REG>: Return 1 for invalid offsets from the frame pointer.
30947
30948 2014-03-26  Marek Polacek  <polacek@redhat.com>
30949
30950         PR c/37428
30951         * doc/extend.texi (C Extensions): Mention variable-length arrays in
30952         a structure/union.
30953
30954 2014-03-26  Marek Polacek  <polacek@redhat.com>
30955
30956         PR c/39525
30957         * doc/extend.texi (Designated Inits): Describe what happens to omitted
30958         field members.
30959
30960 2014-03-26  Marek Polacek  <polacek@redhat.com>
30961
30962         PR other/59545
30963         * ira-color.c (update_conflict_hard_regno_costs): Perform the
30964         multiplication in unsigned type.
30965
30966 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30967
30968         * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
30969
30970 2014-03-26  Chung-Ju Wu  <jasonwucj@gmail.com>
30971
30972         * doc/contrib.texi: Add myself as Andes nds32 port contributor.
30973
30974 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30975
30976         PR ipa/60315
30977         * cif-code.def (UNREACHABLE) New code.
30978         * ipa-inline.c (inline_small_functions): Skip edges to
30979         __builtlin_unreachable.
30980         (estimate_edge_growth): Allow edges to __builtlin_unreachable.
30981         * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
30982         predicate to __bulitin_unreachable.
30983         (set_cond_stmt_execution_predicate): Fix issue when
30984         invert_tree_comparison returns ERROR_MARK.
30985         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
30986         propagate to inline clones.
30987         * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
30988         to unreachable.
30989         * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
30990         * cgraphclones.c (cgraph_clone_node): If call destination is already
30991         ureachable, do not redirect it back.
30992         * tree-inline.c (fold_marked_statements): Hanlde calls becoming
30993         unreachable.
30994
30995 2014-03-25  Jan Hubicka  <hubicka@ucw.cz>
30996
30997         * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
30998         Do not modify inline clones.
30999
31000 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31001
31002         * config/i386/i386.md (general_sext_operand): New mode attr.
31003         (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
31004         don't generate (sign_extend (const_int)).
31005         (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
31006         operands[2].  Use We constraint instead of <i> and
31007         <general_sext_operand> predicate instead of <general_operand>.
31008         (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
31009         * config/i386/constraints.md (We): New constraint.
31010         * config/i386/predicates.md (x86_64_sext_operand,
31011         sext_operand): New predicates.
31012
31013 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31014
31015         PR ipa/60600
31016         * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
31017         inconsistent devirtualizations to __builtin_unreachable.
31018
31019 2014-03-25  Marek Polacek  <polacek@redhat.com>
31020
31021         PR c/35449
31022         * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
31023
31024 2014-03-25  Alan Lawrence  <alan.lawrence@arm.com>
31025
31026         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
31027         order of elements for big-endian.
31028
31029 2014-03-25  Richard Biener  <rguenther@suse.de>
31030
31031         PR middle-end/60635
31032         * gimplify-me.c (gimple_regimplify_operands): Update the
31033         re-gimplifed stmt.
31034
31035 2014-03-25  Martin Jambor  <mjambor@suse.cz>
31036
31037         PR ipa/59176
31038         * lto-cgraph.c (lto_output_node): Stream body_removed flag.
31039         (lto_output_varpool_node): Likewise.
31040         (input_overwrite_node): Likewise.
31041         (input_varpool_node): Likewise.
31042
31043 2014-03-25  Richard Biener  <rguenther@suse.de>
31044
31045         * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
31046         (run_gcc): Likewise.
31047
31048 2014-03-25  Jakub Jelinek  <jakub@redhat.com>
31049
31050         * combine.c (simplify_compare_const): Add MODE argument.
31051         Handle mode_width 0 as very large mode_width.
31052         (try_combine, simplify_comparison): Adjust callers.
31053
31054         * cselib.c (cselib_hash_rtx): Perform addition in unsigned
31055         type to avoid signed integer overflow.
31056         * explow.c (plus_constant): Likewise.
31057
31058 2014-03-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
31059
31060         * doc/generic.texi: Correct typos.
31061
31062 2014-03-24  Tobias Burnus  <burnus@net-b.de>
31063
31064         * doc/invoke.texi (-flto): Expand section about
31065         using static libraries with LTO.
31066
31067 2014-03-24  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31068
31069         PR rtl-optimization/60501
31070         * optabs.def (addptr3_optab): New optab.
31071         * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
31072         * doc/md.texi ("addptrm3"): Document new RTL standard expander.
31073         * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
31074
31075         * lra.c (emit_add3_insn): Use the addptr pattern if available.
31076
31077         * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
31078
31079 2014-03-24  Ulrich Drepper  <drepper@gmail.com>
31080
31081         * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
31082         _mm512_set1_pd.
31083
31084         * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
31085         (_mm256_undefined_ps): Define.
31086         (_mm256_undefined_pd): Define.
31087         * config/i386/emmintrin.h (_mm_undefined_si128): Define.
31088         (_mm_undefined_pd): Define.
31089         * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
31090         * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
31091         (_mm512_undefined_ps): Define.
31092         (_mm512_undefined_pd): Define.
31093         Use _mm*_undefined_*.
31094         * config/i386/avx2intrin.h: Use _mm*_undefined_*.
31095
31096 2014-03-24  Alex Velenko  <Alex.Velenko@arm.com>
31097
31098         * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
31099         (lshr_simd): DI mode added.
31100         * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
31101         (aarch64_ushr_simddi): Likewise.
31102         * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
31103         * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
31104         (vshrd_n_u64): Likewise.
31105
31106 2014-03-24  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31107
31108         * Makefile.in (s-macro_list): Depend on cc1.
31109
31110 2014-03-23  Teresa Johnson  <tejohnson@google.com>
31111
31112         * ipa-utils.c (ipa_print_order): Use specified dump file.
31113
31114 2014-03-23  Eric Botcazou  <ebotcazou@adacore.com>
31115
31116         PR rtl-optimization/60601
31117         * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
31118
31119         * gcc.c (eval_spec_function): Initialize save_growing_value.
31120
31121 2014-03-22  Jakub Jelinek  <jakub@redhat.com>
31122
31123         PR sanitizer/60613
31124         * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
31125         code == MINUS_EXPR, never swap op0 with op1.
31126
31127         * toplev.c (init_local_tick): Avoid signed integer multiplication
31128         overflow.
31129         * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
31130         shift by first operand's bitsize.
31131
31132 2014-03-21  Jakub Jelinek  <jakub@redhat.com>
31133
31134         PR target/60610
31135         * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
31136         redefine to 1 or 0.
31137         * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
31138         TARGET_ISA_64BIT_P(x).
31139
31140 2014-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31141
31142         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
31143         pattern for vector nor instead of subtract from splat(-1).
31144         (altivec_expand_vec_perm_const_le): Likewise.
31145
31146 2014-03-21  Richard Henderson  <rth@twiddle.net>
31147
31148         PR target/60598
31149         * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
31150         related insns after epilogue_completed.
31151
31152 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31153
31154         PR ipa/59176
31155         * cgraph.h (symtab_node): New flag body_removed.
31156         * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
31157         when removing bodies.
31158         * symtab.c (dump_symtab_base): Dump body_removed flag.
31159         * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
31160         had their bodies removed.
31161
31162 2014-03-21  Martin Jambor  <mjambor@suse.cz>
31163
31164         PR ipa/60419
31165         * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
31166         in the border.
31167
31168 2014-03-21  Richard Biener  <rguenther@suse.de>
31169
31170         PR tree-optimization/60577
31171         * tree-core.h (struct tree_base): Document nothrow_flag use
31172         in DECL_NONALIASED.
31173         * tree.h (DECL_NONALIASED): New.
31174         (may_be_aliased): Adjust.
31175         * coverage.c (build_var): Set DECL_NONALIASED.
31176
31177 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31178
31179         * expr.c (expand_expr_real_1): Remove outdated comment.
31180
31181 2014-03-20  Jakub Jelinek  <jakub@redhat.com>
31182
31183         PR middle-end/60597
31184         * ira.c (adjust_cleared_regs): Call copy_rtx on
31185         *reg_equiv[REGNO (loc)].src_p before passing it to
31186         simplify_replace_fn_rtx.
31187
31188         PR target/60568
31189         * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
31190         into CONST, put pic register as first operand of PLUS.  Use
31191         gen_const_mem for both 32-bit and 64-bit PIC got loads.
31192
31193 2014-03-20  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
31194
31195         * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
31196
31197 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31198
31199         * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
31200         around for store forwarding issue in the FPU on the UT699.
31201         * config/sparc/sparc.md (in_branch_delay): Return false for single FP
31202         loads and operations if -mfix-ut699 is specified.
31203         (divtf3_hq): Tweak attribute.
31204         (sqrttf2_hq): Likewise.
31205
31206 2014-03-20  Eric Botcazou  <ebotcazou@adacore.com>
31207
31208         * calls.c (store_one_arg): Remove incorrect const qualification on the
31209         type of the temporary.
31210         * cfgexpand.c (expand_return): Likewise.
31211         * expr.c (expand_constructor): Likewise.
31212         (expand_expr_real_1): Likewise.
31213
31214 2014-03-20  Zhenqiang Chen  <zhenqiang.chen@linaro.org>
31215
31216         * config/arm/arm.c (arm_dwarf_register_span): Update the element number
31217         of parts.
31218
31219 2014-03-19  Kaz Kojima  <kkojima@gcc.gnu.org>
31220
31221         PR target/60039
31222         * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
31223
31224 2014-03-19  James Greenhalgh  <james.greenhalgh@arm.com>
31225
31226         * config/arm/aarch-common-protos.h
31227         (alu_cost_table): Fix spelling of "extend".
31228         * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
31229
31230 2014-03-19  Richard Biener  <rguenther@suse.de>
31231
31232         PR middle-end/60553
31233         * tree-core.h (tree_type_common): Re-order pointer members
31234         to reduce recursion depth during GC walks.
31235
31236 2014-03-19  Marek Polacek  <polacek@redhat.com>
31237
31238         PR sanitizer/60569
31239         * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
31240         before accessing it.
31241
31242 2014-03-19  Richard Biener  <rguenther@suse.de>
31243
31244         PR lto/59543
31245         * lto-streamer-in.c (input_function): In WPA stage do not drop
31246         debug stmts.
31247
31248 2014-03-19  Jakub Jelinek  <jakub@redhat.com>
31249
31250         PR tree-optimization/60559
31251         * vectorizable_mask_load_store): Replace scalar MASK_LOAD
31252         with build_zero_cst assignment.
31253
31254 2014-03-18  Kai Tietz  <ktietz@redhat.com>
31255
31256         PR rtl-optimization/56356
31257         * sdbout.c (sdbout_parms): Verify that parms'
31258         incoming argument is valid.
31259         (sdbout_reg_parms): Likewise.
31260
31261 2014-03-18  Richard Henderson  <rth@redhat.com>
31262
31263         PR target/60562
31264         * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
31265         be shadowed by *float<SWI48><MODEF>2_sse.  Test X87_ENABLE_FLOAT.
31266         (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
31267
31268 2014-03-18  Basile Starynkevitch  <basile@starynkevitch.net>
31269
31270         * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
31271         * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
31272         Italicize plugin event names in description.  Explain that
31273         PLUGIN_PRAGMAS has no sense for lto1.  Explain PLUGIN_INCLUDE_FILE.
31274         Remind that no GCC functions should be called after PLUGIN_FINISH.
31275         Explain what pragmas with expansion are.
31276
31277 2014-03-18  Martin Liska  <mliska@suse.cz>
31278
31279         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
31280         gimple call statement is update.
31281         * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
31282         GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
31283
31284 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31285
31286         PR sanitizer/60557
31287         * ubsan.c (ubsan_instrument_unreachable): Call
31288         initialize_sanitizer_builtins.
31289         (ubsan_pass): Likewise.
31290
31291         PR sanitizer/60535
31292         * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
31293         varpool_finalize_decl instead of rest_of_decl_compilation.
31294
31295 2014-03-18  Richard Biener  <rguenther@suse.de>
31296
31297         * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
31298         by using bitmap_and_compl instead of bitmap_and_compl_into.
31299         (df_rd_transfer_function): Likewise.
31300
31301 2014-03-18  Richard Biener  <rguenther@suse.de>
31302
31303         * doc/lto.texi (fresolution): Fix typo.
31304
31305 2014-03-18  Richard Biener  <rguenther@suse.de>
31306
31307         * doc/invoke.texi (flto): Update for changes in 4.9.
31308
31309 2014-03-18  Richard Biener  <rguenther@suse.de>
31310
31311         * doc/loop.texi: Remove section on the removed lambda framework.
31312         Update loop docs with recent changes in preserving loop structure.
31313
31314 2014-03-18  Richard Biener  <rguenther@suse.de>
31315
31316         * doc/lto.texi (-fresolution): Document.
31317
31318 2014-03-18  Richard Biener  <rguenther@suse.de>
31319
31320         * doc/contrib.texi: Adjust my name.
31321
31322 2014-03-18  Jakub Jelinek  <jakub@redhat.com>
31323
31324         PR ipa/58721
31325         * internal-fn.c: Include diagnostic-core.h.
31326         (expand_BUILTIN_EXPECT): New function.
31327         * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
31328         (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
31329         IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
31330         * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
31331         IFN_BUILTIN_EXPECT.
31332         * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
31333         Revert 3 argument __builtin_expect code.
31334         (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
31335         * gimple-fold.c (gimple_fold_call): Likewise.
31336         * tree.h (fold_builtin_expect): New prototype.
31337         * builtins.c (build_builtin_expect_predicate): Add predictor
31338         argument, if non-NULL, create 3 argument __builtin_expect.
31339         (fold_builtin_expect): No longer static.  Add ARG2 argument,
31340         pass it through to build_builtin_expect_predicate.
31341         (fold_builtin_2): Adjust caller.
31342         (fold_builtin_3): Handle BUILT_IN_EXPECT.
31343         * internal-fn.def (BUILTIN_EXPECT): New.
31344
31345 2014-03-18  Tobias Burnus  <burnus@net-b.de>
31346
31347         PR ipa/58721
31348         * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
31349         PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
31350         PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
31351
31352 2014-03-18  Jan Hubicka  <hubicka@ucw.cz>
31353
31354         PR ipa/58721
31355         * predict.c (combine_predictions_for_bb): Fix up formatting.
31356         (expr_expected_value_1, expr_expected_value): Add predictor argument,
31357         fill what it points to if non-NULL.
31358         (tree_predict_by_opcode): Adjust caller, use the predictor.
31359         * predict.def (PRED_COMPARE_AND_SWAP): Add.
31360
31361 2014-03-18  Eric Botcazou  <ebotcazou@adacore.com>
31362
31363         * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
31364         proper constant for the store mode.
31365
31366 2014-03-18  Ilya Enkovich  <ilya.enkovich@intel.com>
31367
31368         * symtab.c (change_decl_assembler_name): Fix transparent alias
31369         chain construction.
31370
31371 2014-03-16  Renlin Li  <Renlin.Li@arm.com>
31372
31373         * config/aarch64/aarch64.c: Correct the comments about the
31374         aarch64 stack layout.
31375
31376 2014-03-18  Thomas Schwinge  <thomas@codesourcery.com>
31377
31378         * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
31379         check for GF_OMP_FOR_KIND_FOR.
31380
31381 2013-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
31382
31383         * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
31384         ymm and zmm register names.
31385
31386 2014-03-17  Jakub Jelinek  <jakub@redhat.com>
31387
31388         PR target/60516
31389         * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
31390         note creation for the 2010-08-31 changes.
31391
31392 2014-03-17  Marek Polacek  <polacek@redhat.com>
31393
31394         PR middle-end/60534
31395         * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
31396         as -fno-tree-loop-vectorize.
31397         (expand_omp_simd): Likewise.
31398
31399 2014-03-15  Eric Botcazou  <ebotcazou@adacore.com>
31400
31401         * config/sparc/sparc-protos.h (tls_call_delay): Delete.
31402         (eligible_for_call_delay): New prototype.
31403         * config/sparc/sparc.c (tls_call_delay): Rename into...
31404         (eligible_for_call_delay): ...this.  Return false if the instruction
31405         cannot be put in the delay slot of a branch.
31406         (eligible_for_restore_insn): Simplify.
31407         (eligible_for_return_delay): Return false if the instruction cannot be
31408         put in the delay slot of a branch and simplify.
31409         (eligible_for_sibcall_delay): Return false if the instruction cannot be
31410         put in the delay slot of a branch.
31411         * config/sparc/sparc.md (fix_ut699): New attribute.
31412         (tls_call_delay): Delete.
31413         (in_call_delay): Reimplement.
31414         (eligible_for_sibcall_delay): Rename into...
31415         (in_sibcall_delay): ...this.
31416         (eligible_for_return_delay): Rename into...
31417         (in_return_delay): ...this.
31418         (in_branch_delay): Reimplement.
31419         (in_uncond_branch_delay): Delete.
31420         (in_annul_branch_delay): Delete.
31421
31422 2014-03-14  Richard Henderson  <rth@redhat.com>
31423
31424         PR target/60525
31425         * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
31426         define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
31427         (*floathi<X87MODEF>2_i387_with_temp): Remove.
31428         (floathi splitters): Remove.
31429         (float<SWI48x>xf2): New pattern.
31430         (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2.  Drop
31431         code that tried to handle DImode for 32-bit, but which was excluded
31432         by the pattern's condition.  Drop allocation of stack temporary.
31433         (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
31434         (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
31435         (*float<SWI48><MODEF>2_mixed_interunit): Remove.
31436         (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
31437         (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
31438         (*float<SWI48><MODEF>2_sse_with_temp): Remove.
31439         (*float<SWI48><MODEF>2_sse_interunit): Remove.
31440         (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
31441         (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
31442         (*float<SWI48x><X87MODEF>2_i387): Remove.
31443         (all float _with_temp splitters): Remove.
31444         (*float<SWI48x><MODEF>2_i387): New pattern.
31445         (*float<SWI48><MODEF>2_sse): New pattern.
31446         (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
31447         (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
31448
31449 2014-03-14  Jakub Jelinek  <jakub@redhat.com>
31450             Marek Polacek  <polacek@redhat.com>
31451
31452         PR middle-end/60484
31453         * common.opt (dump_base_name_prefixed): New Variable.
31454         * opts.c (finish_options): Don't prepend directory to x_dump_base_name
31455         if x_dump_base_name_prefixed is already set, set it at the end.
31456
31457 2014-03-14  Vladimir Makarov  <vmakarov@redhat.com>
31458
31459         PR rtl-optimization/60508
31460         * lra-constraints.c (get_reload_reg): Add new parameter
31461         in_subreg_p.
31462         (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
31463         Pass the new parameter values.
31464
31465 2014-03-14  Richard Biener  <rguenther@suse.de>
31466
31467         * common.opt: Revert unintented changes from r205065.
31468         * opts.c: Likewise.
31469
31470 2014-03-14  Richard Biener  <rguenther@suse.de>
31471
31472         PR middle-end/60518
31473         * cfghooks.c (split_block): Properly adjust all loops the
31474         block was a latch of.
31475
31476 2014-03-14  Martin Jambor  <mjambor@suse.cz>
31477
31478         PR lto/60461
31479         * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
31480         and simplify it.
31481
31482 2014-03-14  Georg-Johann Lay  <avr@gjlay.de>
31483
31484         PR target/59396
31485         * config/avr/avr.c (avr_set_current_function): Pass function name
31486         through default_strip_name_encoding before sanity checking instead
31487         of skipping the first char of the assembler name.
31488
31489 2014-03-13  Richard Henderson  <rth@redhat.com>
31490
31491         PR debug/60438
31492         * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
31493         (ix86_force_to_memory, ix86_free_from_memory): Remove.
31494         * config/i386/i386-protos.h: Likewise.
31495         * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
31496         in the expander instead of a splitter.
31497         (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
31498         any possibility of requiring a memory.
31499         (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
31500         (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
31501         (fp branch splitters): Update for ix86_split_fp_branch.
31502         (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
31503         (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
31504         (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
31505         (*fop_<MODEF>_2_i387): Remove f/r alternative.
31506         (*fop_<MODEF>_3_i387): Likewise.
31507         (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
31508         (splitters for the fop_* register patterns): Remove.
31509         (fscalexf4_i387): Rename from *fscalexf4_i387.
31510         (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
31511
31512 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31513
31514         PR tree-optimization/59779
31515         * tree-dfa.c (get_ref_base_and_extent): Use double_int
31516         type for bitsize and maxsize instead of HOST_WIDE_INT.
31517
31518 2014-03-13  Steven Bosscher  <steven@gcc.gnu.org>
31519
31520         PR rtl-optimization/57320
31521         * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
31522         the CFG after thread_prologue_and_epilogue_insns.
31523
31524 2014-03-13  Vladimir Makarov  <vmakarov@redhat.com>
31525
31526         PR rtl-optimization/57189
31527         * lra-constraints.c (process_alt_operands): Disfavor spilling
31528         vector pseudos.
31529
31530 2014-03-13  Cesar Philippidis  <cesar@codesourcery.com>
31531
31532         * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
31533
31534 2014-03-13  Jakub Jelinek  <jakub@redhat.com>
31535
31536         PR tree-optimization/59025
31537         PR middle-end/60418
31538         * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
31539         same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
31540
31541 2014-03-13  Georg-Johann Lay  <avr@gjlay.de>
31542
31543         PR target/60486
31544         * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
31545         calls of avr_out_plus_1.
31546
31547 2014-03-13  Bin Cheng  <bin.cheng@arm.com>
31548
31549         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
31550         BB's single pred and update the father loop's latch info later.
31551
31552 2014-03-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31553
31554         * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
31555         (VEC_M): Likewise.
31556         (VEC_N): Likewise.
31557         (VEC_R): Likewise.
31558         (VEC_base): Likewise.
31559         (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
31560         registers, we need to swap double words in little endian mode.
31561
31562         * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
31563         to be a container mode for 128-bit integer operations added in ISA
31564         2.07.  Unlike TImode and PTImode, the preferred register set is
31565         the Altivec/VMX registers for the 128-bit operations.
31566
31567         * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
31568         declarations.
31569         (rs6000_split_128bit_ok_p): Likewise.
31570
31571         * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
31572         macros for creating ISA 2.07 normal and overloaded builtin
31573         functions with 3 arguments.
31574         (BU_P8V_OVERLOAD_3): Likewise.
31575         (VPERM_1T): Add support for V1TImode in 128-bit vector operations
31576         for use as overloaded functions.
31577         (VPERM_1TI_UNS): Likewise.
31578         (VSEL_1TI): Likewise.
31579         (VSEL_1TI_UNS): Likewise.
31580         (ST_INTERNAL_1ti): Likewise.
31581         (LD_INTERNAL_1ti): Likewise.
31582         (XXSEL_1TI): Likewise.
31583         (XXSEL_1TI_UNS): Likewise.
31584         (VPERM_1TI): Likewise.
31585         (VPERM_1TI_UNS): Likewise.
31586         (XXPERMDI_1TI): Likewise.
31587         (SET_1TI): Likewise.
31588         (LXVD2X_V1TI): Likewise.
31589         (STXVD2X_V1TI): Likewise.
31590         (VEC_INIT_V1TI): Likewise.
31591         (VEC_SET_V1TI): Likewise.
31592         (VEC_EXT_V1TI): Likewise.
31593         (EQV_V1TI): Likewise.
31594         (NAND_V1TI): Likewise.
31595         (ORC_V1TI): Likewise.
31596         (VADDCUQ): Add support for 128-bit integer arithmetic instructions
31597         added in ISA 2.07.  Add both normal 'altivec' builtins, and the
31598         overloaded builtin.
31599         (VADDUQM): Likewise.
31600         (VSUBCUQ): Likewise.
31601         (VADDEUQM): Likewise.
31602         (VADDECUQ): Likewise.
31603         (VSUBEUQM): Likewise.
31604         (VSUBECUQ): Likewise.
31605
31606         * config/rs6000/rs6000-c.c (__int128_type): New static to hold
31607         __int128_t and __uint128_t types.
31608         (__uint128_type): Likewise.
31609         (altivec_categorize_keyword): Add support for vector __int128_t,
31610         vector __uint128_t, vector __int128, and vector unsigned __int128
31611         as a container type for TImode operations that need to be done in
31612         VSX/Altivec registers.
31613         (rs6000_macro_to_expand): Likewise.
31614         (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
31615         to support 128-bit integer instructions vaddcuq, vadduqm,
31616         vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
31617         (altivec_resolve_overloaded_builtin): Add support for V1TImode.
31618
31619         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
31620         for V1TImode, and set up preferences to use VSX/Altivec registers.
31621         Setup VSX reload handlers.
31622         (rs6000_debug_reg_global): Likewise.
31623         (rs6000_init_hard_regno_mode_ok): Likewise.
31624         (rs6000_preferred_simd_mode): Likewise.
31625         (vspltis_constant): Do not allow V1TImode as easy altivec constants.
31626         (easy_altivec_constant): Likewise.
31627         (output_vec_const_move): Likewise.
31628         (rs6000_expand_vector_set): Convert V1TImode set and extract to
31629         simple move.
31630         (rs6000_expand_vector_extract): Likewise.
31631         (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
31632         addressing.
31633         (rs6000_const_vec): Add support for V1TImode.
31634         (rs6000_emit_le_vsx_load): Swap double words when loading or
31635         storing TImode/V1TImode.
31636         (rs6000_emit_le_vsx_store): Likewise.
31637         (rs6000_emit_le_vsx_move): Likewise.
31638         (rs6000_emit_move): Add support for V1TImode.
31639         (altivec_expand_ld_builtin): Likewise.
31640         (altivec_expand_st_builtin): Likewise.
31641         (altivec_expand_vec_init_builtin): Likewise.
31642         (altivec_expand_builtin): Likewise.
31643         (rs6000_init_builtins): Add support for V1TImode type.  Add
31644         support for ISA 2.07 128-bit integer builtins.  Define type names
31645         for the VSX/Altivec vector types.
31646         (altivec_init_builtins): Add support for overloaded vector
31647         functions with V1TImode type.
31648         (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
31649         (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
31650         external function.
31651         (rs6000_split_128bit_ok_p): Likewise.
31652         (rs6000_handle_altivec_attribute): Create V1TImode from vector
31653         __int128_t and vector __uint128_t.
31654
31655         * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
31656         and mode attributes.
31657         (VSX_M): Likewise.
31658         (VSX_M2): Likewise.
31659         (VSm): Likewise.
31660         (VSs): Likewise.
31661         (VSr): Likewise.
31662         (VSv): Likewise.
31663         (VS_scalar): Likewise.
31664         (VS_double): Likewise.
31665         (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
31666
31667         * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
31668         we support the ISA 2.07 128-bit integer arithmetic instructions.
31669         (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
31670         (enum rs6000_builtin_type_index): Add fields to hold V1TImode
31671         and TImode types for use with the builtin functions.
31672         (V1TI_type_node): Likewise.
31673         (unsigned_V1TI_type_node): Likewise.
31674         (intTI_type_internal_node): Likewise.
31675         (uintTI_type_internal_node): Likewise.
31676
31677         * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
31678         128-bit builtin functions.
31679         (UNSPEC_VADDEUQM): Likewise.
31680         (UNSPEC_VADDECUQ): Likewise.
31681         (UNSPEC_VSUBCUQ): Likewise.
31682         (UNSPEC_VSUBEUQM): Likewise.
31683         (UNSPEC_VSUBECUQ): Likewise.
31684         (VM): Add V1TImode to vector mode iterators.
31685         (VM2): Likewise.
31686         (VI_unit): Likewise.
31687         (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
31688         (altivec_vaddcuq): Likewise.
31689         (altivec_vsubuqm): Likewise.
31690         (altivec_vsubcuq): Likewise.
31691         (altivec_vaddeuqm): Likewise.
31692         (altivec_vaddecuq): Likewise.
31693         (altivec_vsubeuqm): Likewise.
31694         (altivec_vsubecuq): Likewise.
31695
31696         * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
31697         mode iterators.
31698         (BOOL_128): Likewise.
31699         (BOOL_REGS_OUTPUT): Likewise.
31700         (BOOL_REGS_OP1): Likewise.
31701         (BOOL_REGS_OP2): Likewise.
31702         (BOOL_REGS_UNARY): Likewise.
31703         (BOOL_REGS_AND_CR0): Likewise.
31704
31705         * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
31706         128-bit integer builtin support.
31707         (vec_vadduqm): Likewise.
31708         (vec_vaddecuq): Likewise.
31709         (vec_vaddeuqm): Likewise.
31710         (vec_vsubecuq): Likewise.
31711         (vec_vsubeuqm): Likewise.
31712         (vec_vsubcuq): Likewise.
31713         (vec_vsubuqm): Likewise.
31714
31715         * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
31716         Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
31717         vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
31718         128-bit integer add/subtract to ISA 2.07.
31719
31720 2014-03-12  Joern Rennecke  <joern.rennecke@embecosm.com>
31721
31722         * config/arc/arc.c (arc_predicate_delay_insns):
31723         Fix third argument passed to conditionalize_nonjump.
31724
31725 2014-03-12  Yufeng Zhang  <yufeng.zhang@arm.com>
31726
31727         * config/aarch64/aarch64-builtins.c
31728         (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
31729         BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
31730         * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
31731         instead of __builtin_lfloor.
31732         (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
31733
31734 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31735
31736         * tree-ssa-ifcombine.c (forwarder_block_to): New function.
31737         (tree_ssa_ifcombine_bb_1): New function.
31738         (tree_ssa_ifcombine_bb): Use it.  Handle also cases where else_bb
31739         is an empty forwarder block to then_bb or vice versa and then_bb
31740         and else_bb are effectively swapped.
31741
31742 2014-03-12  Christian Bruel  <christian.bruel@st.com>
31743
31744         PR target/60264
31745         * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
31746         REG_CFA_DEF_CFA note.
31747         (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
31748         (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
31749
31750 2014-03-12  Thomas Preud'homme  <thomas.preudhomme@arm.com>
31751
31752         PR tree-optimization/60454
31753         * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
31754
31755 2014-03-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31756
31757         * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
31758         Do not define target_cpu_default2 to generic.
31759         * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
31760         * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
31761         * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
31762
31763 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31764             Marc Glisse  <marc.glisse@inria.fr>
31765
31766         PR tree-optimization/60502
31767         * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
31768         instead of build_low_bits_mask.
31769
31770 2014-03-12  Jakub Jelinek  <jakub@redhat.com>
31771
31772         PR middle-end/60482
31773         * tree-vrp.c (register_edge_assert_for_1): Don't add assert
31774         if there are multiple uses, but op doesn't live on E edge.
31775         * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
31776         clobber stmts before __builtin_unreachable.
31777
31778 2014-03-11  Richard Sandiford  <rdsandiford@googlemail.com>
31779
31780         * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
31781         hard_frame_pointer_rtx.
31782         * cse.c (cse_insn): Remove volatile check.
31783         * cselib.c (cselib_process_insn): Likewise.
31784         * dse.c (scan_insn): Likewise.
31785
31786 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31787
31788         * config/arc/arc.c (conditionalize_nonjump): New function,
31789         broken out of ...
31790         (arc_ifcvt): ... this.
31791         (arc_predicate_delay_insns): Use it.
31792
31793 2014-03-11  Joern Rennecke  <joern.rennecke@embecosm.com>
31794
31795         * config/arc/predicates.md (extend_operand): During/after reload,
31796         allow const_int_operand.
31797         * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
31798         (umulsidi3_700): Likewise.  Change operand 2 constraint back to "cL".
31799         (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
31800         to "i".
31801         (umulsi3_highpart_i): Likewise.
31802
31803 2014-03-11  Richard Biener  <rguenther@suse.de>
31804
31805         * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
31806         Add asserts to guard possible wrong-code bugs.
31807
31808 2014-03-11  Richard Biener  <rguenther@suse.de>
31809
31810         PR tree-optimization/60429
31811         PR tree-optimization/60485
31812         * tree-ssa-structalias.c (set_union_with_increment): Properly
31813         take into account all fields that overlap the shifted vars.
31814         (do_sd_constraint): Likewise.
31815         (do_ds_constraint): Likewise.
31816         (get_constraint_for_ptr_offset): Likewise.
31817
31818 2014-03-11  Chung-Lin Tang  <cltang@codesourcery.com>
31819
31820         * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
31821         (nios2_compute_frame_layout):
31822         Add calculation of cfun->machine->fp_save_offset.
31823         (nios2_expand_prologue): Correct setting of frame pointer register
31824         in prologue.
31825         (nios2_expand_epilogue): Update recovery of stack pointer from
31826         frame pointer accordingly.
31827         (nios2_initial_elimination_offset): Update calculation of offset
31828         for eliminating to HARD_FRAME_POINTER_REGNUM.
31829
31830 2014-03-10  Jakub Jelinek  <jakub@redhat.com>
31831
31832         PR ipa/60457
31833         * ipa.c (symtab_remove_unreachable_nodes): Don't call
31834         cgraph_get_create_node on VAR_DECLs.
31835
31836 2014-03-10  Richard Biener  <rguenther@suse.de>
31837
31838         PR middle-end/60474
31839         * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
31840
31841 2014-03-08  Douglas B Rupp  <rupp@gnat.com>
31842
31843         * config/vms/vms.opt (vms_float_format): New variable.
31844
31845 2014-03-08  Tobias Burnus  <burnus@net-b.de>
31846
31847         * doc/invoke.texi (-fcilkplus): Update implementation status.
31848
31849 2014-03-08  Paulo Matos  <paulo@matos-sorge.com>
31850             Richard Biener  <rguenther@suse.de>
31851
31852         * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
31853         consistently accross all TUs.
31854         (run_gcc): Enable -fshort-double automatically at link at link-time
31855         and disallow override.
31856
31857 2014-03-08  Richard Sandiford  <rdsandiford@googlemail.com>
31858
31859         PR target/58271
31860         * config/mips/mips.c (mips_option_override): Promote -mpaired-single
31861         warning to an error.  Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
31862         if they can't be used.
31863
31864 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31865
31866         * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
31867         for Solaris 11/x86 ld.
31868         * configure: Regenerate.
31869
31870 2014-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31871
31872         * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
31873         (LIB_TLS_SPEC): Save as ld_tls_libs.
31874         (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
31875         (HAVE_AS_IX86_TLSLDM): New test.
31876         * configure, config.in: Regenerate.
31877         * config/i386/i386.c (legitimize_tls_address): Fall back to
31878         TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
31879         cannot support TLS_MODEL_LOCAL_DYNAMIC.
31880         * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
31881         instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
31882
31883 2014-03-07  Paulo Matos  <paulo@matos-sorge.com>
31884
31885         * common.opt (fira-loop-pressure): Mark as optimization.
31886
31887 2014-03-07  Thomas Schwinge  <thomas@codesourcery.com>
31888
31889         * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
31890         an OpenMP mappable type.
31891
31892 2014-03-06  Matthias Klose  <doko@ubuntu.com>
31893
31894         * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
31895         MULTILIB_OSDIRNAMES is not defined.
31896
31897 2014-03-06  Jakub Jelinek  <jakub@redhat.com>
31898             Meador Inge  <meadori@codesourcery.com>
31899
31900         PR target/58595
31901         * config/arm/arm.c (arm_tls_symbol_p): Remove.
31902         (arm_legitimize_address): Call legitimize_tls_address for any
31903         arm_tls_referenced_p expression, handle constant addend.  Call it
31904         before testing for !TARGET_ARM.
31905         (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
31906
31907 2014-03-06  Richard Biener  <rguenther@suse.de>
31908
31909         PR middle-end/60445
31910         PR lto/60424
31911         PR lto/60427
31912         Revert
31913         2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31914
31915         * tree-streamer.c (record_common_node): Assert we don't record
31916         nodes with type double.
31917         (preload_common_node): Skip type double, complex double and double
31918         pointer since it is now frontend dependent due to fshort-double option.
31919
31920 2014-03-06  Richard Biener  <rguenther@suse.de>
31921
31922         * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
31923         or -fno-lto is specified and the linker has full plugin support.
31924         * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
31925         (main): Remove -flto processing, adjust lto_mode using use_plugin late.
31926         * lto-wrapper.c (merge_and_complain): Merge compile-time
31927         optimization levels.
31928         (run_gcc): And pass it through to the link options.
31929
31930 2014-03-06  Alexandre Oliva  <aoliva@redhat.com>
31931
31932         PR debug/60381
31933         Revert:
31934         2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
31935         PR debug/59992
31936         * cselib.c (remove_useless_values): Skip to avoid quadratic
31937         behavior if the condition moved from...
31938         (cselib_process_insn): ... here holds.
31939
31940 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31941
31942         PR plugins/59335
31943         * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
31944         ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
31945
31946         PR plugins/59335
31947         * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
31948         (TM_H): Add x86-tune.def.
31949
31950 2014-03-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31951
31952         * config/aarch64/aarch64.c (generic_tunings):
31953         Use cortexa57_extra_costs.
31954
31955 2014-03-05  Jakub Jelinek  <jakub@redhat.com>
31956
31957         PR lto/60404
31958         * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
31959         of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
31960         * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
31961         cost for in_lto_p.
31962
31963 2014-03-04  Heiher  <r@hev.cc>
31964
31965         * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
31966         * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
31967
31968 2014-03-04  Uros Bizjak  <ubizjak@gmail.com>
31969
31970         * config/i386/predicates.md (const2356_operand): Change to ...
31971         (const2367_operand): ... this.
31972         * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
31973         const2367_operand.
31974         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
31975         (*avx512pf_scatterpf<mode>sf): Ditto.
31976         (avx512pf_scatterpf<mode>df): Ditto.
31977         (*avx512pf_scatterpf<mode>df_mask): Ditto.
31978         (*avx512pf_scatterpf<mode>df): Ditto.
31979         * config/i386/i386.c (ix86_expand_builtin): Update
31980         incorrect hint operand error message.
31981
31982 2014-03-04  Richard Biener  <rguenther@suse.de>
31983
31984         * lto-section-in.c (lto_get_section_data): Fix const cast.
31985
31986 2014-03-04  Paulo Matos  <paulo@matos-sorge.com>
31987
31988         * tree-streamer.c (record_common_node): Assert we don't record
31989         nodes with type double.
31990         (preload_common_node): Skip type double, complex double and double
31991         pointer since it is now frontend dependent due to fshort-double option.
31992
31993 2014-03-04  Richard Biener  <rguenther@suse.de>
31994
31995         PR lto/60405
31996         * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
31997         (lto_input_toplevel_asms): Likewise.
31998         * lto-section-in.c (lto_get_section_data): Instead do it here
31999         for every section.
32000
32001 2014-03-04  Richard Biener  <rguenther@suse.de>
32002
32003         PR tree-optimization/60382
32004         * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
32005         dead PHIs a reduction.
32006
32007 2014-03-03  Uros Bizjak  <ubizjak@gmail.com>
32008
32009         * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
32010         hint value.
32011         (_mm_prefetch): Move out of GCC target("sse") pragma.
32012         * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
32013         GCC target("prfchw") pragma.
32014         * config/i386/i386.md (prefetch): Emit prefetchwt1 only
32015         for locality <= 2.
32016         * config/i386/i386.c (ix86_option_override_internal): Enable
32017         -mprfchw with -mprefetchwt1.
32018
32019 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32020
32021         * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
32022         Mark as varying.
32023
32024 2014-03-03  Joern Rennecke  <joern.rennecke@embecosm.com>
32025
32026         * opts.h (CL_PCH_IGNORE): Define.
32027         * targhooks.c (option_affects_pch_p):
32028         Return false for options that have CL_PCH_IGNORE set.
32029         * opt-functions.awk: Process PchIgnore.
32030         * doc/options.texi: Document PchIgnore.
32031
32032         * config/arc/arc.opt (misize): Add PchIgnore property.
32033
32034 2014-03-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32035
32036         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
32037         reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
32038         constraint on constants to permit them being loaded into
32039         GENERAL_REGS or BASE_REGS.
32040
32041 2014-03-03  Nick Clifton  <nickc@redhat.com>
32042
32043         * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
32044         anti-cacnonical alternatives.
32045         (negandhi3_real): New pattern.
32046         * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
32047
32048 2014-03-03  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
32049
32050         * config/avr/avr-mcus.def: Remove atxmega16x1.
32051         * config/avr/avr-tables.opt: Regenerate.
32052         * config/avr/t-multilib: Regenerate.
32053         * doc/avr-mmcu.texi: Regenerate.
32054
32055 2014-03-03  Tobias Grosser  <tobias@grosser.es>
32056             Mircea Namolaru  <mircea.namolaru@inria.fr>
32057
32058         PR tree-optimization/58028
32059         * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
32060         scalar dimensions.
32061
32062 2014-03-03  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
32063
32064         * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
32065         not handled by recognizers.
32066
32067 2014-03-03  Jakub Jelinek  <jakub@redhat.com>
32068
32069         PR middle-end/60175
32070         * function.c (expand_function_end): Don't emit
32071         clobber_return_register sequence if clobber_after is a BARRIER.
32072         * cfgexpand.c (construct_exit_block): Append instructions before
32073         return_label to prev_bb.
32074
32075 2014-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32076
32077         * config/rs6000/constraints.md: Document reserved use of "wc".
32078
32079 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32080
32081         PR ipa/60150
32082         * ipa.c (function_and_variable_visibility): When dissolving comdat
32083         group, also set all symbols to local.
32084
32085 2014-03-02  Jan Hubicka  <hubicka@ucw.cz>
32086
32087         PR ipa/60306
32088
32089         Revert:
32090         2013-12-14  Jan Hubicka  <jh@suse.cz>
32091         PR middle-end/58477
32092         * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
32093
32094 2014-03-02  Jon Beniston  <jon@beniston.com>
32095
32096         PR bootstrap/48230
32097         PR bootstrap/50927
32098         PR bootstrap/52466
32099         PR target/46898
32100         * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
32101         (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
32102         * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
32103         (simple_return, *simple_return): New patterns
32104         * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
32105         * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
32106
32107 2014-03-01  Paolo Carlini  <paolo.carlini@oracle.com>
32108
32109         * dwarf2out.c (gen_subprogram_die): Tidy.
32110
32111 2014-03-01  Oleg Endo  <olegendo@gcc.gnu.org>
32112
32113         PR target/60071
32114         * config/sh/sh.md (*mov_t_msb_neg): Split into ...
32115         (*mov_t_msb_neg_negc): ... this new insn.
32116
32117 2014-02-28  Jason Merrill  <jason@redhat.com>
32118
32119         PR c++/58678
32120         * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
32121         function.
32122
32123 2014-02-28  Paolo Carlini  <paolo.carlini@oracle.com>
32124
32125         PR c++/60314
32126         * dwarf2out.c (decltype_auto_die): New static.
32127         (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
32128         (gen_type_die_with_usage): Handle 'decltype(auto)'.
32129         (is_cxx_auto): Likewise.
32130
32131 2014-02-28  Ian Bolton  <ian.bolton@arm.com>
32132
32133         * config/aarch64/aarch64.h: Define __ARM_NEON by default if
32134         we are not using general regs only.
32135
32136 2014-02-28  Richard Biener  <rguenther@suse.de>
32137
32138         PR target/60280
32139         * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
32140         previous fix and only allow to remove trivial pre-headers
32141         and latches.  Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
32142         (remove_forwarder_block): Properly update the latch of a loop.
32143
32144 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32145
32146         PR debug/59992
32147         * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
32148         (cselib_preserved_hash_table): New.
32149         (preserve_constants_and_equivs): Move preserved vals to it.
32150         (cselib_find_slot): Look it up first.
32151         (cselib_init): Initialize it.
32152         (cselib_finish): Release it.
32153         (dump_cselib_table): Dump it.
32154
32155 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32156
32157         PR debug/59992
32158         * cselib.c (remove_useless_values): Skip to avoid quadratic
32159         behavior if the condition moved from...
32160         (cselib_process_insn): ... here holds.
32161
32162 2014-02-28  Alexandre Oliva  <aoliva@redhat.com>
32163
32164         PR debug/57232
32165         * var-tracking.c (vt_initialize): Apply the same condition to
32166         preserve the CFA base value.
32167
32168 2014-02-28  Joey Ye  <joey.ye@arm.com>
32169
32170         PR target/PR60169
32171         * config/arm/arm.c (thumb_far_jump_used_p): Don't change
32172         if reload in progress or completed.
32173
32174 2014-02-28  Tobias Burnus  <burnus@net-b.de>
32175
32176         PR middle-end/60147
32177         * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
32178         NAMELIST_DECL.
32179
32180 2014-02-27  H.J. Lu  <hongjiu.lu@intel.com>
32181
32182         * doc/tm.texi.in (Condition Code Status): Update documention for
32183         relative locations of cc0-setter and cc0-user.
32184
32185 2014-02-27  Jeff Law  <law@redhat.com>
32186
32187         PR rtl-optimization/52714
32188         * combine.c (try_combine): When splitting an unrecognized PARALLEL
32189         into two independent simple sets, if I3 is a jump, ensure the
32190         pattern we place into I3 is a (set (pc) ...).
32191
32192 2014-02-27  Mikael Pettersson  <mikpe@it.uu.se>
32193             Jeff Law  <law@redhat.com>
32194
32195         PR rtl-optimization/49847
32196         * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
32197         are in different blocks.
32198         * doc/tm.texi (Condition Code Status): Update documention for
32199         relative locations of cc0-setter and cc0-user.
32200
32201 2014-02-27  Vladimir Makarov  <vmakarov@redhat.com>
32202
32203         PR target/59222
32204         * lra.c (lra_emit_add): Check SUBREG too.
32205
32206 2014-02-27  Andreas Schwab  <schwab@suse.de>
32207
32208         * config/m68k/m68k.c (m68k_option_override): Disable
32209         -flive-range-shrinkage for classic m68k.
32210         (m68k_override_options_after_change): Likewise.
32211
32212 2014-02-27  Marek Polacek  <polacek@redhat.com>
32213
32214         PR middle-end/59223
32215         * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
32216         -Wmaybe-uninitialized.
32217
32218 2014-02-27  Alan Modra  <amodra@gmail.com>
32219
32220         PR target/57936
32221         * reload1.c (emit_input_reload_insns): When reload_override_in,
32222         set old to rl->in_reg when rl->in_reg is a subreg.
32223
32224 2014-02-26  Richard Biener  <rguenther@suse.de>
32225
32226         PR bootstrap/60343
32227         * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
32228
32229 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32230
32231         * common/config/i386/predicates.md (const1256_operand): Remove.
32232         (const2356_operand): New.
32233         (const_1_to_2_operand): Remove.
32234         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
32235         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
32236         (*avx512pf_gatherpf<mode>sf): Ditto.
32237         (avx512pf_gatherpf<mode>df): Ditto.
32238         (*avx512pf_gatherpf<mode>df_mask): Ditto.
32239         (*avx512pf_gatherpf<mode>df): Ditto.
32240         (avx512pf_scatterpf<mode>sf): Ditto.
32241         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
32242         (*avx512pf_scatterpf<mode>sf): Ditto.
32243         (avx512pf_scatterpf<mode>df): Ditto.
32244         (*avx512pf_scatterpf<mode>df_mask): Ditto.
32245         (*avx512pf_scatterpf<mode>df): Ditto.
32246         * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
32247
32248 2014-02-26  Ilya Tocar  <ilya.tocar@intel.com>
32249
32250         * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
32251         (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
32252         (_mm512_mask_testn_epi64_mask): Move to ...
32253         * config/i386/avx512cdintrin.h: Here.
32254         * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
32255         * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
32256         (avx512f_scalef<mode><mask_name><round_name>): Ditto.
32257         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
32258         TARGET_AVX512F from TARGET_AVX512CD.
32259
32260 2014-02-26  Richard Biener  <rguenther@suse.de>
32261
32262         PR ipa/60327
32263         * ipa.c (walk_polymorphic_call_targets): Properly guard
32264         call to inline_update_overall_summary.
32265
32266 2014-02-26  Bin Cheng  <bin.cheng@arm.com>
32267
32268         PR target/60280
32269         * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
32270         and latches only if requested.  Fix latch if it is removed.
32271         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
32272         LOOPS_HAVE_PREHEADERS.
32273
32274 2014-02-25  Andrew Pinski  <apinski@cavium.com>
32275
32276         * builtins.c (expand_builtin_thread_pointer): Create a new target
32277         when the target is NULL.
32278
32279 2014-02-25  Vladimir Makarov  <vmakarov@redhat.com>
32280
32281         PR rtl-optimization/60317
32282         * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32283         * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
32284         * lra-assigns.c: Include params.h.
32285         (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
32286         other reload pseudos considerations.
32287
32288 2014-02-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32289
32290         * config/rs6000/vector.md (*vector_unordered<mode>): Change split
32291         to use canonical form for nor<mode>3.
32292
32293 2014-02-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
32294
32295         PR target/55426
32296         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
32297         conversions.
32298
32299 2014-02-25  Ilya Tocar  <ilya.tocar@intel.com>
32300
32301         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
32302         (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
32303         (ix86_handle_option): Handle OPT_mprefetchwt1.
32304         * config/i386/cpuid.h (bit_PREFETCHWT1): New.
32305         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
32306         PREFETCHWT1 CPUID.
32307         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
32308         OPTION_MASK_ISA_PREFETCHWT1.
32309         * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
32310         (PTA_PREFETCHWT1): New.
32311         (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
32312         (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
32313         * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
32314         * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
32315         (*prefetch_avx512pf_<mode>_: Change into ...
32316         (*prefetch_prefetchwt1_<mode>: This.
32317         * config/i386/i386.opt (mprefetchwt1): New.
32318         * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
32319         (_mm_prefetch): Handle intent to write.
32320         * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
32321
32322 2014-02-25  Richard Biener  <rguenther@suse.de>
32323
32324         PR middle-end/60291
32325         * emit-rtl.c (mem_attrs_htab): Remove.
32326         (mem_attrs_htab_hash): Likewise.
32327         (mem_attrs_htab_eq): Likewise.
32328         (set_mem_attrs): Always allocate new mem-attrs when something changed.
32329         (init_emit_once): Do not allocate mem_attrs_htab.
32330
32331 2014-02-25  Richard Biener  <rguenther@suse.de>
32332
32333         PR lto/60319
32334         * lto-opts.c (lto_write_options): Output non-explicit conservative
32335         -fwrapv, -fno-trapv and -fno-strict-overflow.
32336         * lto-wrapper.c (merge_and_complain): Handle merging those options.
32337         (run_gcc): And pass them through.
32338
32339 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32340
32341         * sel-sched.c (calculate_new_fences): New parameter ptime.
32342         Calculate it as a maximum over all fence cycles.
32343         (sel_sched_region_2): Adjust the call to calculate_new_fences.
32344         Print the final schedule timing when sched_verbose.
32345
32346 2014-02-25  Andrey Belevantsev  <abel@ispras.ru>
32347
32348         PR rtl-optimization/60292
32349         * sel-sched.c (fill_vec_av_set): Do not reset target availability
32350         bit fot the fence instruction.
32351
32352 2014-02-24  Alangi Derick  <alangiderick@gmail.com>
32353
32354         * calls.h: Fix typo in comment.
32355
32356 2014-02-24  John David Anglin  <danglin@gcc.gnu.org>
32357
32358         * config/pa/pa.c (pa_output_move_double): Don't valididate when
32359         adjusting offsetable addresses.
32360
32361 2014-02-24  Guozhi Wei  <carrot@google.com>
32362
32363         * sparseset.h (sparseset_pop): Fix the wrong index.
32364
32365 2014-02-24  Walter Lee  <walt@tilera.com>
32366
32367         * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
32368         (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
32369         triplet.
32370         * common/config/tilegx/tilegx-common.c
32371         (TARGET_DEFAULT_TARGET_FLAGS): Define.
32372         * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
32373         (LINK_SPEC): Ditto.
32374         * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
32375         * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
32376         (tilegx_gimplify_va_arg_expr): Handle big endian.
32377         (tilegx_expand_unaligned_load): Ditto.
32378         (tilegx_expand_unaligned_store): Ditto.
32379         (TARGET_RETURN_IN_MSB): New.
32380         * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
32381         (TARGET_ENDIAN_DEFAULT): New.
32382         (TARGET_BIG_ENDIAN): Handle big endian.
32383         (BYTES_BIG_ENDIAN): Ditto.
32384         (WORDS_BIG_ENDIAN): Ditto.
32385         (FLOAT_WORDS_BIG_ENDIAN): Ditto.
32386         (ENDIAN_SPEC): New.
32387         (EXTRA_SPECS): New.
32388         * config/tilegx/tilegx.md (extv): Handle big endian.
32389         (extzv): Ditto.
32390         (insn_st<n>): Ditto.
32391         (insn_st<n>_add<bitsuffix>): Ditto.
32392         (insn_stnt<n>): Ditto.
32393         (insn_stnt<n>_add<bitsuffix>):Ditto.
32394         (vec_interleave_highv8qi): Handle big endian.
32395         (vec_interleave_highv8qi_be): New.
32396         (vec_interleave_highv8qi_le): New.
32397         (insn_v1int_h): Handle big endian.
32398         (vec_interleave_lowv8qi): Handle big endian.
32399         (vec_interleave_lowv8qi_be): New.
32400         (vec_interleave_lowv8qi_le): New.
32401         (insn_v1int_l): Handle big endian.
32402         (vec_interleave_highv4hi): Handle big endian.
32403         (vec_interleave_highv4hi_be): New.
32404         (vec_interleave_highv4hi_le): New.
32405         (insn_v2int_h): Handle big endian.
32406         (vec_interleave_lowv4hi): Handle big endian.
32407         (vec_interleave_lowv4hi_be): New.
32408         (vec_interleave_lowv4hi_le): New.
32409         (insn_v2int_l): Handle big endian.
32410         (vec_interleave_highv2si): Handle big endian.
32411         (vec_interleave_highv2si_be): New.
32412         (vec_interleave_highv2si_le): New.
32413         (insn_v4int_h): Handle big endian.
32414         (vec_interleave_lowv2si): Handle big endian.
32415         (vec_interleave_lowv2si_be): New.
32416         (vec_interleave_lowv2si_le): New.
32417         (insn_v4int_l): Handle big endian.
32418         * config/tilegx/tilegx.opt (mbig-endian): New option.
32419         (mlittle-endian): New option.
32420         * doc/install.texi: Document tilegxbe-linux.
32421         * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
32422
32423 2014-02-24  Martin Jambor  <mjambor@suse.cz>
32424
32425         PR ipa/60266
32426         * ipa-cp.c (propagate_constants_accross_call): Bail out early if
32427         there are no parameter descriptors.
32428
32429 2014-02-24  Andrey Belevantsev  <abel@ispras.ru>
32430
32431         PR rtl-optimization/60268
32432         * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
32433         initialization to ...
32434         (sched_rgn_init): ... here.
32435         (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
32436
32437 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32438
32439         * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
32440         names.
32441
32442 2014-02-23  Edgar E. Iglesias  <edgar.iglesias@xilinx.com>
32443
32444         * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
32445         definition.
32446
32447 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32448
32449         * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
32450         define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
32451
32452 2014-02-23  David Holsgrove  <david.holsgrove@xilinx.com>
32453
32454         * config/microblaze/predicates.md: Add cmp_op predicate.
32455         * config/microblaze/microblaze.md: Add branch_compare instruction
32456         which uses cmp_op predicate and emits cmp insn before branch.
32457         * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
32458         to microblaze_expand_conditional_branch and consolidate logic.
32459         (microblaze_expand_conditional_branch): emit branch_compare
32460         insn instead of handling cmp op separate from branch insn.
32461
32462 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32463
32464         * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
32465         to permit subregs.
32466
32467 2014-02-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32468
32469         * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
32470         define_insn with define_expand and new define_insn
32471         *altivec_lve<VI_char>x_internal.
32472         (altivec_stve<VI_char>x): Replace define_insn with define_expand
32473         and new define_insn *altivec_stve<VI_char>x_internal.
32474         * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
32475         prototype.
32476         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
32477         lve*x built-ins.
32478         (altivec_expand_stvex_be): New function.
32479
32480 2014-02-22  Joern Rennecke  <joern.rennecke@embecosm.com>
32481
32482         * config/avr/avr.c (avr_can_eliminate): Allow elimination from
32483         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
32484         * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
32485         ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
32486
32487 2014-02-21  Vladimir Makarov  <vmakarov@redhat.com>
32488
32489         PR target/60298
32490         * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
32491         instead of emit_move_insn.
32492
32493 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32494
32495         * config/rs6000/altivec.md (altivec_vsumsws): Replace second
32496         vspltw with vsldoi.
32497         (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
32498         gen_altivec_vsumsws.
32499
32500 2014-02-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32501
32502         * config/rs6000/altivec.md (altivec_lvxl): Rename as
32503         *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
32504         (altivec_lvxl_<mode>): New define_expand incorporating
32505         -maltivec=be semantics where needed.
32506         (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
32507         (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
32508         semantics where needed.
32509         (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
32510         (altivec_stvx_<mode>): New define_expand incorporating
32511         -maltivec=be semantics where needed.
32512         (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
32513         VM2 iterator instead of V4SI.
32514         (altivec_stvxl_<mode>): New define_expand incorporating
32515         -maltivec=be semantics where needed.
32516         * config/rs6000/rs6000-builtin.def: Add new built-in definitions
32517         LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
32518         LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
32519         STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
32520         STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
32521         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
32522         ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
32523         similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
32524         ALTIVEC_BUILTIN_STVXL.
32525         * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
32526         (altivec_expand_stvx_be): Likewise.
32527         * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
32528         (altivec_expand_lvx_be): Likewise.
32529         (altivec_expand_stvx_be): Likewise.
32530         (altivec_expand_builtin): Add cases for
32531         ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
32532         ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
32533         (altivec_init_builtins): Add definitions for
32534         __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
32535         __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
32536
32537 2014-02-21  Catherine Moore  <clm@codesourcery.com>
32538
32539         * doc/invoke.texi (mvirt, mno-virt): Document.
32540         * config/mips/mips.opt (mvirt): New option.
32541         * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
32542
32543 2014-02-21  Richard Biener  <rguenther@suse.de>
32544
32545         PR tree-optimization/60276
32546         * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
32547         (STMT_VINFO_MIN_NEG_DIST): New macro.
32548         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
32549         STMT_VINFO_MIN_NEG_DIST.
32550         * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
32551         made for negative dependence distances still hold.
32552
32553 2014-02-21  Richard Biener  <rguenther@suse.de>
32554
32555         PR middle-end/60291
32556         * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
32557         DECL_INITIAL for globals not in the current function context.
32558
32559 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32560
32561         PR tree-optimization/56490
32562         * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
32563         * tree-ssa-uninit.c: Include params.h.
32564         (compute_control_dep_chain): Add num_calls argument, return false
32565         if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
32566         num_calls to recursive call.
32567         (find_predicates): Change dep_chain into normal array,
32568         cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
32569         variable and adjust compute_control_dep_chain caller.
32570         (find_def_preds): Likewise.
32571
32572 2014-02-21  Thomas Schwinge  <thomas@codesourcery.com>
32573
32574         * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
32575         <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
32576
32577 2014-02-21  Nick Clifton  <nickc@redhat.com>
32578
32579         * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
32580         (pushhi1): Likewise.
32581         (popqi1): Add mode to pre_dec.
32582         (pophi1): Likewise.
32583
32584 2014-02-21  Jakub Jelinek  <jakub@redhat.com>
32585
32586         * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
32587         mode for mask of V8SFmode permutation.
32588
32589 2014-02-20  Richard Henderson  <rth@redhat.com>
32590
32591         PR c++/60272
32592         * builtins.c (expand_builtin_atomic_compare_exchange): Always make
32593         a new pseudo for OLDVAL.
32594
32595 2014-02-20  Jakub Jelinek  <jakub@redhat.com>
32596
32597         PR target/57896
32598         * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
32599         gen_reg_rtx if d->testing_p.
32600         (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
32601         if d->testing_p and we will certainly return true.
32602         (expand_vec_perm_even_odd_1): Likewise.  Don't call gen_reg_rtx
32603         if d->testing_p.
32604
32605 2014-02-20  Uros Bizjak  <ubizjak@gmail.com>
32606
32607         * emit-rtl.c (gen_reg_rtx): Assert that
32608         crtl->emit.regno_pointer_align_length is non-zero.
32609
32610 2014-02-20  Richard Henderson  <rth@redhat.com>
32611
32612         PR c++/60272
32613         * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
32614         on failure the store back into EXPECT.
32615
32616 2014-02-20  Chung-Lin Tang  <cltang@codesourcery.com>
32617             Sandra Loosemore  <sandra@codesourcery.com>
32618
32619         * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
32620         * config/nios2/nios2.c (nios2_function_profiler): Add
32621         -fPIC (flag_pic == 2) support.
32622         (nios2_handle_custom_fpu_cfg): Fix warning parameter.
32623         (nios2_large_offset_p): New function.
32624         (nios2_unspec_reloc_p): Move up position, update to use
32625         nios2_large_offset_p.
32626         (nios2_unspec_address): Remove function.
32627         (nios2_unspec_offset): New function.
32628         (nios2_large_got_address): New function.
32629         (nios2_got_address): Add large offset support.
32630         (nios2_legitimize_tls_address): Update usage of removed and new
32631         functions.
32632         (nios2_symbol_binds_local_p): New function.
32633         (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
32634         (nios2_legitimize_address): Update to use nios2_large_offset_p.
32635         (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
32636         (nios2_print_operand): Merge H/L processing, add hiadj/lo
32637         processing for (const (unspec ...)).
32638         (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
32639
32640 2014-02-20  Richard Biener  <rguenther@suse.de>
32641
32642         * tree-cfg.c (replace_uses_by): Mark altered BBs before
32643         doing the substitution.
32644         (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
32645
32646 2014-02-20  Martin Jambor  <mjambor@suse.cz>
32647
32648         PR ipa/55260
32649         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
32650         info when checking whether lattices are bottom.
32651
32652 2014-02-20  Richard Biener  <rguenther@suse.de>
32653
32654         PR middle-end/60221
32655         * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
32656         regions at -O0.
32657
32658 2014-02-20  Jan Hubicka  <hubicka@ucw.cz>
32659
32660         PR ipa/58555
32661         * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
32662         parameter specifying the scaling.
32663         (inline_call): Update.
32664         (want_inline_recursively): Guard division by zero.
32665         (recursive_inlining): Update.
32666         * ipa-inline.h (clone_inlined_nodes): Update.
32667
32668 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32669
32670         PR target/60204
32671         * config/i386/i386.c (classify_argument): Pass structures of size
32672         64 bytes or less in register.
32673
32674 2014-02-20  Ilya Tocar  <ilya.tocar@intel.com>
32675             Kirill Yukhin  <kirill.yukhin@intel.com>
32676
32677         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
32678         (_mm_rcp28_round_ss): Ditto.
32679         (_mm_rsqrt28_round_sd): Ditto.
32680         (_mm_rsqrt28_round_ss): Ditto.
32681         * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
32682         (_mm_rcp14_round_ss): Ditto.
32683         (_mm_rsqrt14_round_sd): Ditto.
32684         (_mm_rsqrt14_round_ss): Ditto.
32685         * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
32686         the first input operand, get rid of match_dup.
32687         (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
32688         attribute to sse.
32689         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
32690         Ditto.
32691         (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
32692         operand as the first input operand, set type attribute.
32693         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
32694         Set type attribute.
32695         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
32696         operand as the first input operand, set type attribute.
32697
32698 2014-02-19  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32699
32700         * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
32701         bit of zero.
32702
32703 2014-02-19  H.J. Lu  <hongjiu.lu@intel.com>
32704
32705         PR target/60207
32706         * config/i386/i386.c (construct_container): Remove TFmode check
32707         for X86_64_INTEGER_CLASS.
32708
32709 2014-02-19  Uros Bizjak  <ubizjak@gmail.com>
32710
32711         PR target/59794
32712         * config/i386/i386.c (type_natural_mode): Warn for ABI changes
32713         only when -Wpsabi is enabled.
32714
32715 2014-02-19  Michael Hudson-Doyle  <michael.hudson@linaro.org>
32716
32717         PR target/59799
32718         * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
32719         passing arrays in registers are the same as for structs, so remove the
32720         special case for them.
32721
32722 2014-02-19  Eric Botcazou  <ebotcazou@adacore.com>
32723
32724         * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
32725         destination type, extract only the valid bits if the source type is not
32726         integral and has a different mode.
32727
32728 2014-02-19  Richard Biener  <rguenther@suse.de>
32729
32730         PR ipa/60243
32731         * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
32732         for all calls.
32733
32734 2014-02-19  Richard Biener  <rguenther@suse.de>
32735
32736         PR ipa/60243
32737         * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
32738         (ipa_modify_call_arguments): Emit an argument load explicitely and
32739         preserve virtual SSA form there and for the replacement call.
32740         Do not update SSA form nor free dominance info.
32741
32742 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32743
32744         * ipa.c (function_and_variable_visibility): Also clear WEAK
32745         flag when disolving COMDAT_GROUP.
32746
32747 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32748
32749         * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
32750         * ipa-prop.c (ipa_set_jf_known_type): Return early when
32751         not devirtualizing.
32752         (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
32753         do more sanity checks.
32754         (detect_type_change): Return true when giving up early.
32755         (compute_complex_assign_jump_func): Fix type parameter of
32756         ipa_set_ancestor_jf.
32757         (compute_complex_ancestor_jump_func): Likewise.
32758         (update_jump_functions_after_inlining): Fix updating of
32759         ancestor function.
32760         * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
32761
32762 2014-02-18  Jan Hubicka  <hubicka@ucw.cz>
32763
32764         * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
32765         inline clones when edge disappears.
32766
32767 2014-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
32768
32769         PR target/60203
32770         * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
32771         Split 64-bit moves into 2 patterns.  Do not allow the use of
32772         direct move for TDmode in little endian, since the decimal value
32773         has little endian bytes within a word, but the 64-bit pieces are
32774         ordered in a big endian fashion, and normal subreg's of TDmode are
32775         not allowed.
32776         (mov<mode>_64bit_dm): Likewise.
32777         (movtd_64bit_nodm): Likewise.
32778
32779 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32780
32781         PR tree-optimization/60174
32782         * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
32783         statement of an SSA_NAME that occurs in an abnormal PHI node.
32784
32785 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32786
32787         PR sanitizer/60142
32788         * final.c (SEEN_BB): Remove.
32789         (SEEN_NOTE, SEEN_EMITTED): Renumber.
32790         (final_scan_insn): Don't force_source_line on second
32791         NOTE_INSN_BASIC_BLOCK.
32792
32793 2014-02-18  Uros Bizjak  <ubizjak@gmail.com>
32794
32795         PR target/60205
32796         * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
32797         * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
32798         (type_natural_mode): Warn ABI change when %zmm register is not
32799         available for AVX512F vector value passing.
32800
32801 2014-02-18  Kai Tietz  <ktietz@redhat.com>
32802
32803         PR target/60193
32804         * config/i386/i386.c (ix86_expand_prologue): Use value in
32805         rax register as displacement when restoring %r10 or %rax.
32806         Fix wrong offset when restoring both registers.
32807
32808 2014-02-18  Eric Botcazou  <ebotcazou@adacore.com>
32809
32810         * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
32811         assertion with conditional return.
32812
32813 2014-02-18  Jakub Jelinek  <jakub@redhat.com>
32814             Uros Bizjak  <ubizjak@gmail.com>
32815
32816         PR driver/60233
32817         * config/i386/driver-i386.c (host_detect_local_cpu): If
32818         YMM state is not saved by the OS, also clear has_f16c.  Move
32819         CPUID 0x80000001 handling before YMM state saving checking.
32820
32821 2014-02-18  Andrey Belevantsev  <abel@ispras.ru>
32822
32823         PR rtl-optimization/58960
32824         * haifa-sched.c (alloc_global_sched_pressure_data): New,
32825         factored out from ...
32826         (sched_init): ... here.
32827         (free_global_sched_pressure_data): New, factored out from ...
32828         (sched_finish): ... here.
32829         * sched-int.h (free_global_sched_pressure_data): Declare.
32830         * sched-rgn.c (nr_regions_initial): New static global.
32831         (haifa_find_rgns): Initialize it.
32832         (schedule_region): Disable sched-pressure for the newly
32833         generated regions.
32834
32835 2014-02-17  Richard Biener  <rguenther@suse.de>
32836
32837         * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
32838         release SSA defs of pattern stmts.
32839
32840 2014-02-17  Richard Biener  <rguenther@suse.de>
32841
32842         * tree-inline.c (expand_call_inline): Release the virtual
32843         operand defined by the call we are about to inline.
32844
32845 2014-02-17  Richard Biener  <rguenther@suse.de>
32846
32847         * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
32848
32849 2014-02-17  Kirill Yukhin  <kirill.yukhin@intel.com>
32850             Ilya Tocar  <ilya.tocar@intel.com>
32851
32852         * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
32853         arguments order in builtin.
32854         (_mm512_permutexvar_epi64): Ditto.
32855         (_mm512_mask_permutexvar_epi64): Ditto
32856         (_mm512_maskz_permutexvar_epi32): Ditto
32857         (_mm512_permutexvar_epi32): Ditto
32858         (_mm512_mask_permutexvar_epi32): Ditto
32859
32860 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32861
32862         * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
32863         (p8_vmrgow): Likewise.
32864
32865 2014-02-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
32866
32867         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
32868         endian targets.
32869
32870 2014-02-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
32871
32872         PR target/60203
32873         * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
32874         (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
32875         into 64-bit and 32-bit moves.  On 64-bit moves, add support for
32876         using direct move instructions on ISA 2.07.  Also adjust
32877         instruction length for 64-bit.
32878         (mov<mode>_64bit, TFmode/TDmode): Likewise.
32879         (mov<mode>_32bit, TFmode/TDmode): Likewise.
32880
32881 2014-02-15  Alan Modra  <amodra@gmail.com>
32882
32883         PR target/58675
32884         PR target/57935
32885         * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
32886         find_replacement on parts of insn rtl that might be reloaded.
32887
32888 2014-02-15  Richard Biener  <rguenther@suse.de>
32889
32890         PR tree-optimization/60183
32891         * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
32892         (tree_ssa_phiprop): Calculate and free post-dominators.
32893
32894 2014-02-14  Jeff Law  <law@redhat.com>
32895
32896         PR rtl-optimization/60131
32897         * ree.c (get_extended_src_reg): New function.
32898         (combine_reaching_defs): Use it rather than assuming location of REG.
32899         (find_and_remove_re): Verify first operand of extension is
32900         a REG before adding the insns to the copy list.
32901
32902 2014-02-14  Roland McGrath  <mcgrathr@google.com>
32903
32904         * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
32905         * configure: Regenerated.
32906         * config.in: Regenerated.
32907         * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
32908         instead of ASM_SHORT.
32909
32910 2014-02-14  Vladimir Makarov  <vmakarov@redhat.com>
32911             Richard Earnshaw  <rearnsha@arm.com>
32912
32913         PR rtl-optimization/59535
32914         * lra-constraints.c (process_alt_operands): Encourage alternative
32915         when unassigned pseudo class is superset of the alternative class.
32916         (inherit_reload_reg): Don't inherit when optimizing for code size.
32917         * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
32918         returning CORE_REGS for anything but Thumb1 and BASE_REGS for
32919         modes not less than 4 for Thumb1.
32920
32921 2014-02-14  Kyle McMartin  <kyle@redhat.com>
32922
32923         PR pch/60010
32924         * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
32925
32926 2014-02-14  Richard Biener  <rguenther@suse.de>
32927
32928         * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
32929         (get_frame_arg): Drop the assert with langhook types_compatible_p.
32930         Do not strip INDIRECT_REFs.
32931
32932 2014-02-14  Richard Biener  <rguenther@suse.de>
32933
32934         PR lto/60179
32935         * lto-streamer-out.c (DFS_write_tree_body): Do not follow
32936         DECL_FUNCTION_SPECIFIC_TARGET.
32937         (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
32938         * tree-streamer-out.c (pack_ts_target_option): Remove.
32939         (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
32940         (write_ts_function_decl_tree_pointers): Do not stream
32941         DECL_FUNCTION_SPECIFIC_TARGET.
32942         * tree-streamer-in.c (unpack_ts_target_option): Remove.
32943         (unpack_value_fields): Do not stream TS_TARGET_OPTION.
32944         (lto_input_ts_function_decl_tree_pointers): Do not stream
32945         DECL_FUNCTION_SPECIFIC_TARGET.
32946
32947 2014-02-14  Jakub Jelinek  <jakub@redhat.com>
32948
32949         * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
32950         (get_initial_def_for_induction, vectorizable_induction): Ignore
32951         debug stmts when looking for exit_phi.
32952         (vectorizable_live_operation): Fix up condition.
32953
32954 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32955
32956         * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
32957         nreverse() because it changes the content of original tree list.
32958
32959 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32960
32961         * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
32962         * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
32963
32964 2014-02-14  Chung-Ju Wu  <jasonwucj@gmail.com>
32965
32966         * config/nds32/nds32.c (nds32_naked_function_p): Follow the
32967         GNU coding standards.
32968
32969 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32970
32971         PR debug/60152
32972         * dwarf2out.c (gen_subprogram_die): Don't call
32973         add_calling_convention_attribute if subr_die is old_die.
32974
32975 2014-02-13  Sharad Singhai  <singhai@google.com>
32976
32977         * doc/optinfo.texi: Fix order of nodes.
32978
32979 2014-02-13  Uros Bizjak  <ubizjak@gmail.com>
32980
32981         * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
32982         operands[2], not operands[3].
32983
32984 2014-02-13  Richard Biener  <rguenther@suse.de>
32985
32986         PR bootstrap/59878
32987         * doc/install.texi (ISL): Update recommended version to 0.12.2,
32988         mention the possibility of an in-tree build.
32989         (CLooG): Update recommended version to 0.18.1, mention the
32990         possibility of an in-tree build and clarify that the ISL
32991         bundled with CLooG does not work.
32992
32993 2014-02-13  Jakub Jelinek  <jakub@redhat.com>
32994
32995         PR target/43546
32996         * expr.c (compress_float_constant): If x is a hard register,
32997         extend into a pseudo and then move to x.
32998
32999 2014-02-13  Dominik Vogt  <vogt@linux.vnet.ibm.com>
33000
33001         * config/s390/s390.c (s390_asm_output_function_label): Fix crash
33002         caused by bad second argument to warning_at() with -mhotpatch and
33003         nested functions (e.g. with gfortran).
33004
33005 2014-02-13  Richard Sandiford  <rdsandiford@googlemail.com>
33006
33007         * opts.c (option_name): Remove "enabled by default" rider.
33008
33009 2014-02-12  John David Anglin  <danglin@gcc.gnu.org>
33010
33011         * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
33012
33013 2014-02-12  H.J. Lu  <hongjiu.lu@intel.com>
33014             Uros Bizjak  <ubizjak@gmail.com>
33015
33016         PR target/60151
33017         * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
33018         * configure: Regenerated.
33019
33020 2014-02-12  Richard Biener  <rguenther@suse.de>
33021
33022         * vec.c (vec_prefix::calculate_allocation): Move as
33023         inline variant to vec.h.
33024         (vec_prefix::calculate_allocation_1): New out-of-line version.
33025         * vec.h (vec_prefix::calculate_allocation_1): Declare.
33026         (vec_prefix::m_has_auto_buf): Rename to ...
33027         (vec_prefix::m_using_auto_storage): ... this.
33028         (vec_prefix::calculate_allocation): Inline the easy cases
33029         and dispatch to calculate_allocation_1 which doesn't need the
33030         prefix address.
33031         (va_heap::reserve): Use gcc_checking_assert.
33032         (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
33033         m_using_auto_storage.
33034         (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
33035         member and adjust.
33036         (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
33037         (vec<T, va_heap, vl_ptr>::release): Avoid casting.
33038         (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
33039
33040 2014-02-12  Richard Biener  <rguenther@suse.de>
33041
33042         * gcse.c (compute_transp): break from loop over canon_modify_mem_list
33043         when we found a dependence.
33044
33045 2014-02-12  Thomas Schwinge  <thomas@codesourcery.com>
33046
33047         * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
33048         common code...
33049         (maybe_fold_stmt): ... into this new function.
33050         * omp-low.c (lower_omp): Update comment.
33051
33052         * omp-low.c (lower_omp_target): Add clobber for sizes array, after
33053         last use.
33054
33055         * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
33056         dereference.
33057
33058 2014-02-12  James Greenhalgh  <james.greenhalgh@arm.com>
33059
33060         * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
33061         identifiers in comments.
33062         (cortexa53_extra_costs): Likewise.
33063         * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
33064         (cortexa7_extra_costs): Likewise.
33065         (cortexa12_extra_costs): Likewise.
33066         (cortexa15_extra_costs): Likewise.
33067         (v7m_extra_costs): Likewise.
33068
33069 2014-02-12  Richard Biener  <rguenther@suse.de>
33070
33071         PR middle-end/60092
33072         * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
33073         of posix_memalign being successful.
33074         (lower_stmt): Restrict lowering of posix_memalign to when
33075         -ftree-bit-ccp is enabled.
33076
33077 2014-02-12  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
33078
33079         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
33080         arg_loc.
33081         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
33082
33083 2014-02-12  Eric Botcazou  <ebotcazou@adacore.com>
33084
33085         PR rtl-optimization/60116
33086         * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
33087         other_insn once the combination has been validated.
33088
33089 2014-02-11  Jan Hubicka  <hubicka@ucw.cz>
33090
33091         PR lto/59468
33092         * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
33093         and wrapper.
33094         * ipa-devirt.c: Include demangle.h
33095         (odr_violation_reported): New static variable.
33096         (add_type_duplicate): Update odr_violations.
33097         (maybe_record_node): Add completep parameter; update it.
33098         (record_target_from_binfo): Add COMPLETEP parameter;
33099         update it as needed.
33100         (possible_polymorphic_call_targets_1): Likewise.
33101         (struct polymorphic_call_target_d): Add nonconstruction_targets;
33102         rename FINAL to COMPLETE.
33103         (record_targets_from_bases): Sanity check we found the binfo;
33104         fix COMPLETEP updating.
33105         (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
33106         parameter, fix computing of COMPLETEP.
33107         (dump_possible_polymorphic_call_targets): Imrove readability of dump;
33108         at LTO time do demangling.
33109         (ipa_devirt): Use nonconstruction_targets; Improve dumps.
33110         * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
33111         parameter.
33112         (gimple_get_virt_method_for_binfo): Likewise.
33113         * gimple-fold.h (gimple_get_virt_method_for_binfo,
33114         gimple_get_virt_method_for_vtable): Update prototypes.
33115
33116 2014-02-11  Vladimir Makarov  <vmakarov@redhat.com>
33117
33118         PR target/49008
33119         * genautomata.c (add_presence_absence): Fix typo with
33120         {final_}presence_list.
33121
33122 2014-02-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
33123
33124         PR target/60137
33125         * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
33126         for VSX/Altivec vectors that land in GPR registers.
33127
33128 2014-02-11  Richard Henderson  <rth@redhat.com>
33129             Jakub Jelinek  <jakub@redhat.com>
33130
33131         PR debug/59776
33132         * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
33133         around drhs if type conversion to lacc->type is not useless.
33134
33135 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33136
33137         * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
33138         tuning struct.
33139         (cortex-a57.cortex-a53): Likewise.
33140         * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
33141
33142 2014-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33143
33144         * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
33145         arm_restrict_it.
33146
33147 2014-02-11  Renlin Li  <Renlin.Li@arm.com>
33148
33149         * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
33150         add_options_for_arm_vfp3.
33151
33152 2014-02-11  Jeff Law  <law@redhat.com>
33153
33154         PR middle-end/54041
33155         * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
33156         object with an undesirable mode.
33157
33158 2014-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33159
33160         PR libgomp/60107
33161         * config/i386/sol2-9.h: New file.
33162         * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
33163         *-*-solaris2.9*): Use it.
33164
33165 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33166
33167         * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
33168         * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
33169
33170 2014-02-10  Nagaraju Mekala  <nagaraju.mekala@xilinx.com>
33171
33172         * config/microblaze/microblaze.c: Extend mcpu version format
33173
33174 2014-02-10  David Holsgrove  <david.holsgrove@xilinx.com>
33175
33176         * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
33177
33178 2014-02-10  Richard Henderson  <rth@redhat.com>
33179
33180         PR target/59927
33181         * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
33182         * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
33183         ms-abi vs -mno-accumulate-outgoing-args.
33184         (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
33185         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
33186         respect to ms-abi.
33187
33188 2014-02-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33189
33190         PR middle-end/60080
33191         * cfgexpand.c (expand_asm_operands): Attach source location to
33192         ASM_INPUT rtx objects.
33193         * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
33194
33195 2014-02-10  Nick Clifton  <nickc@redhat.com>
33196
33197         * config/mn10300/mn10300.c (popcount): New function.
33198         (mn10300_expand_prologue): Include saved registers in stack usage
33199         count.
33200
33201 2014-02-10  Jeff Law  <law@redhat.com>
33202
33203         PR middle-end/52306
33204         * reload1.c (emit_input_reload_insns): Do not create invalid RTL
33205         when changing the SET_DEST of a prior insn to avoid an input reload.
33206
33207 2014-02-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
33208
33209         * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
33210         big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
33211         -mcall-openbsd, or -mcall-linux.
33212         (CC1_ENDIAN_BIG_SPEC): Remove.
33213         (CC1_ENDIAN_LITTLE_SPEC): Remove.
33214         (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33215         (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
33216         (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
33217         and %cc1_endian_default.
33218         * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
33219
33220 2014-02-10  Richard Biener  <rguenther@suse.de>
33221
33222         PR tree-optimization/60115
33223         * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
33224         MEM_REF handling.  Properly verify that the accesses are not
33225         out of the objects bound.
33226
33227 2014-02-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33228
33229         * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
33230         coretex to cortex.
33231
33232 2014-02-10  Eric Botcazou  <ebotcazou@adacore.com>
33233
33234         * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
33235         proper constants and fix formatting.
33236         (possible_polymorphic_call_targets): Fix formatting.
33237
33238 2014-02-10  Kirill Yukhin  <kirill.yukhin@intel.com>
33239             Ilya Tocar  <ilya.tocar@intel.com>
33240
33241         * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
33242         (_mm512_loadu_epi32): Renamed into...
33243         (_mm512_loadu_si512): This.
33244         (_mm512_storeu_epi32): Renamed into...
33245         (_mm512_storeu_si512): This.
33246         (_mm512_maskz_ceil_ps): Removed.
33247         (_mm512_maskz_ceil_pd): Ditto.
33248         (_mm512_maskz_floor_ps): Ditto.
33249         (_mm512_maskz_floor_pd): Ditto.
33250         (_mm512_floor_round_ps): Ditto.
33251         (_mm512_floor_round_pd): Ditto.
33252         (_mm512_ceil_round_ps): Ditto.
33253         (_mm512_ceil_round_pd): Ditto.
33254         (_mm512_mask_floor_round_ps): Ditto.
33255         (_mm512_mask_floor_round_pd): Ditto.
33256         (_mm512_mask_ceil_round_ps): Ditto.
33257         (_mm512_mask_ceil_round_pd): Ditto.
33258         (_mm512_maskz_floor_round_ps): Ditto.
33259         (_mm512_maskz_floor_round_pd): Ditto.
33260         (_mm512_maskz_ceil_round_ps): Ditto.
33261         (_mm512_maskz_ceil_round_pd): Ditto.
33262         (_mm512_expand_pd): Ditto.
33263         (_mm512_expand_ps): Ditto.
33264         * config/i386/i386.c (ix86_builtins): Remove
33265         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
33266         (bdesc_args): Ditto.
33267         * config/i386/predicates.md (const1256_operand): New.
33268         (const_1_to_2_operand): Ditto.
33269         * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
33270         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
33271         (*avx512pf_gatherpf<mode>sf): Ditto.
33272         (avx512pf_gatherpf<mode>df): Ditto.
33273         (*avx512pf_gatherpf<mode>df_mask): Ditto.
33274         (*avx512pf_gatherpf<mode>df): Ditto.
33275         (avx512pf_scatterpf<mode>sf): Ditto.
33276         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
33277         (*avx512pf_scatterpf<mode>sf): Ditto.
33278         (avx512pf_scatterpf<mode>df): Ditto.
33279         (*avx512pf_scatterpf<mode>df_mask): Ditto.
33280         (*avx512pf_scatterpf<mode>df): Ditto.
33281         (avx512f_expand<mode>): Removed.
33282         (<shift_insn><mode>3<mask_name>): Change predicate type.
33283
33284 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33285
33286         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
33287         not at the end of datarefs vector use ordered_remove to avoid
33288         reordering datarefs vector.
33289
33290         PR c/59984
33291         * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
33292         mark local addressable non-static vars as GOVD_PRIVATE
33293         instead of GOVD_LOCAL.
33294         * omp-low.c (lower_omp_for): Move gimple_bind_vars
33295         and BLOCK_VARS of gimple_bind_block to new_stmt rather
33296         than copying them.
33297
33298         PR middle-end/60092
33299         * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
33300         if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
33301         assume_aligned or alloc_align attributes.
33302         (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
33303         arguments.  Handle also assume_aligned and alloc_align attributes.
33304         (evaluate_stmt): Adjust bit_value_assume_aligned caller.  Handle
33305         calls to functions with assume_aligned or alloc_align attributes.
33306         * doc/extend.texi: Document assume_aligned and alloc_align attributes.
33307
33308 2014-02-08  Terry Guo  <terry.guo@arm.com>
33309
33310         * doc/invoke.texi: Document ARM -march=armv7e-m.
33311
33312 2014-02-08  Jakub Jelinek  <jakub@redhat.com>
33313
33314         * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
33315         flag on __cilkrts_rethrow builtin.
33316
33317         PR ipa/60026
33318         * ipa-cp.c (determine_versionability): Fail at -O0
33319         or __attribute__((optimize (0))) or -fno-ipa-cp functions.
33320         * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
33321
33322         Revert:
33323         2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33324
33325         PR ipa/60026
33326         * tree-inline.c (copy_forbidden): Fail for
33327         __attribute__((optimize (0))) functions.
33328
33329 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33330
33331         * varpool.c: Include pointer-set.h.
33332         (varpool_remove_unreferenced_decls): Variables in other partitions
33333         will not be output; be however careful to not lose information
33334         about partitioning.
33335
33336 2014-02-07  Jan Hubicka  <hubicka@ucw.cz>
33337
33338         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
33339         lookup in the vtable constructor.
33340
33341 2014-02-07  Jeff Law  <law@redhat.com>
33342
33343         PR target/40977
33344         * config/m68k/m68k.md (ashldi_extsi): Turn into a
33345         define_insn_and_split.
33346
33347         * ipa-inline.c (inline_small_functions): Fix typos.
33348
33349 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33350
33351         * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
33352         (s390_can_use_return_insn): Declare.
33353         * config/s390/s390.h (EPILOGUE_USES): Define.
33354         * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
33355         instructions.
33356         (s390_chunkify_start): Handle return JUMP_LABELs.
33357         (s390_early_mach): Emit a main_pool instruction on the entry edge.
33358         (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
33359         (s390_can_use_return_insn): New functions.
33360         (s390_fix_long_loop_prediction): Handle conditional returns.
33361         (TARGET_SET_UP_BY_PROLOGUE): Define.
33362         * config/s390/s390.md (ANY_RETURN): New code iterator.
33363         (*creturn, *csimple_return, return, simple_return): New patterns.
33364
33365 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33366
33367         * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
33368         notes to each restore.  Also add REG_CFA_DEF_CFA when restoring %r15.
33369         (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P.  Update the
33370         REG_CFA_RESTORE list when deciding not to restore a register.
33371
33372 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33373
33374         * config/s390/s390.c: Include tree-pass.h and context.h.
33375         (s390_early_mach): New function, split out from...
33376         (s390_emit_prologue): ...here.
33377         (pass_data_s390_early_mach): New pass structure.
33378         (pass_s390_early_mach): New class.
33379         (s390_option_override): Create and register early_mach pass.
33380         Move to end of file.
33381
33382 2014-02-07  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
33383
33384         * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
33385         to match for the exit block.
33386
33387 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33388
33389         * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
33390         ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
33391         Reject misaligned operands.
33392
33393 2014-02-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33394
33395         * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
33396
33397 2014-02-07  Richard Biener  <rguenther@suse.de>
33398
33399         PR middle-end/60092
33400         * gimple-low.c (lower_builtin_posix_memalign): New function.
33401         (lower_stmt): Call it to lower posix_memalign in a way
33402         to make alignment info accessible.
33403
33404 2014-02-07  Jakub Jelinek  <jakub@redhat.com>
33405
33406         PR c++/60082
33407         * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
33408         __builtin_setjmp_receiver.
33409
33410 2014-02-07  Richard Biener  <rguenther@suse.de>
33411
33412         PR middle-end/60092
33413         * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
33414         * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
33415         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
33416         Handle BUILT_IN_POSIX_MEMALIGN.
33417         (find_func_clobbers): Likewise.
33418         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
33419         (call_may_clobber_ref_p_1): Likewise.
33420
33421 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33422
33423         PR ipa/59918
33424         * ipa-devirt.c (record_target_from_binfo): Remove overactive
33425         sanity check.
33426
33427 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33428
33429         PR ipa/59469
33430         * lto-cgraph.c (lto_output_node): Use
33431         symtab_get_symbol_partitioning_class.
33432         (lto_output_varpool_node): likewise.
33433         (symtab_get_symbol_partitioning_class): Move here from
33434         lto/lto-partition.c
33435         * cgraph.h (symbol_partitioning_class): Likewise.
33436         (symtab_get_symbol_partitioning_class): Declare.
33437
33438 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33439
33440         * ggc.h (ggc_internal_cleared_alloc): New macro.
33441         * vec.h (vec_safe_copy): Handle memory stats.
33442         * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
33443         * target-globals.c (save_target_globals): Likewise.
33444
33445 2014-02-06  Jan Hubicka  <hubicka@ucw.cz>
33446
33447         PR target/60077
33448         * expr.c (emit_move_resolve_push): Export; be bit more selective
33449         on when to clear alias set.
33450         * expr.h (emit_move_resolve_push): Declare.
33451         * function.h (struct function): Add tail_call_marked.
33452         * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
33453         * config/i386/i386-protos.h (ix86_expand_push): Remove.
33454         * config/i386/i386.md (TImode move expander): De not call
33455         ix86_expand_push.
33456         (FP push expanders): Preserve memory attributes.
33457         * config/i386/sse.md (push<mode>1): Remove.
33458         * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
33459         (ix86_expand_push): Remove.
33460         * config/i386/mmx.md (push<mode>1): Remove.
33461
33462 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33463
33464         PR rtl-optimization/60030
33465         * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
33466         lopart with paradoxical subreg before shifting it up by hprec.
33467
33468 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33469
33470         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
33471         Remove extra newline at end of file.
33472         * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
33473         (arm_issue_rate): Handle cortexa57.
33474         * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
33475         (cortex-a57.cortex-a53): Likewise.
33476
33477 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33478
33479         PR target/59575
33480         * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
33481         don't record in REG_FRAME_RELATED_EXPR registers not set in that
33482         bitmask.
33483         (arm_expand_prologue): Adjust all callers.
33484         (arm_unwind_emit_sequence): Allow saved, but not important for unwind
33485         info, registers also at the lowest numbered registers side.  Use
33486         gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
33487         XEXP.
33488
33489         PR debug/59992
33490         * var-tracking.c (adjust_mems): Before adding a SET to
33491         amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
33492
33493 2014-02-06  Alan Modra  <amodra@gmail.com>
33494
33495         PR target/60032
33496         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
33497         change SDmode to DDmode when lra_in_progress.
33498
33499 2014-02-06  Jakub Jelinek  <jakub@redhat.com>
33500
33501         PR middle-end/59150
33502         * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
33503         free_data_ref on the dr first, and before goto again also set dr
33504         to the next dr.  For simd_lane_access, free old datarefs[i] before
33505         overwriting it.  For get_vectype_for_scalar_type failure, don't
33506         free_data_ref if simd_lane_access.
33507
33508         * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
33509
33510         PR target/60062
33511         * tree.h (opts_for_fn): New inline function.
33512         (opt_for_fn): Define.
33513         * config/i386/i386.c (ix86_function_regparm): Use
33514         opt_for_fn (decl, optimize) instead of optimize.
33515
33516 2014-02-06  Marcus Shawcroft  <marcus.shawcroft@arm.com>
33517
33518         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
33519         for SYMBOL_REF in large memory model.
33520
33521 2014-02-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33522
33523         * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
33524         and crypto support.
33525         (cortex-a57): Likewise.
33526         (cortex-a57.cortex-a53): Likewise.
33527
33528 2014-02-06  Yury Gribov  <y.gribov@samsung.com>
33529             Kugan Vivekanandarajah  <kuganv@linaro.org>
33530
33531         * config/arm/arm.c (arm_vector_alignment_reachable): Check
33532         unaligned_access.
33533         * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
33534
33535 2014-02-06  Richard Biener  <rguenther@suse.de>
33536
33537         * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
33538         set_loop_copy and initialize_original_copy_tables.
33539
33540 2014-02-06  Alex Velenko  <Alex.Velenko@arm.com>
33541
33542         * config/aarch64/aarch64-simd.md
33543         (aarch64_ashr_simddi): Change QI to SI.
33544
33545 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33546             Jakub Jelinek  <jakub@redhat.com>
33547
33548         PR middle-end/60013
33549         * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
33550         of the dataflow.
33551
33552 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33553
33554         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
33555         CODE_FOR_altivec_vpku[hw]um to
33556         CODE_FOR_altivec_vpku[hw]um_direct.
33557         * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
33558         UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
33559         (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
33560         UNSPEC_VUNPACK_LO_SIGN_DIRECT.
33561
33562 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33563
33564         * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
33565         generation for -maltivec=be.
33566         (altivec_vsumsws): Simplify redundant test.
33567
33568 2014-02-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33569
33570         * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
33571         (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
33572         (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
33573         (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
33574         gen_altivec_vpkuwum.
33575         (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
33576         BYTES_BIG_ENDIAN.
33577         (altivec_vpks<VI_char>ss): Likewise.
33578         (altivec_vpks<VI_char>us): Likewise.
33579         (altivec_vpku<VI_char>us): Likewise.
33580         (altivec_vpku<VI_char>um): Likewise.
33581         (altivec_vpku<VI_char>um_direct): New (copy of
33582         altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
33583         internal use).
33584         (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
33585         target is little endian and -maltivec=be is not specified.
33586         (*altivec_vupkhs<VU_char>_direct): New (copy of
33587         altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
33588         (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
33589         target is little endian and -maltivec=be is not specified.
33590         (*altivec_vupkls<VU_char>_direct): New (copy of
33591         altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
33592         (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
33593         little endian and -maltivec=be is not specified.
33594         (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
33595         little endian and -maltivec=be is not specified.
33596
33597 2014-02-05  Richard Henderson  <rth@redhat.com>
33598
33599         PR debug/52727
33600         * combine-stack-adj.c: Revert r206943.
33601         * sched-int.h (struct deps_desc): Add last_args_size.
33602         * sched-deps.c (init_deps): Initialize it.
33603         (sched_analyze_insn): Add OUTPUT dependencies between insns that
33604         contain REG_ARGS_SIZE notes.
33605
33606 2014-02-05  Jan Hubicka  <hubicka@ucw.cz>
33607
33608         * lto-cgraph.c (asm_nodes_output): Make global.
33609         * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
33610         * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
33611         (driver_handle_option): Handle OPT_fwpa.
33612
33613 2014-02-05  Jakub Jelinek  <jakub@redhat.com>
33614
33615         PR ipa/59947
33616         * ipa-devirt.c (possible_polymorphic_call_targets): Fix
33617         a comment typo and formatting issue.  If odr_hash hasn't been
33618         created, return vNULL and set *completep to false.
33619
33620         PR middle-end/57499
33621         * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
33622         bb with no successors.
33623
33624 2014-02-05  James Greenhalgh  <james.greenhalgh@arm.com>
33625
33626         PR target/59718
33627         * doc/invoke.texi (-march): Clarify documentation for ARM.
33628         (-mtune): Likewise.
33629         (-mcpu): Likewise.
33630
33631 2014-02-05  Richard Biener  <rguenther@suse.de>
33632
33633         * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
33634         when not vectorizing because of too many alias checks.
33635         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
33636         Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
33637
33638 2014-02-05  Nick Clifton  <nickc@redhat.com>
33639
33640         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
33641         accept extended registers in any mode when compiling for the MN10300.
33642
33643 2014-02-05  Yury Gribov  <y.gribov@samsung.com>
33644
33645         * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
33646         * ipa-inline.c (report_inline_failed_reason): Handle mismatched
33647         sanitization attributes.
33648         (can_inline_edge_p): Likewise.
33649         (sanitize_attrs_match_for_inline_p): New function.
33650
33651 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33652
33653         * ipa-prop.c (detect_type_change): Shor circuit testing of
33654         type changes on THIS pointer.
33655
33656 2014-02-04  John David Anglin  <danglin@gcc.gnu.org>
33657
33658         PR target/59777
33659         * config/pa/pa.c (legitimize_tls_address): Return original address
33660         if not passed a SYMBOL_REF rtx.
33661         (hppa_legitimize_address): Call legitimize_tls_address for all TLS
33662         addresses.
33663         (pa_emit_move_sequence): Simplify TLS source operands.
33664         (pa_legitimate_constant_p): Reject all TLS constants.
33665         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
33666         (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
33667
33668 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33669
33670         * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
33671         groups when we know they are controlled by LTO.
33672         * varasm.c (default_binds_local_p_1): If object is in other partition,
33673         it will be resolved locally.
33674
33675 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33676
33677         * config/host-linux.c (linux_gt_pch_use_address): Don't
33678         use SSIZE_MAX because it is not always defined.
33679
33680 2014-02-04  Vladimir Makarov  <vmakarov@redhat.com>
33681
33682         PR bootstrap/59913
33683         * lra-constraints.c (need_for_split_p): Use more 3 reloads as
33684         threshold for pseudo splitting.
33685         (update_ebb_live_info): Process call argument hard registers and
33686         hard registers from insn definition too.
33687         (max_small_class_regs_num): New constant.
33688         (inherit_in_ebb): Update live hard regs through EBBs.  Update
33689         reloads_num only for small register classes.  Don't split for
33690         outputs of jumps.
33691
33692 2014-02-04  Markus Trippelsdorf  <markus@trippelsdorf.de>
33693
33694         PR ipa/60058
33695         * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
33696         is non-null.
33697
33698 2014-02-04  Jan Hubicka  <hubicka@ucw.cz>
33699
33700         * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
33701         visibility is safe.
33702
33703 2014-02-04  Marek Polacek  <polacek@redhat.com>
33704
33705         * gdbinit.in (pel): Define.
33706
33707 2014-02-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
33708
33709         * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
33710         behavior.
33711
33712 2014-02-04  Richard Biener  <rguenther@suse.de>
33713
33714         PR lto/59723
33715         * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
33716         in function context local.
33717         (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
33718         * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
33719         similar to LTO_imported_decl_ref.
33720
33721 2014-02-04  Jakub Jelinek  <jakub@redhat.com>
33722
33723         PR tree-optimization/60002
33724         * cgraphclones.c (build_function_decl_skip_args): Clear
33725         DECL_LANG_SPECIFIC.
33726
33727         PR tree-optimization/60023
33728         * tree-if-conv.c (predicate_mem_writes): Pass true instead of
33729         false to gsi_replace.
33730         * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
33731         has been in some EH region and vec_stmt could throw, add
33732         vec_stmt into the same EH region.
33733         * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
33734         has no lhs, ignore it.
33735         * internal-fn.c (expand_MASK_LOAD): Likewise.
33736
33737         PR ipa/60026
33738         * tree-inline.c (copy_forbidden): Fail for
33739         __attribute__((optimize (0))) functions.
33740
33741         PR other/58712
33742         * omp-low.c (simd_clone_struct_copy): If from->inbranch
33743         is set, copy one less argument.
33744         (expand_simd_clones): Don't subtract clone_info->inbranch
33745         from simd_clone_struct_alloc argument.
33746
33747         PR rtl-optimization/57915
33748         * recog.c (simplify_while_replacing): If all unary/binary/relational
33749         operation arguments are constant, attempt to simplify those.
33750
33751         PR middle-end/59261
33752         * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
33753         if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
33754
33755 2014-02-04  Richard Biener  <rguenther@suse.de>
33756
33757         PR tree-optimization/60012
33758         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
33759         TBAA disambiguation to all DDRs.
33760
33761 2014-02-04  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
33762
33763         PR target/59788
33764         * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
33765         (LINK_SPEC): Use it for -shared, -shared-libgcc.
33766
33767 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33768
33769         PR ipa/59882
33770         * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
33771
33772 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33773
33774         * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
33775         * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
33776
33777 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33778
33779         PR ipa/59831
33780         * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
33781         to figure out targets of polymorphic calls with known decl.
33782         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33783         * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
33784         * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
33785         (get_polymorphic_call_info): ... here.
33786         (get_polymorphic_call_info_from_invariant): New function.
33787
33788 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33789
33790         * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
33791         lookup via vtable pointer; check for type consistency
33792         and turn inconsitent facts into UNREACHABLE.
33793         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33794         * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
33795         type inconsistent querries; return UNREACHABLE instead.
33796
33797 2014-02-03  Richard Henderson  <rth@twiddle.net>
33798
33799         PR tree-opt/59924
33800         * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
33801         already processed this node.
33802         (normalize_one_pred_1): Pass along mark_set.
33803         (normalize_one_pred): Create and destroy a pointer_set_t.
33804         (normalize_one_pred_chain): Likewise.
33805
33806 2014-02-03  Laurent Aflonsi  <laurent.alfonsi@st.com>
33807
33808         PR gcov-profile/58602
33809         * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
33810
33811 2014-02-03  Jan Hubicka  <hubicka@ucw.cz>
33812
33813         PR ipa/59831
33814         * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
33815         -fno-devirtualize; try to devirtualize by the knowledge of
33816         virtual table pointer given by aggregate propagation.
33817         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
33818         (ipa_print_node_jump_functions): Dump also offset that
33819         is relevant for polymorphic calls.
33820         (determine_known_aggregate_parts): Add arg_type parameter; use it
33821         instead of determining the type from pointer type.
33822         (ipa_compute_jump_functions_for_edge): Update call of
33823         determine_known_aggregate_parts.
33824         * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
33825         (gimple_get_virt_method_for_binfo): ... here; simplify using
33826         vtable_pointer_value_to_vtable.
33827         * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
33828         * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
33829         to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
33830         (vtable_pointer_value_to_vtable): Break out from ...; handle also
33831         POINTER_PLUS_EXPR.
33832         (vtable_pointer_value_to_binfo): ... here.
33833         * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
33834
33835 2014-02-03  Teresa Johnson  <tejohnson@google.com>
33836
33837         * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
33838         redef of outer loop index variable.
33839
33840 2014-02-03  Marc Glisse  <marc.glisse@inria.fr>
33841
33842         PR c++/53017
33843         PR c++/59211
33844         * doc/extend.texi (Function Attributes): Typo.
33845
33846 2014-02-03  Cong Hou  <congh@google.com>
33847
33848         PR tree-optimization/60000
33849         * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
33850         if the vectorized statement is a store.  A store statement can only
33851         appear at the end of pattern statements.
33852
33853 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33854
33855         * config/i386/i386.c (flag_opts): Add -mlong-double-128.
33856         (ix86_option_override_internal): Default long double to 64-bit for
33857         32-bit Bionic and to 128-bit for 64-bit Bionic.
33858
33859         * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
33860         TARGET_LONG_DOUBLE_128 is true.
33861         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
33862
33863         * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
33864         (mlong-double-64): Negate -mlong-double-128.
33865         (mlong-double-128): New option.
33866
33867         * config/i386/i386-c.c (ix86_target_macros): Define
33868         __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
33869
33870         * doc/invoke.texi: Document -mlong-double-128.
33871
33872 2014-02-03  H.J. Lu  <hongjiu.lu@intel.com>
33873
33874         PR rtl-optimization/60024
33875         * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
33876
33877 2014-02-03  Markus Trippelsdorf  <markus@trippelsdorf.de>
33878
33879         * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
33880
33881 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33882
33883         PR rtl-optimization/57662
33884         * sel-sched.c (code_motion_path_driver): Do not mark already not
33885         existing blocks in the visiting bitmap.
33886
33887 2014-02-03  Andrey Belevantsev  <abel@ispras.ru>
33888
33889         * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
33890         on the insn being emitted.
33891
33892 2014-02-03  James Greenhalgh  <james.greenhalgh@arm.com>
33893             Will Deacon  <will.deacon@arm.com>
33894
33895         * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
33896
33897 2014-02-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
33898
33899         * config/arm/arm-tables.opt: Regenerate.
33900
33901 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33902
33903         * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
33904         for vector types other than V16QImode.
33905         * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
33906         define_expand, and call altivec_expand_vec_perm_le when producing
33907         code with little endian element order.
33908         (*altivec_vperm_<mode>_internal): New insn having previous
33909         behavior of altivec_vperm_<mode>.
33910         (altivec_vperm_<mode>_uns): Change to a define_expand, and call
33911         altivec_expand_vec_perm_le when producing code with little endian
33912         element order.
33913         (*altivec_vperm_<mode>_uns_internal): New insn having previous
33914         behavior of altivec_vperm_<mode>_uns.
33915
33916 2014-02-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
33917
33918         * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
33919         (altivec_vsumsws): Add handling for -maltivec=be with a little
33920         endian target.
33921         (altivec_vsumsws_direct): New.
33922         (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
33923         gen_altivec_vsumsws.
33924
33925 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33926
33927         * ipa-devirt.c (subbinfo_with_vtable_at_offset,
33928         vtable_pointer_value_to_binfo): New functions.
33929         * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
33930         * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
33931
33932 2014-02-02  Sandra Loosemore  <sandra@codesourcery.com>
33933
33934         * config/nios2/nios2.md (load_got_register): Initialize GOT
33935         pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
33936         * config/nios2/nios2.c (nios2_function_profiler): Likewise.
33937
33938 2014-02-02  Jan Hubicka  <hubicka@ucw.cz>
33939
33940         * ipa-prop.c (update_jump_functions_after_inlining): When type is not
33941         preserverd by passthrough, do not propagate the type.
33942
33943 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33944
33945         * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
33946         (mips_atomic_assign_expand_fenv): New function.
33947         (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33948
33949 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33950
33951         * doc/extend.texi (__builtin_mips_get_fcsr): Document.
33952         (__builtin_mips_set_fcsr): Likewise.
33953         * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
33954         MIPS_USI_FTYPE_VOID.
33955         * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
33956         (mips16_expand_set_fcsr): Likewise.
33957         * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
33958         (mips16_set_fcsr_stub): Likewise.
33959         (mips16_get_fcsr_one_only_stub): New class.
33960         (mips16_set_fcsr_one_only_stub): Likewise.
33961         (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
33962         (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
33963         (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
33964         (hard_float): New availability predicate.
33965         (mips_builtins): Add get_fcsr and set_fcsr.
33966         (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
33967         * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
33968         (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
33969         (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
33970         (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
33971         patterns.
33972
33973 2014-02-02  Richard Sandiford  <rdsandiford@googlemail.com>
33974
33975         * config/mips/mips.c (mips_one_only_stub): New class.
33976         (mips_need_mips16_rdhwr_p): Replace with...
33977         (mips16_rdhwr_stub): ...this new variable.
33978         (mips16_stub_call_address): New function.
33979         (mips16_rdhwr_one_only_stub): New class.
33980         (mips_expand_thread_pointer): Use mips16_stub_call_address.
33981         (mips_output_mips16_rdhwr): Delete.
33982         (mips_finish_stub): New function.
33983         (mips_code_end): Use it to handle rdhwr stubs.
33984
33985 2014-02-02  Uros Bizjak  <ubizjak@gmail.com>
33986
33987         PR target/60017
33988         * config/i386/i386.c (classify_argument): Fix handling of bit_offset
33989         when calculating size of integer atomic types.
33990
33991 2014-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33992
33993         * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
33994
33995 2014-02-01  Jakub Jelinek  <jakub@redhat.com>
33996
33997         PR tree-optimization/60003
33998         * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
33999         * profile.c (branch_prob): Use gimple_call_builtin_p
34000         to check for BUILT_IN_SETJMP_RECEIVER.
34001         * tree-inline.c (copy_bb): Call notice_special_calls.
34002
34003 2014-01-31  Vladimir Makarov  <vmakarov@redhat.com>
34004
34005         PR bootstrap/59985
34006         * lra-constraints.c (process_alt_operands): Update reload_sum only
34007         on the first pass.
34008
34009 2014-01-31  Richard Henderson  <rth@redhat.com>
34010
34011         PR middle-end/60004
34012         * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
34013         until after else_eh is processed.
34014
34015 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34016
34017         * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
34018         (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
34019         (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
34020         in smmintrin.h, remove them.
34021         (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
34022         * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
34023         * config/i386/i386.md (ROUND_SAE): Fix value.
34024         * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
34025         (const48_operand): New.
34026         * config/i386/subst.md (round), (round_expand): Use
34027         const_4_or_8_to_11_operand.
34028         (round_saeonly), (round_saeonly_expand): Use const48_operand.
34029
34030 2014-01-31  Ilya Tocar  <ilya.tocar@intel.com>
34031
34032         * config/i386/constraints.md (Yk): Swap meaning with k.
34033         * config/i386/i386.md (movhi_internal): Change Yk to k.
34034         (movqi_internal): Ditto.
34035         (*k<logic><mode>): Ditto.
34036         (*andhi_1): Ditto.
34037         (*andqi_1): Ditto.
34038         (kandn<mode>): Ditto.
34039         (*<code>hi_1): Ditto.
34040         (*<code>qi_1): Ditto.
34041         (kxnor<mode>): Ditto.
34042         (kortestzhi): Ditto.
34043         (kortestchi): Ditto.
34044         (kunpckhi): Ditto.
34045         (*one_cmplhi2_1): Ditto.
34046         (*one_cmplqi2_1): Ditto.
34047         * config/i386/sse.md (): Change k to Yk.
34048         (avx512f_load<mode>_mask): Ditto.
34049         (avx512f_blendm<mode>): Ditto.
34050         (avx512f_store<mode>_mask): Ditto.
34051         (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
34052         (avx512f_storedqu<mode>_mask): Ditto.
34053         (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
34054         Ditto.
34055         (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
34056         (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
34057         (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
34058         (avx512f_maskcmp<mode>3): Ditto.
34059         (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
34060         (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
34061         (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
34062         (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
34063         (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
34064         (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
34065         (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
34066         (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
34067         (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
34068         (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
34069         (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
34070         (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
34071         (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
34072         (vec_extract_lo_<mode>_maskm): Ditto.
34073         (vec_extract_hi_<mode>_maskm): Ditto.
34074         (avx512f_vternlog<mode>_mask): Ditto.
34075         (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
34076         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
34077         (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
34078         (avx512f_<code>v8div16qi2_mask): Ditto.
34079         (avx512f_<code>v8div16qi2_mask_store): Ditto.
34080         (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
34081         (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
34082         (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
34083         (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
34084         (*avx512pf_gatherpf<mode>sf_mask): Ditto.
34085         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34086         (*avx512pf_scatterpf<mode>sf_mask): Ditto.
34087         (*avx512pf_scatterpf<mode>df_mask): Ditto.
34088         (avx512cd_maskb_vec_dupv8di): Ditto.
34089         (avx512cd_maskw_vec_dupv16si): Ditto.
34090         (avx512f_vpermi2var<mode>3_maskz): Ditto.
34091         (avx512f_vpermi2var<mode>3_mask): Ditto.
34092         (avx512f_vpermi2var<mode>3_mask): Ditto.
34093         (avx512f_vpermt2var<mode>3_maskz): Ditto.
34094         (*avx512f_gathersi<mode>): Ditto.
34095         (*avx512f_gathersi<mode>_2): Ditto.
34096         (*avx512f_gatherdi<mode>): Ditto.
34097         (*avx512f_gatherdi<mode>_2): Ditto.
34098         (*avx512f_scattersi<mode>): Ditto.
34099         (*avx512f_scatterdi<mode>): Ditto.
34100         (avx512f_compress<mode>_mask): Ditto.
34101         (avx512f_compressstore<mode>_mask): Ditto.
34102         (avx512f_expand<mode>_mask): Ditto.
34103         * config/i386/subst.md (mask): Change k to Yk.
34104         (mask_scalar_merge): Ditto.
34105         (sd): Ditto.
34106
34107 2014-01-31  Marc Glisse  <marc.glisse@inria.fr>
34108
34109         * doc/extend.texi (Vector Extensions): Document ?: in C++.
34110
34111 2014-01-31  Richard Biener  <rguenther@suse.de>
34112
34113         PR middle-end/59990
34114         * builtins.c (fold_builtin_memory_op): Make sure to not
34115         use a floating-point mode or a boolean or enumeral type for
34116         the copy operation.
34117
34118 2014-01-30  DJ Delorie  <dj@redhat.com>
34119
34120         * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
34121         * config/msp430/msp430.md (msp430_refsym_need_exit): New.
34122         * config/msp430/msp430.c (msp430_expand_epilogue): Call it
34123         whenever main() has an epilogue.
34124
34125 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34126
34127         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
34128         unused variable "field".
34129         * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
34130         (vsx_mergeh_<mode>): Likewise.
34131         * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
34132         (altivec_vmrghh): Likewise.
34133         (altivec_vmrghw): Likewise.
34134         (altivec_vmrglb): Likewise.
34135         (altivec_vmrglh): Likewise.
34136         (altivec_vmrglw): Likewise.
34137         (altivec_vspltb): Add missing uses.
34138         (altivec_vsplth): Likewise.
34139         (altivec_vspltw): Likewise.
34140         (altivec_vspltsf): Likewise.
34141
34142 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34143
34144         PR target/59923
34145         * ifcvt.c (cond_exec_process_insns): Don't conditionalize
34146         frame related instructions.
34147
34148 2014-01-30  Vladimir Makarov  <vmakarov@redhat.com>
34149
34150         PR rtl-optimization/59959
34151         * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
34152         any reload of register whose subreg is invalid.
34153
34154 2014-01-30  Jakub Jelinek  <jakub@redhat.com>
34155
34156         * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
34157         * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
34158         Add missing return type - void.
34159
34160 2014-01-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34161
34162         * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
34163         gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
34164         remove element index adjustment for endian (now handled in vsx.md
34165         and altivec.md).
34166         (altivec_expand_vec_perm_const): Use
34167         gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
34168         * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
34169         (vsx_xxspltw_<mode>): Adjust element index for little endian.
34170         * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
34171         define_expand and a new define_insn *altivec_vspltb_internal;
34172         adjust for -maltivec=be on a little endian target.
34173         (altivec_vspltb_direct): New.
34174         (altivec_vsplth): Divide into a define_expand and a new
34175         define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
34176         little endian target.
34177         (altivec_vsplth_direct): New.
34178         (altivec_vspltw): Divide into a define_expand and a new
34179         define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
34180         little endian target.
34181         (altivec_vspltw_direct): New.
34182         (altivec_vspltsf): Divide into a define_expand and a new
34183         define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
34184         a little endian target.
34185
34186 2014-01-30  Richard Biener  <rguenther@suse.de>
34187
34188         PR tree-optimization/59993
34189         * tree-ssa-forwprop.c (associate_pointerplus): Check we
34190         can propagate form the earlier stmt and avoid the transform
34191         when the intermediate result is needed.
34192
34193 2014-01-30  Alangi Derick  <alangiderick@gmail.com>
34194
34195         * README.Portability: Fix typo.
34196
34197 2014-01-30  David Holsgrove  <david.holsgrove@xilinx.com>
34198
34199         * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
34200         comparison_operator with ordered_comparison_operator.
34201
34202 2014-01-30  Nick Clifton  <nickc@redhat.com>
34203
34204         * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
34205         Rename to mn10300_store_multiple_regs.
34206         * config/mn10300/mn10300.c: Likewise.
34207         * config/mn10300/mn10300.md (store_movm): Fix typo: call
34208         store_multiple_regs.
34209         * config/mn10300/predicates.md (mn10300_store_multiple_operation):
34210         Call mn10300_store_multiple_regs.
34211
34212 2014-01-30  Nick Clifton  <nickc@redhat.com>
34213             DJ Delorie  <dj@redhat.com>
34214
34215         * config/rl78/rl78.c (register_sizes): Make the "upper half" of
34216         %fp 2 to keep registers after it properly word-aligned.
34217         (rl78_alloc_physical_registers_umul): Handle the case where both
34218         input operands are the same.
34219
34220 2014-01-30  Richard Biener  <rguenther@suse.de>
34221
34222         PR tree-optimization/59903
34223         * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
34224         check properly.
34225
34226 2014-01-30  Jason Merrill  <jason@redhat.com>
34227
34228         PR c++/59633
34229         * tree.c (walk_type_fields): Handle VECTOR_TYPE.
34230
34231         PR c++/59645
34232         * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
34233
34234 2014-01-30  Richard Biener  <rguenther@suse.de>
34235
34236         PR tree-optimization/59951
34237         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
34238
34239 2014-01-30  Savin Zlobec  <savin.zlobec@gmail.com>
34240
34241         PR target/59784
34242         * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
34243         SFmode to DFmode case.
34244
34245 2014-01-29  DJ Delorie  <dj@redhat.com>
34246
34247         * config/msp430/msp430.opt (-minrt): New.
34248         * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
34249         if -minrt given.
34250         (ENDFILE_SPEC): Likewise.
34251
34252 2014-01-29  Jan Hubicka  <hubicka@ucw.cz>
34253
34254         * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
34255         (estimate_function_body_sizes): Use it.
34256
34257 2014-01-29  Paolo Carlini  <paolo.carlini@oracle.com>
34258
34259         PR c++/58561
34260         * dwarf2out.c (is_cxx_auto): New.
34261         (is_base_type): Use it.
34262         (gen_type_die_with_usage): Likewise.
34263
34264 2014-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34265
34266         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const):  Use
34267         CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
34268         * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
34269         -maltivec=be with LE targets.
34270         (vsx_mergeh_<mode>): Likewise.
34271         * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
34272         (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
34273         (altivec_vmrghb): Replace with define_expand and new
34274         *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
34275         (altivec_vmrghb_direct): New define_insn.
34276         (altivec_vmrghh): Replace with define_expand and new
34277         *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
34278         (altivec_vmrghh_direct): New define_insn.
34279         (altivec_vmrghw): Replace with define_expand and new
34280         *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
34281         (altivec_vmrghw_direct): New define_insn.
34282         (*altivec_vmrghsf): Adjust for endianness.
34283         (altivec_vmrglb): Replace with define_expand and new
34284         *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
34285         (altivec_vmrglb_direct): New define_insn.
34286         (altivec_vmrglh): Replace with define_expand and new
34287         *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
34288         (altivec_vmrglh_direct): New define_insn.
34289         (altivec_vmrglw): Replace with define_expand and new
34290         *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
34291         (altivec_vmrglw_direct): New define_insn.
34292         (*altivec_vmrglsf): Adjust for endianness.
34293         (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34294         (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34295         (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
34296         (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
34297         (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34298         (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34299         (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
34300         (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
34301
34302 2014-01-29  Marcus Shawcroft  <marcus.shawcroft@arm.com>
34303
34304         * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
34305         (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
34306         whitespace.
34307
34308 2014-01-29  Richard Biener  <rguenther@suse.de>
34309
34310         PR tree-optimization/58742
34311         * tree-ssa-forwprop.c (associate_pointerplus): Rename to
34312         associate_pointerplus_align.
34313         (associate_pointerplus_diff): New function.
34314         (associate_pointerplus): Likewise.  Call associate_pointerplus_align
34315         and associate_pointerplus_diff.
34316
34317 2014-01-29  Richard Biener  <rguenther@suse.de>
34318
34319         * lto-streamer.h (LTO_major_version): Bump to 3.
34320         (LTO_minor_version): Reset to 0.
34321
34322 2014-01-29  Renlin Li  <Renlin.Li@arm.com>
34323
34324         * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
34325         * config/arm/arm.c (FL_FOR_ARCH7VE): New.
34326         (arm_file_start): Generate correct asm header for armv7ve.
34327         * config/arm/bpabi.h: Add multilib support for armv7ve.
34328         * config/arm/driver-arm.c: Change the architectures of cortex-a7
34329         and cortex-a15 to armv7ve.
34330         * config/arm/t-aprofile: Add multilib support for armv7ve.
34331         * doc/invoke.texi: Document -march=armv7ve.
34332
34333 2014-01-29  Richard Biener  <rguenther@suse.de>
34334
34335         PR tree-optimization/58742
34336         * tree-ssa-forwprop.c (associate_plusminus): Return true
34337         if we changed sth, defer EH cleanup to ...
34338         (ssa_forward_propagate_and_combine): ... here.  Call simplify_mult.
34339         (simplify_mult): New function.
34340
34341 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34342
34343         PR middle-end/59917
34344         PR tree-optimization/59920
34345         * tree.c (build_common_builtin_nodes): Remove
34346         __builtin_setjmp_dispatcher initialization.
34347         * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
34348         * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
34349         instead of gsi_after_labels + manually skipping debug stmts.
34350         Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
34351         ignore bbs with IFN_ABNORMAL_DISPATCHER.
34352         * tree-inline.c (copy_edges_for_bb): Remove
34353         can_make_abnormal_goto argument, instead add abnormal_goto_dest
34354         argument.  Ignore computed_goto_p stmts.  Don't call
34355         make_abnormal_goto_edges.  If a call might need abnormal edges
34356         for non-local gotos, see if it already has an edge to
34357         IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
34358         with true argument, don't do anything then, otherwise add
34359         EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
34360         (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
34361         caller.
34362         * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
34363         (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
34364         (lower_stmt): Don't set data->calls_builtin_setjmp.
34365         (lower_builtin_setjmp): Adjust comment.
34366         * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
34367         * tree-cfg.c (found_computed_goto): Remove.
34368         (factor_computed_gotos): Remove.
34369         (make_goto_expr_edges): Return bool, true for computed gotos.
34370         Don't call make_abnormal_goto_edges.
34371         (build_gimple_cfg): Don't set found_computed_goto, don't call
34372         factor_computed_gotos.
34373         (computed_goto_p): No longer static.
34374         (make_blocks): Don't set found_computed_goto.
34375         (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
34376         (make_edges): If make_goto_expr_edges returns true, push bb
34377         into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
34378         instead of calling make_abnormal_goto_edges push bb into ab_edge_call
34379         vector.  Record mapping between bbs and OpenMP regions if there
34380         are any, adjust make_gimple_omp_edges caller.  Call
34381         handle_abnormal_edges.
34382         (make_abnormal_goto_edges): Remove.
34383         * tree-cfg.h (make_abnormal_goto_edges): Remove.
34384         (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
34385         * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
34386         * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
34387         * internal-fn.def (ABNORMAL_DISPATCHER): New.
34388         * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
34389         filling *region also set *region_idx to (*region)->entry->index.
34390
34391         PR other/58712
34392         * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
34393         For REGs set ORIGINAL_REGNO.
34394
34395 2014-01-29  Bingfeng Mei  <bmei@broadcom.com>
34396
34397         * doc/md.texi: Mention that a target shouldn't implement
34398         vec_widen_(s|u)mul_even/odd pair if it is less efficient
34399         than hi/lo pair.
34400
34401 2014-01-29  Jakub Jelinek  <jakub@redhat.com>
34402
34403         PR tree-optimization/59594
34404         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
34405         a copy of the datarefs vector rather than the vector itself.
34406
34407 2014-01-28  Jason Merrill  <jason@redhat.com>
34408
34409         PR c++/53756
34410         * dwarf2out.c (auto_die): New static.
34411         (gen_type_die_with_usage): Handle C++1y 'auto'.
34412         (gen_subprogram_die): If in-class DIE had 'auto', emit type again
34413         on definition.
34414
34415 2014-01-28  H.J. Lu  <hongjiu.lu@intel.com>
34416
34417         PR target/59672
34418         * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
34419         (SPEC_X32): Likewise.
34420         (SPEC_64): Likewise.
34421         * config/i386/i386.c (ix86_option_override_internal): Turn off
34422         OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
34423         for TARGET_16BIT.
34424         (x86_file_start): Output .code16gcc for TARGET_16BIT.
34425         * config/i386/i386.h (TARGET_16BIT): New macro.
34426         (TARGET_16BIT_P): Likewise.
34427         * config/i386/i386.opt: Add m16.
34428         * doc/invoke.texi: Document -m16.
34429
34430 2014-01-28  Jakub Jelinek  <jakub@redhat.com>
34431
34432         PR preprocessor/59935
34433         * input.c (location_get_source_line): Bail out on when line number
34434         is zero, and test the return value of lookup_or_add_file_to_cache_tab.
34435
34436 2014-01-28  Richard Biener  <rguenther@suse.de>
34437
34438         PR tree-optimization/58742
34439         * tree-ssa-forwprop.c (associate_plusminus): Handle
34440         pointer subtraction of the form (T)(P + A) - (T)P.
34441
34442 2014-01-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
34443
34444         * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
34445         at const_int_cost.
34446
34447 2014-01-28  Richard Biener  <rguenther@suse.de>
34448
34449         Revert
34450         2014-01-28  Richard Biener  <rguenther@suse.de>
34451
34452         PR rtl-optimization/45364
34453         PR rtl-optimization/59890
34454         * var-tracking.c (local_get_addr_clear_given_value): Handle
34455         already cleared slot.
34456         (val_reset): Handle not allocated local_get_addr_cache.
34457         (vt_find_locations): Use post-order on the inverted CFG.
34458
34459 2014-01-28  Richard Biener  <rguenther@suse.de>
34460
34461         * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
34462
34463 2014-01-28  Richard Biener  <rguenther@suse.de>
34464
34465         PR rtl-optimization/45364
34466         PR rtl-optimization/59890
34467         * var-tracking.c (local_get_addr_clear_given_value): Handle
34468         already cleared slot.
34469         (val_reset): Handle not allocated local_get_addr_cache.
34470         (vt_find_locations): Use post-order on the inverted CFG.
34471
34472 2014-01-28  Alan Modra  <amodra@gmail.com>
34473
34474         * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
34475         * configure.ac <recursive call for build != host>: Define
34476         GENERATOR_FILE.  Comment.  Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
34477         and LD_FOR_BUILD too.
34478         * configure: Regenerate.
34479
34480 2014-01-27  Allan Sandfeld Jensen  <sandfeld@kde.org>
34481
34482         * config/i386/i386.c (get_builtin_code_for_version): Separate
34483         Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
34484         Broadwell from Haswell.
34485
34486 2014-01-27  Steve Ellcey  <sellcey@mips.com>
34487
34488         * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
34489         Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
34490         * config/mips/mips.c (mips_option_override): Change setting
34491         of TARGET_DSP.
34492         * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
34493         * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
34494         Change from Mask to Var.
34495
34496 2014-01-27  Jeff Law  <law@redhat.com>
34497
34498         * ipa-inline.c (inline_small_functions): Fix typo.
34499
34500 2014-01-27  Ilya Tocar  <ilya.tocar@intel.com>
34501
34502         * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
34503         (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
34504         (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
34505         (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
34506         (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
34507         (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
34508         (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
34509         (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
34510         (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
34511         (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
34512         (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
34513         (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
34514         (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
34515         (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
34516         (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
34517         (_mm512_storeu_epi64): Ditto.
34518         (_mm512_cmpge_epi32_mask): Ditto.
34519         (_mm512_cmpge_epu32_mask): Ditto.
34520         (_mm512_cmpge_epi64_mask): Ditto.
34521         (_mm512_cmpge_epu64_mask): Ditto.
34522         (_mm512_cmple_epi32_mask): Ditto.
34523         (_mm512_cmple_epu32_mask): Ditto.
34524         (_mm512_cmple_epi64_mask): Ditto.
34525         (_mm512_cmple_epu64_mask): Ditto.
34526         (_mm512_cmplt_epi32_mask): Ditto.
34527         (_mm512_cmplt_epu32_mask): Ditto.
34528         (_mm512_cmplt_epi64_mask): Ditto.
34529         (_mm512_cmplt_epu64_mask): Ditto.
34530         (_mm512_cmpneq_epi32_mask): Ditto.
34531         (_mm512_cmpneq_epu32_mask): Ditto.
34532         (_mm512_cmpneq_epi64_mask): Ditto.
34533         (_mm512_cmpneq_epu64_mask): Ditto.
34534         (_mm512_expand_pd): Ditto.
34535         (_mm512_expand_ps): Ditto.
34536         * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
34537         VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
34538         VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
34539         * config/i386/i386.c (ix86_builtins): Add
34540         IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
34541         IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
34542         IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
34543         IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
34544         IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
34545         IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
34546         IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
34547         IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
34548         IX86_BUILTIN_PMOVUSQW512_MEM.
34549         (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
34550         __builtin_ia32_pmovsqd512mem_mask,
34551         __builtin_ia32_pmovqd512mem_mask,
34552         __builtin_ia32_pmovusqw512mem_mask,
34553         __builtin_ia32_pmovsqw512mem_mask,
34554         __builtin_ia32_pmovqw512mem_mask,
34555         __builtin_ia32_pmovusdw512mem_mask,
34556         __builtin_ia32_pmovsdw512mem_mask,
34557         __builtin_ia32_pmovdw512mem_mask,
34558         __builtin_ia32_pmovqb512mem_mask,
34559         __builtin_ia32_pmovusqb512mem_mask,
34560         __builtin_ia32_pmovsqb512mem_mask,
34561         __builtin_ia32_pmovusdb512mem_mask,
34562         __builtin_ia32_pmovsdb512mem_mask,
34563         __builtin_ia32_pmovdb512mem_mask.
34564         (bdesc_args): Add __builtin_ia32_expanddf512,
34565         __builtin_ia32_expandsf512.
34566         (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
34567         VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
34568         VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
34569         * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
34570         (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
34571         (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
34572         (avx512f_<code>v8div16qi2_mask_store): This.
34573         (avx512f_expand<mode>): New.
34574
34575 2014-01-27  Kirill Yukhin  <kirill.yukhin@intel.com>
34576
34577         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
34578         New.
34579         (_mm512_mask_prefetch_i64gather_pd): Ditto.
34580         (_mm512_prefetch_i32scatter_pd): Ditto.
34581         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
34582         (_mm512_prefetch_i64scatter_pd): Ditto.
34583         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
34584         (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
34585         (_mm512_mask_prefetch_i64gather_ps): Ditto.
34586         (_mm512_prefetch_i32scatter_ps): Ditto.
34587         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
34588         (_mm512_prefetch_i64scatter_ps): Ditto.
34589         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
34590         * config/i386/i386-builtin-types.def: Define
34591         VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
34592         and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
34593         * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
34594         IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
34595         IX86_BUILTIN_SCATTERPFQPD.
34596         (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
34597         __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
34598         __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
34599         __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
34600         __builtin_ia32_scatterpfqps.
34601         (ix86_expand_builtin): Expand new built-ins.
34602         * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
34603         fix memory access data type.
34604         (*avx512pf_gatherpf<mode>_mask): Ditto.
34605         (*avx512pf_gatherpf<mode>): Ditto.
34606         (avx512pf_scatterpf<mode>): Ditto.
34607         (*avx512pf_scatterpf<mode>_mask): Ditto.
34608         (*avx512pf_scatterpf<mode>): Ditto.
34609         (GATHER_SCATTER_SF_MEM_MODE): New.
34610         (avx512pf_gatherpf<mode>df): Ditto.
34611         (*avx512pf_gatherpf<mode>df_mask): Ditto.
34612         (*avx512pf_scatterpf<mode>df): Ditto.
34613
34614 2014-01-27  Jakub Jelinek  <jakub@redhat.com>
34615
34616         PR bootstrap/59934
34617         * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
34618         know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
34619         reached.
34620
34621 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34622
34623         * common/config/arm/arm-common.c
34624         (arm_rewrite_mcpu): Handle multiple names.
34625         * config/arm/arm.h
34626         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34627
34628 2014-01-27  James Greenhalgh  <james.greenhalgh@arm.com>
34629
34630         * gimple-builder.h (create_gimple_tmp): Delete.
34631
34632 2014-01-27  Christian Bruel  <christian.bruel@st.com>
34633
34634         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
34635         words comparisons.
34636
34637 2014-01-26  John David Anglin  <danglin@gcc.gnu.org>
34638
34639         * config/pa/pa.md (call): Generate indirect long calls to non-local
34640         functions when outputing 32-bit code.
34641         (call_value): Likewise except for special call to buggy powf function.
34642
34643         * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
34644         portable runtime and PIC indirect calls.
34645         (pa_output_indirect_call): Remove unnecessary nop from portable runtime
34646         and PIC call sequences.  Use ldo instead of blr to set return register
34647         in PIC call sequence.
34648
34649 2014-01-25  Walter Lee  <walt@tilera.com>
34650
34651         * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
34652         avoid clobbering a live register.
34653
34654 2014-01-25  Walter Lee  <walt@tilera.com>
34655
34656         * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
34657         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
34658         * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
34659         Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
34660
34661 2014-01-25  Walter Lee  <walt@tilera.com>
34662
34663         * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
34664         arguments on even registers.
34665         (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
34666         STACK_BOUNDARY.
34667         * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
34668         (BIGGEST_ALIGNMENT): Ditto.
34669         (BIGGEST_FIELD_ALIGNMENT): Ditto.
34670
34671 2014-01-25  Walter Lee  <walt@tilera.com>
34672
34673         * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
34674         insns before bundling.
34675         * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
34676
34677 2014-01-25  Walter Lee  <walt@tilera.com>
34678
34679         * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
34680         PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
34681         * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
34682
34683 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34684
34685         * config/mips/constraints.md (kl): Delete.
34686         * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
34687         define expands, using...
34688         (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
34689         instructions for MIPS16.
34690         (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
34691         non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
34692
34693 2014-01-25  Walter Lee  <walt@tilera.com>
34694
34695         * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
34696         (clzdi2): Ditto.
34697         (ffsdi2): Ditto.
34698
34699 2014-01-25  Walter Lee  <walt@tilera.com>
34700
34701         * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
34702         (TARGET_EXPAND_TO_RTL_HOOK): Define.
34703
34704 2014-01-25  Richard Sandiford  <rdsandiford@googlemail.com>
34705
34706         * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
34707         Handle XOR.
34708
34709 2014-01-25  Jakub Jelinek  <jakub@redhat.com>
34710
34711         * print-rtl.c (in_call_function_usage): New var.
34712         (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
34713         EXPR_LIST mode as mode and not as reg note name.
34714
34715         PR middle-end/59561
34716         * cfgloopmanip.c (copy_loop_info): If
34717         loop->warned_aggressive_loop_optimizations, make sure
34718         the flag is set in target loop too.
34719
34720 2014-01-24  Balaji V. Iyer  <balaji.v.iyer@intel.com>
34721
34722         * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
34723         flag_cilkplus.
34724         * builtins.def: Likewise.
34725         * cilk.h (fn_contains_cilk_spawn_p): Likewise.
34726         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
34727         * ira.c (ira_setup_eliminable_regset): Likewise.
34728         * omp-low.c (gate_expand_omp): Likewise.
34729         (execute_lower_omp): Likewise.
34730         (diagnose_sb_0): Likewise.
34731         (gate_diagnose_omp_blocks): Likewise.
34732         (simd_clone_clauses_extract): Likewise.
34733         (gate): Likewise.
34734
34735 2014-01-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
34736
34737         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
34738         correction for little endian...
34739         * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
34740         here.
34741
34742 2014-01-24  Jeff Law  <law@redhat.com>
34743
34744         PR tree-optimization/59919
34745         * tree-vrp.c (find_assert_locations_1): Do not register asserts
34746         for non-returning calls.
34747
34748 2014-01-24  James Greenhalgh  <james.greenhalgh@arm.com>
34749
34750         * common/config/aarch64/aarch64-common.c
34751         (aarch64_rewrite_mcpu): Handle multiple names.
34752         * config/aarch64/aarch64.h
34753         (BIG_LITTLE_SPEC): Do not discard mcpu switches.
34754
34755 2014-01-24  Dodji Seketeli  <dodji@redhat.com>
34756
34757         * input.c (add_file_to_cache_tab): Handle the case where fopen
34758         returns NULL.
34759
34760 2014-01-23  H.J. Lu  <hongjiu.lu@intel.com>
34761
34762         PR target/59929
34763         * config/i386/i386.md (pushsf splitter): Get stack adjustment
34764         from push operand if code of push isn't PRE_DEC.
34765
34766 2014-01-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
34767
34768         PR target/59909
34769         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
34770         -mquad-memory-atomic.  Update -mquad-memory documentation to say
34771         it is only used for non-atomic loads/stores.
34772
34773         * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
34774         -mquad-memory or -mquad-memory-atomic switches.
34775
34776         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
34777         -mquad-memory-atomic to ISA 2.07 support.
34778
34779         * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
34780         to separate support of normal quad word memory operations (ldq, stq)
34781         from the atomic quad word memory operations.
34782
34783         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
34784         support to separate non-atomic quad word operations from atomic
34785         quad word operations.  Disable non-atomic quad word operations in
34786         little endian mode so that we don't have to swap words after the
34787         load and before the store.
34788         (quad_load_store_p): Add comment about atomic quad word support.
34789         (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
34790         options printed with -mdebug=reg.
34791
34792         * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
34793         -mquad-memory-atomic as the test for whether we have quad word
34794         atomic instructions.
34795         (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
34796         or -mp8-vector are used, allow byte/half-word atomic operations.
34797
34798         * config/rs6000/sync.md (load_lockedti): Insure that the address
34799         is a proper indexed or indirect address for the lqarx instruction.
34800         On little endian systems, swap the hi/lo registers after the lqarx
34801         instruction.
34802         (load_lockedpti): Use indexed_or_indirect_operand predicate to
34803         insure the address is valid for the lqarx instruction.
34804         (store_conditionalti): Insure that the address is a proper indexed
34805         or indirect address for the stqcrx. instruction.  On little endian
34806         systems, swap the hi/lo registers before doing the stqcrx.
34807         instruction.
34808         (store_conditionalpti): Use indexed_or_indirect_operand predicate to
34809         insure the address is valid for the stqcrx. instruction.
34810
34811         * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
34812         Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
34813         type of quad memory support is available.
34814
34815 2014-01-23  Vladimir Makarov  <vmakarov@redhat.com>
34816
34817         PR regression/59915
34818         * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
34819         there is a danger of looping.
34820
34821 2014-01-23  Pat Haugen  <pthaugen@us.ibm.com>
34822
34823         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
34824         force flag_ira_loop_pressure if set via command line.
34825
34826 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34827
34828         * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
34829         (ashr_simd): New builtin handling DI mode.
34830         * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
34831         (aarch64_sshr_simddi): New match pattern.
34832         * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
34833         (vshrd_n_s64): Likewise.
34834         * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
34835
34836 2014-01-23  Nick Clifton  <nickc@redhat.com>
34837
34838         * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
34839         (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
34840         favour of mcu specific scripts.
34841         * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
34842         430x multilibs.
34843
34844 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34845             Alex Velenko  <Alex.Velenko@arm.com>
34846
34847         * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
34848         (vaddv_s16): Likewise.
34849         (vaddv_s32): Likewise.
34850         (vaddv_u8): Likewise.
34851         (vaddv_u16): Likewise.
34852         (vaddv_u32): Likewise.
34853         (vaddvq_s8): Likewise.
34854         (vaddvq_s16): Likewise.
34855         (vaddvq_s32): Likewise.
34856         (vaddvq_s64): Likewise.
34857         (vaddvq_u8): Likewise.
34858         (vaddvq_u16): Likewise.
34859         (vaddvq_u32): Likewise.
34860         (vaddvq_u64): Likewise.
34861         (vaddv_f32): Likewise.
34862         (vaddvq_f32): Likewise.
34863         (vaddvq_f64): Likewise.
34864         (vmaxv_f32): Likewise.
34865         (vmaxv_s8): Likewise.
34866         (vmaxv_s16): Likewise.
34867         (vmaxv_s32): Likewise.
34868         (vmaxv_u8): Likewise.
34869         (vmaxv_u16): Likewise.
34870         (vmaxv_u32): Likewise.
34871         (vmaxvq_f32): Likewise.
34872         (vmaxvq_f64): Likewise.
34873         (vmaxvq_s8): Likewise.
34874         (vmaxvq_s16): Likewise.
34875         (vmaxvq_s32): Likewise.
34876         (vmaxvq_u8): Likewise.
34877         (vmaxvq_u16): Likewise.
34878         (vmaxvq_u32): Likewise.
34879         (vmaxnmv_f32): Likewise.
34880         (vmaxnmvq_f32): Likewise.
34881         (vmaxnmvq_f64): Likewise.
34882         (vminv_f32): Likewise.
34883         (vminv_s8): Likewise.
34884         (vminv_s16): Likewise.
34885         (vminv_s32): Likewise.
34886         (vminv_u8): Likewise.
34887         (vminv_u16): Likewise.
34888         (vminv_u32): Likewise.
34889         (vminvq_f32): Likewise.
34890         (vminvq_f64): Likewise.
34891         (vminvq_s8): Likewise.
34892         (vminvq_s16): Likewise.
34893         (vminvq_s32): Likewise.
34894         (vminvq_u8): Likewise.
34895         (vminvq_u16): Likewise.
34896         (vminvq_u32): Likewise.
34897         (vminnmv_f32): Likewise.
34898         (vminnmvq_f32): Likewise.
34899         (vminnmvq_f64): Likewise.
34900
34901 2014-01-23  James Greenhalgh  <james.greenhalgh@arm.com>
34902
34903         * config/aarch64/aarch64-simd.md
34904         (aarch64_dup_lane<mode>): Correct lane number on big-endian.
34905         (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
34906         (*aarch64_mul3_elt<mode>): Likewise.
34907         (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
34908         (*aarch64_mul3_elt_to_64v2df): Likewise.
34909         (*aarch64_mla_elt<mode>): Likewise.
34910         (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
34911         (*aarch64_mls_elt<mode>): Likewise.
34912         (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
34913         (*aarch64_fma4_elt<mode>): Likewise.
34914         (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
34915         (*aarch64_fma4_elt_to_64v2df): Likewise.
34916         (*aarch64_fnma4_elt<mode>): Likewise.
34917         (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
34918         (*aarch64_fnma4_elt_to_64v2df): Likewise.
34919         (aarch64_sq<r>dmulh_lane<mode>): Likewise.
34920         (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
34921         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34922         (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
34923         (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
34924         (aarch64_sqdmull_lane<mode>_internal): Likewise.
34925         (aarch64_sqdmull2_lane<mode>_internal): Likewise.
34926
34927 2013-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34928
34929         * config/aarch64/aarch64-simd.md
34930         (aarch64_be_checked_get_lane<mode>): New define_expand.
34931         * config/aarch64/aarch64-simd-builtins.def
34932         (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
34933         New builtin definition.
34934         * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
34935         Use new safe be builtin.
34936
34937 2014-01-23  Alex Velenko  <Alex.Velenko@arm.com>
34938
34939         * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
34940         New define_insn.
34941         (aarch64_be_st1<mode>): Likewise.
34942         (aarch_ld1<VALL:mode>): Define_expand modified.
34943         (aarch_st1<VALL:mode>): Likewise.
34944         * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
34945         (UNSPEC_ST1): Likewise.
34946
34947 2014-01-23  David Holsgrove  <david.holsgrove@xilinx.com>
34948
34949         * config/microblaze/microblaze.md: Add trap insn and attribute
34950
34951 2014-01-23  Dodji Seketeli  <dodji@redhat.com>
34952
34953         PR preprocessor/58580
34954         * input.h (location_get_source_line): Take an additional line_size
34955         parameter.
34956         (void diagnostics_file_cache_fini): Declare new function.
34957         * input.c (struct fcache): New type.
34958         (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
34959         New static constants.
34960         (diagnostic_file_cache_init, total_lines_num)
34961         (lookup_file_in_cache_tab, evicted_cache_tab_entry)
34962         (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
34963         (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
34964         (get_next_line, read_next_line, goto_next_line, read_line_num):
34965         New static function definitions.
34966         (diagnostic_file_cache_fini): New function.
34967         (location_get_source_line): Take an additional output line_len
34968         parameter.  Re-write using lookup_or_add_file_to_cache_tab and
34969         read_line_num.
34970         * diagnostic.c (diagnostic_finish): Call
34971         diagnostic_file_cache_fini.
34972         (adjust_line): Take an additional input parameter for the length
34973         of the line, rather than calculating it with strlen.
34974         (diagnostic_show_locus): Adjust the use of
34975         location_get_source_line and adjust_line with respect to their new
34976         signature.  While displaying a line now, do not stop at the first
34977         null byte.  Rather, display the zero byte as a space and keep
34978         going until we reach the size of the line.
34979         * Makefile.in: Add vec.o to OBJS-libcommon
34980
34981 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34982             Ilya Tocar  <ilya.tocar@intel.com>
34983
34984         * config/i386/avx512fintrin.h (_mm512_kmov): New.
34985         * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
34986         (__builtin_ia32_kmov16): Ditto.
34987         * config/i386/i386.md (UNSPEC_KMOV): New.
34988         (kmovw): Ditto.
34989
34990 2014-01-23  Kirill Yukhin  <kirill.yukhin@intel.com>
34991
34992         * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
34993         (_mm512_storeu_si512): Ditto.
34994
34995 2014-01-23  Richard Sandiford  <rdsandiford@googlemail.com>
34996
34997         PR target/52125
34998         * rtl.h (get_referenced_operands): Declare.
34999         * recog.c (get_referenced_operands): New function.
35000         * config/mips/mips.c (mips_reorg_process_insns): Check which asm
35001         operands have been referenced when recording LO_SUM references.
35002
35003 2014-01-22  David Holsgrove  <david.holsgrove@xilinx.com>
35004
35005         * config/microblaze/microblaze.md: Correct bswaphi2 insn.
35006
35007 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35008
35009         * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
35010         Enable for generic and recent AMD targets.
35011
35012 2014-01-22  Jan Hubicka  <hubicka@ucw.cz>
35013
35014         * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
35015         ARG_SIZE note when adjustment was eliminated.
35016
35017 2014-01-22  Jeff Law  <law@redhat.com>
35018
35019         PR tree-optimization/59597
35020         * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
35021         in file.  Accept new argument REGISTERING and use it to modify
35022         dump output appropriately.
35023         (register_jump_thread): Corresponding changes.
35024         (mark_threaded_blocks): Reinstate code to cancel unprofitable
35025         thread paths involving joiner blocks.  Add code to dump cancelled
35026         jump threading paths.
35027
35028 2014-01-22  Vladimir Makarov  <vmakarov@redhat.com>
35029
35030         PR rtl-optimization/59477
35031         * lra-constraints.c (inherit_in_ebb): Process call for living hard
35032         regs.  Update reloads_num and potential_reload_hard_regs for all insns.
35033
35034 2014-01-22  Tom Tromey  <tromey@redhat.com>
35035
35036         * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
35037         PARAMS.
35038         * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
35039
35040 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35041
35042         PR rtl-optimization/59896
35043         * lra-constraints.c (process_alt_operands): Check unused note for
35044         matched operands of insn with no output reloads.
35045
35046 2014-01-21  Richard Sandiford  <rdsandiford@googlemail.com>
35047
35048         * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
35049         (mips_move_from_gpr_cost): Likewise.
35050
35051 2014-01-21  Vladimir Makarov  <vmakarov@redhat.com>
35052
35053         PR rtl-optimization/59858
35054         * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
35055         ira_class_hard_regs_num.
35056         (process_alt_operands): Increase reject for dying matched operand.
35057
35058 2014-01-21  Jakub Jelinek  <jakub@redhat.com>
35059
35060         PR target/59003
35061         * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
35062         smaller than size, perform several stores or loads and stores
35063         at dst + count - size to store or copy all of size bytes, rather
35064         than just last modesize bytes.
35065
35066 2014-01-20  DJ Delorie  <dj@redhat.com>
35067
35068         * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
35069         that CLOBBERs are REGs before propogating their values.
35070
35071 2014-01-20  H.J. Lu  <hongjiu.lu@intel.com>
35072
35073         PR middle-end/59789
35074         * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
35075         (cgraph_inline_failed_type): New function.
35076         * cgraph.h (DEFCIFCODE): Add type.
35077         (cgraph_inline_failed_type_t): New enum.
35078         (cgraph_inline_failed_type): New prototype.
35079         * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
35080         FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35081         FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
35082         LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
35083         MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
35084         RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
35085         OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
35086         INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
35087         Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
35088         FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
35089         EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
35090         OPTIMIZATION_MISMATCH.
35091         * tree-inline.c (expand_call_inline): Emit errors during
35092         early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
35093
35094 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35095
35096         PR target/59685
35097         * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
35098         mode attribute in insn output.
35099
35100 2014-01-20  Eric Botcazou  <ebotcazou@adacore.com>
35101
35102         * output.h (output_constant): Delete.
35103         * varasm.c (output_constant): Make private.
35104
35105 2014-01-20  Alex Velenko  <Alex.Velenko@arm.com>
35106
35107         * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
35108
35109 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35110
35111         PR middle-end/59860
35112         * tree.h (fold_builtin_strcat): New prototype.
35113         * builtins.c (fold_builtin_strcat): No longer static.  Add len
35114         argument, if non-NULL, don't call c_strlen.  Optimize
35115         directly into __builtin_memcpy instead of __builtin_strcpy.
35116         (fold_builtin_2): Adjust fold_builtin_strcat caller.
35117         * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
35118
35119 2014-01-20  Uros Bizjak  <ubizjak@gmail.com>
35120
35121         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35122         for SImode_address_operand operands, having only a REG argument.
35123
35124 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
35125
35126         * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
35127         loader name using mbig-endian.
35128         (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
35129
35130 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35131
35132         * doc/invoke.texi (-march): Clarify documentation for AArch64.
35133         (-mtune): Likewise.
35134         (-mcpu): Likewise.
35135
35136 2014-01-20  Tejas Belagod  <tejas.belagod@arm.com>
35137
35138         * config/aarch64/aarch64-protos.h
35139         (aarch64_cannot_change_mode_class_ptr): Declare.
35140         * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
35141         aarch64_cannot_change_mode_class_ptr): New.
35142         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
35143         backend hook aarch64_cannot_change_mode_class.
35144
35145 2014-01-20  James Greenhalgh  <james.greenhalgh@arm.com>
35146
35147         * common/config/aarch64/aarch64-common.c
35148         (aarch64_handle_option): Don't handle any option order logic here.
35149         * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
35150         selected_cpu, warn on architecture version mismatch.
35151         (aarch64_override_options): Fix parsing order for option strings.
35152
35153 2014-01-20  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35154             Iain Sandoe  <iain@codesourcery.com>
35155
35156         PR bootstrap/59496
35157         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
35158         warning.  Amend comment to reflect current functionality.
35159
35160 2014-01-20  Richard Biener  <rguenther@suse.de>
35161
35162         PR middle-end/59860
35163         * builtins.c (fold_builtin_strcat): Remove case better handled
35164         by tree-ssa-strlen.c.
35165
35166 2014-01-20  Alan Lawrence  <alan.lawrence@arm.com>
35167
35168         * config/aarch64/aarch64.opt
35169         (mcpu, march, mtune): Make case-insensitive.
35170
35171 2014-01-20  Jakub Jelinek  <jakub@redhat.com>
35172
35173         PR target/59880
35174         * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
35175         if operands[1] is a REG or ZERO_EXTEND of a REG.
35176
35177 2014-01-19  Jan Hubicka  <hubicka@ucw.cz>
35178
35179         * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
35180
35181 2014-01-19  John David Anglin  <danglin@gcc.gnu.org>
35182
35183         * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
35184         long non-pic millicode calls.
35185
35186 2014-01-19  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
35187
35188         * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
35189
35190 2014-01-19  Kito Cheng  <kito@0xlab.org>
35191
35192         * builtins.c (expand_movstr): Check movstr expand done or fail.
35193
35194 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35195             H.J. Lu  <hongjiu.lu@intel.com>
35196
35197         PR target/59379
35198         * config/i386/i386.md (*lea<mode>): Zero-extend return register
35199         to DImode for zero-extended addresses.
35200
35201 2014-01-19  Jakub Jelinek  <jakub@redhat.com>
35202
35203         PR rtl-optimization/57763
35204         * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
35205         on the new indirect jump_insn and increment LABEL_NUSES (label).
35206
35207 2014-01-18  H.J. Lu  <hongjiu.lu@intel.com>
35208
35209         PR bootstrap/59580
35210         PR bootstrap/59583
35211         * config.gcc (x86_archs): New variable.
35212         (x86_64_archs): Likewise.
35213         (x86_cpus): Likewise.
35214         Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
35215         --with-arch/--with-cpu= options.
35216         Support --with-arch=/--with-cpu={nehalem,westmere,
35217         sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
35218
35219 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35220
35221         * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
35222         and PROCESSOR_ATHLON to simplify code.  Move "memory" calculation.
35223
35224 2014-01-18  Uros Bizjak  <ubizjak@gmail.com>
35225
35226         * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
35227
35228 2014-01-18  Jakub Jelinek  <jakub@redhat.com>
35229
35230         PR target/58944
35231         * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
35232         clear cpp_get_options (parse_in)->warn_unused_macros for
35233         ix86_target_macros_internal with cpp_define.
35234
35235 2014-01-18  Richard Sandiford  <rdsandiford@googlemail.com>
35236
35237         * jump.c (delete_related_insns): Keep (use (insn))s.
35238         * reorg.c (redundant_insn): Check for barriers too.
35239
35240 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35241
35242         * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
35243
35244 2014-01-17  John David Anglin  <danglin@gcc.gnu.org>
35245
35246         * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
35247         call to $$dyncall when TARGET_LONG_CALLS is true.
35248
35249 2014-01-17  Jeff Law  <law@redhat.com>
35250
35251         * ree.c (combine_set_extension): Temporarily disable test for
35252         changing number of hard registers.
35253
35254 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35255
35256         PR middle-end/58125
35257         * ipa-inline-analysis.c (inline_free_summary):
35258         Do not free summary of aliases.
35259
35260 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35261
35262         PR middle-end/59706
35263         * gimplify.c (gimplify_expr): Use create_tmp_var
35264         instead of create_tmp_var_raw.  If cond doesn't have
35265         integral type, don't add the IFN_ANNOTATE builtin at all.
35266
35267 2014-01-17  Martin Jambor  <mjambor@suse.cz>
35268
35269         PR ipa/59736
35270         * ipa-cp.c (prev_edge_clone): New variable.
35271         (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
35272         Also resize prev_edge_clone vector.
35273         (ipcp_edge_duplication_hook): Also update prev_edge_clone.
35274         (ipcp_edge_removal_hook): New function.
35275         (ipcp_driver): Register ipcp_edge_removal_hook.
35276
35277 2014-01-17  Andrew Pinski  <apinski@cavium.com>
35278             Steve Ellcey  <sellcey@mips.com>
35279
35280         PR target/59462
35281         * config/mips/mips.c (mips_print_operand): Check operand mode instead
35282         of operator mode.
35283
35284 2014-01-17  Jeff Law  <law@redhat.com>
35285
35286         PR middle-end/57904
35287         * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
35288         so that pass_ccp runs first.
35289
35290 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35291
35292         * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
35293         (ix86_adjust_cost): Use !TARGET_XXX.
35294         (do_reorder_for_imul): Likewise.
35295         (swap_top_of_ready_list): Likewise.
35296         (ix86_sched_reorder): Likewise.
35297
35298 2014-01-17  H.J. Lu  <hongjiu.lu@intel.com>
35299
35300         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
35301         PROCESSOR_INTEL.  Treat like PROCESSOR_GENERIC.
35302         * config/i386/i386.c (intel_memcpy): New.  Duplicate slm_memcpy.
35303         (intel_memset): New.  Duplicate slm_memset.
35304         (intel_cost): New.  Duplicate slm_cost.
35305         (m_INTEL): New macro.
35306         (processor_target_table): Add "intel".
35307         (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
35308         with PROCESSOR_INTEL for "intel".
35309         (ix86_lea_outperforms): Support PROCESSOR_INTEL.  Duplicate
35310         PROCESSOR_SILVERMONT.
35311         (ix86_issue_rate): Likewise.
35312         (ix86_adjust_cost): Likewise.
35313         (ia32_multipass_dfa_lookahead): Likewise.
35314         (swap_top_of_ready_list): Likewise.
35315         (ix86_sched_reorder): Likewise.
35316         (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
35317         instead of TARGET_OPT_AGU.
35318         * config/i386/i386.h (TARGET_INTEL): New.
35319         (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
35320         (processor_type): Add PROCESSOR_INTEL.
35321         * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
35322         Add X86_TUNE_AVOID_LEA_FOR_ADDR.
35323
35324 2014-01-17  Marek Polacek  <polacek@redhat.com>
35325
35326         PR c/58346
35327         * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
35328         size is zero.
35329
35330 2014-01-17  Richard Biener  <rguenther@suse.de>
35331
35332         PR tree-optimization/46590
35333         * opts.c (default_options_table): Add entries for
35334         OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
35335         all enabled at -O1 but not for -Og.
35336         * common.opt (fbranch-count-reg): Remove Init(1).
35337         (fmove-loop-invariants): Likewise.
35338         (ftree-pta): Likewise.
35339
35340 2014-01-17  Jakub Jelinek  <jakub@redhat.com>
35341
35342         * config/i386/i386.c (ix86_data_alignment): For compatibility with
35343         (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
35344         decls to at least the GCC 4.8 used alignments.
35345
35346         PR fortran/59440
35347         * tree-nested.c (convert_nonlocal_reference_stmt,
35348         convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
35349         of GIMPLE_BIND stmts, adjust associated decls.
35350
35351 2014-01-17  Richard Biener  <rguenther@suse.de>
35352
35353         PR tree-optimization/46590
35354         * vec.h (vec<>::bseach): New member function implementing
35355         binary search according to C89 bsearch.
35356         (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
35357         * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
35358         bitmap pointer again.  Make accesses_in_loop a flat array.
35359         (mem_ref_obstack): New global.
35360         (outermost_indep_loop): Adjust for mem_ref->stored changes.
35361         (mark_ref_stored): Likewise.
35362         (ref_indep_loop_p_2): Likewise.
35363         (set_ref_stored_in_loop): New helper function.
35364         (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
35365         (memref_free): Adjust.
35366         (record_mem_ref_loc): Simplify.
35367         (gather_mem_refs_stmt): Adjust.
35368         (sort_locs_in_loop_postorder_cmp): New function.
35369         (analyze_memory_references): Sort accesses_in_loop after
35370         loop postorder number.
35371         (find_ref_loc_in_loop_cmp): New function.
35372         (for_all_locs_in_loop): Find relevant cluster of locs in
35373         accesses_in_loop and iterate without recursion.
35374         (execute_sm): Avoid uninit warning.
35375         (struct ref_always_accessed): Simplify.
35376         (ref_always_accessed::operator ()): Likewise.
35377         (ref_always_accessed_p): Likewise.
35378         (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
35379         loop postorder numbers here.
35380         (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
35381         numbers.
35382
35383 2014-01-17  Jan Hubicka  <hubicka@ucw.cz>
35384
35385         PR c++/57945
35386         * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
35387         on decls for which assemble_alias has been called.
35388
35389 2014-01-17  Nick Clifton  <nickc@redhat.com>
35390
35391         * config/msp430/msp430.opt: (mcpu): New option.
35392         * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
35393         (msp430_option_override): Parse target_cpu.  If the MCU name
35394         matches a generic string, clear target_mcu.
35395         (msp430_attr): Allow numeric interrupt values up to 63.
35396         (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
35397         * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
35398         option.
35399         * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
35400         Add mcpu matches.
35401         * config/msp430/msp430.md (popm): Use %J rather than %I.
35402         (addsi3): Use msp430_nonimmediate_operand for operand 2.
35403         (addhi_cy_i): Use immediate_operand for operand 2.
35404         * doc/invoke.texi: Document -mcpu option.
35405
35406 2014-01-17  Richard Biener  <rguenther@suse.de>
35407
35408         PR rtl-optimization/38518
35409         * df.h (df_analyze_loop): Declare.
35410         * df-core.c: Include cfgloop.h.
35411         (df_analyze_1): Split out main part of df_analyze.
35412         (df_analyze): Adjust.
35413         (loop_inverted_post_order_compute): New function.
35414         (loop_post_order_compute): Likewise.
35415         (df_analyze_loop): New function avoiding whole-function
35416         postorder computes.
35417         * loop-invariant.c (find_defs): Use df_analyze_loop.
35418         (find_invariants): Adjust.
35419         * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
35420
35421 2014-01-17  Zhenqiang Chen  <zhenqiang.chen@arm.com>
35422
35423         * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
35424         (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
35425
35426 2014-01-16  Ilya Enkovich  <ilya.enkovich@intel.com>
35427
35428         * ipa-ref.c (ipa_remove_stmt_references): Fix references
35429         traversal when removing references.
35430
35431 2014-01-16  Jan Hubicka  <hubicka@ucw.cz>
35432
35433         PR ipa/59775
35434         * tree.c (get_binfo_at_offset): Look harder for virtual bases.
35435
35436 2014-01-16  Bernd Schmidt  <bernds@codesourcery.com>
35437
35438         PR middle-end/56791
35439         * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
35440         pushing a reload for an autoinc when we had previously reloaded an
35441         inner part of the address.
35442
35443 2014-01-16  Jakub Jelinek  <jakub@redhat.com>
35444
35445         * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
35446         field.
35447         (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
35448         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
35449         when not giving up or versioning for alias only because of
35450         loop->safelen.
35451         (vect_analyze_data_ref_dependences): Set to true.
35452         * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
35453         is a GIMPLE_PHI.
35454         (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
35455         LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
35456         to the condition.
35457
35458         PR middle-end/58344
35459         * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
35460
35461         PR target/59839
35462         * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
35463         operand 0 predicate for gathers, use a new pseudo as subtarget.
35464
35465 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35466
35467         PR middle-end/59609
35468         * lra-constraints.c (process_alt_operands): Add printing debug info.
35469         Check absence of input/output reloads for matched operands too.
35470
35471 2014-01-16  Vladimir Makarov  <vmakarov@redhat.com>
35472
35473         PR rtl-optimization/59835
35474         * ira.c (ira_init_register_move_cost): Increase cost for
35475         impossible modes.
35476
35477 2014-01-16  Alan Lawrence  <alan.lawrence@arm.com>
35478
35479         * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
35480
35481 2014-01-16  Richard Earnshaw  <rearnsha@arm.com>
35482
35483         PR target/59780
35484         * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
35485         non-register objects.  Use gen_(high/low)part more consistently.
35486         Fix assertions.
35487
35488 2014-01-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
35489
35490         PR target/59844
35491         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
35492         endian support, remove tests for WORDS_BIG_ENDIAN.
35493         (p8_mfvsrd_3_<mode>): Likewise.
35494         (reload_gpr_from_vsx<mode>): Likewise.
35495         (reload_gpr_from_vsxsf): Likewise.
35496         (p8_mfvsrd_4_disf): Likewise.
35497
35498 2014-01-16  Richard Biener  <rguenther@suse.de>
35499
35500         PR rtl-optimization/46590
35501         * lcm.c (compute_antinout_edge): Use postorder iteration.
35502         (compute_laterin): Use inverted postorder iteration.
35503
35504 2014-01-16  Nick Clifton  <nickc@redhat.com>
35505
35506         PR middle-end/28865
35507         * varasm.c (output_constant): Return the number of bytes actually
35508         emitted.
35509         (output_constructor_array_range): Update the field size with the
35510         number of bytes emitted by output_constant.
35511         (output_constructor_regular_field): Likewise.  Also do not
35512         complain if the total number of bytes emitted is now greater
35513         than the expected fieldpos.
35514         * output.h (output_constant): Update prototype and descriptive comment.
35515
35516 2014-01-16  Marek Polacek  <polacek@redhat.com>
35517
35518         PR middle-end/59827
35519         * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
35520         it is error_mark_node.
35521
35522 2014-01-15  Uros Bizjak  <ubizjak@gmail.com>
35523
35524         * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
35525         VALID_AVX256_REG_OR_OI_MODE.
35526
35527 2014-01-15  Pat Haugen  <pthaugen@us.ibm.com>
35528
35529         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
35530         current procedure should be profiled.
35531
35532 2014-01-15  Andrew Pinski  <apinski@cavium.com>
35533
35534         * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
35535         of moving from/to the STACK_REG register class.
35536
35537 2014-01-15  Richard Henderson  <rth@redhat.com>
35538
35539         PR debug/54694
35540         * reginfo.c (global_regs_decl): Globalize.
35541         * rtl.h (global_regs_decl): Declare.
35542         * ira.c (do_reload): Diagnose frame_pointer_needed and it
35543         reserved via global_regs.
35544
35545 2014-01-15  Teresa Johnson  <tejohnson@google.com>
35546
35547         * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
35548
35549 2014-01-15  Bill Schmidt  <wschmidt@vnet.linux.ibm.com>
35550
35551         * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
35552         and vmulosh rather than call gen_vec_widen_smult_*.
35553         (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
35554         than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
35555         (vec_widen_smult_even_v16qi): Likewise.
35556         (vec_widen_umult_even_v8hi): Likewise.
35557         (vec_widen_smult_even_v8hi): Likewise.
35558         (vec_widen_umult_odd_v16qi): Likewise.
35559         (vec_widen_smult_odd_v16qi): Likewise.
35560         (vec_widen_umult_odd_v8hi): Likewise.
35561         (vec_widen_smult_odd_v8hi): Likewise.
35562         (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
35563         vmuloub rather than call gen_vec_widen_umult_*.
35564         (vec_widen_umult_lo_v16qi): Likewise.
35565         (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
35566         vmulosb rather than call gen_vec_widen_smult_*.
35567         (vec_widen_smult_lo_v16qi): Likewise.
35568         (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
35569         rather than call gen_vec_widen_umult_*.
35570         (vec_widen_umult_lo_v8hi): Likewise.
35571         (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
35572         rather than call gen_vec_widen_smult_*.
35573         (vec_widen_smult_lo_v8hi): Likewise.
35574
35575 2014-01-15  Jeff Law  <law@redhat.com>
35576
35577         PR tree-optimization/59747
35578         * ree.c (find_and_remove_re): Properly handle case where a second
35579         eliminated extension requires widening a copy created for elimination
35580         of a prior extension.
35581         (combine_set_extension): Ensure that the number of hard regs needed
35582         for a destination register does not change when we widen it.
35583
35584 2014-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
35585
35586         * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
35587         (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
35588         (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
35589         (arm*-*-rtems*): Use t-rtems from existing tmake_file.
35590         (avr-*-rtems*): Likewise.
35591         (bfin*-rtems*): Likewise.
35592         (moxie-*-rtems*): Likewise.
35593         (h8300-*-rtems*): Likewise.
35594         (i[34567]86-*-rtems*): Likewise.
35595         (lm32-*-rtems*): Likewise.
35596         (m32r-*-rtems*): Likewise.
35597         (m68k-*-rtems*): Likewise.
35598         (microblaze*-*-rtems*): Likewise.
35599         (mips*-*-rtems*): Likewise.
35600         (powerpc-*-rtems*): Likewise.
35601         (sh-*-rtems*): Likewise.
35602         (sparc-*-rtems*): Likewise.
35603         (sparc64-*-rtems*): Likewise.
35604         (v850-*-rtems*): Likewise.
35605         (m32c-*-rtems*): Likewise.
35606
35607 2014-01-15  Vladimir Makarov  <vmakarov@redhat.com>
35608
35609         PR rtl-optimization/59511
35610         * ira.c (ira_init_register_move_cost): Use memory costs for some
35611         cases of register move cost calculations.
35612         * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
35613         instead of BB frequency.
35614         * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
35615         * lra-assigns.c (find_hard_regno_for): Ditto.
35616
35617 2014-01-15  Richard Biener  <rguenther@suse.de>
35618
35619         PR tree-optimization/59822
35620         * tree-vect-stmts.c (hoist_defs_of_uses): New function.
35621         (vectorizable_load): Use it to hoist defs of uses of invariant
35622         loads out of the loop.
35623
35624 2014-01-15  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
35625             Kugan Vivekanandarajah  <kuganv@linaro.org>
35626
35627         PR target/59695
35628         * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
35629         truncation.
35630
35631 2014-01-15  Richard Biener  <rguenther@suse.de>
35632
35633         PR rtl-optimization/59802
35634         * lcm.c (compute_available): Use inverted postorder to seed
35635         the initial worklist.
35636
35637 2014-01-15  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35638
35639         PR target/59803
35640         * config/s390/s390.c (s390_preferred_reload_class): Don't return
35641         ADDR_REGS for invalid symrefs in non-PIC code.
35642
35643 2014-01-15  Jakub Jelinek  <jakub@redhat.com>
35644
35645         PR other/58712
35646         * builtins.c (determine_block_size): Initialize *probable_max_size
35647         even if len_rtx is CONST_INT.
35648
35649 2014-01-14  Andrew Pinski  <apinski@cavium.com>
35650
35651         * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
35652         * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
35653         (cortexa53_tunings): Likewise.
35654         (aarch64_sched_issue_rate): New function.
35655         (TARGET_SCHED_ISSUE_RATE): Define.
35656
35657 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35658
35659         * ira-costs.c (find_costs_and_classes): Add missed
35660         ira_init_register_move_cost_if_necessary.
35661
35662 2014-01-14  Vladimir Makarov  <vmakarov@redhat.com>
35663
35664         PR target/59787
35665         * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
35666
35667 2014-01-14  H.J. Lu  <hongjiu.lu@intel.com>
35668
35669         PR target/59794
35670         * config/i386/i386.c (type_natural_mode): Add a bool parameter
35671         to indicate if type is used for function return value.  Warn ABI
35672         change if the vector mode isn't available for function return value.
35673         (ix86_function_arg_advance): Pass false to type_natural_mode.
35674         (ix86_function_arg): Likewise.
35675         (ix86_gimplify_va_arg): Likewise.
35676         (function_arg_32): Don't warn ABI change.
35677         (ix86_function_value): Pass true to type_natural_mode.
35678         (ix86_return_in_memory): Likewise.
35679         (ix86_struct_value_rtx): Removed.
35680         (TARGET_STRUCT_VALUE_RTX): Likewise.
35681
35682 2014-01-14  Richard Sandiford  <rsandifo@linux.vnet.ibm.com>
35683
35684         * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
35685         converting a conditional jump into a conditional return.
35686
35687 2014-01-14  Richard Biener  <rguenther@suse.de>
35688
35689         PR tree-optimization/58921
35690         PR tree-optimization/59006
35691         * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
35692         hoisting invariant stmts.
35693         * tree-vect-stmts.c (vectorizable_load): Insert the splat of
35694         invariant loads on the preheader edge if possible.
35695
35696 2014-01-14  Joey Ye  <joey.ye@arm.com>
35697
35698         * doc/plugin.texi (Building GCC plugins): Update to C++.
35699
35700 2014-01-14  Kirill Yukhin  <kirill.yukhin@intel.com>
35701
35702         * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
35703         (_mm_rcp28_round_ss): Ditto.
35704         (_mm_rsqrt28_round_sd): Ditto.
35705         (_mm_rsqrt28_round_ss): Ditto.
35706         (_mm_rcp28_sd): Ditto.
35707         (_mm_rcp28_ss): Ditto.
35708         (_mm_rsqrt28_sd): Ditto.
35709         (_mm_rsqrt28_ss): Ditto.
35710         * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
35711         * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
35712         * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
35713         (IX86_BUILTIN_RCP28SD): Ditto.
35714         (IX86_BUILTIN_RCP28SS): Ditto.
35715         (IX86_BUILTIN_RSQRT28SD): Ditto.
35716         (IX86_BUILTIN_RSQRT28SS): Ditto.
35717         (bdesc_special_args): Define __builtin_ia32_movntdqa512,
35718         __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
35719         __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
35720         (ix86_expand_special_args_builtin): Expand new FTYPE.
35721         * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
35722         (srcp14<mode>): Make insn unary.
35723         (avx512f_vmscalef<mode><round_name>): Use substed predicate.
35724         (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
35725         (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
35726         (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
35727         (avx512er_exp2<mode><mask_name><round_saeonly_name>):
35728         Fix rounding: make it SAE only.
35729         (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
35730         Ditto.
35731         (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
35732         Ditto.
35733         (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
35734         (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
35735         (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
35736         * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
35737         (round_saeonly_mask_scalar_operand4): Ditto.
35738         (round_saeonly_mask_scalar_op3): Ditto.
35739         (round_saeonly_mask_scalar_op4): Ditto.
35740
35741 2014-01-13  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35742
35743         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
35744         Implement -maltivec=be for vec_insert and vec_extract.
35745
35746 2014-01-10  DJ Delorie  <dj@redhat.com>
35747
35748         * config/msp430/msp430.md (call_internal): Don't allow memory
35749         references with SP as the base register.
35750         (call_value_internal): Likewise.
35751         * config/msp430/constraints.md (Yc): New.  For memory references
35752         that don't use SP as a base register.
35753
35754         * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
35755         "an integer without a # prefix"
35756         * config/msp430/msp430.md (epilogue_helper): Use it.
35757
35758 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35759
35760         PR target/59617
35761         * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
35762         AVX512F gather builtins.
35763         * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
35764         on gather decls with INTEGER_TYPE masktype.
35765         (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
35766         directly into the builtin rather than hoisting it before loop.
35767
35768         PR tree-optimization/59387
35769         * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
35770         (scev_const_prop): If folded_casts and type has undefined overflow,
35771         use force_gimple_operand instead of force_gimple_operand_gsi and
35772         for each added stmt if it is assign with
35773         arith_code_with_undefined_signed_overflow, call
35774         rewrite_to_defined_overflow.
35775         * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
35776         gimple-fold.h instead.
35777         (arith_code_with_undefined_signed_overflow,
35778         rewrite_to_defined_overflow): Moved to ...
35779         * gimple-fold.c (arith_code_with_undefined_signed_overflow,
35780         rewrite_to_defined_overflow): ... here.  No longer static.
35781         Include gimplify-me.h.
35782         * gimple-fold.h (arith_code_with_undefined_signed_overflow,
35783         rewrite_to_defined_overflow): New prototypes.
35784
35785 2014-01-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35786
35787         * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
35788
35789 2014-01-13  Eric Botcazou  <ebotcazou@adacore.com>
35790
35791         * builtins.c (get_object_alignment_2): Minor tweak.
35792         * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
35793
35794 2014-01-13  Christian Bruel  <christian.bruel@st.com>
35795
35796         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
35797         optimized non constant lengths.
35798
35799 2014-01-13  Jakub Jelinek  <jakub@redhat.com>
35800
35801         PR libgomp/59194
35802         * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
35803         load as __atomic_load_N if possible.
35804
35805 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35806
35807         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
35808         target parameter.
35809         (rs6000_expand_builtin): Adjust call.
35810
35811 2014-01-11  David Edelsohn  <dje.gcc@gmail.com>
35812
35813         PR target/58115
35814         * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
35815         * config/rs6000/rs6000.c: Include target-globals.h.
35816         (rs6000_set_current_function): Instead of doing target_reinit
35817         unconditionally, use save_target_globals_default_opts and
35818         restore_target_globals.
35819
35820         * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
35821         FPSCR.
35822         * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
35823         (rs6000_expand_builtin): Handle mffs and mtfsf.
35824         (rs6000_init_builtins): Define mffs and mtfsf.
35825         * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
35826         (rs6000_mffs): New pattern.
35827         (rs6000_mtfsf): New pattern.
35828
35829 2014-01-11  Bin Cheng  <bin.cheng@arm.com>
35830
35831         * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
35832         Start narrowing with START.  Apply candidate-use pair
35833         and check overall cost in narrowing.
35834         (iv_ca_prune): Pass new argument.
35835
35836 2014-01-10  Jeff Law  <law@redhat.com>
35837
35838         PR middle-end/59743
35839         * ree.c (combine_reaching_defs): Ensure the defining statement
35840         occurs before the extension when optimizing extensions with
35841         different source and destination hard registers.
35842
35843 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35844
35845         PR ipa/58585
35846         * ipa-devirt.c (build_type_inheritance_graph): Also add types of
35847         vtables into the type inheritance graph.
35848
35849 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35850
35851         PR rtl-optimization/59754
35852         * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
35853         modes in the REGNO != REGNO case.
35854
35855 2014-01-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35856
35857         * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
35858
35859 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35860
35861         PR tree-optimization/59745
35862         * tree-predcom.c (tree_predictive_commoning_loop): Call
35863         free_affine_expand_cache if giving up because components is NULL.
35864
35865         * target-globals.c (save_target_globals): Allocate < 4KB structs using
35866         GC in payload of target_globals struct instead of allocating them on
35867         the heap and the larger structs separately using GC.
35868         * target-globals.h (struct target_globals): Make regs, hard_regs,
35869         reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
35870         of GTY((skip)) and change type to void *.
35871         (reset_target_globals): Cast loads from those fields to corresponding
35872         types.
35873
35874 2014-01-10  Steve Ellcey  <sellcey@mips.com>
35875
35876         PR plugins/59335
35877         * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
35878         gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
35879         tree-ssanames.h, print-tree.h, varasm.h, and context.h.
35880
35881 2014-01-10  Richard Earnshaw  <rearnsha@arm.com>
35882
35883         PR target/59744
35884         * aarch64-modes.def (CC_Zmode): New flags mode.
35885         * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
35886         represents an equality.
35887         (aarch64_get_condition_code): Handle CC_Zmode.
35888         * aarch64.md (compare_neg<mode>): Restrict to equality operations.
35889
35890 2014-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
35891
35892         * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
35893         extraction in good case.
35894
35895 2014-01-10  Richard Biener  <rguenther@suse.de>
35896
35897         PR tree-optimization/59374
35898         * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
35899         checking after SLP discovery.  Mark stmts not participating
35900         in any SLP instance properly.
35901
35902 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35903
35904         * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
35905         when handling a SET rtx.
35906
35907 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35908
35909         * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
35910         (cortex-a57): Likewise.
35911         (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
35912
35913 2014-01-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
35914
35915         * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
35916         non-iwmmxt builtins.
35917
35918 2014-01-10  Jan Hubicka  <hubicka@ucw.cz>
35919
35920         PR ipa/58252
35921         PR ipa/59226
35922         * ipa-devirt.c record_target_from_binfo): Take as argument
35923         stack of binfos and lookup matching one for virtual inheritance.
35924         (possible_polymorphic_call_targets_1): Update.
35925
35926 2014-01-10  Huacai Chen  <chenhc@lemote.com>
35927
35928         * config/mips/driver-native.c (host_detect_local_cpu): Handle new
35929         kernel strings for Loongson-2E/2F/3A.
35930
35931 2014-01-10  Jakub Jelinek  <jakub@redhat.com>
35932
35933         PR middle-end/59670
35934         * tree-vect-data-refs.c (vect_analyze_data_refs): Check
35935         is_gimple_call before calling gimple_call_internal_p.
35936
35937 2014-01-09  Steve Ellcey  <sellcey@mips.com>
35938
35939         * Makefile.in (TREE_FLOW_H): Remove.
35940         (TREE_SSA_H): Add file names from tree-flow.h.
35941         * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
35942         * tree.h: Remove tree-flow.h reference.
35943         * hash-table.h: Remove tree-flow.h reference.
35944         * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
35945         reference with tree-ssa-loop.h.
35946
35947 2014-01-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
35948
35949         * doc/invoke.texi: Add -maltivec={be,le} options, and document
35950         default element-order behavior for -maltivec.
35951         * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
35952         * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
35953         that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
35954         when targeting big endian, at least for now.
35955         * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
35956
35957 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35958
35959         PR middle-end/47735
35960         * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
35961         var satisfies use_register_for_decl, just take into account type
35962         alignment, rather than decl alignment.
35963
35964         PR tree-optimization/59622
35965         * gimple-fold.c (gimple_fold_call): Fix a typo in message.  For
35966         __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
35967         __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
35968         Don't devirtualize for inplace at all.  For targets.length () == 1,
35969         if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
35970
35971 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35972
35973         * config/i386/i386.md (cpu): Remove the unused btver1.
35974
35975 2014-01-09  H.J. Lu  <hongjiu.lu@intel.com>
35976
35977         * gdbasan.in: Put a breakpoint on __sanitizer::Report.
35978
35979 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
35980
35981         PR target/58115
35982         * tree-core.h (struct target_globals): New forward declaration.
35983         (struct tree_target_option): Add globals field.
35984         * tree.h (TREE_TARGET_GLOBALS): Define.
35985         (prepare_target_option_nodes_for_pch): New prototype.
35986         * target-globals.h (struct target_globals): Define even if
35987         !SWITCHABLE_TARGET.
35988         * tree.c (prepare_target_option_node_for_pch,
35989         prepare_target_option_nodes_for_pch): New functions.
35990         * config/i386/i386.h (SWITCHABLE_TARGET): Define.
35991         * config/i386/i386.c: Include target-globals.h.
35992         (ix86_set_current_function): Instead of doing target_reinit
35993         unconditionally, use save_target_globals_default_opts and
35994         restore_target_globals.
35995
35996 2014-01-09  Richard Biener  <rguenther@suse.de>
35997
35998         PR tree-optimization/59715
35999         * tree-cfg.h (split_critical_edges): Declare.
36000         * tree-cfg.c (split_critical_edges): Export.
36001         * tree-ssa-sink.c (execute_sink_code): Split critical edges.
36002
36003 2014-01-09  Max Ostapenko  <m.ostapenko@partner.samsung.com>
36004
36005         * cfgexpand.c (expand_stack_vars): Optionally disable
36006         asan stack protection.
36007         (expand_used_vars): Likewise.
36008         (partition_stack_vars): Likewise.
36009         * asan.c (asan_emit_stack_protection): Optionally disable
36010         after return stack usage.
36011         (instrument_derefs): Optionally disable memory access instrumentation.
36012         (instrument_builtin_call): Likewise.
36013         (instrument_strlen_call): Likewise.
36014         (asan_protect_global): Optionally disable global variables protection.
36015         * doc/invoke.texi: Added doc for new options.
36016         * params.def: Added new options.
36017         * params.h: Likewise.
36018
36019 2014-01-09  Jakub Jelinek  <jakub@redhat.com>
36020
36021         PR rtl-optimization/59724
36022         * ifcvt.c (cond_exec_process_if_block): Don't call
36023         flow_find_head_matching_sequence with 0 longest_match.
36024         * cfgcleanup.c (flow_find_head_matching_sequence): Count even
36025         non-active insns if !stop_after.
36026         (try_head_merge_bb): Revert 2014-01-07 changes.
36027
36028 2014-01-08  Jeff Law  <law@redhat.com>
36029
36030         * ree.c (get_sub_rtx): New function, extracted from...
36031         (merge_def_and_ext): Here.
36032         (combine_reaching_defs): Use get_sub_rtx.
36033
36034 2014-01-08  Eric Botcazou  <ebotcazou@adacore.com>
36035
36036         * cgraph.h (varpool_variable_node): Do not choke on null node.
36037
36038 2014-01-08  Catherine Moore  <clm@codesourcery.com>
36039
36040         * config/mips/mips.md (simple_return): Attempt to use JRC
36041         for microMIPS.
36042         * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
36043
36044 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36045
36046         PR rtl-optimization/59137
36047         * reorg.c (steal_delay_list_from_target): Call update_block for
36048         elided insns.
36049         (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
36050
36051 2014-01-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
36052
36053         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
36054         two duplicate entries.
36055
36056 2014-01-08  Richard Sandiford  <rdsandiford@googlemail.com>
36057
36058         Revert:
36059         2012-10-07  Richard Sandiford  <rdsandiford@googlemail.com>
36060
36061         * config/mips/mips.c (mips_truncated_op_cost): New function.
36062         (mips_rtx_costs): Adjust test for BADDU.
36063         * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
36064
36065         2012-10-02  Richard Sandiford  <rdsandiford@googlemail.com>
36066
36067         * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
36068         (*baddu_si): ...this new pattern.
36069
36070 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36071
36072         PR ipa/59722
36073         * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
36074
36075 2014-01-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
36076
36077         PR middle-end/57748
36078         * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
36079         inner_reference_p.
36080         (expand_expr, expand_normal): Adjust.
36081         * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
36082         inner_reference_p. Use inner_reference_p to expand inner references.
36083         (store_expr): Adjust.
36084         * cfgexpand.c (expand_call_stmt): Adjust.
36085
36086 2014-01-08  Rong Xu  <xur@google.com>
36087
36088         * gcov-io.c (gcov_var): Move from gcov-io.h.
36089         (gcov_position): Ditto.
36090         (gcov_is_error): Ditto.
36091         (gcov_rewrite): Ditto.
36092         * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
36093         only part to libgcc/libgcov.h.
36094
36095 2014-01-08  Marek Polacek  <polacek@redhat.com>
36096
36097         PR middle-end/59669
36098         * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
36099
36100 2014-01-08  Marek Polacek  <polacek@redhat.com>
36101
36102         PR sanitizer/59667
36103         * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
36104
36105 2014-01-08  Jakub Jelinek  <jakub@redhat.com>
36106
36107         PR rtl-optimization/59649
36108         * stor-layout.c (get_mode_bounds): For BImode return
36109         0 and STORE_FLAG_VALUE.
36110
36111 2014-01-08  Richard Biener  <rguenther@suse.de>
36112
36113         PR middle-end/59630
36114         * gimple.h (is_gimple_builtin_call): Remove.
36115         (gimple_builtin_call_types_compatible_p): New.
36116         (gimple_call_builtin_p): New overload.
36117         * gimple.c (is_gimple_builtin_call): Remove.
36118         (validate_call): Rename to ...
36119         (gimple_builtin_call_types_compatible_p): ... this and export.  Also
36120         check return types.
36121         (validate_type): New static function.
36122         (gimple_call_builtin_p): New overload and adjust.
36123         * gimple-fold.c (gimple_fold_builtin): Fold the return value.
36124         (gimple_fold_call): Likewise.  Use gimple_call_builtin_p.
36125         (gimple_fold_stmt_to_constant_1): Likewise.
36126         * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
36127
36128 2014-01-08  Richard Biener  <rguenther@suse.de>
36129
36130         PR middle-end/59471
36131         * gimplify.c (gimplify_expr): Gimplify register-register type
36132         VIEW_CONVERT_EXPRs to separate stmts.
36133
36134 2014-01-07  Jeff Law  <law@redhat.com>
36135
36136         PR middle-end/53623
36137         * ree.c (combine_set_extension): Handle case where source
36138         and destination registers in an extension insn are different.
36139         (combine_reaching_defs): Allow source and destination registers
36140         in extension to be different under limited circumstances.
36141         (add_removable_extension): Remove restriction that the
36142         source and destination registers in the extension are the same.
36143         (find_and_remove_re): Emit a copy from the extension's
36144         destination to its source after the defining insn if
36145         the source and destination registers are different.
36146
36147         PR middle-end/59285
36148         * ifcvt.c (merge_if_block): If we are merging a block with more than
36149         one successor with a block with no successors, remove any BARRIER
36150         after the second block.
36151
36152 2014-01-07  Dan Xio Qiang  <ziyan01@163.com>
36153
36154         * hw-doloop.c (reorg_loops): Release the bitmap obstack.
36155
36156 2014-01-07  John David Anglin  <danglin@gcc.gnu.org>
36157
36158         PR target/59652
36159         * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
36160         for 14-bit register offsets when INT14_OK_STRICT is false.
36161
36162 2014-01-07  Roland Stigge  <stigge@antcom.de>
36163             Michael Meissner  <meissner@linux.vnet.ibm.com>
36164
36165         PR 57386/target
36166         * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
36167         Only check TFmode for SPE constants.  Don't check TImode or TDmode.
36168
36169 2014-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
36170
36171         * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
36172         -mcpu.
36173
36174 2014-01-07  Yufeng Zhang  <yufeng.zhang@arm.com>
36175
36176         * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
36177         with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
36178         rtx is const0_rtx or not.
36179
36180 2014-01-07  Richard Sandiford  <rdsandiford@googlemail.com>
36181
36182         PR target/58115
36183         * target-globals.c (save_target_globals): Remove this_fn_optab
36184         handling.
36185         * toplev.c: Include optabs.h.
36186         (target_reinit): Temporarily restore the global options if another
36187         set of options are in force.
36188
36189 2014-01-07  Jakub Jelinek  <jakub@redhat.com>
36190
36191         PR rtl-optimization/58668
36192         * cfgcleanup.c (flow_find_cross_jump): Don't count
36193         any jumps if dir_p is NULL.  Remove p1 variable, use active_insn_p
36194         to determine what is counted.
36195         (flow_find_head_matching_sequence): Use active_insn_p to determine
36196         what is counted.
36197         (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
36198         counting change.
36199         * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
36200         determine what is counted.
36201
36202         PR tree-optimization/59643
36203         * tree-predcom.c (split_data_refs_to_components): If one dr is
36204         read and one write, determine_offset fails and the write isn't
36205         in the bad component, just put the read into the bad component.
36206
36207 2014-01-07  Mike Stump  <mikestump@comcast.net>
36208             Jakub Jelinek  <jakub@redhat.com>
36209
36210         PR pch/59436
36211         * tree-core.h (struct tree_optimization_option): Change optabs
36212         type from unsigned char * to void *.
36213         * optabs.c (init_tree_optimization_optabs): Adjust
36214         TREE_OPTIMIZATION_OPTABS initialization.
36215
36216 2014-01-06  Jakub Jelinek  <jakub@redhat.com>
36217
36218         PR target/59644
36219         * config/i386/i386.h (struct machine_function): Add
36220         no_drap_save_restore field.
36221         * config/i386/i386.c (ix86_save_reg): Use
36222         !cfun->machine->no_drap_save_restore instead of
36223         crtl->stack_realign_needed.
36224         (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
36225         this function clears frame_pointer_needed.  Set
36226         cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
36227         and DRAP reg is needed.
36228
36229 2014-01-06  Marek Polacek  <polacek@redhat.com>
36230
36231         PR c/57773
36232         * doc/implement-c.texi: Mention that other integer types are
36233         permitted as bit-field types in strictly conforming mode.
36234
36235 2014-01-06  Felix Yang  <fei.yang0953@gmail.com>
36236
36237         * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
36238         is newly allocated.
36239
36240 2014-01-06  Richard Earnshaw  <rearnsha@arm.com>
36241
36242         * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
36243
36244 2014-01-06  Martin Jambor  <mjambor@suse.cz>
36245
36246         PR ipa/59008
36247         * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
36248         to int.
36249         * ipa-prop.c (ipa_print_node_params): Fix indentation.
36250
36251 2014-01-06  Eric Botcazou  <ebotcazou@adacore.com>
36252
36253         PR debug/59350
36254         PR debug/59510
36255         * var-tracking.c (add_stores): Preserve the value of the source even if
36256         we don't record the store.
36257
36258 2014-01-06  Terry Guo  <terry.guo@arm.com>
36259
36260         * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
36261
36262 2014-01-05  Iain Sandoe  <iain@codesourcery.com>
36263
36264         PR bootstrap/59541
36265         * config/darwin.c (darwin_function_section): Adjust return values to
36266         correspond to optimisation changes made in r206070.
36267
36268 2014-01-05  Uros Bizjak  <ubizjak@gmail.com>
36269
36270         * config/i386/i386.c (ix86_data_alignment): Calculate max_align
36271         from prefetch_block tune setting.
36272         (nocona_cost): Correct size of prefetch block to 64.
36273
36274 2014-01-04  Eric Botcazou  <ebotcazou@adacore.com>
36275
36276         * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
36277         (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
36278         used to save the static chain register in the computation of the offset
36279         from which the FP registers need to be restored.
36280
36281 2014-01-04  Jakub Jelinek  <jakub@redhat.com>
36282
36283         PR tree-optimization/59519
36284         * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
36285         ICE if get_current_def (current_new_name) is already non-NULL, as long
36286         as it is a phi result of some other phi in *new_exit_bb that has
36287         the same argument.
36288
36289         * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
36290         or vmovdqu* for misaligned_operand.
36291         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
36292         <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
36293         * config/i386/i386.c (ix86_expand_special_args_builtin): Set
36294         aligned_mem for AVX512F masked aligned load and store builtins and for
36295         non-temporal moves.
36296
36297 2014-01-03  Bingfeng Mei  <bmei@broadcom.com>
36298
36299         PR tree-optimization/59651
36300         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
36301         Address range for negative step should be added by TYPE_SIZE_UNIT.
36302
36303 2014-01-03  Andreas Schwab  <schwab@linux-m68k.org>
36304
36305         * config/m68k/m68k.c (handle_move_double): Handle pushes with
36306         overlapping registers also for registers other than the stack pointer.
36307
36308 2014-01-03  Marek Polacek  <polacek@redhat.com>
36309
36310         PR other/59661
36311         * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
36312         __builtin_FILE.
36313
36314 2014-01-03  Jakub Jelinek  <jakub@redhat.com>
36315
36316         PR target/59625
36317         * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
36318         asm goto as jump.
36319
36320         * config/i386/i386.md (MODE_SIZE): New mode attribute.
36321         (push splitter): Use <P:MODE_SIZE> instead of
36322         GET_MODE_SIZE (<P:MODE>mode).
36323         (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
36324         (mov -1, reg peephole2): Likewise.
36325         * config/i386/sse.md (*mov<mode>_internal,
36326         <sse>_storeu<ssemodesuffix><avxsizesuffix>,
36327         <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
36328         *<code><mode>3, *andnot<mode>3<mask_name>,
36329         <mask_codefor><code><mode>3<mask_name>): Likewise.
36330         * config/i386/subst.md (mask_mode512bit_condition,
36331         sd_mask_mode512bit_condition): Likewise.
36332
36333 2014-01-02  Xinliang David Li  <davidxl@google.com>
36334
36335         PR tree-optimization/59303
36336         * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
36337         (dump_predicates): Better output format.
36338         (pred_equal_p): New function.
36339         (is_neq_relop_p): Ditto.
36340         (is_neq_zero_form_p): Ditto.
36341         (pred_expr_equal_p): Ditto.
36342         (pred_neg_p): Ditto.
36343         (simplify_pred): Ditto.
36344         (simplify_preds_2): Ditto.
36345         (simplify_preds_3): Ditto.
36346         (simplify_preds_4): Ditto.
36347         (simplify_preds): Ditto.
36348         (push_pred): Ditto.
36349         (push_to_worklist): Ditto.
36350         (get_pred_info_from_cmp): Ditto.
36351         (is_degenerated_phi): Ditto.
36352         (normalize_one_pred_1): Ditto.
36353         (normalize_one_pred): Ditto.
36354         (normalize_one_pred_chain): Ditto.
36355         (normalize_preds): Ditto.
36356         (normalize_cond_1): Remove function.
36357         (normalize_cond): Ditto.
36358         (is_gcond_subset_of): Ditto.
36359         (is_subset_of_any): Ditto.
36360         (is_or_set_subset_of): Ditto.
36361         (is_and_set_subset_of): Ditto.
36362         (is_norm_cond_subset_of): Ditto.
36363         (pred_chain_length_cmp): Ditto.
36364         (convert_control_dep_chain_into_preds): Type change.
36365         (find_predicates): Ditto.
36366         (find_def_preds): Ditto.
36367         (destroy_predicates_vecs): Ditto.
36368         (find_matching_predicates_in_rest_chains): Ditto.
36369         (use_pred_not_overlap_with_undef_path_pred): Ditto.
36370         (is_pred_expr_subset): Ditto.
36371         (is_pred_chain_subset_of): Ditto.
36372         (is_included_in): Ditto.
36373         (is_superset_of): Ditto.
36374
36375 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36376
36377         Update copyright years.
36378
36379 2014-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
36380
36381         * common/config/arc/arc-common.c, config/arc/arc-modes.def,
36382         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
36383         config/arc/arc.md, config/arc/arc.opt,
36384         config/arm/arm_neon_builtins.def, config/arm/crypto.def,
36385         config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
36386         config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
36387         config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
36388         config/linux-protos.h, config/linux.c, config/winnt-c.c,
36389         diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
36390         vtable-verify.c, vtable-verify.h: Use the standard form for the
36391         copyright notice.
36392
36393 2014-01-02  Tobias Burnus  <burnus@net-b.de>
36394
36395         * gcc.c (process_command): Update copyright notice dates.
36396         * gcov-dump.c: Ditto.
36397         * gcov.c: Ditto.
36398         * doc/cpp.texi: Bump @copying's copyright year.
36399         * doc/cppinternals.texi: Ditto.
36400         * doc/gcc.texi: Ditto.
36401         * doc/gccint.texi: Ditto.
36402         * doc/gcov.texi: Ditto.
36403         * doc/install.texi: Ditto.
36404         * doc/invoke.texi: Ditto.
36405
36406 2014-01-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
36407
36408         * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
36409
36410 2014-01-01  Jakub Jelinek  <jakub@redhat.com>
36411
36412         * config/i386/sse.md (*mov<mode>_internal): Guard
36413         EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
36414
36415         PR rtl-optimization/59647
36416         * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
36417         new_rtx into UNSIGNED_FLOAT rtxes.
36418 \f
36419 Copyright (C) 2014 Free Software Foundation, Inc.
36420
36421 Copying and distribution of this file, with or without modification,
36422 are permitted in any medium without royalty provided the copyright
36423 notice and this notice are preserved.